1 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3 * value.h (value_entirely_available): Declare.
4 * value.c (value_entirely_available): New function.
5 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6 real type if the pointer is unavailable.
8 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10 * valops.c (value_repeat): Use read_value_memory instead of
13 2011-02-14 Pedro Alves <pedro@codesourcery.com>
15 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
16 * value.c (value_contents_copy_raw, value_contents_copy): New
18 (value_primitive_field): Use value_contents_copy_raw instead of
20 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
22 (value_array, value_slice): Ditto.
23 * valarith.c (value_subscripted_rvalue): Use
24 value_contents_copy_raw instead of memcpy.
26 2011-02-14 Pedro Alves <pedro@codesourcery.com>
28 <unavailable> references.
30 * valops.c (get_value_at): Use value_from_contents_and_address,
33 2011-02-14 Pedro Alves <pedro@codesourcery.com>
35 * c-valprint.c (c_val_print): Print a string with unavailable
38 2011-02-14 Pedro Alves <pedro@codesourcery.com>
40 * value.h (unpack_bits_as_long): Delete declaration.
41 (unpack_value_bits_as_long): Declare.
42 (unpack_value_field_as_long): Declare.
43 (value_field_bitfield): Declare.
44 * value.c (unpack_bits_as_long): Rename to...
45 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
46 value parameters. Return the extracted result in a new output
47 parameter. If the value contents are unavailable, return false,
48 otherwise return true.
49 (unpack_value_bits_as_long): New.
50 (unpack_field_as_long): Rename to...
51 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
52 Add embedded_offset and value parameters. Return the extracted
53 result in a new output parameter. If the value contents are
54 unavailable, return false, otherwise return true.
55 (unpack_value_field_as_long): New.
56 (unpack_field_as_long_1): New.
57 (unpack_field_as_long): Reimplement as wrapper around
58 unpack_value_field_as_long_1.
59 (value_field_bitfield): New function.
60 * valops.c (value_fetch_lazy): When fetching a bitfield, use
61 unpack_value_bits_as_long. Mark the value as unavailable, if it
63 * jv-valprint.c (java_print_value_fields): Use
65 * p-valprint.c (pascal_object_print_value_fields): Use
67 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
69 2011-02-14 Pedro Alves <pedro@codesourcery.com>
71 * value.c (get_internalvar_integer): Also return the int value of
72 TYPE_CODE_INT INTERNALVAR_VALUE values.
73 (set_internalvar): Don't special case TYPE_CODE_INT.
75 2011-02-14 Pedro Alves <pedro@codesourcery.com>
77 * value.c (struct internalvar) <enum internalvar_kind>: Remove
80 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
81 (set_internalvar): Remove special TYPE_CODE_PTR handling.
82 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
84 2011-02-14 Pedro Alves <pedro@codesourcery.com>
86 * value.h (value_available_contents_eq): Declare.
87 * value.c (find_first_range_overlap): New function.
88 (value_available_contents_eq): New function.
89 * valprint.c (val_print_array_elements): Use
90 value_available_contents_eq.
91 * ada-valprint.c (val_print_packed_array_elements): Use
92 value_available_contents_eq.
93 * jv-valprint.c (java_value_print): Use
94 value_available_contents_eq.
96 2011-02-14 Pedro Alves <pedro@codesourcery.com>
98 * target.c (target_read_live_memory): New function.
99 (memory_xfer_live_readonly_partial): New.
100 (memory_xfer_partial): If reading from a traceframe, fallback to
101 reading unavailable read-only memory from read-only regions of
103 * tracepoint.c (disconnect_tracing): Adjust.
104 (set_current_traceframe): New, factored out from
105 set_traceframe_number.
106 (set_traceframe_number): Reimplement to only change the traceframe
107 number on the GDB side.
108 (do_restore_current_traceframe_cleanup): Adjust.
109 (make_cleanup_restore_traceframe_number): New.
110 (cur_traceframe_number): New global.
111 (tfile_open): Set cur_traceframe_number to no traceframe.
112 (set_tfile_traceframe): New function.
113 (tfile_trace_find): If looking up a traceframe using any method
114 other than by number, make sure the current tfile traceframe
115 matches gdb's current traceframe. Update the current tfile
116 traceframe if the lookup succeeded.
117 (tfile_fetch_registers, tfile_xfer_partial)
118 (tfile_get_trace_state_variable_value): Make sure the remote
119 traceframe matches gdb's current traceframe.
120 * remote.c (remote_traceframe_number): New global.
121 (remote_open_1): Set it to -1.
122 (set_remote_traceframe): New function.
123 (remote_fetch_registers, remote_store_registers)
124 (remote_xfer_memory, remote_xfer_partial)
125 (remote_get_trace_state_variable_value): Make sure the remote
126 traceframe matches gdb's current traceframe.
127 (remote_trace_find): If looking up a traceframe using any method
128 other than by number, make sure the current remote traceframe
129 matches gdb's current traceframe. Update the current remote
130 traceframe if the lookup succeeded.
131 * infrun.c (fetch_inferior_event): Adjust.
132 * tracepoint.h (set_current_traceframe): Declare.
133 (get_traceframe_number, set_traceframe_number): Add describing
136 2011-02-14 Pedro Alves <pedro@codesourcery.com>
138 Mark pieces of values as unavailable if the corresponding memory
141 * valops.c: Include tracepoint.h.
142 (value_fetch_lazy): Use read_value_memory.
143 (read_value_memory): New.
144 * value.h (read_value_memory): Declare.
145 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
146 * exec.c (section_table_available_memory): New function.
147 * exec.h (section_table_available_memory): Declare.
149 2011-02-14 Pedro Alves <pedro@codesourcery.com>
151 * Makefile.in (SFILES): Add memrange.c.
152 (HFILES_NO_SRCDIR): Add memrange.h.
153 (COMMON_OBS): Add memrange.o.
154 * memrange.c: New file.
155 * memrange.h: New file.
156 * tracepoint.c: Include memrange.h.
157 (struct mem_range): Delete.
158 (mem_range_s): Delete.
159 (traceframe_available_memory): New function.
160 * tracepoint.h (traceframe_available_memory): Declare.
162 2011-02-14 Pedro Alves <pedro@codesourcery.com>
164 * target.h (struct traceframe_info): Forward declare.
165 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
166 (struct target_ops) <to_traceframe_info>: New field.
167 (target_traceframe_info): New.
168 * target.c (update_current_target): Inherit and default
170 * remote.c (PACKET_qXfer_traceframe_info): New.
171 (remote_protocol_features): Register qXfer:traceframe-info:read.
172 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
173 (remote_traceframe_info): New.
174 (init_remote_ops): Install it.
175 (_initialize_remote): Install "set/show remote traceframe-info"
177 * tracepoint.h (parse_traceframe_info): Declare.
178 * tracepoint.c (struct mem_range): New.
179 (mem_range_s): New typedef.
180 (struct traceframe_info): New.
181 (traceframe_info): New global.
182 (free_traceframe_info): New function.
183 (clear_traceframe_info): New function.
184 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
186 (build_traceframe_info): New function.
187 (tfile_traceframe_info): New function.
188 (init_tfile_ops): Install tfile_traceframe_info.
189 (traceframe_info_start_memory, free_result): New functions.
190 (memory_attributes, traceframe_info_elements): New globals.
191 (parse_traceframe_info, get_traceframe_info): New functions.
192 * features/traceframe-info.dtd: New file.
193 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
195 2011-02-14 Pedro Alves <pedro@codesourcery.com>
197 Base support for <unavailable> value contents.
199 * value.h (value_bytes_available): Declare.
200 (mark_value_bytes_unavailable): Declare.
201 * value.c (struct range): New struct.
202 (range_s): New typedef.
203 (ranges_overlap): New function.
204 (range_lessthan): New function.
205 (ranges_contain_p): New function.
206 (struct value) <unavailable>: New field.
207 (value_bytes_available): New function.
208 (mark_value_bytes_unavailable): New function.
209 (require_not_optimized_out): Constify parameter.
210 (require_available): New function.
211 (value_contents_all, value_contents): Require all bytes be
213 (value_free): Free `unavailable'.
214 (value_copy): Copy `unavailable'.
215 * valprint.h (val_print_unavailable): Declare.
216 * valprint.c (valprint_check_validity): Rename `offset' parameter
217 to `embedded_offset'. If printing a scalar, check whether the
218 value chunk is available.
219 (val_print_unavailable): New.
220 (val_print_scalar_formatted): Check whether the value is
222 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
223 pretty-printing unavailable values.
225 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
227 Fix const/volatile qualifiers of C++ types, PR c++/12328.
228 * c-typeprint.c (c_type_print_args): Update the function comment. New
229 variable param_type, initialize it. Remove const/volatile qualifiers
230 for language_cplus and !show_artificial. Use param_type.
232 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
234 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
235 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
236 * symtab.h (struct symtab) <next>: Comment extension.
238 2011-02-12 Yao Qi <yao@codesourcery.com>
240 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
242 2011-02-11 Pedro Alves <pedro@codesourcery.com>
244 * infrun.c (proceed): Move switching out and in of tfind mode from
246 (fetch_inferior_event): ... to here.
248 2011-02-11 Yao Qi <yao@codesourcery.com>
250 * Makefile.in: Remove signals.o from COMMON_OBS. Link
252 * configure.ac: Add common to sub dir.
253 * configure: Regenerate.
255 2011-02-10 Pedro Alves <pedro@codesourcery.com>
257 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
258 side of the parenthesis.
261 2010-07-13 Jakub Jelinek <jakub@redhat.com>
262 * vec.h (VEC_block_remove): Fix comment.
264 2011-02-08 Michael Snyder <msnyder@vmware.com>
266 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
268 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
270 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
271 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
274 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
277 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
279 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
280 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
282 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
284 * dwarf2read.c (read_subroutine_type): Set special calling
285 convention flag for functions compiled by IBM XL C for OpenCL.
286 * ppc-sysv-tdep.c: Include "dwarf2.h"
287 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
289 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
290 IBM OpenCL vector types calling convention.
291 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
292 (ppc_sysv_abi_broken_return_value): Likewise.
293 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
294 types calling convention.
295 (ppc64_sysv_abi_return_value): Likewise.
296 * spu-tdep.c: Include "dwarf2.h"
297 (spu_return_value): Implement IBM OpenCL vector types calling
300 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
302 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
303 correct ABI for AltiVec vector arguments.
305 2011-02-07 Pedro Alves <pedro@codesourcery.com>
307 * valprint.c (val_print): Extend comment.
308 * ada-valprint.c (ada_valprint): Rewrite comment deferring
309 interface explanation to val_print.
310 (ada_val_print_array): Adjust comment to current interface.
311 (print_field_values): Adjust comment to current interface.
312 * c-valprint.c (c_val_print): Rewrite comment deferring interface
313 explanation to val_print.
314 * f-valprint.c (f_val_print): Ditto.
315 * jv-valprint.c (java_val_print): Ditto.
316 * m2-valprint.c (m2_val_print): Ditto.
317 * p-valprint.c (pascal_val_print): Ditto.
319 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
321 * breakpoint.c (parse_breakpoint_sals): Fix description.
323 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
324 Oguz Kayral <oguzkayral@gmail.com>
326 * python/py-inferior.c (python_on_normal_stop): New function.
327 (python_on_resume): New function.
328 (python_inferior_exit): New function.
329 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
330 inferior_exit observers.
331 * python/py-evtregistry.c: New file.
332 * python/py-threadevent.c : New file.
333 * python/py-event.c: New file.
334 * python/py-evts.c: New file.
335 * python/py-continueevent.c: New file.
336 * python/py-bpevent.c: New file.
337 * python/py-signalevent.c: New file.
338 * python/py-exetiedevent.c: New file.
339 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
340 Move struct breakpoint_object from here...
341 * python/python-internal.h: ... to here.
342 * python/py-event.h: New file.
343 * python/py-events.h: New file.
344 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
345 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
346 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
347 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
348 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
349 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
350 Add build rules for all the above.
352 2011-02-04 Tom Tromey <tromey@redhat.com>
354 * dwarf2read.c (dwarf2_section_empty_p): New function.
355 (dwarf2_read_section): Use dwarf2_section_empty_p.
356 (dwarf2_section_size): New function.
357 (dwarf2_get_section_info): Unconditionally read section.
358 (dwarf2_read_index): Use dwarf2_section_empty_p.
359 (partial_read_comp_unit_head): Use dwarf2_section_size.
360 (dwarf2_symbol_mark_computed): Likewise.
362 2011-02-04 David Daney <ddaney@caviumnetworks.com>
364 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
366 2011-02-04 David Daney <ddaney@caviumnetworks.com>
368 * mips-linux-tdep.c: Include xml-syscall.h.
369 (mips_linux_get_syscall_number): New function.
370 (mips_linux_init_abi): Add calls to
371 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
372 * data-directory/Makefile.in (SYSCALLS_FILES): Add
373 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
374 * syscalls/mips-n32-linux.xml: New file.
375 * syscalls/mips-n64-linux.xml: New file.
376 * syscalls/mips-o32-linux.xml: New file.
378 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
380 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
381 Complain about inverted range entries.
382 (dwarf2_record_block_ranges): Likewise.
384 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
387 * breakpoint.c (update_watchpoint): Fix name of the
388 update_global_location_list function.
389 (print_one_breakpoint): Fix typo.
390 (_initialize_breakpoint): Remove extra space in hbreak help
392 * breakpoint.h (struct bp_location) <length>: Fix field
395 2011-02-04 Pedro Alves <pedro@codesourcery.com>
397 * regcache.c (registers_changed_ptid): Don't explictly always
398 clear `current_regcache'. Only clear current_thread_ptid and
399 current_thread_arch when PTID matches. Only reinit the frame
400 cache if PTID matches the current inferior_ptid. Move alloca(0)
402 (registers_changed): ... here.
404 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
406 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
407 starts with __stack_chk_guard as stack guard symbol.
409 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
411 * disasm.c (compare_lines): Handle the end of sequence markers
412 within the line table to better support disassembling over
413 compilation unit boundaries.
415 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
417 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
418 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
419 implementation even if no symbols are available.
420 (thumb_analyze_prologue): Update call to skip_prologue_function.
421 (arm_analyze_prologue): Likewise.
423 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
425 * arm-tdep.c: Include "observer.h".
426 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
427 (arm_exidx_data_key): New static variable.
428 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
429 (struct arm_exidx_data): Likewise.
430 (arm_exidx_data_free): New function.
431 (arm_compare_exidx_entries): Likewise.
432 (arm_obj_section_from_vma): Likewise.
433 (arm_exidx_new_objfile): Likewise.
434 (arm_find_exidx_entry): Likewise.
435 (arm_exidx_fill_cache): Likewise.
436 (arm_exidx_unwind_sniffer): Likewise.
437 (arm_exidx_unwind): New global variable.
438 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
439 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
440 observer. Register arm_exidx_data_key as objfile data.
442 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
444 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
445 due to accessing uninitialized variable. Fix indentation.
447 2011-02-02 Pedro Alves <pedro@codesourcery.com>
449 * c-valprint.c (c_value_print): When doing virtual base pointer
450 adjustment, create a new value with adjusted contents rather than
451 changing the contents of the value being printed (and getting it
454 2011-02-02 Pedro Alves <pedro@codesourcery.com>
456 * xml-support.c (xml_find_attribute): New.
457 (xinclude_start_include): Use it.
458 * xml-support.h (xml_find_attribute): Declare.
459 * memory-map.c (memory_map_start_memory)
460 (memory_map_start_property): Use xml_find_attribute.
461 * osdata.c (osdata_start_osdata, osdata_start_column): Use
463 * remote.c (start_thread): Use xml_find_attribute.
464 * solib-target.c (library_list_start_segment)
465 (library_list_start_section, library_list_start_library)
466 (library_list_start_list): Use xml_find_attribute.
467 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
468 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
469 (tdesc_start_field): Use xml_find_attribute.
471 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
473 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
474 (BUILD_OCL_VTYPES): Update.
476 2011-02-02 Joel Brobecker <brobecker@adacore.com>
478 * configure.ac: Work around non-GNU sed limitation when computing
479 python version number.
480 * configure: Regenerate.
482 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
484 Fix debug printing of TYPE_INSTANCE.
485 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
486 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
488 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
490 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
491 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
492 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
493 * ada-operator.inc: Rename the file to ...
494 * ada-operator.def: ... here, wrap all the entries by macro OP.
495 * expprint.c (op_name_standard): Remove all the entries. Include
496 "std-operator.def" instead.
497 * expression.h (enum exp_opcode): Include "std-operator.def" and
498 "ada-operator.def". Move all the entries ...
499 * std-operator.def: ... here, wrap all the entries by macro OP.
501 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
503 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
504 * breakpoint.c (remove_jit_event_breakpoints): New function.
505 * jit.c (jit_descriptor_addr): Delete.
506 (registering_code): Delete.
508 (jit_inferior_data): New variable.
509 (struct jit_inferior_data): New type.
510 (get_jit_inferior_data): New function.
511 (jit_inferior_data_cleanup): New function.
512 (jit_read_descriptor): Adjust.
513 (jit_register_code): Adjust.
514 (jit_breakpoint_re_set_internal): New function; move code here ...
515 (jit_inferior_init): ... from here.
516 (jit_breakpoint_re_set): Adjust.
517 (jit_reset_inferior_data_and_breakpoints): New function.
518 (jit_inferior_created_observer): Adjust.
519 (jit_inferior_exit_hook): Adjust.
520 (jit_executable_changed_observer): New function.
521 (jit_event_handler): Adjust.
522 (_initialize_jit): Adjust.
524 2011-01-31 Michael Snyder <msnyder@vmware.com>
526 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
529 2011-01-31 Tom Tromey <tromey@redhat.com>
532 * python/python.c (execute_gdb_command): Call
534 * top.c (suppress_dont_repeat): New global.
535 (dont_repeat): Use it.
536 (prevent_dont_repeat): New function.
537 * command.h (prevent_dont_repeat): Declare.
539 2011-01-31 Tom Tromey <tromey@redhat.com>
541 * infcmd.c (finish_backward): Use breakpoint_set_silent.
542 * python/py-breakpoint.c (bppy_set_silent): Use
543 breakpoint_set_silent.
544 (bppy_set_thread): Use breakpoint_set_thread.
545 (bppy_set_task): Use breakpoint_set_task.
546 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
547 (breakpoint_set_task): Declare.
548 (make_breakpoint_silent): Remove.
549 * breakpoint.c (breakpoint_set_silent): New function.
550 (breakpoint_set_thread): Likewise.
551 (breakpoint_set_task): Likewise.
552 (make_breakpoint_silent): Remove.
554 2011-01-31 Tom Tromey <tromey@redhat.com>
556 * breakpoint.h (user_breakpoint_p): Declare.
557 * breakpoint.c (user_breakpoint_p): New function.
558 (breakpoint_1): Use it.
559 (save_breakpoints): Likewise.
561 2011-01-31 Joel Brobecker <brobecker@adacore.com>
563 * configure.ac: Add handling of Python distribution on Windows.
564 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
565 sysconfig variables are not defined, then do not use them.
566 On Windows, if LIBPL is not defined, then use prefix + '/libs'
567 instead. On Windows, return all paths using forward-slashes
568 rather than backslashes.
570 2011-01-31 Joel Brobecker <brobecker@adacore.com>
572 * configure.ac: Remove fallback behavior for building
573 against Python. Remove tweaking of Python include path.
574 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
575 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
576 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
577 Always restore CPPFLAGS and LIBS after linking test.
578 * configure: Regenerated.
579 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
580 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
581 * python/python-internal.h: Adjust includes of Python .h files.
583 2011-01-31 Joel Brobecker <brobecker@adacore.com>
585 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
588 2011-01-31 Joel Brobecker <brobecker@adacore.com>
590 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
593 2011-01-31 Yao Qi <yao@codesourcery.com>
595 * arm-linux-nat.c: Update calls to regcache_register_status
596 instead of regcache_valid_p.
597 * aix-thread.c: Likewise.
598 * i386gnu-nat.c: Likewise.
600 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
603 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
604 touching TYPE_FIELD_ARTIFICIAL.
606 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
608 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
611 2011-01-28 Pedro Alves <pedro@codesourcery.com>
613 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
614 selected, don't try iterating over the traceframe's blocks.
615 (tfile_has_stack): If there's no traceframe selected, then there's
617 (tfile_has_registers): If there's no traceframe selected, then
618 there's no registers.
620 2011-01-28 Pedro Alves <pedro@codesourcery.com>
622 * target.c (memory_xfer_partial): No need to restore shadows if we
623 haven't read anything.
625 2011-01-28 Pedro Alves <pedro@codesourcery.com>
627 * mips-tdep.c (mips_print_register): Use get_frame_register_value
628 and val_print_scalar_formatted.
630 2011-01-27 Pedro Alves <pedro@codesourcery.com>
632 * tracepoint.c (tfile_read): New.
633 (tfile_open): Use it.
634 (tfile_get_traceframe_address): Use it.
635 (tfile_trace_find): Use it.
636 (walk_blocks_callback_func): New typedef.
637 (match_blocktype): New function.
638 (traceframe_walk_blocks): New function.
639 (traceframe_find_block_type): New function.
640 (tfile_fetch_registers, tfile_xfer_partial)
641 (tfile_get_trace_state_variable_value): Use
642 traceframe_find_block_type and tfile_read.
644 2011-01-26 Kevin Buettner <kevinb@redhat.com>
646 * remote-mips.c: Add internationalization mark ups. Remove
647 trailing \n from already marked up strings.
649 2011-01-26 Tom Tromey <tromey@redhat.com>
651 * python/py-prettyprint.c (print_string_repr): Clear
652 'addressprint' option when calling val_print_string.
653 (print_children): Handle Val_pretty_default. Clear 'addressprint'
654 option when calling val_print_string.
656 2011-01-26 Tom Tromey <tromey@redhat.com>
658 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
660 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
662 (gdb_py_longest, gdb_py_ulongest): New typedefs.
663 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
664 (gdb_py_long_as_ulongest): New defines.
665 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
666 (gdb_py_int_as_long): Declare.
667 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
668 GDB_PY_LL_ARG, gdb_py_object_from_longest.
669 (valpy_long): Add comment.
670 * python/py-utils.c (get_addr_from_python): Use
671 gdb_py_long_as_ulongest. Handle overflow properly.
672 (gdb_py_object_from_longest): New function.
673 (gdb_py_object_from_ulongest): Likewise.
674 (gdb_py_int_as_long): Likewise.
675 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
676 * python/py-symtab.c (salpy_get_pc): Use
677 gdb_py_long_from_ulongest.
678 (salpy_get_line): Use PyInt_FromLong.
679 * python/py-param.c (set_parameter_value): Use
681 * python/py-lazy-string.c (stpy_get_address): Use
682 gdb_py_long_from_ulongest.
683 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
684 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
685 * python/py-breakpoint.c (bppy_set_thread): Use
687 (bppy_set_task): Likewise.
688 (bppy_set_ignore_count): Likewise.
689 (bppy_set_hit_count): Likewise.
690 * python/py-block.c (blpy_get_start): Use
691 gdb_py_object_from_ulongest.
692 (blpy_get_end): Likewise.
693 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
695 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
698 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
699 * gdb/solib.c (solib_read_symbols): Check for addr_low in
700 equality test for objfile, initialize addr_low if needed.
702 2011-01-25 Pedro Alves <pedro@codesourcery.com>
704 * tui/tui-regs.c (tui_register_format): Remove dead code.
706 2011-01-25 Pedro Alves <pedro@codesourcery.com>
708 * printcmd.c (print_formatted): Use val_print_scalar_formatted
709 instead of print_scalar_formatted.
710 (print_scalar_formatted): Don't handle 's' format strings here,
711 and add an assertion that we never see such format here.
712 * valprint.h (val_print_scalar_formatted): Declare.
713 * valprint.c (val_print_scalar_formatted): New.
714 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
715 instead of print_scalar_formatted.
716 * jv-valprint.c (java_val_print): Ditto.
717 * p-valprint.c (pascal_val_print): Ditto.
718 * ada-valprint.c (ada_val_print_1): Ditto.
719 * f-valprint.c (f_val_print): Ditto.
720 * infcmd.c (registers_info): Ditto.
721 * m2-valprint.c (m2_val_print): Ditto.
723 2011-01-25 Pedro Alves <pedro@codesourcery.com>
725 * m2-valprint.c (print_unbounded_array): Pass
726 value_contents_for_printing rather than value_contents, to
727 m2_print_array_contents. Also pass in the value.
729 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
731 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
732 (save_gdb_index_command): Switch to .gdb_index version 4.
734 2011-01-25 Pedro Alves <pedro@codesourcery.com>
736 * mi/mi-main.c (get_register): Use get_frame_register_value rather
737 than frame_register, and always pass a valid value to val_print.
739 2011-01-25 Pedro Alves <pedro@codesourcery.com>
741 Centralize printing "<optimized out>".
743 * valprint.h (val_print_optimized_out): Declare.
744 * cp-valprint.c (cp_print_value_fields): Use
745 val_print_optimized_out.
746 * jv-valprint.c (java_print_value_fields): Ditto.
747 * p-valprint.c (pascal_object_print_value_fields): Ditto.
748 * printcmd.c (print_formatted): Ditto.
749 * valprint.c (valprint_check_validity): Ditto.
750 (value_check_printable): Ditto.
751 (val_print_optimized_out): New.
753 2011-01-25 Pedro Alves <pedro@codesourcery.com>
755 * infcmd.c (default_print_registers_info): Allocate values so to
756 never pass a NULL value to val_print.
758 2011-01-25 Pedro Alves <pedro@codesourcery.com>
760 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
761 boolean. Make sure to always pass a value that matches the
762 contents buffer to callees. Preserve `address' for following
764 * value.c (value_contents_for_printing_const): New.
765 (value_address): Constify value argument.
766 * value.h (value_contents_for_printing_const): Declare.
767 (value_address): Constify value argument.
769 2011-01-25 Pedro Alves <pedro@codesourcery.com>
771 * regcache.c (struct regcache_descr): Rename
772 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
773 and sizeof_cooked_register_valid_p to
774 sizeof_cooked_register_status.
775 (init_regcache_descr): Adjust.
776 (struct regcache): Rename register_valid_p field to
778 (regcache_xmalloc_1, regcache_xfree, regcache_save)
779 (do_cooked_read): Adjust.
780 (regcache_valid_p): Rename to ...
781 (regcache_register_status): ... this. Adjust.
782 (regcache_invalidate): Adjust.
783 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
785 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
786 as unavailable, not valid.
787 (regcache_dump): Adjust.
788 * regcache.h (enum register_status): New.
789 (regcache_register_status): Declare.
790 (regcache_invalidate): Delete declaration.
791 * corelow.c (get_core_registers): Adjust.
792 * tracepoint.c (tfile_fetch_registers): Adjust.
793 * trad-frame.c (REG_VALUE): Rename to ...
794 (TF_REG_VALUE): ... this.
795 (REG_UNKNOWN): Rename to ...
796 (TF_REG_UNKNOWN): ... this.
797 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
798 * mi/mi-main.c (register_changed_p): Adjust.
800 2011-01-25 Pedro Alves <pedro@codesourcery.com>
802 * regcache.c (struct regcache_descr): Remove outdated comment.
803 (init_regcache_descr): Remove sizeof_raw_register_valid_p
805 (regcache_xmalloc): Rename to ...
806 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
807 Allocate the regcache type accordingly.
808 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
809 (regcache_xfree): Asser the source is also readonly. Copy sizeof
810 cooked registers, not raw.
811 (regcache_dup_no_passthrough): Delete.
812 (get_thread_arch_regcache): Use regcache_xmalloc_1.
813 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
814 mention obsolete write_register_bytes.
815 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
817 2011-01-25 Pedro Alves <pedro@codesourcery.com>
819 Stop remote_read_bytes from handling partial reads itself.
821 * remote-fileio.c: Include target.h.
822 (remote_fileio_write_bytes): Delete.
823 (remote_fileio_func_open, remote_fileio_func_write)
824 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
826 (remote_fileio_func_stat): Use target_read_memory and
828 (remote_fileio_func_gettimeofday): Use target_write_memory.
829 (remote_fileio_func_system): Use target_read_memory.
830 * remote.c (remote_write_bytes): Make it static.
831 (remote_read_bytes): Don't handle partial reads here.
832 * remote.h (remote_read_bytes): Delete declaration.
834 2011-01-25 Pedro Alves <pedro@codesourcery.com>
836 Simplify XML parsing a bit.
838 * xml-support.h (gdb_xml_parse_quick): Declare.
839 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
840 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
842 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
843 gdb_xml_create_parser_and_cleanup_1.
844 (gdb_xml_parse_quick): New.
845 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
846 * osdata.c (osdata_parse): Ditto.
847 * remote.c (remote_threads_info): Ditto.
848 * solib-target.c (solib_target_parse_libraries): Ditto.
849 * xml-syscall.c (syscall_parse_xml): Ditto.
850 * xml-tdesc.c (tdesc_parse_xml): Ditto.
852 2011-01-24 Kevin Buettner <kevinb@redhat.com>
854 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
855 with remote-mips.o added to gdb_target_obs.
856 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
858 2011-01-24 Pedro Alves <pedro@codesourcery.com>
860 * ada-valprint.c (val_print_packed_array_elements): Pass the
861 correct struct value to val_print.
862 (ada_val_print_1): Ditto.
864 2011-01-24 Pedro Alves <pedro@codesourcery.com>
866 Don't lose embedded_offset in printing routines throughout.
868 * valprint.h (val_print_array_elements): Change prototype.
869 * valprint.c (val_print_array_elements): Add `embedded_offset'
870 parameter, and adjust to pass it down to val_print, while passing
871 `valaddr' or `address' unmodified. Take embedded_offset into
872 account when checking repetitions.
873 * c-valprint.c (c_val_print): Pass embedded_offset to
874 val_print_array_elements instead of adjusting `valaddr' and
876 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
877 embedded_offset to val_print_array_elements instead of adjusting
879 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
880 * p-valprint.c (pascal_val_print): Pass embedded_offset to
881 val_print_array_elements and pascal_object_print_value_fields
882 instead of adjusting `valaddr'.
883 (pascal_object_print_value_fields): Add `offset' parameter, and
885 (pascal_object_print_value): Add `offset' parameter, and adjust to
887 (pascal_object_print_static_field): Use
888 value_contents_for_printing/value_embedded_offset, rather than
890 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
891 parameter, and adjust to use it. Use
892 value_contents_for_printing/value_embedded_offset, rather than
894 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
895 (ada_val_print_array): Add `offset' parameter, and adjust to use
897 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
898 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
899 Instead work with offsets. Use
900 value_contents_for_printing/value_embedded_offset, rather than
901 value_contents. Change `defer_val_int' local type to CORE_ADDR,
902 and use value_from_pointer to extract a target pointer, rather
903 than value_from_longest.
904 (print_variant_part): Add `offset' parameter. Replace
905 `outer_valaddr' parameter by a new `outer_offset' parameter.
906 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
907 (ada_value_print): Use
908 value_contents_for_printing/value_embedded_offset, rather than
910 (print_record): Add `offset' parameter, and adjust to pass it
912 (print_field_values): Add `offset' parameter. Replace
913 `outer_valaddr' parameter by a new `outer_offset' parameter.
914 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
915 Use value_contents_for_printing/value_embedded_offset, rather than
917 * d-valprint.c (dynamic_array_type): Use
918 value_contents_for_printing/value_embedded_offset, rather than
920 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
921 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
922 (java_print_value_fields): Take `offset' into account. Don't
923 re-adjust `valaddr'. Instead pass down adjusted offsets.
924 (java_val_print): Take `embedded_offset' into account. Pass it to
925 java_print_value_fields.
926 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
927 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
928 down adjusted offsets.
929 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
930 (f_val_print): Take `embedded_offset' into account.
932 2011-01-21 Joel Brobecker <brobecker@adacore.com>
934 * inflow.c: Include "gdbcmd.h".
935 (interactive_mode): New static global, moved here from top.c.
936 (show_interactive_mode): New function, moved here from top.c.
937 use gdb_has_a_terminal instead of input_from_terminal_p to
938 determine the current mode.
939 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
941 (_initialize_inflow): Add the "set/show interactive-mode"
942 commands. Moved here from top.c, after having adjusted slightly
944 * top.c (interactive_mode, show_interactive_mode): Delete, moved
946 (input_from_terminal_p): Remove handling of "interactive-mode"
947 setting, moved to infow.c.
948 (init_main): Remove creation of the "set/show interactive-mode"
949 commands, moved to inflow.c.
951 2011-01-19 Joel Brobecker <brobecker@adacore.com>
953 * NEWS: Add entry for native ia64-hpux support.
955 2011-01-19 Tom Tromey <tromey@redhat.com>
958 * thread.c (free_thread): Free 'name'.
959 (print_thread_info): Emit thread name. Change CLI output.
960 (thread_name_command): New function.
961 (do_captured_thread_select): Emit newline.
962 (_initialize_thread): Register 'thread name' command.
963 * target.h (struct target_ops) <to_thread_name>: New field.
964 (target_thread_name): New macro.
965 * target.c (update_current_target): Handle to_thread_name.
966 * python/py-infthread.c (thpy_get_name): New function.
967 (thpy_set_name): Likewise.
968 (thread_object_getset): Add "name".
969 * linux-nat.c (linux_nat_thread_name): New function.
970 (linux_nat_add_target): Set to_thread_name.
971 * gdbthread.h (struct thread_info) <name>: New field.
973 2011-01-18 Joel Brobecker <brobecker@adacore.com>
975 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
976 (ada_val_print_1): Likewise.
978 2011-01-18 Joel Brobecker <brobecker@adacore.com>
980 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
981 upper limit address is not greater than the function end address
982 when the upper limit could not be computed using the debugging
985 2011-01-17 Tom Tromey <tromey@redhat.com>
987 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
989 * utils.c: Include gdb_regex.h.
990 (do_regfree_cleanup): New function.
991 (make_regfree_cleanup): Likewise.
992 (get_regcomp_error): Likewise.
993 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
995 2011-01-17 Tom Tromey <tromey@redhat.com>
997 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1000 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1002 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1003 for internal variables.
1004 (last_was_structop): New static variable.
1005 (COMPLETE): New token.
1006 (field_exp): New rule to group all '.' suffix handling.
1007 Add mark_struct_expression calls when approriate to be able
1008 to correctly find fields for completion.
1009 (yylex): Adapt to handle field completion and set INTVAR when
1012 2011-01-14 Yao Qi <yao@codesourcery.com>
1014 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1015 save_reggroup, restore_reggroup and all_reggroup.
1017 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1019 * ada-valprint. (ada_printchar): Use the correct type length
1020 in call to ada_emit_char.
1021 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1023 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1025 * solib-som.h (hpux_major_release): Declare variable here.
1026 * solib-som.c: Remove <sys/utsname.h> header.
1027 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1028 (hpux_major_release): Make global, change default value to
1029 DEFAULT_HPUX_MAJOR_RELEASE.
1030 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1031 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1032 Add "solib-som.h" header.
1033 (set_hpux_major_release): New function.
1034 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1036 2011-01-14 Mike Frysinger <vapier@gentoo.org>
1038 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1040 2011-01-14 Joel Brobecker <brobecker@adacore.com>
1042 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1043 new-line at end of warning message.
1044 (ia64_hpux_store_register): Remove trailing new-line at end of
1046 * ia64-hpux-tdep.c: Rephrase comment.
1047 * solib-ia64-hpux.c (struct dld_info): Change type of field
1048 dld_flags from "long long" to ULONGEST.
1050 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1052 * target.h (deprecated_child_ops): Delete declaration.
1053 * target.c (deprecated_child_ops): Delete definition.
1055 2011-01-14 Pedro Alves <pedro@codesourcery.com>
1057 * Makefile.in (hpux-thread.o): Delete rule.
1058 * configure.ac: Don't check for HPUX DCE threads support.
1059 * configure, config.in: Regenerate.
1060 * hppa-hpux-nat.c (child_suppress_run): Delete.
1061 (hppa_hpux_child_can_run): Delete.
1062 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1063 * hpux-thread.c: Delete.
1065 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1067 * hpux-thread.c (hpux_pid_to_str): Delete.
1069 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1071 * ada-valprint.c (ada_emit_char): Remove strange code.
1072 Check that c is <= UCHAR_MAX before passing it to isascii.
1073 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1075 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1077 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1078 to the case where instream is stdin.
1080 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1082 * ia64-tdep.h (struct regcache): Forward declare.
1083 (struct ia64_infcall_ops): New struct type.
1084 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1086 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1087 Renames ia64_find_global_pointer.
1088 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1089 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1090 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1092 (ia64_infcall_ops): New static global constant.
1093 (ia64_gdbarch_init): Set tdep->infcall_ops.
1094 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1095 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1096 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1097 (ia64_hpux_dummy_code): New static global constant.
1098 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1099 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1100 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1102 (ia64_hpux_infcall_ops): New static global constant.
1103 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1104 for inferior function calls to work properly on ia64-hpux.
1106 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1108 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1109 * ia64-tdep.h (struct frame_info): forward declaration.
1110 (struct gdbarch_tdep): Add field size_of_register_frame.
1111 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1112 to determine the size of the register frame.
1113 (ia64_size_of_register_frame): New function.
1114 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1115 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1116 (IA64_HPUX_UREG_REASON): New macro.
1117 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1119 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1120 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1121 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1124 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1126 Add support for ia64-hpux.
1127 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1128 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1130 * configure.host: Add handling for ia64-hpux hosts. Add associated
1132 * configure.tgt: Add handling for ia64-hpux targets.
1133 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1134 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1135 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1137 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1139 [ttrace] Compute thread list immediately after attach.
1140 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1142 (inf_ttrace_attach): Use it.
1144 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1146 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1147 if we could not determine the frame's function address. Instead,
1148 use the frame's PC, and then continue.
1150 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1152 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1153 not already defined.
1155 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1157 * ia64-tdep.c (ia64_struct_type_p): New function.
1158 (ia64_extract_return_value): Handle integral values that are
1159 less than 8 bytes long.
1160 (ia64_push_dummy_call): Likewise.
1162 2011-01-13 Joel Brobecker <brobecker@adacore.com>
1164 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1165 floatformat_ia64_ext.
1166 (floatformat_ia64_ext_big): New static const.
1167 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1169 2011-01-12 Tom Tromey <tromey@redhat.com>
1171 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1173 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1174 (mi_cmd_thread_list_ids): Likewise.
1175 (mi_cmd_data_list_changed_registers): Likewise.
1176 (mi_cmd_data_list_register_values): Likewise.
1177 (mi_cmd_data_write_register_values): Likewise.
1178 (mi_cmd_data_evaluate_expression): Likewise.
1179 (mi_cmd_data_read_memory): Likewise.
1180 (mi_cmd_data_read_memory_bytes): Likewise.
1181 (mi_cmd_data_write_memory): Likewise.
1182 (mi_cmd_enable_timings): Likewise.
1183 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1184 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1185 (mi_cmd_var_delete): Likewise.
1186 (mi_cmd_var_set_format): Likewise.
1187 (mi_cmd_var_show_format): Likewise.
1188 (mi_cmd_var_info_num_children): Likewise.
1189 (mi_cmd_var_list_children): Likewise.
1190 (mi_cmd_var_info_type): Likewise.
1191 (mi_cmd_var_info_expression): Likewise.
1192 (mi_cmd_var_show_attributes): Likewise.
1193 (mi_cmd_var_assign): Likewise.
1194 (mi_cmd_var_update): Likewise.
1195 (mi_cmd_enable_pretty_printing): Likewise.
1196 (mi_cmd_var_set_update_range): Likewise.
1197 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1199 (mi_cmd_target_file_put): Likewise.
1200 (mi_cmd_target_file_delete): Likewise.
1201 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1203 (mi_cmd_stack_info_depth): Likewise.
1204 (mi_cmd_stack_list_locals): Likewise.
1205 (mi_cmd_stack_list_args): Likewise.
1206 (mi_cmd_stack_select_frame): Likewise.
1207 (mi_cmd_stack_select_frame): Likewise.
1208 (mi_cmd_stack_info_frame): Likewise.
1209 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1211 (mi_cmd_file_list_exec_source_files): Likewise.
1212 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1213 (mi_cmd_env_cd): Likewise.
1214 (mi_cmd_env_path): Likewise.
1215 (mi_cmd_env_dir): Likewise.
1216 (mi_cmd_inferior_tty_show): Likewise.
1217 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1218 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1219 (mi_cmd_break_watch): Likewise.
1221 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1223 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1224 (ppc_linux_insert_hw_breakpoint): Likewise.
1225 (ppc_linux_remove_hw_breakpoint): Likewise.
1226 (ppc_linux_insert_watchpoint): Likewise.
1228 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1229 Jan Kratochvil <jan.kratochvil@redhat.com>
1231 PR fortran/11104 and DWARF unbound arrays detection.
1232 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1233 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1234 unspecified upper bound.
1235 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1236 variables array_size_array, tmp_type and offset_item. New variable
1237 array. Remove call to f77_get_upperbound. New variables array_type
1238 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1239 the final call to deprecated_set_value_type.
1241 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1243 Make value allocations more lazy.
1244 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1245 instead of allocate_value and set_value_lazy when possible.
1246 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1247 instead of allocate_value and set_value_lazy.
1248 * findvar.c (value_of_register_lazy): Likewise.
1249 (read_var_value): Remove V preallocation, call just check_typedef in
1250 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1251 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1252 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1253 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1254 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1255 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1256 the end, remove set_value_lazy there.
1257 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1258 instead of allocate_value and set_value_lazy when possible.
1259 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1260 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1261 of allocate_value and set_value_lazy.
1262 (value_from_contents_and_address): Use allocate_value_lazy instead of
1263 allocate_value and set_value_lazy when possible.
1265 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
1267 * disasm.c (dump_insns): Support dumping opcodes for MI.
1268 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1269 dumping of instruction opcodes.
1271 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1273 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1276 2011-01-11 Tom Tromey <tromey@redhat.com>
1278 * thread.c (do_captured_thread_select): Emit newline before
1281 2011-01-11 Michael Snyder <msnyder@vmware.com>
1283 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1284 * score-tdep.c: Ditto.
1285 * score-tdep.h: Ditto.
1286 * ser-base.c: Ditto.
1287 * ser-go32.c: Ditto.
1290 * ser-mingw.c: Ditto.
1291 * ser-pipe.c: Ditto.
1293 * ser-unix.c: Ditto.
1294 * sh64-tdep.c: Ditto.
1295 * shnbsd-nat.c: Ditto.
1299 * solib-darwin.c: Ditto.
1300 * solib-frv.c: Ditto.
1302 * solib-irix.c: Ditto.
1303 * solib-osf.c: Ditto.
1304 * solib-pa64.c: Ditto.
1305 * solib-som.c: Ditto.
1306 * solib-spu.c: Ditto.
1307 * solib-sunos.c: Ditto.
1308 * solib-svr4.c: Ditto.
1310 * sol-thread.c: Ditto.
1314 * sparc64-linux-tdep.c: Ditto.
1315 * sparc64-tdep.c: Ditto.
1316 * sparc-linux-nat.c: Ditto.
1317 * sparc-linux-tdep.c: Ditto.
1318 * sparc-sol2-nat.c: Ditto.
1319 * sparc-sol2-tdep.c: Ditto.
1320 * sparc-tdep.c: Ditto.
1321 * sparc-tdep.h: Ditto.
1322 * spu-tdep.c: Ditto.
1323 * stabsread.c: Ditto.
1324 * stabsread.h: Ditto.
1332 * target-descriptions.c: Ditto.
1333 * target-descriptions.h: Ditto.
1335 * target-memory.c: Ditto.
1336 * terminal.h: Ditto.
1339 * tracepoint.c: Ditto.
1340 * tracepoint.h: Ditto.
1341 * trad-frame.h: Ditto.
1342 * typeprint.c: Ditto.
1344 2011-01-11 Michael Snyder <msnyder@vmware.com>
1346 * ui-file.c: Comment cleanup, mostly periods and spaces.
1351 * v850-tdep.c: Ditto.
1352 * valarith.c: Ditto.
1354 * valprint.c: Ditto.
1355 * valprint.h: Ditto.
1360 * vax-tdep.c: Ditto.
1364 * windows-nat.c: Ditto.
1365 * windows-tdep.c: Ditto.
1366 * xcoffread.c: Ditto.
1367 * xcoffsolib.c: Ditto.
1368 * xml-support.c: Ditto.
1369 * xstormy16-tdep.c: Ditto.
1370 * xtensa-tdep.c: Ditto.
1371 * xtensa-tdep.h: Ditto.
1373 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1375 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1376 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1378 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1379 Thiago Jung Bauermann <bauerman@br.ibm.com>
1381 Implement support for PowerPC BookE ranged watchpoints.
1383 (struct breakpoint_ops) <resources_needed>: New method.
1384 Initialize to NULL in all existing breakpoint_ops instances.
1385 (struct breakpoint) <exact>: New field.
1386 (target_exact_watchpoints): Declare external global.
1387 * breakpoint.c (target_exact_watchpoints): New global flag.
1388 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1389 b->enable_state to bp_enabled before calling
1390 hw_watchpoint_used_count.
1391 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1392 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1394 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1395 if the watchpoint is exact.
1396 (resources_needed_watchpoint): New function.
1397 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1398 (watch_command_1): Set b->exact if the user asked for an exact
1399 watchpoint and one can be set.
1400 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1401 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1402 the user asks for an exact watchpoint and one can be set. Return
1403 number of needed debug registers to watch the expression.
1404 * gdbtypes.c (is_scalar_type): New function, based on
1405 valprint.c:scalar_type_p.
1406 (is_scalar_type_recursive): New function.
1407 * gdbtypes.h (is_scalar_type_recursive): Declare.
1408 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1409 handle regions when ranged watchpoints are available.
1410 (create_watchpoint_request): New function.
1411 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1412 create_watchpoint_request.
1413 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1414 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1415 `set powerpc' and `show powerpc' commands.
1416 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1417 Mention documentation comment in the target macro.
1418 (target_region_ok_for_hw_watchpoint): Document return value.
1420 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1422 * breakpoint.c (update_watchpoint): Decide on using a software or
1423 hardware watchpoint after the bp_locations are created.
1425 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1427 Convert hardware watchpoints to use breakpoint_ops.
1428 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1429 <insert_location>: ... this. Return int instead of void.
1430 Accept pointer to struct bp_location instead of pointer to
1431 struct breakpoint. Adapt all implementations.
1432 (breakpoint_ops) <remove>: Rename to...
1433 <remove_location>: ... this. Accept pointer to struct bp_location
1434 instead of pointer to struct breakpoint. Adapt all implementations.
1435 * breakpoint.c (insert_catchpoint): Delete function.
1436 (insert_bp_location): Call the watchpoint or catchpoint's
1437 breakpoint_ops.insert method.
1438 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1439 breakpoint_ops.remove method.
1440 (insert_watchpoint, remove_watchpoint): New functions.
1441 (watchpoint_breakpoint_ops): New structure.
1442 (watch_command_1): Initialize the OPS field.
1443 * inf-child.c (inf_child_insert_fork_catchpoint)
1444 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1445 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1446 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1448 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1449 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1450 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1451 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1452 * target.c (update_current_target): Change default implementation of
1453 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1454 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1455 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1456 to_set_syscall_catchpoint to return_one.
1457 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1458 (debug_to_insert_exec_catchpoint): Report return value.
1459 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1460 (to_insert_exec_catchpoint): Change declaration to return int instead
1463 2011-01-11 Michael Snyder <msnyder@vmware.com>
1465 * arm-tdep.c: Internationalization.
1468 * fork-child.c: Ditto.
1469 * nto-procfs.c: Ditto.
1470 * ppc-sysv-tdep.c: Ditto.
1472 * remote-mips.c: Ditto.
1474 * rs6000-nat.c: Ditto.
1475 * rs6000-tdep.c: Ditto.
1479 * xml-support.c: Ditto.
1480 * mi/mi-cmd-break.c: Ditto.
1481 * mi/mi-cmd-var.c: Ditto.
1482 * mi/mi-interp.c: Ditto.
1483 * mi/mi-main.c: Ditto.
1485 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1487 * remote-sim.c (gdbsim_store_register): Update API to
1488 sim_store_register to check more error conditions.
1490 2011-01-10 Michael Snyder <msnyder@vmware.com>
1492 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1493 * nto-tdep.c: Ditto.
1494 * nto-tdep.h: Ditto.
1495 * objc-exp.y: Ditto.
1496 * objc-lang.c: Ditto.
1497 * objfiles.c: Ditto.
1498 * objfiles.h: Ditto.
1499 * observer.c: Ditto.
1500 * opencl-lang.c: Ditto.
1503 * parser-defs.h: Ditto.
1506 * posix-hdep.c: Ditto.
1507 * ppcbug-rom.c: Ditto.
1508 * ppc-linux-nat.c: Ditto.
1509 * ppc-linux-tdep.c: Ditto.
1510 * ppc-linux-tdep.h: Ditto.
1511 * ppcnbsd-tdep.c: Ditto.
1512 * ppcobsd-tdep.c: Ditto.
1513 * ppcobsd-tdep.h: Ditto.
1514 * ppc-sysv-tdep.c: Ditto.
1515 * ppc-tdep.h: Ditto.
1516 * printcmd.c: Ditto.
1517 * proc-abi.c: Ditto.
1518 * proc-flags.c: Ditto.
1520 * proc-utils.h: Ditto.
1521 * progspace.h: Ditto.
1522 * prologue-value.c: Ditto.
1523 * prologue-value.h: Ditto.
1524 * psympriv.h: Ditto.
1526 * p-typeprint.c: Ditto.
1527 * p-valprint.c: Ditto.
1528 * ravenscar-sparc-thread.c: Ditto.
1529 * ravenscar-thread.c: Ditto.
1530 * ravenscar-thread.h: Ditto.
1532 * regcache.c: Ditto.
1533 * regcache.h: Ditto.
1535 * remote-fileio.c: Ditto.
1536 * remote-fileio.h: Ditto.
1538 * remote-m32r-sdi.c: Ditto.
1539 * remote-mips.c: Ditto.
1540 * remote-sim.c: Ditto.
1541 * rs6000-aix-tdep.c: Ditto.
1542 * rs6000-nat.c: Ditto.
1543 * rs6000-tdep.c: Ditto.
1545 2011-01-10 Michael Snyder <msnyder@vmware.com>
1547 * charset.c (validate): Internationalization.
1548 * coffread.c (read_one_sym): Ditto.
1549 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1550 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1551 * inflow.c (new_tty): Ditto.
1552 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1553 * m32c-tdep.c (m32c_return_value): Ditto.
1554 * mep-tdep.c (mep_store_return_value): Ditto.
1555 * score-tdep.c (score7_fetch_insn): Ditto.
1556 * ser-mingw.c (pipe_windows_open): Ditto.
1557 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1558 * spu-tdep.c (spu_register_type): Ditto.
1559 * tracepoint.c (trace_find_command): Ditto.
1560 * valarith.c (value_pos): Ditto.
1562 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1564 * ada-valprint.c (printstr): Minor comment reformatting.
1566 2011-01-08 Michael Snyder <msnyder@vmware.com>
1568 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1571 2011-01-08 Michael Snyder <msnyder@vmware.com>
1573 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1574 * hppa-hpux-tdep.c: Ditto.
1575 * hppa-linux-nat.c: Ditto.
1576 * hppa-linux-tdep.c: Ditto.
1577 * hppanbsd-tdep.c: Ditto.
1578 * hppa-tdep.c: Ditto.
1579 * hppa-tdep.h: Ditto.
1580 * hpux-thread.c: Ditto.
1581 * i386-cygwin-tdep.c: Ditto.
1582 * i386-darwin-nat.c: Ditto.
1583 * i386gnu-nat.c: Ditto.
1584 * i386-linux-nat.c: Ditto.
1585 * i386-linux-tdep.c: Ditto.
1586 * i386-nat.c: Ditto.
1587 * i386-nat.h: Ditto.
1588 * i386nbsd-tdep.c: Ditto.
1589 * i386-sol2-nat.c: Ditto.
1590 * i386-stub.c: Ditto.
1591 * i386-tdep.c: Ditto.
1592 * i386-tdep.h: Ditto.
1593 * i387-tdep.c: Ditto.
1594 * ia64-linux-nat.c: Ditto.
1595 * ia64-linux-tdep.c: Ditto.
1596 * ia64-tdep.c: Ditto.
1600 * inferior.c: Ditto.
1601 * inferior.h: Ditto.
1607 * iq2000-tdep.c: Ditto.
1608 * irix5-nat.c: Ditto.
1614 * jv-typeprint.c: Ditto.
1615 * jv-valprint.c: Ditto.
1616 * language.c: Ditto.
1617 * language.h: Ditto.
1618 * linespec.c: Ditto.
1619 * linux-fork.c: Ditto.
1620 * linux-nat.c: Ditto.
1621 * linux-thread-db.c: Ditto.
1622 * lm32-tdep.c: Ditto.
1624 2011-01-08 Michael Snyder <msnyder@vmware.com>
1626 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1628 * m2-typeprint.c: Ditto.
1629 * m2-valprint.c: Ditto.
1630 * m32c-tdep.c: Ditto.
1631 * m32r-linux-nat.c: Ditto.
1632 * m32r-rom.c: Ditto.
1633 * m32r-tdep.c: Ditto.
1634 * m32r-tdep.h: Ditto.
1635 * m68hc11-tdep.c: Ditto.
1636 * m58klinux-nat.c: Ditto.
1637 * m68k-tdep.c: Ditto.
1638 * m88k-tdep.c: Ditto.
1639 * m88k-tdep.h: Ditto.
1640 * machoread.c: Ditto.
1641 * macrocmd.c: Ditto.
1642 * macroexp.c: Ditto.
1643 * macrotab.c: Ditto.
1646 * mdebugread.c: Ditto.
1647 * mdebugread.h: Ditto.
1650 * memory-map.h: Ditto.
1651 * mep-tdep.c: Ditto.
1652 * microblaze-rom.c: Ditto.
1653 * microblaze-tdep.c: Ditto.
1655 * mips-irix-tdep.c: Ditto.
1656 * mips-linux-nat.c: Ditto.
1657 * mips-linux-tdep.c: Ditto.
1658 * mips-linux-tdep.h: Ditto.
1659 * mipsnbsd-nat.c: Ditto.
1660 * mipsnbsd-tdep.c: Ditto.
1661 * mipsread.c: Ditto.
1662 * mips-tdep.c: Ditto.
1663 * mips-tdep.h: Ditto.
1664 * mn10300-linux-tdep.c: Ditto.
1665 * mn10300-tdep.c: Ditto.
1666 * mn10300-tdep.h: Ditto.
1669 * moxie-tdep.c: Ditto.
1670 * moxie-tdep.h: Ditto.
1673 2011-01-08 Mike Frysinger <vapier@gentoo.org>
1675 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1677 2011-01-08 Robert Millan <rmh@gnu.org>
1679 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1681 2011-01-07 Michael Snyder <msnyder@vmware.com>
1683 * charset.c (_initialize_charset): Fix typo in string.
1685 2011-01-07 Michael Snyder <msnyder@vmware.com>
1687 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1689 * tui/tui-layout.c (tui_set_layout_for_display_command):
1690 Split line so that operator goes to beginning of line.
1691 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1692 assignment out of if statement.
1694 2011-01-07 Michael Snyder <msnyder@vmware.com>
1696 * ada-lang.c: Comment cleanup, mostly periods and spaces.
1697 * ada-lang.h: Ditto.
1698 * ada-tasks.c: Ditto.
1699 * ada-valprint.c: Ditto.
1700 * aix-threads.c: Ditto.
1701 * alpha-linux-nat.c: Ditto.
1702 * alpha-linux-tdep.c: Ditto.
1703 * alpha-mdebug-tdep.c: Ditto.
1704 * alpha-nat.c: Ditto.
1705 * alpha-osf1-tdep.c: Ditto.
1706 * alpha-tdep.c: Ditto.
1707 * alphabsd-nat.c: Ditto.
1708 * alphabsd-tdep.c: Ditto.
1709 * amd64-darwin-tdep.c: Ditto.
1710 * amd64-linux-nat.c: Ditto.
1711 * amd64-linux-tdep.c: Ditto.
1712 * amd64-sol2-tdep.c: Ditto.
1713 * amd64-tdep.c: Ditto.
1714 * amd64-fbsd-tdep.c: Ditto.
1715 * amd64-nbsd-tdep.c: Ditto.
1716 * amd64-obsd-tdep.c: Ditto.
1717 * amd64-linux-nat.c: Ditto.
1718 * amd64-linux-tdep.c: Ditto.
1719 * arm-tdep.c: Ditto.
1720 * arm-tdep.h: Ditto.
1721 * armnbsd-nat.c: Ditto.
1722 * avr-tdep.c: Ditto.
1723 * bfin-tdep.c: Ditto.
1725 * c-typeprintc: Ditto.
1726 * c-valprint.c: Ditto.
1727 * coff-pe-read.h: Ditto.
1728 * coffreead.c: Ditto.
1729 * cris-tdep.c: Ditto.
1731 * darwin-nat-info.c: Ditto.
1732 * darwin-nat.c: Ditto.
1733 * dbug-rom.c: Ditto.
1737 * dec-thread.c: Ditto.
1739 * demangle.c: Ditto.
1740 * dicos-tdep.c: Ditto.
1741 * dictionary.c: Ditto.
1742 * dictionary.h: Ditto.
1743 * dink32-rom.c: Ditto.
1745 * doublest.c: Ditto.
1747 * dummy-frame.c: Ditto.
1748 * dwarf2-frame.c: Ditto.
1749 * dwarf2expr.c: Ditto.
1750 * dwarf2loc.c: Ditto.
1751 * dwarf2read.c: Ditto.
1755 * event-top.h: Ditto.
1756 * exceptions.c: Ditto.
1757 * exceptions.h: Ditto.
1759 * expprint.c: Ditto.
1760 * expression.h: Ditto.
1764 * f-typeprint.c: Ditto.
1765 * f-valprint.c: Ditto.
1766 * fbsd-nat.c: Ditto.
1768 * fork-child.c: Ditto.
1771 * frv-linux-tdep.c: Ditto.
1772 * frv-tdep.c: Ditto.
1774 * gdb-stabs.h: Ditto.
1775 * gdb_assert.h: Ditto.
1776 * gdb_string.h: Ditto.
1777 * gdb_thread_db.h: Ditto.
1778 * gdb_wait.h: Ditto.
1779 * gdbarch.sh: Ditto.
1781 * gdbthread.h: Ditto.
1782 * gdbtypes.c: Ditto.
1783 * gdbtypes.h: Ditto.
1786 * gnu-v2-abi.c: Ditto.
1787 * gnu-v3-abi.c: Ditto.
1788 * go32-nat.c: Ditto.
1789 * gdbarch.c: Regenerate.
1790 * gdbarch.h: Regenerate.
1792 2011-01-07 Michael Snyder <msnyder@vmware.com>
1794 * ax-gdb.c: Adjust some long output strings.
1795 * breakpoint.c: Ditto.
1800 * linux-nat.c: Ditto.
1801 * solib-pa64.c: Ditto.
1802 * solib-som.c: Ditto.
1804 2011-01-06 Tom Tromey <tromey@redhat.com>
1808 * python/python.c (GdbMethods): Add "newest_frame" method.
1809 * python/python-internal.h (gdbpy_newest_frame): Declare.
1810 * python/py-frame.c (gdbpy_newest_frame): New function.
1812 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1814 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
1815 * jit.c (jit_debug): New variable.
1816 (show_jit_debug): New function.
1817 (struct target_buffer): Use ULONGEST.
1818 (bfd_open_from_target_memory): Likewise.
1819 (jit_register_code, jit_inferior_init): Add debug output.
1820 (_initialize_jit): Register "debug jit" command.
1822 2011-01-06 Tom Tromey <tromey@redhat.com>
1824 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
1825 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
1828 2011-01-06 Tom Tromey <tromey@redhat.com>
1830 * python/py-frame.c (frapy_block): Use get_frame_block.
1832 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1834 Do not stop on SIGPRIO signals by default
1835 * infrun.c (_initialize_infrun): Unset signal_stop and
1836 signal_print for TARGET_SIGNAL_PRIO.
1838 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1840 * ada-tasks.c: Fix style violation in comment.
1842 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1844 * linespec.c (decode_compound, find_method): Remove trailing \n
1845 at end of error string.
1846 * solib-irix.c (irix_current_sos): Likewise.
1847 * varobj.c (uninstall_variable): Likewise.
1849 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1851 * copyright.py: New script.
1852 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
1853 Launch emacs without exec'ing. Call copyright.py afterwards.
1855 2011-01-05 Michael Snyder <msnyder@vmware.com>
1857 * addrmap.c: Shorten lines of >= 80 columns.
1858 * arch-utils.c: Ditto.
1859 * arch-utils.h: Ditto.
1861 * ax-general.c: Ditto.
1863 * blockframe.c: Ditto.
1864 * breakpoint.c: Ditto.
1865 * buildsym.c: Ditto.
1867 * c-typeprint.c: Ditto.
1869 * coffread.c: Ditto.
1873 * cp-namespace.c: Ditto.
1874 * cp-support.c: Ditto.
1875 * dbug-rom.c: Ditto.
1880 * dictionary.c: Ditto.
1882 * doublest.c: Ditto.
1883 * dwarf2-frame.c: Ditto.
1884 * dwarf2expr.c: Ditto.
1885 * dwarf2loc.c: Ditto.
1886 * dwarf2read.c: Ditto.
1889 * event-loop.c: Ditto.
1890 * event-loop.h: Ditto.
1891 * exceptions.h: Ditto.
1893 * expprint.c: Ditto.
1894 * expression.h: Ditto.
1896 * f-valprint.c: Ditto.
1898 * frame-base.c: Ditto.
1899 * frame-unwind.c: Ditto.
1900 * frame-unwind.h: Ditto.
1904 * gdb-stabs.h: Ditto.
1905 * gdb_assert.h: Ditto.
1906 * gdb_dirent.h: Ditto.
1907 * gdb_obstack.h: Ditto.
1909 * gdbtypes.c: Ditto.
1910 * gdbtypes.h: Ditto.
1911 * inf-ttrace.c: Ditto.
1916 * inline-frame.h: Ditto.
1917 * language.c: Ditto.
1918 * language.h: Ditto.
1919 * libunwind-frame.c: Ditto.
1920 * libunwind-frame.h: Ditto.
1921 * linespec.c: Ditto.
1922 * linux-nat.c: Ditto.
1923 * linux-nat.h: Ditto.
1924 * linux-thread-db.c: Ditto.
1925 * machoread.c: Ditto.
1926 * macroexp.c: Ditto.
1927 * macrotab.c: Ditto.
1930 * mdebugread.c: Ditto.
1935 * objfiles.c: Ditto.
1936 * objfiles.h: Ditto.
1938 * p-typeprint.c: Ditto.
1939 * p-valprint.c: Ditto.
1941 * printcmd.c: Ditto.
1942 * proc-events.c: Ditto.
1944 * progspace.c: Ditto.
1945 * progspace.h: Ditto.
1946 * psympriv.h: Ditto.
1949 * regcache.c: Ditto.
1950 * regcache.h: Ditto.
1951 * remote-fileio.c: Ditto.
1953 * ser-mingw.c: Ditto.
1955 * ser-unix.c: Ditto.
1958 * solib-frv.c: Ditto.
1959 * solib-irix.c: Ditto.
1960 * solib-osf.c: Ditto.
1961 * solib-pa64.c: Ditto.
1962 * solib-som.c: Ditto.
1963 * solib-sunos.c: Ditto.
1964 * solib-svr4.c: Ditto.
1965 * solib-target.c: Ditto.
1969 * stabsread.c: Ditto.
1970 * stabsread.c: Ditto.
1973 * symfile-mem.c: Ditto.
1979 * target-descriptions.c: Ditto.
1980 * target-memory.c: Ditto.
1983 * terminal.h: Ditto.
1986 * tracepoint.c: Ditto.
1987 * tracepoint.h: Ditto.
1991 * user-regs.c: Ditto.
1992 * user-regs.h: Ditto.
1994 * valarith.c: Ditto.
1996 * valprint.c: Ditto.
1997 * valprint.h: Ditto.
2002 * xcoffread.c: Ditto.
2003 * xcoffsolib.c: Ditto.
2004 * xcoffsolib.h: Ditto.
2005 * xml-syscall.c: Ditto.
2006 * xml-tdesc.c: Ditto.
2008 2011-01-05 Michael Snyder <msnyder@vmware.com>
2010 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2011 * cli/cli-decode.c: Ditto.
2012 * cli/cli-dump.c: Ditto.
2013 * cli/cli-logging.c: Ditto.
2014 * cli/cli-script.c: Ditto.
2015 * cli/cli-setshow.c: Ditto.
2016 * common/signals.c: Ditto.
2017 * mi/mi-cmd-break.c: Ditto.
2018 * mi/mi-cmd-disas.c: Ditto.
2019 * mi/mi-cmd-stack.c: Ditto.
2020 * mi/mi-cmd-var.c: Ditto.
2021 * mi/mi-cmds.c: Ditto.
2022 * mi/mi-common.h: Ditto.
2023 * mi/mi-console.c: Ditto.
2024 * mi/mi-interp.c: Ditto.
2025 * mi/mi-main.c: Ditto.
2026 * osf-share/cma_attr.c: Ditto.
2027 * osf-share/cma_deb_core.h: Ditto.
2028 * osf-share/cma_debug_client.h: Ditto.
2029 * osf-share/cma_handle.h: Ditto.
2030 * osf-share/cma_mutex.h: Ditto.
2031 * osf-share/cma_stack_int.h: Ditto.
2032 * osf-share/cma_tcb_defs.h: Ditto.
2033 * python/py-auto-load.c: Ditto.
2034 * python/py-breakpoint.c: Ditto.
2035 * python/py-cmd.c: Ditto.
2036 * python/py-frame.c: Ditto.
2037 * python/py-objfile.c: Ditto.
2038 * python/py-param.c: Ditto.
2039 * python/py-progspace.c: Ditto.
2040 * python/py-symbol.c: Ditto.
2041 * python/py-value.c: Ditto.
2042 * python/python-internal.h: Ditto.
2043 * python/python.c: Ditto.
2044 * tui/tui-data.c: Ditto.
2045 * tui/tui-disasm.c: Ditto.
2046 * tui/tui-hooks.c: Ditto.
2047 * tui/tui-io.c: Ditto.
2048 * tui/tui-layout.c: Ditto.
2049 * tui/tui-regs.c: Ditto.
2050 * tui/tui-source.c: Ditto.
2051 * tui/tui-stack.c: Ditto.
2052 * tui/tui-win.c: Ditto.
2053 * tui/tui-windata.c: Ditto.
2054 * tui/tui-winsource.c: Ditto.
2056 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2058 * configure.ac, gdb.1: Copyright year update.
2060 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2062 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2063 this_pc_in_block, morestack_msym and morestack_name. Check for
2064 "__morestack" minimal symbol there.
2066 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2068 * symfile.c (find_sym_fns): Add call to dont_repeat.
2070 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2072 Copyright year update in most files (performed by copyright.sh).
2074 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2076 * top.c (print_gdb_version): Update copyright year in version output.
2078 For older changes see ChangeLog-2010.
2084 version-control: never