1 2012-06-26 Doug Evans <dje@google.com>
3 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5 (error_check_comp_unit_head): New arg abbrev_section. All callers
7 (read_and_check_comp_unit_head): Ditto.
8 (read_and_check_type_unit_head): Ditto.
10 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
12 New attribute 'last' for gdb.Symtab_and_line.
13 * NEWS (Python Scripting): Add entry about the new attribute.
14 * python/py-symtab.c (salpy_get_last): New function which
15 implements the get method for the 'last' attribute of
17 (sal_object_getset): Add entry for the 'last' attribute.
19 2012-06-26 Doug Evans <dje@google.com>
21 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
22 (dwo_sections): Add macinfo, macro.
23 (dwarf2_locate_dwo_sections): Watch for macro sections.
24 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
25 All callers updated. Handle DWO files.
27 * NEWS: Mention new options "set debug dwarf2-read" and
28 "set debug symtab-create".
29 * dwarf2read.c (dwarf2_read_debug): New static global.
30 (dwarf2_build_psymtabs_hard): Add debugging printfs.
31 (process_queue): Ditto.
32 (process_full_comp_unit): Ditto.
33 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
34 * elfread.c (elf_symfile_read): Add debugging printf.
35 * minsyms.c (install_minimal_symbols): Ditto.
36 * psymtab.c (allocate_psymtab): Ditto.
37 * symfile.c (allocate_symtab): Ditto.
38 * symtab.c (symtab_create_debug): New global.
39 (_initialize_symtab): Add new option "set debug symtab-create".
40 * symtab.h (symtab_create_debug): Declare.
42 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
43 (lookup_dwo_type_unit): Ditto.
45 2012-06-26 Roland McGrath <roland@hack.frob.com>
46 H.J. Lu <hongjiu.lu@intel.com>
48 * amd64-linux-nat.c: Include <sys/user.h>.
49 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
50 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
51 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
53 * configure.ac: Check if the fs_base and gs_base members of
54 `struct user_regs_struct' exist.
55 * config.in: Regenerated.
56 * configure: Likewise.
58 2012-06-25 Michael Eager <eager@eagercon.com>
61 * python/python.c (gdbpy_write): Check for interrupted output.
63 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
65 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
66 register as a stack alignment in ARM mode.
68 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
70 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
71 * gnulib/config.in: Regenerate.
72 * gnulib/configure: Likewise.
73 * gnulib/import/m4/extensions.m4: Update it.
74 * gnulib/import/m4/gnulib-common.m4: Likewise.
75 * gnulib/import/m4/memmem.m4: Likewise.
76 * gnulib/import/m4/mmap-anon.m4: Likewise.
77 * gnulib/import/m4/multiarch.m4: Likewise.
78 * gnulib/import/stdint.in.h: Likewise.
80 2012-06-24 Yao Qi <yao@codesourcery.com>
82 * corefile.c (write_memory_with_notification): New.
83 * gdbcore.h: Declare write_memory_with_notification.
84 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
85 'observer_notify_memory_changed' with 'write_memory_with_notification'.
86 * valops.c (value_assign): Likewise.
87 * python/py-inferior.c (infpy_write_memory): Call
88 'write_memory_with_notification'.
90 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
92 * cc-with-index.sh: Use also -ex "set auto-load no".
94 2012-06-23 Doug Evans <dje@google.com>
97 * NEWS: Document additions to .gdb_index.
98 * dwarf2read.c: #include "gdb/gdb-index.h".
99 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
100 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
101 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
102 (dwarf2_read_index): Recognize version 7.
103 (dw2_do_expand_symtabs_matching): New args want_specific_block,
104 block_kind, domain): All callers updated.
105 (dw2_find_symbol_file): Handle new index CU values.
106 (dw2_expand_symtabs_matching): Match symbol kind if requested.
107 (add_index_entry): New args is_static, kind. All callers updated.
108 (offset_type_compare, uniquify_cu_indices): New functions
109 (symbol_kind): New function.
110 (write_psymtabs_to_index): Remove duplicate CU values.
111 (write_psymtabs_to_index): Write .gdb_index version 7.
113 2012-06-22 Joel Brobecker <brobecker@adacore.com>
115 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
116 * configure: Regenerate.
118 2012-06-20 Yao Qi <yao@codesourcery.com>
120 * python/py-inferior.c: Update comments of infpy_read_memory
121 and infpy_write_memory.
123 2012-06-19 Tom Tromey <tromey@redhat.com>
126 * parser-defs.h (insert_type, insert_type_address_space): Declare.
127 (push_type_address_space): Remove.
128 * parse.c (insert_into_type_stack): New function.
129 (insert_type): Likewise.
130 (insert_type_address_space): Rename from push_type_address_space.
131 Insert tp_space_identifier.
132 * c-exp.y (ptr_operator): New production.
133 (abs_decl): Use ptr_operator.
134 (space_identifier): Call insert_type_address_space.
135 (ptype): Don't use const_or_volatile_or_space_identifier.
136 (const_or_volatile_noopt): Call insert_type.
137 (conversion_type_id, conversion_declarator): New productions.
138 (operator): Use conversion_type_id.
140 2012-06-18 Doug Evans <dje@google.com>
142 * symtab.h (minimal_symbol): New member created_by_gdb.
143 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
145 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
146 (search_symbols): Call it instead of lookup_symbol.
147 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
149 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
150 Adjust address for DW_OP_GNU_addr_index.
151 * dwarf2expr.h (dwarf_expr_context): Update comment.
152 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
153 all callers updated. Handle TLS vars described with
154 DW_OP_GNU_const_index.
155 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
156 and DW_OP_GNU_const_index.
157 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
159 * block.c (find_block_in_blockvector): Make explicit the fact that we
162 2012-06-18 Tom Tromey <tromey@redhat.com>
164 * c-exp.y (operator): Remove trailing space after "delete" and
167 2012-06-18 Mark Kettenis <kettenis@gnu.org>
168 Jan Kratochvil <jan.kratochvil@redhat.com>
170 Switch i386 and derived targets to ON_STACK.
171 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
172 (amd64_dicos_init_abi): Remove its installment.
173 * dicos-tdep.c (dicos_init_abi): Remove the
174 set_gdbarch_call_dummy_location call. Update the comment here.
175 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
176 (i386_dicos_init_abi): Remove its installment.
177 * i386-tdep.c (i386_push_dummy_code): New function.
178 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
179 i386_push_dummy_code.
181 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
183 Remove stale dummy frames.
184 * breakpoint.c: Include dummy-frame.h.
185 (longjmp_breakpoint_ops): New variable.
186 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
187 bp_longjmp_call_dummy.
188 (bpstat_what, bptype_string, print_one_breakpoint_location)
189 (init_bp_location): Support bp_longjmp_call_dummy.
190 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
191 (set_longjmp_breakpoint_for_call_dummy)
192 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
194 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
195 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
196 FIXME comment and extend the other comment for bp_call_dummy.
197 (set_longjmp_breakpoint_for_call_dummy)
198 (check_longjmp_breakpoint_for_call_dummy): New declarations.
199 * dummy-frame.c: Include gdbthread.h.
200 (pop_dummy_frame_bpt): New function.
201 (pop_dummy_frame): Call pop_dummy_frame_bpt.
202 (dummy_frame_discard): New function.
203 (cleanup_dummy_frames): Update the comment about longjmps.
204 * dummy-frame.h (dummy_frame_discard): New declaration.
205 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
206 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
207 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
208 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
209 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
210 keep_going if IS_LONGJMP and there is no other reason to stop.
212 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
214 * remote-sim.c (sim_command_completer): Initialize
217 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
219 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
220 * dwarf2loc.c (call_site_parameter_matches): Support
221 CALL_SITE_PARAMETER_PARAM_OFFSET.
222 (needs_dwarf_reg_entry_value): Push stub value.
223 * dwarf2read.c (read_call_site_scope): New variable origin. Support
224 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
225 * gdbtypes.h (enum call_site_parameter_kind): New item
226 CALL_SITE_PARAMETER_PARAM_OFFSET.
227 (struct call_site.parameter.u): New field param_offset.
229 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
231 Code cleanup: Generalize call_site.parameter key.
232 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
233 variable dwarf_reg. New variable kind_u. Update parameters to
234 push_dwarf_reg_entry_value.
235 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
236 * dwarf2expr.h (enum call_site_parameter_kind)
237 (union call_site_parameter_u): Forward declarations.
238 (struct dwarf_expr_context_funcs): Update parameters and their
239 description for push_dwarf_reg_entry_value.
240 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
241 * dwarf2loc.c (call_site_parameter_matches): New function.
242 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
243 description. Use call_site_parameter_matches.
244 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
245 Update parameters and their description.
246 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
247 New variable kind_u. Adjust the caller for updated parameters.
248 (needs_dwarf_reg_entry_value): Update parameters.
249 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
250 instead of attr. Update for the changed fields of struct
252 * gdbtypes.h: Include dwarf2expr.h.
253 (enum call_site_parameter_kind): New.
254 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
255 fb_offset into new union u.
257 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
259 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
260 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
263 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
265 * amd64-linux-nat.c (compat_x32_clock_t): New.
266 (compat_x32_siginfo_t): Likewise.
267 (compat_x32_siginfo_from_siginfo): Likewise.
268 (siginfo_from_compat_x32_siginfo): Likewise.
269 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
270 and siginfo_from_compat_x32_siginfo for x32.
272 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
274 * tracepoint.c (tfile_xfer_partial): Add a lseek.
276 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
278 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
279 instead of gdbarch_ptr_bit.
280 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
281 (amd64_supply_native_gregset): Likewise.
282 (amd64_collect_native_gregset): Likewise.
283 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
284 (amd64_supply_xsave): Likewise.
285 (amd64_collect_fxsave): Likewise.
286 (amd64_collect_xsave): Likewise.
288 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
290 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
291 (amd64_linux_read_description): Check DS segment register for
294 2012-06-15 Tom Tromey <tromey@redhat.com>
296 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
297 init_cutu_and_read_dies.
299 2012-06-15 Iain Sandoe <iain@codesourcery.com>
301 * MAINTAINERS (Write After Approval): Add myself to the list.
303 2012-06-15 Tom Tromey <tromey@redhat.com>
305 * valops.c (value_find_oload_method_list): Now static.
306 * value.h (value_find_oload_method_list): Don't declare.
308 2012-06-15 Tom Tromey <tromey@redhat.com>
310 * valops.c (find_overload_match): Use value_ind.
312 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
314 * infrun.c (handle_inferior_event): Correct indentation.
316 2012-06-14 Doug Evans <dje@google.com>
318 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
319 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
321 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
322 updated. Handle DEBUG_LOC_START_LENGTH.
323 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
324 (loclist_describe_location): Ditto.
326 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
329 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
330 after hiding inline functions.
332 2012-06-13 Joel Brobecker <brobecker@adacore.com>
334 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
335 _initialize_inf_ttrace.
337 2012-06-13 Joel Brobecker <brobecker@adacore.com>
339 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
340 _initialize_hppa_hpux_nat.
342 2012-06-13 Joel Brobecker <brobecker@adacore.com>
344 * remote-sim.c (sim_command_completer): Change type of return
345 value to "VEC (char_ptr) *". Adjust implementation accordingly.
347 2012-06-13 Mark Kettenis <kettenis@gnu.org>
348 Jan Kratochvil <jan.kratochvil@redhat.com>
351 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
352 stack on a 16-byte boundary.
354 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
356 * jit.c (finalize_symtab): Set function's return type to 'void' by
359 2012-06-13 Mark Kettenis <kettenis@gnu.org>
360 H.J. Lu <hongjiu.lu@intel.com>
362 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
363 Move bits common to both the classic LP64 and the new x32 ILP32
365 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
366 (amd64_x32_linux_init_abi): New function.
367 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
370 * i386-tdep.h (i386_pseudo_register_name): New prototype.
371 * i386-tdep.c (i386_pseudo_register_name): Make public.
372 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
373 * amd64-tdep.c (amd64_dword_names): Add "eip".
374 (amd64_x32_pseudo_register_type): New function
375 (amd64_x32_init_abi): New function.
377 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
380 * inferior.h (struct inferior_suspend_state): Comment out.
381 (struct inferior): Comment out the field suspend.
382 * infrun.c (struct infcall_suspend_state): Comment out the field
384 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
387 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
389 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
390 * c-exp.y (classify_inner_name): Remove caller assumptions in the
391 function comment. Return ERROR for unresolved cases. Implement
392 returning proper NAME.
393 (yylex): Accept also NAME from classify_inner_name.
394 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
395 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
397 * cp-support.h (cp_lookup_nested_type): Update its declaration.
399 2012-06-13 Tom Tromey <tromey@redhat.com>
401 * breakpoint.c (condition_completer): New function.
402 (_initialize_breakpoint): Use it.
403 * value.c (complete_internalvar): New function.
404 * value.h (complete_internalvar): Declare.
406 2012-06-13 Tom Tromey <tromey@redhat.com>
408 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
409 * breakpoint.c (catch_syscall_completer): Return a VEC.
410 * cli/cli-cmds.c (complete_command): Update.
411 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
412 (complete_on_enum): Likewise.
413 * command.h: Include gdb_vecs.h.
414 (completer_ftype): Change return type.
415 (complete_on_cmdlist, complete_on_enum): Likewise.
416 * completer.c (noop_completer, filename_completer)
417 (location_completer): Return a VEC.
418 (add_struct_fields): Remove 'nextp' argument. Change 'output'
420 (expression_completer, complete_line_internal, complete_line)
421 (command_completer): Return a VEC.
422 (gdb_completion_word_break_characters, line_completion_function):
424 * completer.h: Include gdb_vecs.h.
425 (complete_line, noop_completer, filename_completer)
426 (expression_completer, location_completer, command_completer):
428 * f-lang.c (f_word_break_characters): Return a VEC.
429 * interps.c (interpreter_completer): Return a VEC.
430 * language.h (struct language_defn)
431 <la_make_symbol_completion_list>: Return a VEC.
432 * python/py-cmd.c (cmdpy_completer): Return a VEC.
433 * symtab.c (free_completion_list): Take a VEC.
434 (return_val_size, return_val_index): Remove.
435 (return_val): Now a VEC.
436 (completion_list_add_name): Update.
437 (default_make_symbol_completion_list_break_on)
438 (default_make_symbol_completion_list, make_symbol_completion_list)
439 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
441 (add_filename_to_list): Update.
442 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
444 (maybe_add_partial_symtab_filename): Update.
445 (make_source_files_completion_list): Return a VEC.
446 * symtab.h (default_make_symbol_completion_list_break_on)
447 (default_make_symbol_completion_list, make_symbol_completion_list)
448 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
449 (make_source_files_completion_list): Update.
451 2012-06-13 Tom Tromey <tromey@redhat.com>
453 * breakpoint.c (add_catch_command): Use completer_ftype.
454 * breakpoint.h: Include command.h.
455 (add_catch_command): Use completer_ftype.
456 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
457 * cli/cli-decode.h (struct cmd_list_element) <completer>:
459 * command.h (completer_ftype): New typedef.
460 (set_cmd_completer): Use it.
461 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
464 2012-06-13 Pedro Alves <palves@redhat.com>
466 Partial revert of previous change.
468 * serial.c (scb_base): New global.
469 (serial_for_fd): New.
470 (serial_open, serial_fdopen_ops): Link new serial in open serials
472 (do_serial_close): Unlink serial from the open serials chain.
474 2012-06-12 Pedro Alves <palves@redhat.com>
476 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
478 (prepare_for_detach): No longer context switch here in non-stop
480 (fetch_inferior_event): Ditto.
481 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
482 to the event thread before removing breakpoints. Switch to the
483 event thread before inserting breakpoints and resuming.
484 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
485 event thread before resuming.
486 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
487 Switch to the event thread before removing breakpoints.
489 2012-06-12 Eli Zaretskii <eliz@gnu.org>
491 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
492 special characters correctly for the Windows shells. See
493 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
495 [!__MINGW32__]: Remove extra double quote character from special
498 2012-06-11 Stan Shebs <stan@codesourcery.com>
500 * ui-out.h: Remove #if 0 declarations.
501 * ui-out.c: Remove #if 0 functions.
503 2012-06-11 Pedro Alves <palves@redhat.com>
505 * ser-base.c (run_async_handler_and_reschedule): New.
506 (fd_event, push_event): Use it.
507 * serial.c (serial_open, serial_fdopen_ops): Set the initial
508 reference count to 1.
509 (do_serial_close): Set the bufp field to NULL. Use serial_unref
511 (serial_is_open, serial_ref, serial_unref): New.
512 * serial.h (serial_open): Adjust comment.
513 (serial_is_open): Declare.
514 (serial_close): Adjust comment.
515 (serial_ref, serial_unref) Declare.
516 (struct serial): New field 'refcnt'.
518 2012-06-11 Pedro Alves <palves@redhat.com>
520 Remove #if 0'd "connect" command, and unnecessary associated
521 refcounting and serial reuse bits.
523 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
524 * serial.c (last_serial_opened): Delete.
526 (serial_open): Adjust.
527 (serial_for_fd): Delete.
528 (serial_fdopen_ops, do_serial_close): Adjust.
529 (serial_fdopen_ops): Adjust.
531 2012-06-11 Pedro Alves <palves@redhat.com>
533 * serial.c (do_serial_close): Remove early return when SCB is
536 2012-06-11 Tom Tromey <tromey@redhat.com>
538 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
540 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
542 Fix regression by the "ambiguous linespec" series.
543 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
544 get_last_displayed_symtab and get_last_displayed_line and depending
547 2012-06-11 Tom Tromey <tromey@redhat.com>
549 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
550 (dw2_find_symbol_file): Use it.
552 2012-06-11 Michael Eager <eager@eagercon.com>
554 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
555 * mips-linux-tdep.h (mips_signals): New
557 2012-06-11 Tom Tromey <tromey@redhat.com>
559 * infrun.c (handle_inferior_event)
560 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
562 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
563 exception logic in all cases. Update comments.
564 (insert_longjmp_resume_breakpoint): Set the exception resume
567 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
569 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
571 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
573 * valarith.c (binop_types_user_defined_p): Fix a typo.
575 2012-06-08 Yao Qi <yao@codesourcery.com>
576 Chung-Lin Tang <cltang@codesourcery.com>
578 * arch-utils.c (default_return_in_first_hidden_param_p): New.
579 * arch-utils.h: Declare.
580 * gdbarch.sh: Add return_in_first_hidden_param_p.
581 * gdbarch.c, gdbarch.h: Regenerated.
582 * infcall.c (call_function_by_hand): Call
583 gdbarch_return_in_first_hidden_param_p instead of
584 language_pass_by_reference.
586 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
587 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
588 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
589 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
590 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
591 `cplus_return_struct_by_reference'.
592 (tic6x_return_value): Handle language cplusplus.
593 (tic6x_return_in_first_hidden_param_p): New.
594 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
596 2012-06-07 Doug Evans <dje@google.com>
598 * dwarf2read.c (dwarf2_cu): Add comment.
600 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
602 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
604 (mips_eabi_push_dummy_call): Likewise.
605 (mips_n32n64_push_dummy_call): Likewise.
606 (mips_o32_push_dummy_call): Likewise.
607 (mips_o64_push_dummy_call): Likewise.
609 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
611 * mips-tdep.c (mips_convert_register_p): Correct coding style.
613 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
615 * mips-tdep.c (mips_pseudo_register_type): Use
616 mips_float_register_p.
618 2012-06-06 Pedro Alves <palves@redhat.com>
620 * infrun.c (handle_inferior_event): Remove calls to
621 reinit_frame_cache that follow a context_switch call.
623 2012-06-06 Pedro Alves <palves@redhat.com>
625 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
626 context_switch and remove stale comment.
628 2012-06-06 Pedro Alves <palves@redhat.com>
630 * infrun.c (struct execution_control_state): Remove
631 `new_thread_event' field.
632 (handle_inferior_event): Simplify new threads handling; don't
633 resume the inferior if we find a new thread.
635 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
637 * NEWS: Document the deprecation of SH's 'regs' command.
638 * inferior.h (all_registers_info): Add function declaration.
639 * sh-tdep.c (sh_show_regs): Remove variable.
640 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
641 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
642 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
643 (sh_show_regs_command): Remove functions.
644 (sh_gdbarch_init): Don't set sh_show_regs.
645 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
646 'info all-registers'.
647 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
648 (sh64_show_regs): Remove functions.
649 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
651 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
653 * configure.ac: Move development=true below AC_INIT.
654 * configure: Regenerate.
656 2012-06-05 Stan Shebs <stan@codesourcery.com>
658 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
661 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
663 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
665 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
666 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
667 * target.c (target_read_stack, target_write_memory)
668 (target_write_raw_memory): Likewise.
669 * target.h (target_read_stack, target_write_memory)
670 (target_write_raw_memory): Likewise.
672 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
674 * symfile-mem.c: Change gdb_static_assert to ssize_t.
675 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
676 * target.c (target_read_memory): Change LEN to ssize_t.
677 * target.h (target_read_memory): Change LEN to ssize_t.
679 2012-06-05 Pedro Alves <palves@redhat.com>
683 * breakpoint.c (until_break_command): Only fetch the selected
684 frame after decode_line_1.
686 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
688 * solib-svr4.c (enable_break): Don't fallback to setting the solib
689 event breakpoint at _start, __start or main if a program
690 interpreter is not found.
692 2012-06-05 Joel Brobecker <brobecker@adacore.com>
694 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
696 * windows-tdep.c: #include "objfiles.h".
697 (windows_iterate_over_objfiles_in_search_order): New function.
698 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
699 iterate_over_objfiles_in_search_order gdbarch method to
700 windows_iterate_over_objfiles_in_search_order.
701 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
703 2012-06-05 Joel Brobecker <brobecker@adacore.com>
705 * gdbarch.sh: Add generation of
706 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
707 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
708 (iterate_over_objfiles_in_search_order): New gdbarch method.
709 * gdbarch.h, gdbarch.c: Regenerate.
710 * objfiles.h (default_iterate_over_objfiles_in_search_order):
712 * objfiles.c (default_iterate_over_objfiles_in_search_order):
714 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
715 out of lookup_symbol_aux_symtabs.
716 (lookup_symbol_aux_symtabs): Replace extracted-out code by
717 call to lookup_symbol_aux_objfile.
718 (struct global_sym_lookup_data): New type.
719 (lookup_symbol_global_iterator_cb): New function.
720 (lookup_symbol_global): Search for symbol using
721 gdbarch_iterate_over_objfiles_in_search_order and
722 lookup_symbol_global_iterator_cb.
723 * findvar.c (struct minsym_lookup_data): New type.
724 (minsym_lookup_iterator_cb): New function.
725 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
726 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
727 and minsym_lookup_iterator_cb.
729 2012-06-05 Joel Brobecker <brobecker@adacore.com>
731 Revert the following patch:
732 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
733 try locating the symbol in the symbol's own objfile first, before
734 extending the search to all objfiles.
735 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
736 out of lookup_symbol_aux_symtabs.
737 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
738 Replace extracted-out code by call to lookup_symbol_aux_objfile.
739 Do not search EXCLUDE_OBJFILE.
740 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
741 (lookup_symbol_global): Search for matches in the block's objfile
742 first, before searching all other objfiles.
744 2012-06-05 Joel Brobecker <brobecker@adacore.com>
746 * breakpoint.c (find_condition_and_thread): Stop parsing
747 as soon as the first invalid keyword is found.
749 2012-06-05 Joel Brobecker <brobecker@adacore.com>
751 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
753 2012-06-05 Joel Brobecker <brobecker@adacore.com>
755 * config/djgpp/djcheck.sh: Add copyright header.
757 2012-06-05 Joel Brobecker <brobecker@adacore.com>
759 * copyright.py (update_files, main): Fix path to update-copyright
762 2012-06-05 Joel Brobecker <brobecker@adacore.com>
764 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
765 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
766 for which a reminder to update by hand is printed.
768 2012-06-04 Doug Evans <dje@google.com>
770 * buildsym.c (make_blockvector): Add comment.
772 2012-06-04 Pedro Alves <palves@redhat.com>
774 * arch-utils.c (default_gdb_signal_from_target): Delete.
775 * arch-utils.h (default_gdb_signal_from_target): Delete.
776 * corelow.c (core_open) <signal mapping>: Extended comment. Check
777 gdbarch_gdb_signal_from_target_p.
778 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
780 * gdbarch.h: Regenerate.
781 * gdbarch.c: Regenerate.
783 2012-06-04 Pedro Alves <palves@redhat.com>
785 * gdbarch.sh (gdb_signal_from_target): Mention that the
786 implementation of the method must be host independent.
787 * gdbarch.h: Regenerate.
789 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
791 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
793 (target_read_memory_bfd): New function.
794 (symbol_file_add_from_memory): Use it.
796 2012-06-03 Doug Evans <dje@google.com>
798 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
800 (basic_lookup_transparent_type): Ditto.
802 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
803 (ALL_PRIMARY_SYMTABS): Use it.
804 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
805 * dwarf2read.c (dw2_find_symbol_file): Ditto.
806 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
807 * symtab.c (lookup_symbol_aux_objfile): Ditto.
808 (basic_lookup_transparent_type): Ditto.
810 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
812 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
813 it to optimize resolution of demangled name.
815 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
817 * configure.ac (development): Define new variable.
818 Call AC_CHECK_LIB for mcheck if $development.
819 (ERROR_ON_WARNING): Enable it by default only if $development.
820 * config.in: Regenerate.
821 * configure: Regenerate.
823 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
825 * target.c (target_read_memory): Make LEN argument as size_t.
826 * target.h (target_read_memory): Likewise.
828 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
830 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
832 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
834 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
835 BookE interface for PowerPC server processors if not available
838 2012-05-31 Keith Seitz <keiths@redhat.com>
840 * linespec.c (decode_objc): Add cleanup to free
842 (find_linespec_symbols): Add cleanup to free CLASSES.
843 * symfile.c (find_separate_debug_file_by_debuglink): Add
844 cleanup to free DEBUGLINK.
845 * ui-out.c (clear_header_list): No need to check if
846 HEADER_NEXT.COLHDR is NULL.
847 Free HEADER_NEXT.COL_NAME.
849 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
851 * ada-lang.c (standard_lookup): Prevent uninitialized variable
854 2012-05-30 Jeff Kenton <jkenton@tilera.com>
856 * configure.host (gdb_host_cpu): Handle tilegx*.
857 (gdb_host): Handle tilegx-*-linux*.
858 * tilegx-linux-nat.c: New file.
859 * config/tilegx/linux.mh: New file.
861 2012-05-30 Jeff Kenton <jkenton@tilera.com>
863 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
865 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
867 * configure.tgt: Handle tilegx-*-linux*.
868 * tilegx-tdep.h: New file.
869 * tilegx-tdep.c: New file.
870 * tilegx-linux-tdep.c: New file.
871 * regformats/reg-tilegx.dat: New file.
873 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
875 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
876 accounting of hw watchpoints on ppc.
878 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
880 * source.c (openp): Expand tilde in path entries.
882 2012-05-29 Doug Evans <dje@google.com>
884 * buildsym.c (block_compar): Fix comment.
885 (end_symtab): Fix and clarify some comments.
887 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
888 cleanup_undefined_types.
889 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
892 2012-05-29 Tom Tromey <tromey@redhat.com>
894 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
896 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
897 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
899 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
902 2012-05-29 Tristan Gingold <gingold@adacore.com>
904 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
905 (struct darwin_info): ... New struct.
906 (solib_darwin_pspace_data): New variable.
907 (darwin_pspace_data_cleanup): New function.
908 (get_darwin_info): Likewise.
909 (darwin_dyld_version_ok, darwin_load_image_infos)
910 (darwin_solib_get_all_image_info_addr_at_init)
911 (darwin_solib_read_all_image_info_addr): Add info argument.
913 (darwin_current_sos): Use per pspace structure.
914 (darwin_solib_create_inferior_hook): Likewise.
915 (darwin_clear_solib): Likewise.
916 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
918 2012-05-28 Pedro Alves <palves@redhat.com>
920 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
921 block that uses them. Clear ecss before handling each event.
923 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
925 * solib-svr4.c (svr4_current_sos): New comment on
926 svr4_current_sos_via_xfer_libraries fall back.
928 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
930 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
931 it as a fallback for TYPE_IS_OPAQUE.
932 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
933 symbols for lookup_symbol.
935 2012-05-24 John Steele Scott <toojays@toojays.net>
937 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
938 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
939 (producer_is_gxx_lt_4_6): Move the checking and caching to...
940 (check_producer): ... this new function, which also checks for ICC
941 and caches the result.
942 (producer_is_icc): New function.
943 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
946 2012-05-24 Pedro Alves <palves@redhat.com>
950 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
951 (default_gdb_signal_to_target): ... this. Add comment.
952 (default_gdb_signal_from_host): Rename to ...
953 (default_gdb_signal_from_target): ... this. Add comment.
954 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
955 (default_gdb_signal_to_target): ... this.
956 (default_gdb_signal_from_host): Rename to ...
957 (default_gdb_signal_from_target): ... this.
958 * corelow.c (core_open): Adjust to naming change. Replace comment.
959 * gdbarch.sh (gdb_signal_from_host): Rename to ...
960 (gdb_signal_from_target): ... this. Adjust to
961 default_gdb_signal_from_host naming change. Extend comment.
962 (gdb_signal_to_host): Rename to ...
963 (gdb_signal_to_target): ... this. Adjust to
964 default_gdb_signal_to_host naming change.
965 * gdbarch.h, gdbarch.c: Renegerate.
967 2012-05-24 Pedro Alves <palves@redhat.com>
971 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
973 2012-05-24 Pedro Alves <palves@redhat.com>
977 Replace target_signal with gdb_signal throughout.
979 2012-05-24 Pedro Alves <palves@redhat.com>
983 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
984 string, instead of reusing the va_list argument.
986 2012-05-24 Tom Tromey <tromey@redhat.com>
988 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
991 2012-05-23 Doug Evans <dje@google.com>
993 * symtab.c (search_symbols): Formatting fixes.
994 (print_symbol_info): Formatting fixes.
996 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
997 int64_t change to leb128 API.
998 (read_encoded_value, decode_frame_entry_1): Ditto.
999 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1000 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1001 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1002 (execute_stack_op): Ditto.
1003 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1004 (safe_read_uleb128, safe_read_sleb128): Ditto.
1005 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1006 (dwarf2_compile_expr_to_ax): Ditto.
1007 (locexpr_describe_location_piece): Ditto.
1008 (disassemble_dwarf_expression): Ditto.
1009 (locexpr_describe_location_1): Ditto.
1011 2012-05-23 Stan Shebs <stan@codesourcery.com>
1012 Kwok Cheung Yeung <kcy@codesourcery.com>
1014 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1015 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1016 (mi-cmd-info.o): New rule.
1017 * osdata.h (info_osdata_command): New declaration.
1018 * osdata.c (info_osdata_command): Change to non-static.
1019 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1020 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1021 * mi/mi-cmd-info.c: New file.
1023 2012-05-23 Doug Evans <dje@google.com>
1025 * symtab.c (search_symbols): Pass NULL for file_matcher to
1026 expand_symtabs_matching if there are no files to match.
1028 * gdbtypes.c (lookup_typename): Simplify.
1030 2012-05-23 Pedro Alves <palves@redhat.com>
1032 * arch-utils.h (default_target_signal_to_host): Delete.
1033 * arch-utils.c (default_target_signal_to_host): Delete.
1034 * gdbarch.sh (target_signal_to_host): Remove.
1035 * gdbarch.h, gdbarch.c: Regenerate.
1037 2012-05-22 Doug Evans <dje@google.com>
1039 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1041 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1042 (execute_cfa_program): Update to match API of leb128 functions.
1043 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1045 (read_unsigned_leb128, read_signed_leb128): Delete.
1046 (read_initial_length): Change type of buf argument to
1048 (read_encoded_value): Update to match API of leb128 functions.
1049 (decode_frame_entry): Change result to "const gdb_byte *", and
1050 similarly for "start" parameter.
1051 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1052 (dwarf2_build_frame_info): Change local frame_ptr to
1054 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1055 read_uleb128, read_sleb128. All callers updated.
1056 (safe_skip_leb128): New function.
1057 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1058 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1059 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1060 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1061 read_uleb128, read_sleb128.
1062 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1063 (execute_stack_op): Update to match API of leb128 functions.
1064 * dwarf2expr.h: #include "leb128.h".
1065 (read_uleb128, read_sleb128): Delete.
1066 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1067 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1068 * dwarf2loc.c (debug_loc_kind): New enum.
1069 (decode_debug_loc_addresses): New function.
1070 (decode_debug_loc_dwo_addresses): New function.
1071 (dwarf2_find_location_expression): Rewrite.
1072 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1073 (locexpr_describe_location_piece): Ditto.
1074 (disassemble_dwarf_expression): Ditto.
1075 (locexpr_describe_location_1): Ditto.
1076 (loclist_describe_location): Rewrite.
1077 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1078 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1079 (dwarf2_section_buffer_overflow_complaint): Renamed from
1080 dwarf2_macros_too_long_complaint. All callers updated.
1081 (skip_leb128): Delete.
1082 (init_cu_die_reader): Initialize reader->buffer_end.
1083 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1084 (skip_form_bytes): New arg buffer_end. All callers updated.
1085 Replace call to skip_leb128 with gdb_skip_leb128.
1086 (skip_unknown_opcode): New arg mac_end. All callers updated.
1087 (fill_in_loclist_baton): Initialize baton->from_dwo.
1089 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1091 * mips-linux-nat.c (mips_linux_read_description): Use a more
1092 verbose error message.
1094 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1096 * NEWS: Add MIPS/Linux DSP support.
1097 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1098 (SIGCONTEXT_DSPCTL): New macro.
1099 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1100 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1101 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1102 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1103 (N64_SIGCONTEXT_HI3): Likewise.
1104 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1105 (N64_SIGCONTEXT_LO3): Likewise.
1106 (N64_SIGCONTEXT_DSPCTL): Likewise.
1107 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1108 (mips_linux_o32_sigframe_init): Handle DSP registers.
1109 (mips_linux_n32n64_sigframe_init): Likewise.
1111 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1113 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1116 2012-05-22 Pedro Alves <palves@redhat.com>
1118 * target.h (store_waitstatus): Move declaration ...
1119 * inf-child.h (store_waitstatus): ... here.
1120 * target.c: Move inclusion of gdb_wait.h, and ...
1121 (store_waitstatus): ... this ...
1122 * inf-child.c: ... here.
1123 * linux-nat.c: Include inf-child.h.
1124 * rs6000-nat.c: Include inf-child.h.
1125 * spu-linux-nat.c: Include inf-child.h.
1127 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1129 * tracepoint.c (start_tracing): Add missing i18n markup.
1130 (stop_tracing, set_trace_user): Ditto.
1131 (set_trace_notes, set_trace_stop_notes): Ditto.
1133 2012-05-21 Tom Tromey <tromey@redhat.com>
1136 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1138 * value.h (value_cast_pointers): Update.
1139 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1140 (value_cast): Update.
1141 (update_search_result): New function.
1142 (do_search_struct_field): New, from search_struct_field. Check
1143 for ambiguous results.
1144 (search_struct_field): Rewrite.
1145 * infcall.c (value_arg_coerce): Update.
1146 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1147 value_cast_pointers.
1148 * ada-lang.c (ada_convert_actual): Update.
1150 2012-05-21 Tom Tromey <tromey@redhat.com>
1152 * macroexp.c (macro_stringify): Terminate the string.
1154 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1156 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1158 * auto-load.c (auto_load_expand_dir_vars): New function.
1159 (auto_load_safe_path_vec_update): Use it, remove the
1160 substitute_path_component call thanks to it.
1161 (auto_load_objfile_script): Remove the debug_file_directory processing.
1162 Use auto_load_expand_dir_vars, remove the substitute_path_component
1164 * configure: Regenerate.
1165 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1166 path. Escape $ also for $debugdir.
1167 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1168 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1170 2012-05-20 Doug Evans <dje@google.com>
1172 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1173 before use. Check for symtab->includes == NULL before scanning it.
1175 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1177 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1179 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1181 * NEWS: Add microMIPS support and "set mips compression",
1182 "show mips compression" commands.
1183 * mips-tdep.h (mips_isa): New enum.
1184 (gdbarch_tdep): Add mips_isa.
1185 (mips_pc_is_mips16): Update prototype.
1186 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1187 * mips-tdep.c (mips_compression_mips16): New variable.
1188 (mips_compression_micromips): Likewise.
1189 (mips_compression_strings): Likewise.
1190 (mips_compression_string): Likewise.
1191 (is_mips16_isa, is_micromips_isa): New functions.
1192 (is_mips16_addr): Rename to...
1193 (is_compact_addr): ... this.
1194 (unmake_mips16_addr): Likewise to...
1195 (unmake_compact_addr): ... this.
1196 (make_mips16_addr): Likewise to...
1197 (make_compact_addr): ... this.
1198 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1200 (mips_elf_make_msymbol_special): Handle microMIPS code.
1201 (msymbol_is_special): Rename to...
1202 (msymbol_is_mips16): ... this.
1203 (mips_make_symbol_special, mips_pc_is_mips16): Update
1205 (msymbol_is_mips, msymbol_is_micromips): New functions.
1206 (mips16_to_32_reg): Rename to...
1207 (mips_reg3_to_reg): ... this.
1208 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1209 (mips_pc_isa): Likewise.
1210 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1212 (mips_fetch_instruction): Pass return status instead of printing
1213 an error message if requested. Handle microMIPS code. Bail out
1215 (micromips_op): New macro.
1216 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1217 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1218 (b6s4_op, b7s3_reg): Likewise.
1219 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1220 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1221 (mips_insn_size): New function.
1222 (mips32_next_pc): Update mips_fetch_instruction call.
1223 (micromips_relative_offset7): New function.
1224 (micromips_relative_offset10): Likewise.
1225 (micromips_relative_offset16): Likewise.
1226 (micromips_pc_insn_size): Likewise.
1227 (micromips_bc1_pc): Likewise.
1228 (micromips_next_pc): Likewise.
1229 (unpack_mips16): Update mips_fetch_instruction call.
1230 (extended_mips16_next_pc): Update according to change to
1232 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1234 (mips16_scan_prologue): Update mips_fetch_instruction call.
1235 Update according to change to mips16_to_32_reg.
1236 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1237 (mips_insn16_frame_base_sniffer): Likewise.
1238 (micromips_decode_imm9): New function.
1239 (micromips_scan_prologue): Likewise.
1240 (mips_micro_frame_cache): Likewise.
1241 (mips_micro_frame_this_id): Likewise.
1242 (mips_micro_frame_prev_register): Likewise.
1243 (mips_micro_frame_sniffer): Likewise.
1244 (mips_micro_frame_unwind): New variable.
1245 (mips_micro_frame_base_address): New function.
1246 (mips_micro_frame_base): New variable.
1247 (mips_micro_frame_base_sniffer): New function.
1248 (mips32_scan_prologue): Update mips_fetch_instruction call.
1249 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1250 rather than for MIPS16.
1251 (mips_insn32_frame_base_sniffer): Likewise.
1252 (mips_addr_bits_remove): Handle microMIPS code.
1253 (deal_with_atomic_sequence): Rename to...
1254 (mips_deal_with_atomic_sequence): ... this. Update the type
1255 of the variable used to hold an instruction. Remove the ISA bit
1256 check. Update mips_fetch_instruction call.
1257 (micromips_deal_with_atomic_sequence): New function.
1258 (deal_with_atomic_sequence): Likewise.
1259 (mips_about_to_return): Handle microMIPS code. Update
1260 mips_fetch_instruction call.
1261 (heuristic_proc_start): Check for the standard MIPS ISA rather
1262 than for MIPS16. Update mips_pc_is_mips16 and
1263 mips_fetch_instruction calls. Handle microMIPS code.
1264 (mips_push_dummy_code): Handle microMIPS code.
1265 (mips_eabi_push_dummy_call): Likewise.
1266 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1267 (mips_o64_push_dummy_call): Handle microMIPS code.
1268 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1269 (is_delayed): Remove function.
1270 (mips_single_step_through_delay): Replace the call to is_delayed
1271 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1272 Handle microMIPS code.
1273 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1275 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1277 (micromips_in_function_epilogue_p): New function.
1278 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1280 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1282 (gdb_print_insn_mips): Likewise.
1283 (mips_breakpoint_from_pc): Likewise.
1284 (mips_remote_breakpoint_from_pc): New function.
1285 (mips32_instruction_has_delay_slot): Simplify making use of the
1286 updated mips_fetch_instruction interface.
1287 (micromips_instruction_has_delay_slot): New function.
1288 (mips16_instruction_has_delay_slot): Simplify making use of the
1289 updated mips_fetch_instruction interface.
1290 (mips_adjust_breakpoint_address): Check for the standard MIPS
1291 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1292 calls. Handle microMIPS code.
1293 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1294 (mips_skip_trampoline_code): Handle microMIPS code.
1295 (global_mips_compression): New function.
1296 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1297 file flags. Register the microMIPS remote breakpoint handler
1298 and heuristic frame unwinder.
1299 (show_mips_compression): New function.
1300 (_initialize_mips_tdep): Add the "set mips compression" and
1301 "show mips compression" commands.
1303 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1308 * amd64-darwin-tdep.c:
1309 * arm-symbian-tdep.c:
1313 * bfin-linux-tdep.c:
1320 * dwarf2-frame-tailcall.c:
1349 * microblaze-tdep.c:
1350 * mips-linux-tdep.c:
1358 * python/py-finishbreakpoint.c:
1359 * python/py-inferior.c:
1360 * python/py-infthread.c:
1364 * remote-m32r-sdi.c:
1368 * rs6000-aix-tdep.c:
1394 * amd64-darwin-tdep.c:
1395 * arm-symbian-tdep.c:
1396 * arm-tdep.c: Delete unused variables.
1398 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1400 Rename $ddir to $datadir.
1401 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1402 * auto-load.c (auto_load_safe_path_vec_update)
1403 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1404 * configure: Regenerate.
1405 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1406 Likewise. Remove the 'use $ddir' help string.
1408 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1410 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1411 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1413 2012-05-18 Tom Tromey <tromey@redhat.com>
1416 * valprint.h (struct value_print_options) <symbol_print>: New
1418 * valprint.c (user_print_options): Add default for symbol_print.
1419 (show_symbol_print): New function.
1420 (generic_val_print): Respect symbol_print.
1421 (_initialize_valprint): Add "print symbol" setting.
1422 * f-valprint.c (f_val_print): Respect symbol_print.
1423 * c-valprint.c (c_val_print): Respect symbol_print.
1425 * printcmd.c (print_address_symbolic): Return int. Ignore some
1427 (print_address_demangle): Return int.
1428 * defs.h: (print_address_symbolic): Return int.
1429 * value.h (print_address_demangle): Return int.
1431 2012-05-18 Tom Tromey <tromey@redhat.com>
1433 * valprint.c (val_print_string): Don't print leading space.
1434 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1435 print space before string or vtbl.
1436 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1438 * jv-valprint.c (java_value_print): Print space before string.
1439 * go-valprint.c (print_go_string): Print space before string.
1440 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1441 space before string.
1442 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1443 space before string or vtbl.
1444 * auxv.c (fprint_target_auxv): Print space after address.
1446 2012-05-18 Tom Tromey <tromey@redhat.com>
1448 * printcmd.c (print_address_demangle): Remove special case for 0.
1450 2012-05-18 Tom Tromey <tromey@redhat.com>
1452 * printcmd.c (print_address_demangle): Add 'opts' argument.
1453 * p-valprint.c (pascal_val_print): Update.
1454 * jv-valprint.c (java_val_print): Update.
1456 * valprint.c (generic_val_print): Update.
1457 (print_function_pointer_address): Add 'options' argument. Remove
1458 'addressprint' argument. Update.
1459 * m2-valprint.c (print_unpacked_pointer): Update.
1460 * gnu-v3-abi.c (print_one_vtable): Update.
1461 (gnuv3_print_method_ptr): Update.
1462 * f-valprint.c (f_val_print): Update.
1463 * cp-valprint.c (cp_print_value_fields): Update.
1464 * valprint.h (print_function_pointer_address): Update.
1465 * c-valprint.c (c_val_print): Update.
1467 2012-05-18 Tom Tromey <tromey@redhat.com>
1469 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1470 directly corresponding to the found psymtab.
1471 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1472 (dw2_find_pc_sect_symtab): Use it.
1473 * block.h (blockvector_contains_pc): Declare.
1474 * block.c (find_block_in_blockvector): New function.
1475 (blockvector_for_pc_sect): Use it.
1476 (blockvector_contains_pc): New function.
1478 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1480 * mips-tdep.h (mips_write_pc): New prototype.
1481 * mips-tdep.c (mips_write_pc): Make external, add description.
1482 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1485 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1487 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1489 (mips_unwind_pc, mips_write_pc): Likewise.
1490 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1493 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1495 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1496 proc_warn, proc_error, proc_get_status, proc_flags,
1497 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1498 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1499 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1500 proc_stop_process, proc_wait_for_stop, proc_run_process,
1501 proc_set_traced_signals, proc_set_traced_faults,
1502 proc_set_traced_sysentry, proc_set_traced_sysexit,
1503 proc_set_held_signals, proc_get_held_signals,
1504 proc_get_traced_signals, proc_get_traced_faults,
1505 proc_get_traced_sysentry, proc_get_traced_sysexit,
1506 proc_clear_current_fault, proc_set_current_signal,
1507 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1508 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1509 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1510 proc_get_current_thread, proc_get_current_thread,
1511 proc_get_current_thread, proc_update_threads,
1512 proc_update_threads, proc_update_threads, proc_update_threads,
1513 proc_iterate_over_threads, procfs_find_new_threads,
1514 procfs_pid_to_str): Make static. Remove advance declaration.
1515 (proc_cursig): Make static. Conditionalized defintion on
1516 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1517 (proc_syscall, proc_set_kill_on_last_close,
1518 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1519 proc_get_pending_signals, proc_get_signal_actions,
1520 proc_trace_signal, proc_ignore_signal): Delete.
1522 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1524 * coffread.c (cs_section_address): Passing proper argument for
1525 `bfd_get_section_vma'.
1526 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1527 `bfd_get_section_flags'.
1528 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1529 `bfd_get_section_vma'.
1531 2012-05-16 Tom Tromey <tromey@redhat.com>
1534 * macrotab.h: (macro_define_special): Declare.
1535 (enum macro_special_kind): New.
1536 (struct macro_definition) <argc, replacement>: Update comments.
1537 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1538 (macro_define_object_internal): New function.
1539 (macro_define_object): Use it.
1540 (macro_define_special): New function.
1541 (fixup_definition): New function.
1542 (macro_lookup_definition, foreach_macro_in_scope)
1543 (foreach_macro): Use fixup_definition.
1544 * macroexp.h (macro_stringify): Declare.
1545 * macroexp.c (free_buffer_return_text): New function.
1546 (stringify): Constify "arg".
1547 (macro_stringify): New function.
1548 * dwarf2read.c (macro_start_file): Call macro_define_special.
1550 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1551 Maciej W. Rozycki <macro@mips.com>
1553 * breakpoint.h (bp_location): Add related_address member.
1554 * inferior.h (get_return_value): Take a pointer to struct value
1555 instead of struct type for the function requested.
1556 * value.h (using_struct_return): Likewise.
1557 * gdbarch.sh (return_value): Take a pointer to struct value
1558 instead of struct type for the function requested.
1559 * breakpoint.c (set_breakpoint_location_function): Initialize
1560 related_address for bp_gnu_ifunc_resolver breakpoints.
1561 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1562 requested function's address to gdbarch_return_value.
1563 * eval.c (evaluate_subexp_standard): Pass the requested
1564 function's address to using_struct_return.
1565 * infcall.c (call_function_by_hand): Pass the requested
1566 function's address to using_struct_return and
1567 gdbarch_return_value.
1568 * infcmd.c (get_return_value): Take a pointer to struct value
1569 instead of struct type for the function requested.
1570 (print_return_value): Update accordingly.
1571 (finish_command_continuation): Likewise.
1572 * stack.c (return_command): Pass the requested function's
1573 address to using_struct_return and gdbarch_return_value.
1574 * value.c (using_struct_return): Take a pointer to struct value
1575 instead of struct type for the function requested. Pass the
1576 requested function's address to gdbarch_return_value.
1577 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1578 New function_value member, replacing function_type.
1579 (bpfinishpy_dealloc): Update accordingly.
1580 (bpfinishpy_pre_stop_hook): Likewise.
1581 (bpfinishpy_init): Likewise. Record the requested function's
1583 * mips-tdep.c (mips_fval_reg): New enum.
1584 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1585 words put in GP registers.
1586 (mips_o64_push_dummy_call): Update a comment.
1587 (mips_o32_return_value): Take a pointer to struct value instead
1588 of struct type for the function requested and use it to check if
1589 using the MIPS16 calling convention. Return the designated
1590 general purpose registers for floating-point values returned in
1592 (mips_o64_return_value): Likewise.
1593 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1594 (ppc_sysv_abi_broken_return_value): Likewise.
1595 (ppc64_sysv_abi_return_value): Likewise.
1596 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1597 value instead of struct type for the function requested.
1598 * amd64-tdep.c (amd64_return_value): Likewise.
1599 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1600 * arm-tdep.c (arm_return_value): Likewise.
1601 * avr-tdep.c (avr_return_value): Likewise.
1602 * bfin-tdep.c (bfin_return_value): Likewise.
1603 * cris-tdep.c (cris_return_value): Likewise.
1604 * frv-tdep.c (frv_return_value): Likewise.
1605 * h8300-tdep.c (h8300_return_value): Likewise.
1606 (h8300h_return_value): Likewise.
1607 * hppa-tdep.c (hppa32_return_value): Likewise.
1608 (hppa64_return_value): Likewise.
1609 * i386-tdep.c (i386_return_value): Likewise.
1610 * ia64-tdep.c (ia64_return_value): Likewise.
1611 * iq2000-tdep.c (iq2000_return_value): Likewise.
1612 * lm32-tdep.c (lm32_return_value): Likewise.
1613 * m32c-tdep.c (m32c_return_value): Likewise.
1614 * m32r-tdep.c (m32r_return_value): Likewise.
1615 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1616 * m68k-tdep.c (m68k_return_value): Likewise.
1617 (m68k_svr4_return_value): Likewise.
1618 * m88k-tdep.c (m88k_return_value): Likewise.
1619 * mep-tdep.c (mep_return_value): Likewise.
1620 * microblaze-tdep.c (microblaze_return_value): Likewise.
1621 * mn10300-tdep.c (mn10300_return_value): Likewise.
1622 * moxie-tdep.c (moxie_return_value): Likewise.
1623 * mt-tdep.c (mt_return_value): Likewise.
1624 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1625 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1626 (ppc_sysv_abi_broken_return_value): Likewise.
1627 (ppc64_sysv_abi_return_value): Likewise.
1628 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1629 * rl78-tdep.c (rl78_return_value): Likewise.
1630 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1631 * rx-tdep.c (rx_return_value): Likewise.
1632 * s390-tdep.c (s390_return_value): Likewise.
1633 * score-tdep.c (score_return_value): Likewise.
1634 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1635 (sh_return_value_fpu): Likewise.
1636 * sh64-tdep.c (sh64_return_value): Likewise.
1637 * sparc-tdep.c (sparc32_return_value): Likewise.
1638 * sparc64-tdep.c (sparc64_return_value): Likewise.
1639 * spu-tdep.c (spu_return_value): Likewise.
1640 * tic6x-tdep.c (tic6x_return_value): Likewise.
1641 * v850-tdep.c (v850_return_value): Likewise.
1642 * vax-tdep.c (vax_return_value): Likewise.
1643 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1644 * xtensa-tdep.c (xtensa_return_value): Likewise.
1645 * gdbarch.c: Regenerate.
1646 * gdbarch.h: Regenerate.
1648 2012-05-15 Tom Tromey <tromey@redhat.com>
1650 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1652 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1654 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1655 of command in two error message.
1657 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1659 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1661 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1663 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1665 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1667 * NEWS (show auto-load scripts-directory): Add forgotten command.
1669 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1671 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1674 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1676 * amd64-tdep.c: Include features/i386/x32.c and
1677 features/i386/x32-avx.c.
1678 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1679 initialize_tdesc_x32_avx.
1681 2012-05-14 Stan Shebs <stan@codesourcery.com>
1684 * breakpoint.h (enum bptype): New type bp_dprintf.
1685 (struct breakpoint): New field extra_string.
1686 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1687 (create_breakpoint): Add extra_string arg.
1688 * breakpoint.c (dprintf_breakpoint_ops): New.
1689 (is_breakpoint): Add bp_dprintf.
1690 (bpstat_what): Add dprintf case.
1691 (bptype_string): Ditto.
1692 (print_one_breakpoint_location): Ditto.
1693 (init_bp_location): Ditto.
1694 (bkpt_print_mention): Ditto.
1695 (dprintf_style_enums): New array.
1696 (dprintf_style): New global.
1697 (dprintf_function): New global.
1698 (dprintf_channel): New global.
1699 (update_dprintf_command_list): New function.
1700 (update_dprintf_commands): New function.
1701 (init_breakpoint_sal): Add extra_string argument, handle it.
1702 (create_breakpoint_sal): Add extra_string argument.
1703 (create_breakpoints_sal): Add extra_string argument, update callers.
1704 (find_condition_and_thread): Add extra argument.
1705 (create_breakpoint): Add extra_string argument, record it.
1706 (dprintf_command): New function.
1707 (break_command_1): Add arg to create_breakpoint call.
1708 (handle_gnu_v3_exceptions): Ditto.
1709 (trace_command): Ditto.
1710 (ftrace_command): Ditto.
1711 (strace_command): Ditto.
1712 (bkpt_print_mention): Add dprintf case.
1713 (create_breakpoint_sal_default): Add extra_string argument.
1714 (_initialize_breakpoint): Add new commands.
1715 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1716 * python/py-breakpoint.c (bppy_init): Ditto.
1717 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1719 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1721 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1723 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1725 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1728 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1730 Add a new function gdb.find_pc_line to the Python API.
1731 * NEWS (Python Scripting): Add entry about the new function.
1732 * python/python.c (gdbpy_find_pc_line): New function which
1733 implements gdb.find_pc_line.
1734 (GdbMethods): Add entry for the new function.
1736 2012-05-12 Pedro Alves <palves@redhat.com>
1738 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1739 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1741 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1743 * inferior.c: Include completer.h
1744 (initialize_inferiors): Set completer of add-inferior to
1747 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1749 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1750 gdbarch_ptr_bit for x32 core dump.
1752 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1754 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1755 and features/i386/x32-avx-linux.c.
1757 2012-05-11 Stan Shebs <stan@codesourcery.com>
1758 Kwok Cheung Yeung <kcy@codesourcery.com>
1760 * NEWS: Describe new info os commands.
1761 * common/linux-osdata.c (PID_T, TIME_T): Define.
1762 (MAX_PID_T_STRLEN): New.
1763 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1765 (command_from_pid): Add comment. Change to use PID_T.
1766 (commandline_from_pid): Change to use PID_T.
1767 (user_from_pid): Add comment.
1768 (get_process_owner): Add comment. Change to use PID_T and
1770 (get_number_of_cpu_cores): Add comment.
1771 (get_cores_used_by_process): Add comment. Change to use PID_T and
1773 (linux_xfer_osdata_processes): Change to use PID_T and
1775 (compare_processes): New function.
1776 (linux_xfer_osdata_processgroups): New function.
1777 (linux_xfer_osdata_threads): Change to use PID_T.
1778 (linux_xfer_osdata_fds): New function.
1779 (format_socket_state, print_sockets): New functions.
1780 (union socket_addr): New union.
1781 (linux_xfer_osdata_isockets): New function.
1782 (time_from_time_t, group_from_gid): New functions.
1783 (linux_xfer_osdata_shm): New function.
1784 (linux_xfer_osdata_sem): New function.
1785 (linux_xfer_osdata_msg): New function.
1786 (linux_xfer_osdata_modules): New function.
1787 (osdata_table): Add new entries.
1788 * common/buffer.c (buffer_xml_printf): Add support for long and
1789 long long format specifiers.
1791 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1793 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1794 (tdesc_x32_avx_linux): Likewise.
1796 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1798 Implement multi-component --with-auto-load-dir.
1799 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1801 (--with-auto-load-safe-path): Update the default value description.
1802 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1804 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1805 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1806 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1807 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1808 "set auto-load scripts-directory".
1809 * config.in: Regenerate.
1810 * configure: Regenerate.
1811 * configure.ac (--with-auto-load-dir): New configure option.
1812 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1814 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1816 Provide $ddir substitution for --with-auto-load-safe-path.
1817 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1819 * auto-load.c: Include observer.h.
1820 (auto_load_safe_path_vec_update): Call substitute_path_component for
1821 each component. New variable ddir_subst.
1822 (auto_load_gdb_datadir_changed): New function.
1823 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1824 AUTO_LOAD_SAFE_PATH. New comment.
1825 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1826 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1827 * config.in: Regenerate.
1828 * configure: Regenerate.
1829 * configure.ac (--auto-load-safe-path): Rename
1830 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1831 GDB_DATADIR/auto-load.
1832 * defs.h (substitute_path_component): New declaration.
1833 * top.c: Include observer.h.
1834 (set_gdb_datadir): New function.
1835 (init_main): Install it for "set data-directory".
1836 * utils.c (substitute_path_component): New function.
1838 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1840 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1841 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1842 DEBUG_FILE_DIRECTORY. Handle multiple components of
1843 DEBUG_FILE_DIRECTORY.
1845 2012-05-10 Tom Tromey <tromey@redhat.com>
1847 * dwarf2read.c (recursively_write_psymbols): New function.
1848 (write_psymtabs_to_index): Use it.
1850 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1852 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1853 (load_partial_comp_unit): Update.
1854 (queue_comp_unit): Add argument 'pretend_language'.
1855 (process_queue): Update.
1856 (psymtab_to_symtab_1): Skip dependencies that have a user.
1857 (load_partial_comp_unit_reader): Give meaning to the 'data'
1859 (load_full_comp_unit): Add 'pretend_language' argument.
1860 (process_full_comp_unit): Add 'pretend_language' argument. Set
1862 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1864 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1865 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1867 (prepare_one_comp_unit): Add 'pretend_language' argument.
1869 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1870 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1871 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1872 (dw2_do_instantiate_symtab): Check whether symtab was read in
1874 (dw2_instantiate_symtab): Add assertion. Call
1875 process_cu_includes.
1876 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1877 (partial_symtab_p): New typedef.
1878 (set_partial_user): New function.
1879 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1880 (scan_partial_symbols): Add imported CU to imported_symtabs.
1881 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1882 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1883 (get_symtab, recursively_compute_inclusions)
1884 (compute_symtab_includes, process_cu_includes)
1885 (process_imported_unit_die): New functions.
1886 (process_die) <DW_TAG_imported_unit>: New case.
1887 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1889 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1891 (struct partial_die_info) <locdesc>: Remove.
1893 (process_psymtab_comp_unit): Add 'read_partial' argument.
1895 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1896 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1897 (add_partial_symbol): Update.
1898 (process_die): Handle DW_TAG_partial_unit.
1899 (read_file_scope): Update comment.
1900 (load_partial_dies): Handle DW_TAG_imported_unit.
1901 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1902 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1904 2012-05-10 Tom Tromey <tromey@redhat.com>
1906 * cc-with-dwz.sh: New file.
1908 2012-05-10 Tom Tromey <tromey@redhat.com>
1910 * symtab.h (struct symtab) <includes, user>: New fields.
1911 * block.h (struct block_iterator) <d, idx, which>: New fields.
1912 * block.c (initialize_block_iterator, find_iterator_symtab)
1913 (block_iterator_step, block_iter_name_step)
1914 (block_iter_match_step): New functions.
1915 (block_iterator_first, block_iterator_next)
1916 (block_iter_name_first, block_iter_name_next)
1917 (block_iter_match_first, block_iter_match_next): Rewrite.
1918 (get_block_symtab): New function.
1920 2012-05-10 Tom Tromey <tromey@redhat.com>
1922 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1924 * jit.c (finalize_symtab): Use allocate_global_block,
1926 * buildsym.c (finish_block_internal): New function, from old
1928 (finish_block): Rewrite.
1929 (end_symtab): Use finish_block_internal, set_block_symtab.
1930 * block.h (struct global_block): New.
1931 (allocate_global_block, set_block_symtab): Declare.
1932 * block.c (allocate_global_block, set_block_symtab): New
1935 2012-05-10 Tom Tromey <tromey@redhat.com>
1937 * psymtab.c (partial_map_expand_apply): Add assertion.
1938 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1939 (psymtab_to_symtab): Find unshared psymtab.
1940 (dump_psymtab): Print including psymtabs.
1941 (recursively_search_psymtabs): New function.
1942 (expand_symtabs_matching_via_partial): Use it.
1943 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1945 (enum psymtab_search_status): New.
1947 2012-05-10 Tom Tromey <tromey@redhat.com>
1949 * tracepoint.c (scope_info): Update.
1950 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1951 (find_pc_sect_symtab, search_symbols)
1952 (default_make_symbol_completion_list_break_on)
1953 (make_file_symbol_completion_list): Update.
1954 * symmisc.c (dump_symtab_1): Update.
1955 * stack.c (print_frame_args, iterate_over_block_locals)
1956 (print_frame_labels, iterate_over_block_arg_vars): Update.
1957 * python/py-block.c (block_object) <dict>: Remove.
1959 <iter>: Change type.
1960 (blpy_iter): Update.
1961 (blpy_block_syms_iternext): Update.
1962 * psymtab.c (map_block): Use block iterators.
1963 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1964 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1965 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1966 * infrun.c (check_exception_resume): Update.
1967 * cp-support.c (make_symbol_overload_list_block): Update.
1968 * coffread.c (patch_opaque_types): Update.
1969 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1970 * block.h (struct block_iterator): New.
1971 (block_iterator_first, block_iterator_next, block_iter_name_first)
1972 (block_iter_name_next, block_iter_match_first)
1973 (block_iter_match_next): Declare.
1974 (ALL_BLOCK_SYMBOLS): Redefine.
1975 * block.c (block_iterator_first, block_iterator_next)
1976 (block_iter_name_first, block_iter_name_next)
1977 (block_iter_match_first, block_iter_match_next): New functions.
1978 * ada-lang.c (ada_add_block_symbols)
1979 (ada_make_symbol_completion_list): Use block iterator.
1981 2012-05-10 Tom Tromey <tromey@redhat.com>
1983 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1984 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1985 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1986 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1987 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1990 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1992 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1993 print-file-var-lib2.c, print-file-var-main.c and
1994 print-file-var.exp (located in gdb/testsuite/gdb.base).
1996 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1998 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1999 try locating the symbol in the symbol's own objfile first, before
2000 extending the search to all objfiles.
2001 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2002 out of lookup_symbol_aux_symtabs.
2003 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2004 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2005 Do not search EXCLUDE_OBJFILE.
2006 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2007 (lookup_symbol_global): Search for matches in the block's objfile
2008 first, before searching all other objfiles.
2010 2012-05-10 Tristan Gingold <gingold@adacore.com>
2012 * printcmd.c (set_command): Add pre/post inc/dec.
2014 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
2016 * gdb.1: Document -ex option.
2018 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2020 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2021 * inferior.h (AT_SYMBOL): Delete.
2023 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2025 * mips-tdep.c (mips_push_dummy_code): New function.
2026 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2027 ON_STACK and install mips_push_dummy_code as our gdbarch
2028 push_dummy_code routine.
2030 2012-05-09 Pedro Alves <palves@redhat.com>
2032 * target.c (set_maintenance_target_async_permitted): Rename to ...
2033 (set_target_async_command): ... this.
2034 (show_maintenance_target_async_permitted): Rename to ...
2035 (show_target_async_command): ... this.
2036 (initialize_targets): Adjust.
2038 2012-05-08 Doug Evans <dje@google.com>
2040 * go-exp.y (classify_name): Add missing assignment of fields of
2043 2012-05-08 Eli Zaretskii <eliz@gnu.org>
2045 Display the ">" prompt in interactive mode while reading canned
2046 commands, even when the current interpreter is MI.
2048 * interps.c (interp_set_temp): New function.
2050 * interps.h (interp_set_temp): Add prototype.
2052 * cli/cli-script.c (restore_interp): New cleanup function.
2053 (read_command_lines): Temporarily override the current interpreter
2054 with CLI and arrange for restoring the original one.
2056 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2058 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2060 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2062 * probe.c (parse_probes): Move conditional to check for
2063 debuginfo files from here...
2064 * stap-probe.c (stap_get_probes): ... to here.
2066 2012-05-07 Mark Kettenis <kettenis@gnu.org>
2067 H.J. Lu <hongjiu.lu@intel.com>
2069 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2070 `movl %esp, %ebp' for the X32 ABI.
2072 2012-05-07 Tom Tromey <tromey@redhat.com>
2074 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2076 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2077 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2078 (dwarf_stack_op_name): Remove.
2079 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2080 (decode_locdesc): Use get_DW_OP_name.
2081 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2082 (dwarf2_compile_expr_to_ax): Likewise.
2083 (disassemble_dwarf_expression): Likewise.
2084 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2086 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2088 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2089 (sh_linux_sigtramp_cache): New function.
2090 (sh_linux_sigreturn_init): New function.
2091 (sh_linux_rt_sigreturn_init): New function.
2092 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2094 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2096 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2097 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2098 (sh_linux_init_abi): Add init calls to register new tramp_frame
2099 definitions under 32-bit SH, update comments.
2101 2012-05-07 Pedro Alves <palves@redhat.com>
2105 * amd64-linux-tdep.c: Include glibc-tdep.h.
2106 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2107 gdbarch_skip_solib_resolver callback.
2109 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2111 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2112 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2113 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2114 (add_auto_load_safe_path): Change the error message.
2115 (_initialize_auto_load): Change the "safe-path" help text.
2116 * configure: Regenerate
2117 * configure.ac (--without-auto-load-safe-path): Set
2118 WITH_AUTO_LOAD_SAFE_PATH to /.
2120 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2122 * stap-probe.h: Do not include unecessary `probe.h'.
2124 2012-05-05 Alan Modra <amodra@gmail.com>
2126 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2127 bfd_und_section_ptr.
2128 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2129 and bfd_com_section_ptr.
2131 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2133 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2135 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2137 * windows-nat.h (segment_register_p_ftype): New typedef.
2138 (windows_set_segment_register_p): Add declaration.
2139 * windows-nat.c (segment_register_p): New static global.
2140 (windows_set_segment_register_p): New function.
2141 (do_windows_fetch_inferior_registers): Add special handling
2142 for segment registers.
2143 * amd64-windows-nat.c: #include "amd64-tdep.h".
2144 (amd64_windows_segment_register_p): New function.
2145 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2146 * i386-windows-nat.c: #include "i386-tdep.h".
2147 (i386_windows_segment_register_p): New function.
2148 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2150 2012-05-04 Tristan Gingold <gingold@adacore.com>
2152 * printcmd.c (set_command): Emit a warning if the expression is not
2155 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2157 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2160 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2162 * stap-probe.c (stap_is_operator): Change declaration.
2163 (stap_get_opcode): Change return value.
2164 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2165 `stap_parse_argument_1'.
2167 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2169 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2172 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2174 Add two new methods global_block and static_block to gdb.Symtab
2176 * NEWS (Python scripting): Add entry about the new methods.
2177 * python/py-symtab.c (stpy_global_block): New function which
2178 implements the gdb.Symtab.global_block() method.
2179 (stpy_static_block): New function which implements the
2180 gdb.Symtab.static_block() method.
2181 (symtab_object_methods): Add entries for the two new methods.
2183 2012-05-03 Doug Evans <dje@google.com>
2185 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2188 2012-05-03 Yao Qi <yao@codesourcery.com>
2190 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2192 (i386_process_record): Ditto.
2194 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2196 * infcall.c (unwind_on_signal_p): Make static.
2198 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2200 * sol-thread.c (solaris_pid_to_str): Make static.
2201 (_initialize_sol_thread): Add prototype.
2203 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2205 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2207 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2209 * MAINTAINERS: Remove myself.
2211 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2213 Fix --without-auto-load-safe-path for MS-Windows host platform.
2214 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2216 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2218 * gdb_curses.h: Undefine KEY_EVENT before including curses
2219 headers. Move "#undef MOUSE_MOVED" before any curses header
2222 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2224 * features/i386/i386-mmx-linux.c: Regenerate.
2225 * features/rs6000/powerpc-32.c: Likewise.
2226 * features/rs6000/powerpc-32l.c: Likewise.
2227 * features/rs6000/powerpc-403.c: Likewise.
2228 * features/rs6000/powerpc-403gc.c: Likewise.
2229 * features/rs6000/powerpc-405.c: Likewise.
2230 * features/rs6000/powerpc-505.c: Likewise.
2231 * features/rs6000/powerpc-601.c: Likewise.
2232 * features/rs6000/powerpc-602.c: Likewise.
2233 * features/rs6000/powerpc-603.c: Likewise.
2234 * features/rs6000/powerpc-604.c: Likewise.
2235 * features/rs6000/powerpc-64.c: Likewise.
2236 * features/rs6000/powerpc-64l.c: Likewise.
2237 * features/rs6000/powerpc-750.c: Likewise.
2238 * features/rs6000/powerpc-860.c: Likewise.
2239 * features/rs6000/powerpc-e500.c: Likewise.
2240 * features/rs6000/powerpc-e500l.c: Likewise.
2241 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2242 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2243 * features/rs6000/rs6000.c: Likewise.
2245 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2247 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2249 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2250 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2251 (stap_parse_argument) <e>: Likewise.
2252 (handle_stap_probe) <byte_order>: Likewise.
2254 2012-04-30 Doug Evans <dje@google.com>
2256 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2257 init_and_read_dies_worker. All callers updated.
2258 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2259 replaced with init_cutu_and_read_dies.
2260 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2261 (find_partial_die): Remove FIXME. Don't free current CU.
2263 2012-04-30 Sterling Augustine <saugustine@google.com>
2265 * contrib: New directory.
2266 * contrib/test_pubnames_and_indexes.py: New file.
2268 2012-04-30 Doug Evans <dje@google.com>
2270 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2271 All callers updated.
2272 (init_cu_die_reader): Verify the section is non-empty.
2273 (dwarf_decode_line_header): Don't dereference section->asection
2274 until we know the section is present.
2276 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2278 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2281 2012-04-29 Yao Qi <yao@codesourcery.com>
2283 * gdb-code-style.el: New hook gdb-markup-hook
2284 and gdb-comment-hook.
2286 2012-04-28 Doug Evans <dje@google.com>
2288 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2289 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2291 * symfile.h (dwarf2_debug_sections): New member addr.
2292 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2293 (ctx_no_get_addr_index): New function.
2294 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2295 (ctx_no_get_addr_index): Declare.
2296 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2297 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2298 (dwarf_expr_ctx_funcs): Update.
2299 (needs_get_addr_index): New function.
2300 (needs_frame_ctx_funcs): Update.
2301 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2302 * dwarf2read.c: #include "gdbcore.h".
2303 (dwarf2_per_objfile): New members addr, dwo_files.
2304 (dwarf2_elf_names): Add entry for addr.
2305 (struct dwo_section_names): New type.
2306 (dwo_section_names): New static global.
2307 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2308 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2309 old debug_types_section member updated to use this.
2310 Rename member debug_types_section to info_or_types_section,
2312 (signatured_type): Rename member type_offset to type_offset_in_tu,
2313 all uses updated. New member type_offset_in_section.
2314 (struct dwo_sections): New type.
2315 (struct dwo_unit): New type.
2316 (struct dwo_file): New type.
2317 (die_reader_specs): New member dwo_file.
2318 (dwarf2_locate_sections): Watch for .debug_addr.
2319 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2320 (dwarf2_read_section): Get bfd of section from bfd's asection,
2322 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2323 (create_signatured_type_table_from_index): Initialize
2324 sig_type->info_or_types_section.
2325 (dw2_get_file_names): Statement lists for type units with DWO files
2326 live in the DWO file.
2327 (create_debug_types_hash_table): New function.
2328 (create_all_type_units): Rewrite.
2329 (init_cu_die_reader): New arg dwo_file, all callers updated.
2330 (init_and_read_dies_worker): Get section from
2331 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2332 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2333 continue reading the CU/TU from there.
2334 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2335 updated. Get section from this_cu->info_or_types_section.
2336 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2337 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2338 DW_FORM_GNU_str_index.
2339 (hash_dwo_file, eq_dwo_file): New functions.
2340 (allocate_dwo_file_hash_table): New function.
2341 (hash_dwo_unit, eq_dwo_unit): New functions.
2342 (allocate_dwo_unit_table): New function.
2343 (dwarf2_locate_dwo_sections): New function.
2344 (struct create_dwo_info_table_data): New type.
2345 (create_debug_info_hash_table_reader): New function.
2346 (create_debug_info_hash_table): New function.
2347 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2348 (lookup_dwo_file): New function.
2349 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2350 (free_dwo_file, free_dwo_file_cleanup): New functions.
2351 (free_dwo_file_from_slot, free_dwo_files): New functions.
2352 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2353 (dwarf2_record_block_ranges): Ditto.
2354 (read_partial_die): Ditto.
2355 (process_enumeration_scope): Update to use type_offset_in_section.
2356 (read_full_die_1): New function.
2357 (read_full_die): Rewrite.
2358 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2359 DW_FORM_GNU_str_index.
2360 (read_addr_index_1, read_addr_index): New functions.
2361 (read_addr_index_from_leb128): New function.
2362 (struct dwarf2_read_addr_index_data): New type.
2363 (dwarf2_read_addr_index_reader): New function.
2364 (dwarf2_read_addr_index): New function.
2365 (read_str_index): New function.
2366 (leb128_size): New function.
2367 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2368 If processing a type unit from a DWO file, get the line section
2370 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2371 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2372 DW_FORM_GNU_str_index.
2373 (lookup_die_type): Check whether section offset of type's die is
2374 known before looking it up. Remove assert. Condition can
2375 legimately happen for inter-cu type references.
2376 (dwarf_attr_name): Handle Fission attributes.
2377 (dwarf_form_name): Handle Fission forms.
2378 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2379 DW_FORM_GNU_str_index.
2380 (follow_die_sig): Update to use type_offset_in_section.
2381 (decode_locdesc): New case DW_OP_GNU_addr_index.
2382 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2383 DW_FORM_GNU_str_index.
2384 (cu_debug_loc_section): New function.
2385 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2386 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2387 Free DWO files if present.
2388 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2390 Refactor DIE reading.
2391 * dwarf2read.c (dwarf2_per_objfile): Replace members
2392 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2393 (die_reader_specs): New member "die_section". Temporarily make
2394 member "buffer" non-const, pending constifying all info_ptr uses.
2395 (die_reader_func_ftype): New typedef.
2396 (dw2_get_file_names_reader): New function.
2397 (dw2_get_file_names): Rewrite.
2398 (read_and_check_type_unit_head): Rename arg type_offset to
2400 (create_all_type_units): Improve debugging message.
2401 Improve dummy type unit check.
2402 (init_cu_die_reader): New arg "section". All callers updated.
2403 (init_and_read_dies_worker): New function.
2404 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2405 (init_cutu_and_read_dies_no_follow): New function.
2406 (init_cutu_and_read_dies_simple): New function.
2407 (process_psymtab_comp_unit_reader): New function.
2408 (process_psymtab_comp_unit): Delete args section,
2409 is_debug_types_section. Rewrite. All callers updated.
2410 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2411 All callers updated. Rewrite.
2412 (load_partial_comp_unit_reader): New function.
2413 (load_partial_comp_unit): Rewrite.
2414 (skip_children): New arg reader. Delete args buffer, cu.
2415 All callers updated.
2416 (skip_one_die): New arg reader. Delete args buffer, cu.
2417 All callers updated.
2418 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2419 All callers updated.
2420 (load_full_comp_unit_reader): New function.
2421 (load_full_comp_unit): Rewrite.
2422 (read_comp_unit): Delete.
2423 (read_die_and_children_1): Delete, contents moved ...
2424 (read_die_and_children): ... here.
2425 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2426 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2427 All callers updated.
2428 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2429 All callers updated.
2430 (find_partial_die): Rewrite load_all_dies support.
2431 (read_attribute_value): New arg reader. Delete args abfd, cu.
2432 All callers updated.
2433 (read_attribute): New arg reader. Delete args abfd, cu.
2434 All callers updated.
2435 (load_full_type_unit): Add assert.
2436 (read_signatured_type_reader): New function.
2437 (read_signatured_type): Rewrite.
2438 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2439 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2440 All callers updated. Set per_cu->cu = NULL after freeing it.
2441 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2442 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2443 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2444 (set_die_type): Update.
2445 (get_die_type_at_offset): Update.
2446 (read_file_scope): Call prepare_one_comp_unit.
2447 (read_type_unit_scope): Ditto.
2448 (prepare_one_comp_unit): Set producer if present.
2450 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2452 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2453 gettext function on `error'.
2455 2012-04-27 Doug Evans <dje@google.com>
2457 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2460 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2461 Tom Tromey <tromey@redhat.com>
2463 * breakpoint.c (struct breakpoint_objfile_data)
2464 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2465 <exception_probes>: New fields.
2466 (free_breakpoint_probes): New function.
2467 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2468 `_Unwind_DebugHook'.
2469 (create_exception_master_breakpoint): Likewise.
2470 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2471 * infrun.c: Including necessary header files for handling SystemTap
2473 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2474 via SystemTap probes.
2475 (check_exception_resume): Remove `func' argument. Handle exception
2476 unwinding breakpoint set via a SystemTap probe.
2477 (insert_exception_resume_from_probe): New function.
2479 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2480 Tom Tromey <tromey@redhat.com>
2481 Jan Kratochvil <jan.kratochvil@redhat.com>
2483 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2484 (COMMON_OBS): Likewise.
2485 (HFILES_NO_SRCDIR): Add `probe'.
2486 * NEWS: Mention support for static and SystemTap probes.
2487 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2488 SystemTap probes' arguments parser.
2489 * arm-linux-tdep.c: Including headers needed to perform the parsing
2490 of SystemTap probes' arguments.
2491 (arm_stap_is_single_operand): New function.
2492 (arm_stap_parse_special_token): Likewise.
2493 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2494 probes' arguments parser.
2495 * ax-gdb.c (require_rvalue): Removing static declaration.
2496 (gen_expr): Likewise.
2497 * ax-gdb.h (gen_expr): Declaring function.
2498 (require_rvalue): Likewise.
2499 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2500 (bkpt_probe_breakpoint_ops): New variable.
2501 (momentary_breakpoint_from_master): Set the `probe' value.
2502 (add_location_to_breakpoint): Likewise.
2503 (break_command_1): Using proper breakpoint_ops according to the
2504 argument passed by the user in the command line.
2505 (bkpt_probe_insert_location): New function.
2506 (bkpt_probe_remove_location): Likewise.
2507 (bkpt_probe_create_sals_from_address): Likewise.
2508 (bkpt_probe_decode_linespec): Likewise.
2509 (tracepoint_probe_create_sals_from_address): Likewise.
2510 (tracepoint_probe_decode_linespec): Likewise.
2511 (tracepoint_probe_breakpoint_ops): New variable.
2512 (trace_command): Using proper breakpoint_ops according to the
2513 argument passed by the user in the command line.
2514 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2515 static probes on breakpoints and tracepoints.
2516 * breakpoint.h (struct bp_location) <probe>: New field.
2517 * cli-utils.c (skip_spaces_const): New function.
2518 (extract_arg): Likewise.
2519 * cli-utils.h (skip_spaces_const): Likewise.
2520 (extract_arg): Likewise.
2521 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2522 * configure.ac: Append `stap-probe.o' to be generated when ELF
2524 * configure: Regenerate.
2525 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2526 * elfread.c: Include `probe.h' and `arch-utils.h'.
2527 (probe_key): New variable.
2528 (elf_get_probes): New function.
2529 (elf_get_probe_argument_count): Likewise.
2530 (elf_evaluate_probe_argument): Likewise.
2531 (elf_compile_to_ax): Likewise.
2532 (elf_symfile_relocate_probe): Likewise.
2533 (stap_probe_key_free): Likewise.
2534 (elf_probe_fns): New variable.
2535 (elf_sym_fns): Add `sym_probe_fns' value.
2536 (elf_sym_fns_lazy_psyms): Likewise.
2537 (elf_sym_fns_gdb_index): Likewise.
2538 (_initialize_elfread): Initialize objfile cache for static
2540 * gdb_vecs.h (struct probe): New forward declaration.
2541 (probe_p): New VEC declaration.
2542 * gdbarch.c: Regenerate.
2543 * gdbarch.h: Regenerate.
2544 * gdbarch.sh (stap_integer_prefix): New variable.
2545 (stap_integer_suffix): Likewise.
2546 (stap_register_prefix): Likewise.
2547 (stap_register_suffix): Likewise.
2548 (stap_register_indirection_prefix): Likewise.
2549 (stap_register_indirection_suffix): Likewise.
2550 (stap_gdb_register_prefix): Likewise.
2551 (stap_gdb_register_suffix): Likewise.
2552 (stap_is_single_operand): New function.
2553 (stap_parse_special_token): Likewise.
2554 (struct stap_parse_info): Forward declaration.
2555 * i386-tdep.c: Including headers needed to perform the parsing
2556 of SystemTap probes' arguments.
2557 (i386_stap_is_single_operand): New function.
2558 (i386_stap_parse_special_token): Likewise.
2559 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2560 probes' arguments parser.
2561 * i386-tdep.h (i386_stap_is_single_operand): New function.
2562 (i386_stap_parse_special_token): Likewise.
2563 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2564 * mipsread.c (ecoff_sym_fns): Likewise.
2565 * objfiles.c (objfile_relocate1): Support relocation for static
2567 * parse.c (prefixify_expression): Remove static declaration.
2568 (initialize_expout): Likewise.
2569 (reallocate_expout): Likewise.
2570 * parser-defs.h (initialize_expout): Declare function.
2571 (reallocate_expout): Likewise.
2572 (prefixify_expression): Likewise.
2573 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2574 of SystemTap probes' arguments.
2575 (ppc_stap_is_single_operand): New function.
2576 (ppc_stap_parse_special_token): Likewise.
2577 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2578 probes' arguments parser.
2579 * probe.c: New file, for generic statically defined probe support.
2580 * probe.h: Likewise.
2581 * s390-tdep.c: Including headers needed to perform the parsing of
2582 SystemTap probes' arguments.
2583 (s390_stap_is_single_operand): New function.
2584 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2585 probes' arguments parser.
2586 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2587 * stap-probe.c: New file, for SystemTap probe support.
2588 * stap-probe.h: Likewise.
2589 * symfile.h: Include `gdb_vecs.h'.
2590 (struct sym_probe_fns): New struct.
2591 (struct sym_fns) <sym_probe_fns>: New field.
2592 * symtab.c (init_sal): Initialize `probe' field.
2593 * symtab.h (struct probe): Forward declaration.
2594 (struct symtab_and_line) <probe>: New field.
2595 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2597 (stop_tracing): Likewise.
2598 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2600 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2601 Tom Tromey <tromey@redhat.com>
2603 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2604 and to compile agent expressions.
2605 * infrun.c (siginfo_make_value): New argument `ignore'.
2606 (siginfo_funcs): New struct.
2607 (_initialize_infrun): New argument when calling
2608 `create_internalvar_type_lazy'.
2609 * thread.c (thread_id_make_value): New argument `ignore'.
2610 (thread_funcs): New struct.
2611 (_initialize_thread): New argument when calling
2612 `create_internalvar_type_lazy'.
2613 * tracepoint.c (sdata_make_value): New argument `ignore'.
2614 (sdata_funcs): New struct.
2615 (_initialize_tracepoint): New argument when calling
2616 `create_internalvar_type_lazy'.
2617 * value.c (make_value): New struct.
2618 (create_internalvar_type_lazy): New argument `data'.
2619 (compile_internalvar_to_ax): New function.
2620 (value_of_internalvar): Properly handling `make_value' case.
2621 (clear_internalvar): Likewise.
2622 (show_convenience): Adding `TRY_CATCH' block.
2623 * value.h (internalvar_make_value): Delete, replace by...
2624 (struct internalvar_funcs): ... this.
2625 (create_internalvar_type_lazy) <fun>: Delete argument.
2626 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2627 (compile_internalvar_to_ax): New function.
2628 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2629 (tlb_funcs): New struct.
2630 (_initialize_windows_tdep): New argument when calling
2631 `create_internalvar_type_lazy'.
2633 2012-04-27 Mark Wielaard <mjw@redhat.com>
2635 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2636 see whether it is an address or a constant offset from DW_AT_low_pc.
2637 (dwarf2_record_block_ranges): Likewise.
2638 (read_partial_die): Likewise.
2640 2012-04-26 Mark Wielaard <mjw@redhat.com>
2642 * MAINTAINERS (Write After Approval): Add myself to the list.
2644 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2646 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2647 (proc_prettyprint_signal): Likewise.
2648 (proc_prettyprint_faultset): Likewise.
2649 (proc_prettyprint_fault): Likewise.
2650 (proc_prettyprint_actionset): Likewise.
2651 (proc_prettyprint_flags): Move to new proc-flags.c section.
2652 (proc_prettyfprint_flags): New prototype.
2653 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2654 (proc_syscall, proc_cursig): Likewise.
2655 (proc_set_kill_on_last_close): Likewise.
2656 (proc_unset_kill_on_last_close): Likewise.
2657 (proc_set_watchpoint): Make static.
2658 (proc_delete_dead_threads): Likewise.
2659 (procfs_set_watchpoint): Likewise.
2660 (_initialize_procfs): Add prototype.
2661 * proc-events.c: Include proc-utils.h.
2662 (init_syscall_table): Make static.
2663 * proc-api.c (_initialize_proc_api): Add prototype.
2664 * proc-flags.c: Include proc-utils.h.
2666 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2668 * configure.ac: Add AC_ARG_PROGRAM.
2669 * configure: Regenerate.
2671 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2673 Fix DW_AT_lower_bound defaults for DWARF-4+.
2674 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2675 high. New variable low_default_is_valid. Implement DWARF-4+
2676 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2677 no default by the DWARF standard.
2679 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2680 Maciej W. Rozycki <macro@codesourcery.com>
2682 * infrun.c (handle_inferior_event): Move the check for return
2683 trampolines ahead of the check for function trampolines.
2684 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2685 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2686 (mips_str_mips16_ret_stub): Likewise.
2687 (mips_str_call_fp_stub): Likewise.
2688 (mips_str_call_stub): Likewise.
2689 (mips_str_fn_stub): Likewise.
2690 (mips_str_pic): Likewise.
2691 (mips_in_frame_stub): New function.
2692 (mips_unwind_pc): Return the return address rather than the PC
2693 if the PC of an intermediate frame is inside a call thunk.
2694 (mips_is_stub_suffix): New function.
2695 (mips_is_stub_mode): Likewise.
2696 (mips_get_mips16_fn_stub_pc): Likewise.
2697 (mips_skip_mips16_trampoline_code): Update to handle all the
2698 currently generated stub types. Don't recurse into __fn_stub
2699 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2700 Use cooked register accesses.
2701 (mips_in_return_stub): Reintroduce function.
2702 (mips_skip_trampoline_code): Traverse trampolines recursively.
2703 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2705 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2709 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2711 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2712 * features/arm-with-m-vfp-d16.xml: New file. Describes
2713 Cortex-M with VFPv4-sp-d16 FPU register layout.
2714 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2715 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2716 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2717 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2718 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2720 2012-04-25 Doug Evans <dje@google.com>
2722 * cli/cli-decode.c (print_doc_line): Use stream instead of
2725 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2727 * features/arm-with-iwmmxt.c: Regenerate.
2728 * features/arm-with-m-fpa-layout.c: Likewise.
2729 * features/arm-with-m.c: Likewise.
2730 * features/arm-with-neon.c: Likewise.
2731 * features/arm-with-vfpv2.c: Likewise.
2732 * features/arm-with-vfpv3.c: Likewise.
2733 * features/mips-dsp-linux.c: Likewise.
2734 * features/mips-linux.c: Likewise.
2735 * features/mips64-dsp-linux.c: Likewise.
2736 * features/mips64-linux.c: Likewise.
2737 * features/s390-linux32.c: Likewise.
2738 * features/s390-linux32v1.c: Likewise.
2739 * features/s390-linux32v2.c: Likewise.
2740 * features/s390-linux64.c: Likewise.
2741 * features/s390-linux64v1.c: Likewise.
2742 * features/s390-linux64v2.c: Likewise.
2743 * features/s390x-linux64.c: Likewise.
2744 * features/s390x-linux64v1.c: Likewise.
2745 * features/s390x-linux64v2.c: Likewise.
2746 * features/tic6x-c62x-linux.c: Likewise.
2747 * features/tic6x-c62x.c: Likewise.
2748 * features/tic6x-c64x-linux.c: Likewise.
2749 * features/tic6x-c64x.c: Likewise.
2750 * features/tic6x-c64xp-linux.c: Likewise.
2751 * features/tic6x-c64xp.c: Likewise.
2752 * target-descriptions.c: Only generate `field_type' and `type'
2753 variables when needed.
2755 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2757 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2759 2012-04-25 Doug Evans <dje@google.com>
2761 Initial pass at Go language support.
2763 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2765 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2766 (YYFILES): Add go-exp.c.
2767 (YYOBJ): Add go-exp.o.
2768 (local-maintainer-clean): Delete go-exp.c.
2769 * defs.h (enum language): Add language_go.
2770 * dwarf2read.c: #include "go-lang.h".
2771 (fixup_go_packaging): New function.
2772 (process_full_comp_unit): Call it when processing Go CUs.
2773 (dwarf2_physname): Add Go support.
2774 (read_file_scope): Handle missing language spec for GNU Go.
2775 (set_cu_language): Handle DW_LANG_Go.
2776 * go-exp.y: New file.
2777 * go-lang.h: New file.
2778 * go-lang.c: New file.
2779 * go-typeprint.c: New file.
2780 * go-valprint.c: New file.
2781 * symtab.c: #include "go-lang.h".
2782 (symbol_set_language): Handle language_go.
2783 (symbol_find_demangled_name, symbol_set_names): Ditto.
2784 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2786 2012-04-24 Jim Meyering <meyering@redhat.com>
2788 avoid a few strncpy-induced buffer overruns
2789 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2790 fname and psargs before trying to concatenate.
2791 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2792 "name" before applying strchr.
2794 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2796 * CONTRIBUTE: Use unified diff instead of context diff when
2799 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2801 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2802 code. Handle JR.HB correctly.
2804 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2807 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2808 with the other MIPS16 helpers.
2810 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2812 * observer.sh: Conditionally declare `args', thus cleaning up
2813 unused instances of this variable.
2815 2012-04-24 Yao Qi <yao@codesourcery.com>
2817 Revert this patch to allow breakpoint always-inserted
2819 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2820 * breakpoint.c: Include record.h.
2821 (breakpoints_always_inserted_mode): Return false when the record
2824 * breakpoint.c (iterate_over_bp_locations): New.
2825 * breakpoint.h: Declare.
2826 New typedef walk_bp_location_callback.
2827 * record.c (record_open): Call record_init_record_breakpoints.
2828 (record_sync_record_breakpoints): New.
2829 (record_init_record_breakpoints): New.
2830 * NEWS: Mention supporting breakpoint always-inserted mode in
2833 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2835 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2838 2012-04-24 Yao Qi <yao@codesourcery.com>
2840 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2841 (is_catchpoint): ... it.
2842 (print_one_breakpoint_location): Caller update.
2843 * breakpoint.h: Update declaration.
2845 2012-04-23 David S. Miller <davem@davemloft.net>
2847 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2849 2012-04-23 Tom Tromey <tromey@redhat.com>
2851 * buildsym.c (add_free_pendings): Remove.
2852 * buildsym.h (add_free_pendings): Remove.
2854 2012-04-23 Doug Evans <dje@google.com>
2856 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2857 attr.u.unsnd instead of attr.u.addr.
2858 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2859 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2861 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2862 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2864 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2866 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2868 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2869 (mips_o32_return_value): Likewise.
2870 (mips_o64_return_value): Likewise.
2872 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2874 * ada-lang.c (ada_evaluate_subexp): Add cases for
2875 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2876 their treatment in eval.c.
2878 2012-04-21 David S. Miller <davem@davemloft.net>
2880 * sparc-tdep.c (X_DISP10): Define.
2881 (sparc_analyze_control_transfer): Handle compare-and-branch.
2883 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2885 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2886 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2888 2012-04-20 Nigel Stephens <nigel@mips.com>
2889 Maciej W. Rozycki <macro@codesourcery.com>
2891 * mips-tdep.c (mips_float_register_p): New function.
2892 (mips_convert_register_float_case_p): Use mips_float_register_p.
2893 (mips_register_type): Likewise.
2894 (mips_print_register): Likewise.
2895 (print_gp_register_row): Likewise.
2896 (mips_print_registers_info): Likewise.
2898 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2900 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2903 2012-04-20 Andrew Pinski <apinski@cavium.com>
2905 * MAINTAINERS (Write After Approval): Add myself to the list.
2907 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2909 * MAINTAINERS: Update my e-mail address.
2911 2012-04-20 Pedro Alves <palves@redhat.com>
2913 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2915 * configure: Regenerate.
2917 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2919 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2921 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2923 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2925 Fix compilation compatibility with python-2.4
2926 * python/py-type.c (convert_field): Cast ADDRSTRING for
2927 PyObject_SetAttrString as non-const. New comment.
2929 2012-04-19 Tom Tromey <tromey@redhat.com>
2931 * top.c (quit_target): Use all_cleanups.
2932 * main.c (captured_command_loop): Use all_cleanups.
2933 * exceptions.c (throw_exception): Use all_cleanups.
2935 2012-04-19 Pedro Alves <palves@redhat.com>
2937 * Makefile.in (GNULIB_BUILDDIR): New.
2938 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2939 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2940 (CLEANDIRS). Remove gnulib/import.
2941 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2943 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2944 (gnulib/import/Makefile): Replace gnulib/import with
2945 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2946 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2947 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2948 acx_configure_dir.m4.
2949 * acinclude.m4: Include acx_configure_dir.m4.
2950 * acx_configure_dir.m4: New file.
2951 * aclocal.m4: Regenerate.
2952 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2953 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2954 (GNULIB): New variable.
2955 (GNULIB_STDINT_H): Adjust.
2956 (AC_OUTPUT): Don't output gnulib/Makefile.
2957 * gdb/defs.h: Include build-gnulib/config.h.
2958 * aclocal.m4: Regenerate.
2959 * config.in: Regenerate.
2960 * configure: Regenerate.
2962 * gnulib/Makefile.in: New file.
2963 * gnulib/configure.ac: New file.
2964 * gnulib/aclocal.m4: New file.
2965 * gnulib/config.in: New file.
2966 * gnulib/configure: New file.
2967 * gnulib/: Re-run gnulib-tool to adjust.
2969 2012-04-19 Doug Evans <dje@google.com>
2971 * cleanups.h (struct cleanup): Move to cleanups.c.
2972 (make_cleanup_dtor_ftype): New typedef.
2973 (make_cleanup_dtor): Use it.
2974 (ALL_CLEANUPS): Replace with ...
2975 (all_cleanups): ... this. Declare. All uses updated.
2976 * cleanups.c: #include "gdb_assert.h".
2977 (sentinel_cleanup): New static global.
2978 (SENTINEL_CLEANUP): Define.
2979 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2980 (make_my_cleanup2): Assert result is non-NULL.
2981 (all_cleanups): New function.
2982 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2985 2012-04-19 Pedro Alves <palves@redhat.com>
2987 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2988 Adjust paths to gnulib imported files.
2990 2012-04-19 Pedro Alves <palves@redhat.com>
2992 * gnulib/: Move whole directory ...
2993 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2994 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2995 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2996 (aclocal_m4_deps): Adjust.
2997 * aclocal.m4: Regenerate.
2998 * configure: Regenerate.
2999 * configure.ac: Adjust AC_OUTPUT output.
3001 2012-04-19 Yao Qi <yao@codesourcery.com>
3003 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3005 * vec.c: Move it ...
3006 * common/vec.c: ... here.
3007 * vec.h: Move it ...
3008 * common/vec.h: ... here.
3010 2012-04-19 Yao Qi <yao@codesourcery.com>
3012 * gdb-code-style.el: New.
3014 2012-04-18 Pedro Alves <palves@redhat.com>
3016 Update gnulib from latest git.
3017 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3019 * gnulib/Makefile.am: Update.
3020 * gnulib/dummy.c: Update.
3021 * gnulib/extra/arg-nonnull.h: Update.
3022 * gnulib/extra/c++defs.h: Update.
3023 * gnulib/extra/update-copyright: Update.
3024 * gnulib/extra/warn-on-use.h: Update.
3025 * gnulib/inttypes.in.h: Update.
3026 * gnulib/m4/00gnulib.m4: Update.
3027 * gnulib/m4/extensions.m4: Update.
3028 * gnulib/m4/gnulib-cache.m4: Update.
3029 * gnulib/m4/gnulib-common.m4: Update.
3030 * gnulib/m4/gnulib-comp.m4: Update.
3031 * gnulib/m4/gnulib-tool.m4: Update.
3032 * gnulib/m4/include_next.m4: Update.
3033 * gnulib/m4/inttypes-pri.m4: Update.
3034 * gnulib/m4/inttypes.m4: Update.
3035 * gnulib/m4/longlong.m4: Update.
3036 * gnulib/m4/memchr.m4: Update.
3037 * gnulib/m4/memmem.m4: Update.
3038 * gnulib/m4/mmap-anon.m4: Update.
3039 * gnulib/m4/multiarch.m4: Update.
3040 * gnulib/m4/onceonly.m4: Update.
3041 * gnulib/m4/stddef_h.m4: Update.
3042 * gnulib/m4/stdint.m4: Update.
3043 * gnulib/m4/string_h.m4: Update.
3044 * gnulib/m4/warn-on-use.m4: Update.
3045 * gnulib/m4/wchar_h.m4: Update.
3046 * gnulib/m4/wchar_t.m4: Update.
3047 * gnulib/m4/wint_t.m4: Update.
3048 * gnulib/memchr.c: Update.
3049 * gnulib/memmem.c: Update.
3050 * gnulib/stddef.in.h: Update.
3051 * gnulib/stdint.in.h: Update.
3052 * gnulib/str-two-way.h: Update.
3053 * gnulib/string.in.h: Update.
3054 * gnulib/wchar.in.h: Update.
3056 * gnulib/extra/arg-nonnull.h: Delete.
3057 * gnulib/extra/c++defs.h: Delete.
3058 * gnulib/extra/warn-on-use.h: Delete.
3059 * gnulib/m4/wchar_h.m4: Delete.
3060 * gnulib/m4/wint_t.m4: Delete.
3061 * gnulib/wchar.in.h: Delete.
3063 * gnulib/extra/snippets/arg-nonnull.h: New.
3064 * gnulib/extra/snippets/c++defs.h: New.
3065 * gnulib/extra/snippets/warn-on-use.h: New.
3067 * aclocal.m4: Regenerate.
3068 * config.in: Regenerate.
3069 * configure: Regenerate.
3070 * gnulib/Makefile.in: Regenerate.
3072 2012-04-18 Pedro Alves <palves@redhat.com>
3074 Reimport the update-copyright module from gnulib
3075 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3077 * configure: Regenerate.
3078 * gnulib/Makefile.am: Update.
3079 * gnulib/Makefile.in: Regenerate.
3080 * gnulib/extra/update-copyright: Update.
3081 * gnulib/m4/gnulib-cache.m4: Update.
3082 * gnulib/m4/gnulib-comp.m4: Update.
3084 2012-04-18 Tristan Gingold <gingold@adacore.com>
3086 * configure.ac (aix): Put -lpthread into libs.
3087 * configure: Regenerate.
3089 2012-04-18 Tom Tromey <tromey@redhat.com>
3091 * linespec.c (convert_linespec_to_sals): Don't use
3093 (compare_msymbols): Arguments are minsym_and_objfile, not
3094 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3096 2012-04-18 Pedro Alves <palves@redhat.com>
3098 Revert gnulib/ part of:
3099 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3100 Copyright year update in most files (performed by copyright.sh).
3102 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3104 Fix 64-bit constants on 32-bit hosts.
3105 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3106 from unsigned long to ULONGEST.
3107 (read_signed_leb128): Change declaration return type from long to
3109 (dwarf2_const_value_attr): Change declaration parameter value from long
3111 (dwarf2_compute_name): Change variable value from long to LONGEST.
3112 (read_unsigned_leb128): Change return type, variable result and some
3113 casts from unsigned long to ULONGEST.
3114 (read_signed_leb128): Change return type, variable result and some
3115 casts from long to LONGEST.
3116 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3117 value from long to LONGEST.
3118 (dwarf2_const_value): Change variable value from long to LONGEST.
3119 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3120 plongest and hex_string.
3121 * symtab.h (struct general_symbol_info): Change ivalue from long to
3122 LONGEST, remove the comment.
3123 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3124 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3126 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3129 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3130 * ada-lang.c (ada_discrete_type_high_bound)
3131 (ada_discrete_type_low_bound): Fix function comment. Use
3132 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3133 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3134 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3135 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3136 Use TYPE_FIELD_ENUMVAL.
3137 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3138 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3139 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3140 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3142 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3143 * dwarf2read.c (process_enumeration_scope): Likewise.
3144 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3146 (class StructMainTypePrettyPrinter): Support also
3147 FIELD_LOC_KIND_ENUMVAL.
3148 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3150 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3151 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3152 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3153 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3155 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3156 accommodate enumval.
3157 (struct call_site): Adjust loc_kind to accommodate enumval.
3158 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3159 (TYPE_FIELD_ENUMVAL): New macros.
3160 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3161 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3163 * p-typeprint.c (pascal_type_print_base): Likewise.
3164 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3166 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3167 * python/py-type.c (convert_field): New variable addrstring. Use
3168 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3169 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3170 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3171 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3173 * valprint.c (generic_val_print): Likewise.
3175 2012-04-17 Doug Evans <dje@google.com>
3177 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3179 * dwarf2read.c: Whitespace fixes.
3180 (lookup_signatured_type): Tweak comment.
3181 (get_die_type_at_offset): Fix comment.
3183 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3185 * xcoffread.c (xcoff_secnum_to_sections): New function.
3186 (secnum_to_section, secnum_to_bfd_section): Reimplement
3187 using xcoff_secnum_to_sections. Rename "secnum" parameter
3189 (RECORD_MINIMAL_SYMBOL): Delete.
3190 (record_minimal_symbol): New function.
3191 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3192 by call to record_minimal_symbol and set misc_func_recorded
3193 to 1. Set last_csect_sec to the XCOFF section index instead
3194 of GDB's section_offset index. Update calls to
3195 prim_record_minimal_symbol_and_info to pass the BFD section
3198 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3200 * xcoffread.c (read_xcoff_symtab): Delete variables
3201 last_csect_val and last_csect_sec and associated code.
3203 2012-04-17 Doug Evans <dje@google.com>
3205 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3206 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3207 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3208 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3210 * cleanups.h: New file.
3211 * cleanups.c: New file.
3212 * Makefile.in (SFILES): Add cleanups.c.
3213 (HFILES_NO_SRCDIR): Add cleanups.h.
3214 (COMMON_OBS): Add cleanups.o.
3215 * defs.h (struct cleanup): Moved to cleanups.h.
3216 (do_cleanups,do_final_cleanups): Ditto.
3217 (discard_cleanups,discard_final_cleanups): Ditto
3218 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3219 (save_cleanups,save_final_cleanups): Ditto.
3220 (restore_cleanups,restore_final_cleanups): Ditto.
3221 (null_cleanup): Ditto.
3222 (make_my_cleanup,make_my_cleanup2): Ditto.
3223 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3224 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3225 (do_cleanups,do_final_cleanups): Ditto.
3226 (discard_cleanups,discard_final_cleanups): Ditto
3227 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3228 (save_cleanups,save_final_cleanups): Ditto.
3229 (restore_cleanups,restore_final_cleanups): Ditto.
3230 (null_cleanup): Ditto.
3231 (make_my_cleanup,make_my_cleanup2): Ditto.
3232 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3234 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3236 (make_cleanup_dyn_string_delete): Ditto.
3237 (make_cleanup_ui_file_delete): Ditto.
3238 (make_cleanup_ui_out_redirect_pop): Ditto.
3239 (make_cleanup_free_section_addr_info): Ditto.
3240 (make_cleanup_restore_integer): Ditto.
3241 (make_cleanup_unpush_target): Ditto.
3242 (make_cleanup_value_free_to_mark): Ditto.
3243 (make_cleanup_value_free): Ditto.
3244 (make_cleanup_free_so): Ditto.
3246 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3248 New option "set debug auto-load".
3249 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3250 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3251 (auto_load_safe_path_vec_update)
3252 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3254 (file_is_auto_load_safe): New parameters debug_fmt and ....
3255 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3256 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3257 caller by explanatory string.
3258 (_initialize_auto_load): Register "set debug auto-load".
3259 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3261 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3262 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3263 by explanatory string.
3264 * main.c (captured_main): Likewise.
3265 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3266 (source_section_scripts): Likewise.
3268 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3270 New option "set auto-load safe-path".
3271 * NEWS: New commands "set auto-load safe-path"
3272 and "show auto-load safe-path".
3273 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3274 (auto_load_safe_path, auto_load_safe_path_vec)
3275 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3276 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3277 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3278 (source_gdb_script_for_objfile): New variable is_safe. Call
3279 file_is_auto_load_safe. Return if it is not.
3280 (struct loaded_script): New field loaded.
3281 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3282 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3283 output "Missing" to "No".
3284 (_initialize_auto_load): New variable cmd. Initialize
3285 auto_load_safe_path. Register "set auto-load safe-path",
3286 "show auto-load safe-path" and "add-auto-load-safe-path".
3287 * auto-load.h (maybe_add_script): Add parameter loaded.
3288 (file_is_auto_load_safe): New declaration.
3289 * config.in: Regenerate.
3290 * configure: Regenerate.
3291 * configure.ac: New parameters --with-auto-load-safe-path
3292 and --without-auto-load-safe-path.
3293 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3294 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3295 * main.c (captured_main): Check file_is_auto_load_safe for
3297 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3298 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3299 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3302 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3304 auto-load: Implementation.
3305 * NEWS: New descriptions for "info auto-load",
3306 "info auto-load gdb-scripts", "info auto-load python-scripts",
3307 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3308 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3309 and "show auto-load-scripts". New description for "set auto-load",
3310 "show auto-load", "set auto-load gdb-scripts",
3311 "show auto-load gdb-scripts", "set auto-load python-scripts",
3312 "show auto-load python-scripts", "set auto-load local-gdbinit",
3313 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3314 "show auto-load libthread-db".
3315 * auto-load.c: Remove include python/python-internal.h. Add includes
3316 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3318 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3319 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3320 (gdbpy_global_auto_load): Rename to ...
3321 (global_auto_load): ... here.
3322 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3323 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3324 (script_language_gdb, source_gdb_script_for_objfile): New.
3325 (struct loaded_script): New field language.
3326 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3328 (maybe_add_script): Add parameter language. Drop redundant
3329 entry.full_path initialization. Initialize entry.language and
3331 (auto_load_objfile_script): Change parameter suffix to language.
3332 Remove the call of maybe_add_script.
3333 Call language->source_script_for_objfile.
3334 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3336 (collect_matching_scripts): Adjust it for
3337 struct collect_matching_scripts_data.
3338 (auto_load_info_scripts_pattern_nl): New variable.
3339 (info_auto_load_scripts): Rename to ...
3340 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3341 for struct collect_matching_scripts_data.
3342 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3343 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3344 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3345 (auto_load_info_cmdlist_get): New.
3346 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3347 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3348 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3349 "info auto-load local-gdbinit".
3350 * auto-load.h (struct script_language): New.
3351 (gdbpy_global_auto_load): Rename to ...
3352 (global_auto_load): ... here.
3353 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3354 (auto_load_local_gdbinit_loaded): New declarations.
3355 (maybe_add_script): New parameter language.
3356 (auto_load_objfile_script): Change parameter suffix to language.
3357 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3358 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3359 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3361 * linux-thread-db.c: Include auto-load.h and ctype.h.
3362 (auto_load_thread_db, show_auto_load_thread_db): New.
3363 (struct thread_db_info): New field filename.
3364 (delete_thread_db_info): Call xfree for FILENAME.
3365 (try_thread_db_load): Initialize FILENAME.
3366 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3367 if !AUTO_LOAD_THREAD_DB.
3368 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3369 (_initialize_thread_db): Install auto_load_thread_db
3370 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3371 as "info auto-load libthread-db".
3372 * main.c (captured_main): Rename gdbpy_global_auto_load to
3373 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3374 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3375 (print_gdb_help): Extend the help for 'local init file'.
3376 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3377 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3378 (auto_load_scripts): Rename to ...
3379 (auto_load_python_scripts): ... here, update the comment.
3380 (gdbpy_load_auto_script_for_objfile): New declaration.
3381 (show_auto_load_python_scripts, script_language_python)
3382 (gdbpy_load_auto_script_for_objfile): New.
3383 (source_section_scripts): Refactor the code.
3384 (load_auto_scripts_for_objfile): Rename to ...
3385 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3386 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3387 (info_auto_load_python_scripts): New.
3388 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3389 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3390 Register "set auto-load-scripts" as its deprecated alias. Register
3391 "info auto-load python-scripts". Register "info auto-load-scripts" as
3392 its deprecated alias.
3393 (load_auto_scripts_for_objfile): Rename to ...
3394 (gdbpy_load_auto_scripts_for_objfile): ... here.
3395 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3396 (gdbpy_load_auto_scripts_for_objfile): ... here.
3398 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3400 auto-load: Move files.
3401 * Makefile.in (SFILES): Add auto-load.c.
3402 (HFILES_NO_SRCDIR): Add auto-load.h.
3403 (COMMON_OBS): Add auto-load.o.
3404 (distclean): Change .gdbinit for gdb-gdb.gdb.
3405 * auto-load.c: New file, with parts from python/py-auto-load.c.
3406 * auto-load.h: New file, with parts from python/python.h.
3407 * configure: Regenerate.
3408 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3409 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3410 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3411 * main.c: Include auto-load.h.
3412 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3413 command.h, observer.h and progspace.h to auto-load.c. Add include
3415 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3416 (struct loaded_script, auto_load_pspace_data)
3417 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3418 (hash_loaded_script_entry, eq_loaded_script_entry)
3419 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3420 (maybe_add_script): Move to auto-load.c.
3421 (source_section_scripts): Change maybe_add_script parameters passing,
3422 use script_not_found_warning_print.
3423 (clear_section_scripts, auto_load_objfile_script)
3424 (auto_load_new_objfile, loaded_script_ptr)
3425 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3426 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3427 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3428 auto_load_new_objfile and info_auto_load_scripts initizations to
3430 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3432 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3435 * charset.c (find_charset_names): Remove variables ix and elt.
3436 Use free_char_ptr_vec.
3437 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3438 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3439 debugdir_end. New variable debugdir_len.
3440 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3441 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3443 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3444 and elt. Use free_char_ptr_vec.
3445 * source.c (add_path): Remove variables argv, arg and argv_index.
3446 New variables dir_vec, back_to, ix and name.
3447 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3448 make_cleanup_freeargv. Remove variable separator. Simplify the code
3449 no longer expecting DIRNAME_SEPARATOR.
3450 (openp): Remove variable p, p1 and len. New variables dir_vec,
3451 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3452 no longer expecting DIRNAME_SEPARATOR.
3453 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3454 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3456 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3457 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3458 (dirnames_to_char_ptr_vec): New functions.
3460 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 * source.c (add_path): Remove always true conditional 'p == 0' and
3464 unindent its code block.
3466 2012-04-17 Pedro Alves <palves@redhat.com>
3468 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3469 (FIELD_BITPOS_LVAL): ... this.
3470 (FIELD_BITPOS): New.
3471 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3472 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3473 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3475 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3477 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3478 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3479 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3482 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3484 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3485 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3486 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3487 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3488 * jv-lang.c (java_link_class_type): Likewise, once.
3489 * stabsread.c (read_enum_type): Likewise.
3491 2012-04-16 Yao Qi <yao@codesourcery.com>
3493 * common/agent.c (agent_run_command): Add one more parameter `len'.
3495 * common/agent.h: Update declaration.
3496 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3498 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3500 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3503 * value.c (value_actual_type): New function.
3504 * value.h (value_actual_type): New declaration.
3505 * varobj.c (update_type_if_necessary): New function.
3506 (varobj_create): Call value_actual_type instead of
3508 (install_dynamic_child): distinct changed and type changed MI variable
3510 (update_dynamic_varobj_children): Updated for install_dynamic_child
3511 change. All callers updated.
3512 (varobj_update): Support for MI variable object type change if
3513 the value changed and RTTI is used to determine the type.
3514 (create_child_with_value): Call value_actual_type instead of
3516 (adjust_value_for_child_access): Extended with a new parameter which
3517 specify whether the given value should be casted to enclosing type.
3518 All callers updated.
3520 2012-04-14 Yao Qi <yao@codesourcery.com>
3522 Import gnulib module inttypes from git
3523 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3524 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3525 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3526 gnulib/m4/inttypes-pri.m4
3527 * aclocal.m4, config.in, configure: Regenerated.
3528 * gnulib/Makefile.am: Update.
3529 * gnulib/Makefile.in: Update.
3530 * gnulib/m4/gnulib-cache.m4: Update.
3531 * gnulib/m4/gnulib-comp.m4: Update.
3532 * gnulib/inttypes.in.h: New.
3533 * gnulib/m4/inttypes-pri.m4: New.
3534 * gnulib/m4/inttypes.m4: New.
3536 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3538 * infrun.c (resume): Update PC address to the real PC after
3539 preparing to do displaced stepping.
3541 2012-04-12 Doug Evans <dje@google.com>
3543 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3544 All callers updated.
3546 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3548 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3550 2012-04-12 Doug Evans <dje@google.com>
3552 * dwarf2read.c (create_all_type_units): Renamed from
3553 create_debug_types_hash_table. All callers updated.
3555 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3556 local type_sig to sig_type, type_offset to type_offset_in_tu.
3557 (hash_signatured_type): Renamed from hash_type_signature,
3558 all callers updated.
3559 (eq_signatured_type): Renamed from eq_type_signature,
3560 all callers updated.
3561 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3562 (process_enumeration_scope): Ditto.
3563 (lookup_signatured_type_at_offset): Ditto.
3564 (load_full_type_unit, read_signatured_type): Ditto.
3566 2012-04-12 Yao Qi <yao@codesourcery.com>
3568 * remote.c (async_remote_interrupt): Correct function name in
3570 (async_remote_interrupt_twice): Ditto.
3572 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3574 * source.c (find_and_open_source): Consistently pass resulting
3575 full path through xfullpath.
3577 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3579 Provide more specific displaced-stepping memory error message.
3580 * infrun.c (displaced_step_prepare): New variable status. Call
3581 target_read_memory instead of read_memory, provide more specific
3584 2012-04-11 Tristan Gingold <gingold@adacore.com>
3587 * darwin-nat.c (darwin_execvp): Revert previous patch.
3589 2012-04-11 Tristan Gingold <gingold@adacore.com>
3592 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3595 2012-04-11 Tristan Gingold <gingold@adacore.com>
3597 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3600 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3602 New command 'explore' which helps explore values and types in
3604 * NEWS: Add an entry about the new 'explore' command.
3605 * data-directory/Makefile.in: Add gdb/command/explore.py
3606 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3607 command using the GDB Python API.
3609 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3611 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3612 extension in jump target calculation.
3614 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3616 * mips-tdep.c (mips32_next_pc): Handle JALX.
3618 2012-04-10 Yao Qi <yao@codesourcery.com>
3620 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3622 2012-04-10 Yao Qi <yao@codesourcery.com>
3624 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3625 and gnulib/m4/gnulib-tool.m4.
3627 2012-04-10 Doug Evans <dje@google.com>
3629 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3630 (load_partial_dies): Clarify comment.
3631 (find_partial_die): Support rereading type units.
3632 Clarify CU handling, if we know offset is in CU, don't search for the
3633 containing CU. Add comment regarding memory waste.
3635 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3637 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3638 i386/x32-avx and i386/x32-avx-linux.
3639 (i386/x32-expedite): New.
3640 (i386/x32-linux-expedite): Likewise.
3641 (i386/x32-avx-expedite): Likewise.
3642 (i386/x32-avx-linux-expedite): Likewise.
3643 ($(outdir)/i386/x32.dat): Likewise.
3644 ($(outdir)/i386/x32-linux.dat): Likewise.
3645 ($(outdir)/i386/x32-avx.dat): Likewise.
3646 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3648 * features/i386/x32-avx-linux.xml: New file.
3649 * features/i386/x32-avx.xml: Likewise.
3650 * features/i386/x32-core.xml: Likewise.
3651 * features/i386/x32-linux.xml: Likewise.
3652 * features/i386/x32.xml: Likewise.
3654 * features/i386/x32-avx-linux.c: New. Generated.
3655 * features/i386/x32-avx.c: Likewise.
3656 * features/i386/x32-linux.c: Likewise.
3657 * features/i386/x32.c: Likewise.
3658 * regformats/i386/x32-avx-linux.dat: Likewise.
3659 * regformats/i386/x32-avx.dat: Likewise.
3660 * regformats/i386/x32-linux.dat: Likewise.
3661 * regformats/i386/x32.dat: Likewise.
3663 2012-04-10 Tristan Gingold <gingold@adacore.com>
3665 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3666 code to kill the inferior.
3668 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3670 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3672 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3674 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3675 (yyvsp): New defines.
3676 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3678 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3680 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3682 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3684 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3687 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3689 * sparc64-tdep.c (sparc64_store_arguments)
3690 (sparc64_store_arguments): Fix coding style.
3692 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3694 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3695 complex floats, adjust some related comments and tighten a related
3697 (sparc64_extract_return_value): Handle complex floats.
3699 2012-04-07 Doug Evans <dje@google.com>
3701 * dwarf2read.c (load_partial_dies): Change condition to assert.
3703 2012-04-06 Doug Evans <dje@google.com>
3705 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3708 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3710 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3712 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3713 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3716 2012-04-05 Keith Seitz <keiths@redhat.com>
3718 * linespec.c (decode_compound): Remove.
3719 (enum offset_relative_sign): New enum.
3720 (struct line_offset): New struct.
3721 (struct linespec): New struct.
3722 (struct linespec_state): Move file_symtabs,
3723 user_filename, and user_function into struct linespec.
3724 Make result an anonymous struct holding vectors of
3725 symbolp and minsym_and_objfile_d.
3726 Add language member.
3727 (enum ls_token_type): New enum.
3728 (linespec_keywords): New array.
3729 (struct ls_token): New struct.
3730 (struct ls_parser): New struct.
3731 (linespec_lexer_lex_number): New function.
3732 (linespec_lexer_lex_keyword): New function.
3733 (is_ada_operator): New function.
3734 (skip_quote_char): New function.
3735 (copy_token_string): New function.
3736 (is_closing_quote_enclosed): New function.
3737 (find_parameter_list_end): New function.
3738 (linespec_lexer_lex_string): New function.
3739 (linespec_lexer_lex_one): New function.
3740 (linespec_lexer_consume_token): New function.
3741 (linespec_lexer_peek_token): New function.
3742 (cplusplus_error): Remove unused function.
3743 (find_methods): Update comment.
3744 (find_toplevel_char): Return const.
3745 (is_objc_method_format): Remove unused function.
3746 (find_toplevel_string): New function.
3747 (is_linespec_boundary): Remove.
3748 (symbol_not_found_error): New function.
3749 (find_method_overload_end): Remove function.
3750 (unexpected_linespec_error): New function.
3751 (keep_name_info): Remove.
3752 (linespec_parse_line_offset): New function.
3753 (linespec_parse_basic): New function.
3754 (canonicalize_linespec): New function.
3755 (decode_line_internal): Remove.
3756 (create_sals_line_offset): New function adapted from
3758 (convert_linespec_to_sals): New function.
3759 (parse_linespec): New function.
3760 (linespec_parser_new): New function.
3761 (linespec_state_destructor): Change parameter type to
3762 struct linespec_state *.
3763 Add language parameter.
3764 Remove freeing of moved members.
3765 (linespec_parser_delete): New function.
3766 (decode_line_full): Use parse_linespec and linespec_parser_new.
3767 (decode_line_1): Likewise.
3768 (decode_indirect): Rename to ...
3769 (linespec_expression_to_pc): ... this and rewrite
3770 to simply find CORE_ADDR, storing this result for later
3772 (locate_first_half): Remove.
3773 (deocde_objc): Add parameter LS.
3774 Initialize new struct collect_info members.
3775 Handle minimal symbols, too.
3776 (decode_compound): Delete.
3777 (lookup_prefix_sym): Rewrite.
3778 (compare_msymbols): New function.
3779 (find_method): Rewrite.
3780 Do not call cplusplus_error.
3781 (symtabs_from_filename): Rewrite.
3782 (collect_function_symbols): Delete.
3783 (find_function_symbols): Rewrite without ARGPTR-style
3785 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3786 (decode_dollar): Adapted and renamed to ...
3787 (linespec_parse_variable): ... this.
3788 (find_linespec_symbols): New function.
3789 (decode_label): Adapted and renamed to ...
3790 (find_label_symbols): ... this.
3791 (decode_digits_list_mode): Add and use LS argument.
3792 (decode_digits_ordinary): Likewise.
3793 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3794 If in list mode, allow any symbol class. Otherwise, only
3795 permit LOC_BLOCK symbols.
3796 (minsym_found): Update comments.
3797 (search_minsyms_for_name): Do not convert the matching symbol
3798 into a SAL. Simply push the symbol and objfile into the
3800 (decode_variable): Delete. Contents adapted into
3801 find_linespec_symbols.
3803 * cp-support.c (SKIP_SPACE): Remove.
3804 (operator_tokens): Remove unused global.
3805 (cp_validate_operator): Remove.
3806 * cp-support.h (cp_validate_operator): Remove declaration.
3808 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3810 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3811 for TYPE_VPTR_FIELDNO.
3812 * valprint.c (valprint_check_validity): Make it global, move the
3813 function comment ...
3814 * value.h (valprint_check_validity): ... to this new declaration.
3816 2012-04-02 Tristan Gingold <gingold@adacore.com>
3818 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3819 the STATE32 api for i386 state.
3820 (i386_darwin_store_inferior_registers): Likewise.
3822 2012-04-02 Tristan Gingold <gingold@adacore.com>
3824 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3826 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3829 2012-04-02 Tristan Gingold <gingold@adacore.com>
3832 * darwin-nat.c (darwin_execvp): Set binary preference.
3834 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3836 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3838 2012-03-30 Tom Tromey <tromey@redhat.com>
3840 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3841 of TRY_CATCH. Fix error handling.
3842 * python/py-value.c (convert_value_from_python): Move 'old'
3843 declaration to innermost scope.
3845 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3846 Andrey Smirnov <andrew.smirnov@gmail.com>
3848 -Wshadow warning fix.
3849 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3850 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3851 Adjust code accordingly.
3853 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3855 * ada-lang.c (symbol_completion_add): Rename parameter
3856 "encoded" into "encoded_p". Ajust code and documentation
3859 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3860 Andrey Smirnov <andrew.smirnov@gmail.com>
3862 -Wshadow warning fix.
3863 * ada-lang.c (symbol_completion_add): Rename parameter
3864 "wild_match" into wild_match_p. Update code and documentation
3867 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3869 * ada-lang.c (symbol_completion_match): Rename parameter
3870 "encoded" into "encoded_p". Ajust code and documentation
3873 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3874 Andrey Smirnov <andrew.smirnov@gmail.com>
3876 -Wshadow warning fix.
3877 * ada-lang.c (symbol_completion_match): Rename parameter
3878 "wild_match" into "wild_match_p". Adjust code and function
3879 documentation accordingly.
3881 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3882 Andrey Smirnov <andrew.smirnov@gmail.com>
3884 -Wshadow warning fix.
3885 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3886 "symbol_info" into "info". Adjust code accordingly.
3887 (ada_lookup_symbol): Likewise.
3889 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3891 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3892 of this function's documentation.
3894 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3895 Andrey Smirnov <andrew.smirnov@gmail.com>
3897 -Wshadow warning fix.
3898 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3899 variable into "wild_match_p". Adjust code accordingly.
3901 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3902 Andrey Smirnov <andrew.smirnov@gmail.com>
3904 -Wshadow warning fix.
3905 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3906 parameter into "wild_match_p". Adjust code accordingly.
3907 Document this parameter in the function description.
3909 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3910 Andrey Smirnov <andrew.smirnov@gmail.com>
3912 -Wshadow warning fix.
3913 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3914 "wild_match" parameter to "wild_match_p" (-Wshadow).
3916 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3918 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3919 in function documentation.
3921 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3922 Andrey Smirnov <andrew.smirnov@gmail.com>
3924 -Wshadow warning fix.
3925 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3926 variable into wild_match_p. Adjust code accordingly.
3928 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3929 Andrey Smirnov <andrew.smirnov@gmail.com>
3931 * ada-valprint.c (ada_val_print_1): Move the code handling
3932 TYPE_CODE_ENUM inside its own lexical block. Declare
3933 variables len and val there, instead of in the function's
3934 top level block. Avoid declaring deref_val again in a way
3935 that shadows another variable of the same name declared
3936 in one of the up-level blocks. Just re-use the up-level
3939 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3941 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3942 Replace block_found argument by symbol_info. Adjust
3943 implementation accordingly. Add function documentation.
3944 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3946 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3947 * ada-exp.y (write_object_renaming): Adjust to new
3948 ada_lookup_encoded_symbol API.
3950 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3952 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3955 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3957 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3958 (v850_register_name): Add the mpu and fpu register names.
3959 (v850e_register_name): Add the mpu and fpu register names.
3960 (v850e2_register_name): New function.
3961 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3964 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3966 * NEWS: Add entry for Ada varobj support.
3968 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3970 * varobj.c (default_value_is_changeable_p): New function,
3971 extracted from varobj_value_is_changeable_p. Add declaration.
3972 (ada_value_is_changeable_p): New function, extracted from
3973 varobj_value_is_changeable_p. Add declaration.
3974 (struct language_specific): New field "value_is_changeable_p".
3975 (languages): Add entries for new field.
3976 (varobj_create): Set language before calling install_new_value.
3977 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3978 "value_is_changeable_p" language callback.
3980 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3982 * ada-varobj.h, ada-varobj.c: New files.
3983 * Makefile.in (SFILES): Add ada-varobj.c.
3984 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3985 (COMMON_OBS): Add ada-varobj.o.
3987 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3989 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3990 (struct language_specific): New field "value_has_mutated".
3991 (languages): Set field "value_has_mutated" in each entry of array.
3992 (varobj_value_has_mutated): New function.
3993 (varobj_udpdate): Add handling of type mutation.
3994 (value_of_root): Add handling of type mutation.
3995 (ada_value_has_mutated): New function.
3997 2012-03-28 Pedro Alves <palves@redhat.com>
3999 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4000 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4002 2012-03-28 Tom Tromey <tromey@redhat.com>
4004 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4005 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4008 2012-03-28 Tom Tromey <tromey@redhat.com>
4010 * .dir-locals.el: New file.
4012 2012-03-28 Pedro Alves <palves@redhat.com>
4014 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4016 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4018 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4021 2012-03-27 Pedro Alves <palves@redhat.com>
4023 Eliminate struct ui_stream.
4025 * ui-out.h (struct ui_stream): Delete.
4026 (ui_out_field_stream): Adjust prototype.
4027 (ui_out_stream_new, ui_out_stream_delete)
4028 (make_cleanup_ui_out_stream_delete): Delete declarations.
4029 * ui-out.c (ui_out_field_stream): Change prototype to take a
4030 ui_file instead of a ui_stream. Adjust.
4031 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4032 (make_cleanup_ui_out_stream_delete): Delete.
4033 * breakpoint.c (print_breakpoint_location)
4034 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4035 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4036 * disasm.c (dump_insns): Ditto.
4037 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4039 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4040 ui_stream/ui_out_stream_new.
4041 * infcmd.c (print_return_value): Ditto.
4042 * osdata.c (info_osdata_command): Don't allocate a local
4044 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4045 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4046 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4047 allocate a local ui_stream.
4048 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4049 instead of ui_stream/ui_out_stream_new.
4050 (list_args_or_locals): Don't allocate a local ui_stream.
4051 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4052 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4053 ui_stream/ui_out_stream_new.
4054 * cli/cli-setshow.c (do_setshow_command): Ditto.
4056 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
4058 * arm-linux-tdep.c (arm_linux_init_abi): Call
4059 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4060 * arm-tdep.c (arm_process_record): New function.
4061 (deallocate_reg_mem): New function.
4062 (decode_insn): New function.
4063 (thumb_record_branch): New function.
4064 (thumb_record_ldm_stm_swi(): New function.
4065 (thumb_record_misc): New function.
4066 (thumb_record_ld_st_stack): New function.
4067 (thumb_record_ld_st_imm_offset): New function.
4068 (thumb_record_ld_st_reg_offset(): New function.
4069 (thumb_record_add_sub_cmp_mov): New function.
4070 (thumb_record_shift_add_sub): New function.
4071 (arm_record_coproc_data_proc): New function.
4072 (arm_record_coproc): New function.
4073 (arm_record_b_bl): New function.
4074 (arm_record_ld_st_multiple): New function.
4075 (arm_record_ld_st_reg_offset): New function.
4076 (arm_record_ld_st_imm_offset): New function.
4077 (arm_record_data_proc_imm): New function.
4078 (arm_record_data_proc_misc_ld_str): New function.
4079 (arm_record_extension_space): New function.
4080 (arm_record_strx): New function.
4081 (sbo_sbz): New function.
4082 (struct insn_decode_record): New structure for arm insn record.
4083 (REG_ALLOC): New macro for reg allocations.
4084 (MEM_ALLOC): New macro for memory allocations.
4085 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4087 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4089 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4090 (store_register): Likewise.
4092 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
4094 * MAINTAINERS (Write After Approval): Add myself to the list.
4096 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4098 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4099 Describe also the option "auto".
4101 2012-03-22 Richard Henderson <rth@redhat.com>
4103 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4104 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4106 2012-03-22 Richard Henderson <rth@redhat.com>
4108 * jit.c (jit_read_code_entry): Compute alignment and offset of
4109 int64_t member before computing entry_size.
4111 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4113 Python scripting: Add new method Value.referenced_value to
4114 gdb.Value which can dereference pointer as well as reference
4116 * NEWS: Add entry under 'Python scripting' about the new method
4117 Value.referenced_value on gdb.Value objects.
4118 * python/py-value.c (valpy_referenced_value): New function
4119 defining a new method on gdb.Value objects which can dereference
4120 pointer and reference values.
4122 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4124 * MAINTAINERS (Write After Approval): Add myself to the list.
4126 2012-03-21 Kevin Buettner <kevinb@redhat.com>
4128 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4129 in addition to "main".
4131 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4133 * expression.h (op_name): Add declaration.
4134 * expprint.c (op_name): Remove declaration. Make non-static.
4135 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4137 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4139 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4141 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4142 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4143 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4144 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4145 (linux_nat_get_siginfo): Likewise.
4146 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4147 (linux_nat_get_siginfo): Likewise.
4148 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4149 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4150 * procfs.c (gdb_siginfo_t): Likewise.
4152 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4154 * .gitignore: Ignore more files.
4156 2012-03-20 Pedro Alves <palves@redhat.com>
4158 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4161 2012-03-20 Yao Qi <yao@codesourcery.com>
4163 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4166 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4168 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4169 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4170 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4172 * dwarf2expr.h (cu_offset, sect_offset): New types.
4173 (struct dwarf_expr_context_funcs) <dwarf_call>
4174 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4176 (struct dwarf_expr_context) <len>: Improve the comment.
4177 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4178 cu_offset and sect_offset.
4179 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4180 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4181 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4182 * dwarf2loc.h: Include dwarf2expr.h.
4183 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4185 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4186 Improve the comment.
4187 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4188 (struct signatured_type, struct line_header, struct partial_die_info)
4189 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4190 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4191 (get_die_type_at_offset, create_cus_from_index)
4192 (create_signatured_type_table_from_index, dw2_get_file_names)
4193 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4194 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4195 (create_debug_types_hash_table, process_psymtab_comp_unit)
4196 (load_partial_comp_unit, create_all_comp_units)
4197 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4198 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4199 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4200 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4201 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4202 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4203 (find_partial_die, read_attribute_value, lookup_die_type)
4204 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4205 (is_ref_attr): New function comment.
4206 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4207 Use cu_offset and sect_offset.
4208 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4209 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4210 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4211 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4212 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4213 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4214 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4217 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4220 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4221 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4223 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4225 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4227 * NEWS: Describe new options --init-command=FILE, -ix and
4228 --init-eval-command=COMMAND, -iex.
4229 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4230 CMDARG_INIT_COMMAND.
4231 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4232 "init-command", "init-eval-command", "ix" and "iex" to the variable
4233 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4234 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4235 (print_gdb_help): Describe --init-command=FILE, -ix and
4236 --init-eval-command=COMMAND, -iex.
4238 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4241 * main.c (struct cmdarg): Move it here from main. Add more comments.
4242 (cmdarg_s, VEC (cmdarg_s)): New.
4243 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4244 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4245 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4246 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4249 2012-03-19 Tom Tromey <tromey@redhat.com>
4251 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4253 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4256 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4259 2012-03-16 Chris January <chris.january@allinea.com>
4261 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4264 2012-03-16 Chris January <chris.january@allinea.com>
4266 * source.c (add_path): Use memmove instead of strcpy because the
4269 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4271 * value.h (set_value_parent): Add declaration.
4272 * value.c (set_value_parent): New function.
4273 (value_address): If VALUE->PARENT is not NULL, then use it as
4274 the base address instead of VALUE->LOCATION.address.
4275 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4276 the same as OBJ's address. Adjust V's offset accordingly.
4279 2012-03-16 Gary Benson <gbenson@redhat.com>
4281 PR breakpoints/10738
4282 * dwarf2read.c (use_deprecated_index_sections): New global.
4283 (struct partial_die_info): New member may_be_inlined.
4284 (read_partial_die): Set may_be_inlined where appropriate.
4285 (add_partial_subprogram): Add partial symbols for partial
4286 DIEs that may be inlined.
4287 (new_symbol_full): Add inlined subroutines to the current
4289 (write_psymtabs_to_index): Bump version number.
4290 (dwarf2_read_index): Read only version 6 indices unless
4291 use_deprecated_index_sections is set.
4292 * linespec.c (symbol_and_data_callback): New structure.
4293 (iterate_inline_only): New function.
4294 (iterate_over_all_matching_symtabs): New argument
4295 "include_inline". If nonzero, also call the callback for
4296 symbols representing inlined subroutines.
4297 (lookup_prefix_sym): Pass extra argument to the above.
4298 (find_function_symbols): Likewise.
4299 (add_matching_symbols_to_info): Likewise.
4300 * NEWS: Mention that GDB can now set breakpoints on inlined
4303 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4305 * p-typeprint.c (pascal_type_print_method_args):
4306 Fix display of parameter of methods.
4308 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4310 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4311 Add missing prototype.
4313 2012-03-16 Yao Qi <yao@codesourcery.com>
4314 Jan Kratochvil <jan.kratochvil@redhat.com>
4316 Fix false compilation warning.
4317 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4319 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4320 Pedro Alves <pedro@codesourcery.com>
4322 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4323 (arm_register_g_packet_guesses): New function.
4324 (arm_gdbarch_init): Don't force a target description with
4325 registers when the executable is detected as M-profile. Instead
4326 set gdbarch->tdep->is_m. Register `g' packet guesses.
4327 (_initialize_arm_tdep): Initialize the new target description.
4328 * features/arm-with-m-fpa-layout.xml: New description.
4329 * features/arm-with-m-fpa-layout.c: New, generated.
4331 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4333 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4334 Update function description.
4335 (insert_bp_location): Do not wipe bl->target_info out.
4336 * mem-break.c: #include "gdb_string.h".
4337 (default_memory_insert_breakpoint): Do not call target_read_memory
4338 with a pointer to the breakpoint's shadow_contents buffer. Use
4339 a local buffer instead.
4340 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4342 2012-03-15 Tom Tromey <tromey@redhat.com>
4344 * NEWS: Mention "info vtbl", not "info vtable".
4345 * cp-support.c (info_vtbl_command): Fix comment.
4346 (_initialize_cp_support): Fix text.
4348 2012-03-15 Tom Tromey <tromey@redhat.com>
4350 * cp-valprint.c (cp_print_value_fields): Use
4351 print_function_pointer_address for vtable slot.
4353 2012-03-15 Tom Tromey <tromey@redhat.com>
4355 * gnu-v3-abi.c (struct value_and_voffset): New.
4356 (hash_value_and_voffset, eq_value_and_voffset)
4357 (compare_value_and_voffset, compute_vtable_size)
4358 (print_one_vtable, gnuv3_print_vtable): New functions.
4359 (init_gnuv3_ops): Initialize 'print_vtable' field.
4360 * cp-support.c (info_vtbl_command): New function.
4361 (_initialize_cp_support): Add "info vtbl".
4362 * cp-abi.h (cplus_print_vtable): Declare.
4363 (struct cp_abi_ops) <print_vtable>: New field.
4364 * cp-abi.c (cplus_print_vtable): New function.
4367 2012-03-15 Tom Tromey <tromey@redhat.com>
4369 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4370 iterate_over_symbols.
4372 2012-03-14 Doug Evans <dje@google.com>
4374 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4375 DW_OP_GNU_parameter_ref.
4377 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4379 Fix double prompt of 'interpreter-exec mi'.
4380 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4381 (mi_interpreter_resume): use it.
4382 (mi_execute_command_input_handler): New function.
4383 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4384 mi_execute_command_input_handler.
4386 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4388 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4390 (darwin_debug_port_info): Make static.
4391 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4392 * machoread.c (_initialize_machoread): Add prototype.
4393 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4394 (i386_darwin_set_control, i386_darwin_get_control)
4395 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4396 i386_darwin_get_status, i386_darwin_get_control):
4397 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4399 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4401 * ax-gdb.c (gen_usual_unary): Remove special handling of
4402 enum and bool types.
4404 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4406 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4408 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4410 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4412 2012-03-13 Chris January <chris.january@allinea.com>
4414 * aix-thread.c (fill_sprs): Store the floating point registers
4415 at the correct offsets into vals.
4417 2012-03-13 Doug Evans <dje@google.com>
4419 * NEWS: Mention symbol-reloading has been deleted.
4420 * symfile.c (symbol_reloading): Delete.
4421 (show_symbol_reloading): Delete.
4422 (_initialize_symfile): Delete set/show symbol-reloading.
4424 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4425 read_in_chain until we have successfully read it in.
4426 (load_full_comp_unit): Ditto.
4427 (read_signatured_type): Add comment.
4429 2012-03-13 Chris January <chris.january@allinea.com>
4431 * stabsread.c (fix_common_block): Change type of valu argument
4434 2012-03-13 Chris January <chris.january@allinea.com>
4436 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4439 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4441 * common/linux-procfs.c (linux_proc_get_int): New, from
4442 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4444 (linux_proc_get_tgid): Only call linux_proc_get_int.
4445 (linux_proc_get_tracerpid): New.
4446 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4447 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4448 linux_proc_pid_has_state.
4449 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4450 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4451 (linux_ptrace_attach_warnings): New.
4452 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4454 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4455 (linux_nat_attach): New variables ex, buffer, message and message_s.
4456 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4458 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4460 * Makefile.in (linux-ptrace.o): New.
4461 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4463 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4464 * common/linux-ptrace.c: New file.
4465 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4466 * config/arm/linux.mh: Likewise.
4467 * config/i386/linux.mh: Likewise.
4468 * config/i386/linux64.mh: Likewise.
4469 * config/ia64/linux.mh: Likewise.
4470 * config/m32r/linux.mh: Likewise.
4471 * config/m68k/linux.mh: Likewise.
4472 * config/mips/linux.mh: Likewise.
4473 * config/pa/linux.mh: Likewise.
4474 * config/powerpc/linux.mh: Likewise.
4475 * config/powerpc/ppc64-linux.mh: Likewise.
4476 * config/powerpc/spu-linux.mh: Likewise.
4477 * config/s390/s390.mh: Likewise.
4478 * config/sparc/linux.mh: Likewise.
4479 * config/sparc/linux64.mh: Likewise.
4480 * config/xtensa/linux.mh: Likewise.
4481 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4482 common/linux-procfs.c.
4483 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4485 2012-03-13 Hui Zhu <teawater@gmail.com>
4486 Pedro Alves <palves@redhat.com>
4488 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4489 CREATE_BREAKPOINT_FLAGS_INSERTED.
4490 (create_breakpoint_sal, create_breakpoints_sal)
4491 (base_breakpoint_create_breakpoints_sal)
4492 (tracepoint_create_breakpoints_sal)
4493 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4495 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4496 (ftrace_command, strace_command): Adjust.
4497 (create_tracepoint_from_upload): Pass
4498 CREATE_BREAKPOINT_FLAGS_INSERTED.
4499 * breakpoint.h (enum breakpoint_create_flags): New.
4500 (create_breakpoint): New flags parameter.
4501 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4502 * python/py-breakpoint.c (bppy_init): Adjust.
4503 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4504 * spu-tdep.c (spu_catch_start): Adjust.
4506 2012-03-13 Pedro Alves <palves@redhat.com>
4507 Hui Zhu <teawater@gmail.com>
4508 Yao Qi <yao@codesourcery.com>
4510 * remote.c (struct remote_state): New field `starting_up'.
4511 (remote_start_remote): Set and clear it.
4512 (remote_can_download_tracepoint): If starting up, return false.
4514 2012-03-13 Yao Qi <yao@codesourcery.com>
4516 * inferior.h (struct inferior): Remove fields any_syscall_count,
4517 syscalls_counts and total_syscalls_count. Move them to new
4518 struct catch_syscall_inferior_data in breakpoint.c.
4519 * breakpoint.c: Call DEF_VEC_I(int).
4520 (struct catch_syscall_inferior_data): New.
4521 (get_catch_syscall_inferior_data): New.
4522 (catch_syscall_inferior_data_cleanup): New.
4523 (insert_catch_syscall): Update to access data in
4524 struct catch_syscall_inferior_data.
4525 (insert_catch_syscall): Likewise.
4526 (remove_catch_syscall): Likewise.
4527 (remove_catch_syscall): Likewise.
4528 (is_syscall_catchpoint_enabled): Likewise.
4529 (add_catch_command): Likewise.
4530 (_initialize_breakpoint): Register cleanup.
4531 * breakpoint.h: Removed DEF_VEC_I(int).
4532 * dwarf2loc.c: Call DEF_VEC_I(int).
4533 * mi/mi-main.c: Likewise.
4535 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4537 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4539 2012-03-12 Chris January <chris.january@allinea.com>
4541 * aix-thread.c (_initialize_aix_thread): Add prototype.
4542 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4543 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4545 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4547 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4548 include of "amd64-nat.h".
4550 2012-03-12 Tom Tromey <tromey@redhat.com>
4552 * buildsym.c (record_pending_block): Now static.
4553 * buildsym.h: (record_pending_block): Remove.
4555 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4557 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4559 2012-03-09 Tom Tromey <tromey@redhat.com>
4561 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4562 producer_is_gxx_lt_4_6>: New fields.
4563 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4565 2012-03-09 Tom Tromey <tromey@redhat.com>
4567 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4569 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4571 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4574 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4576 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4578 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4580 Fix -Wmissing-prototypes build.
4581 * arm-linux-nat.c (get_thread_id): Make it static.
4582 * xtensa-linux-nat.c (get_thread_id): Likewise.
4584 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4586 * server.c (process_point_options): If a conditional expression
4587 is found, only print a message if remote_debug is nonzero.
4589 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4591 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4592 of internal error for unknown/unsupported types.
4594 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4596 Fix CU relative vs. absolute DIE offsets.
4597 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4598 offset to offset_in_cu.
4599 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4601 (dwarf2_fetch_die_location_block): Rename parameter offset to
4602 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4604 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4606 * libunwind-frame.c: Rename to ...
4607 * ia64-libunwind-tdep.c: ... here.
4608 * libunwind-frame.h: Rename to ...
4609 * ia64-libunwind-tdep.h: ... here.
4610 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4611 ia64-libunwind-tdep.h.
4612 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4613 * README (--with-libunwind): Rename to ...
4614 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4615 * config.in: Regenerate.
4616 * configure: Regenerate.
4617 * configure.ac: New option --with-libunwind-ia64, make the
4618 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4619 Remove AC_DEFINE for HAVE_LIBUNWIND.
4620 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4621 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4622 Rename libunwind-frame in the general comment.
4623 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4624 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4625 Move forward declarations inside #ifndef. Rename libunwind-frame in
4626 the general comment.
4627 * ia64-tdep.c: Rename libunwind-frame.h #include to
4628 ia64-libunwind-tdep.h.
4629 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4630 (ia64_libunwind_descr): Rename libunwind-frame to
4631 ia64-libunwind-tdep in these function comments.
4632 * ia64-tdep.h: Rename libunwind-frame.h #include to
4633 ia64-libunwind-tdep.h.
4634 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4635 ia64-libunwind-tdep in that data comment.
4637 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4639 * libunwind-frame.h (struct frame_unwind): New declaration.
4641 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4643 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4644 "set breakpoint condition-evaluation" command.
4646 2012-03-08 Tristan Gingold <gingold@adacore.com>
4648 * sparc-stub.c: Move to stubs/
4649 * sh-stub.c: Likewise.
4650 * m68k-stub.c: Likewise.
4651 * m32r-stub.c: Likewise.
4652 * i386-stub.c: Likewise.
4654 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4656 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4657 linux_get_siginfo_type.
4659 * m68klinux-nat.c: Include "gdb_proc_service.h".
4660 (PTRACE_GET_THREAD_AREA): Define.
4661 (ps_get_thread_area): New function.
4663 2012-03-08 Yao Qi <yao@codesourcery.com>
4665 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4667 (remote_query_attached): Likewise.
4668 (remote_static_tracepoint_marker_at): Likewise.
4669 (remote_set_permissions): Likewise.
4670 (remote_detach_1, extended_remote_attach_1): Likewise.
4671 (send_g_packet, remote_vkill): Likewise.
4672 (extended_remote_disable_randomization): Likewise.
4673 (remote_add_target_side_condition): Likewise.
4674 (remote_insert_breakpoint): Likewise.
4675 (remote_remove_breakpoint): Likewise.
4676 (remote_insert_watchpoint): Likewise.
4677 (remote_remove_watchpoint): Likewise.
4678 (remote_insert_hw_breakpoint): Likewise.
4679 (remote_insert_hw_breakpoint): Likewise.
4680 (remote_remove_hw_breakpoint): Likewise.
4681 (remote_download_command_source): Likewise.
4682 (remote_download_tracepoint): Likewise.
4683 (remote_download_trace_state_variable): Likewise.
4684 (remote_disable_tracepoint): Likewise.
4685 (remote_trace_set_readonly_regions): Likewise.
4686 (remote_get_tracepoint_status): Likewise.
4687 (remote_trace_find): Likewise.
4688 (remote_get_trace_state_variable_value): Likewise.
4689 (remote_set_disconnected_tracing): Likewise.
4690 (remote_set_circular_trace_buffer): Likewise.
4691 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4692 (remote_use_agent): Likewise.
4693 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4696 2012-03-07 Pedro Alves <palves@redhat.com>
4698 * NEWS: Mention QProgramSignals.
4699 * inferior.h (update_signals_program_target): Declare.
4700 * infrun.c: (update_signals_program_target): New.
4701 (handle_command): Update the target of the new program signals
4703 * remote.c (PACKET_QProgramSignals): New enum.
4704 (last_program_signals_packet): New global.
4705 (remote_program_signals): New.
4706 (remote_start_remote): Update the target with the program signals
4708 (remote_protocol_features): Add entry for QPassSignals.
4709 (remote_open_1): Free anc clear last_program_signals_packet.
4710 (init_remote_ops): Install remote_program_signals.
4711 * target.c (update_current_target): Adjust.
4712 (target_program_signals): New.
4713 * target.h (struct target_ops) <to_program_signals>: New field.
4714 (target_program_signals): Declare.
4716 2012-03-07 Pedro Alves <palves@redhat.com>
4718 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4721 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4723 * m68klinux-nat.c (getregs_supplies): Make static.
4724 (getfpregs_supplies): Likewise.
4725 (have_ptrace_getregs): Likewise.
4727 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4729 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4730 in call to get_die_type_at_offset.
4732 2012-03-06 Stan Shebs <stan@codesourcery.com>
4734 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4735 * mi/mi-cmd-disas.c: Ditto.
4736 * mi/mi-cmd-env.c: Ditto.
4737 * mi/mi-cmd-file.c: Ditto.
4738 * mi/mi-cmd-stack.c: Ditto.
4739 * mi/mi-cmd-target.c: Ditto.
4740 * mi/mi-cmd-var.c: Ditto.
4741 * mi/mi-cmds.c: Ditto.
4742 * mi/mi-cmds.h: Ditto.
4743 * mi/mi-console.c: Ditto.
4744 * mi/mi-getopt.c: Ditto.
4745 * mi/mi-getopt.h: Ditto.
4746 * mi/mi-interp.c: Ditto.
4747 * mi/mi-main.c: Ditto.
4748 * mi/mi-out.c: Ditto.
4749 * mi/mi-parse.c: Ditto.
4750 * mi/mi-parse.h: Ditto.
4751 * mi/mi-symbol-cmds.c: Ditto.
4753 * mi/mi-getopt.h: Move mi_opt struct up.
4754 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4756 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4758 2012-03-06 Tom Tromey <tromey@redhat.com>
4760 * proc-service.c (ps_pglobal_lookup): Set the current program
4763 2012-03-06 Pedro Alves <palves@redhat.com>
4765 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4767 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4769 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4771 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4774 * common/linux-osdata.c (linux_common_core_of_thread): New function
4776 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4777 call by linux_common_core_of_thread.
4778 (linux_nat_core_of_thread_1): Remove.
4779 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4780 * linux-thread-db.c: Include linux-osdata.h.
4781 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4782 linux_common_core_of_thread.
4784 2012-03-05 Tom Tromey <tromey@redhat.com>
4786 * value.c (value_primitive_field): Don't fetch contents for
4789 2012-03-05 Tom Tromey <tromey@redhat.com>
4791 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4793 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4795 * s390-nat.c: Include "gregset.h".
4797 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4799 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4800 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4801 (libunwind_load): New variable so_error, use it for dlerror. Try to
4802 load also LIBUNWIND_SO_7.
4804 2012-03-05 Pedro Alves <palves@redhat.com>
4806 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4807 is not NULL, and remove resulting dead code.
4809 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4811 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4812 prologue to sh_analyze_prologue.
4813 (sh_analyze_prologue): Make better use of such an upper limit, and
4814 generally be more cautious about accessing memory.
4816 2012-03-05 Tom Tromey <tromey@redhat.com>
4818 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4819 _initialize_ia64_hpux_tdep.
4821 2012-03-05 Pedro Alves <palves@redhat.com>
4825 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4826 the register state is clear, supply explicit zero, instead of
4827 marking the register unavailable.
4829 2012-03-05 Tristan Gingold <gingold@adacore.com>
4831 * NEWS: Mention OpenVMS ia64 new target.
4833 2012-03-05 Tristan Gingold <gingold@adacore.com>
4835 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4836 (ia64_unw_accessors, ia64_unw_rse_accessors)
4837 (ia64_libunwind_descr): Declare.
4838 * ia64-vms-tdep.c: New file.
4839 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4840 (ia64_libunwind_descr): Make them public.
4841 * configure.tgt: Add ia64-*-*vms*.
4842 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4843 (ALLDEPFILES): Add ia64-vms-tdep.c
4845 2012-03-05 Tristan Gingold <gingold@adacore.com>
4847 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4848 * remote.c (PACKET_qXfer_uib): New enum value.
4849 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4850 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4851 (_initialize_remote): Call add_packet_config_cmd for
4854 2012-03-05 Tristan Gingold <gingold@adacore.com>
4856 * osabi.c (gdb_osabi_names): Add OpenVMS.
4857 (generic_elf_osabi_sniffer): Likewise.
4858 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4860 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4862 Removed unused code.
4863 * libunwind-frame.c (libunwind_frame_unwind)
4864 (libunwind_frame_base_address): Remove.
4865 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4867 2012-03-04 Yao Qi <yao@codesourcery.com>
4869 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4870 remove trailing new line.
4871 (agent_run_command, agent_run_command): Add _ markup.
4872 (agent_capability_check): Likewise.
4874 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4876 * breakpoint.c (set_condition_evaluation_mode): Set
4877 CONDITION_EVALUATION_MODE unconditionally.
4879 2012-03-03 Yao Qi <yao@codesourcery.com>
4881 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4882 * common/agent.h: Update declaration.
4883 * inf-child.c (inf_child_use_agent): New.
4884 (inf_child_can_use_agent): New.
4885 (inf_child_target): Initialize fields `to_use_agent'
4886 and `to_can_use_agent'.
4887 * agent.c (agent_new_objfile): New.
4888 (_initialize_agent): Add agent_new_objfile to new_objfile
4891 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4893 (linux_target_install_ops): Initialize field
4894 `to_static_tracepoint_markers_by_strid'.
4895 * remote.c (free_current_marker): Move it to ...
4896 * tracepoint.c (free_current_marker): ... here. New.
4897 (cleanup_target_stop): New.
4898 * tracepoint.h: Declare free_current_marker.
4899 * NEWS: Add one entry about `info static-tracepoint-marker'.
4901 2012-03-03 Yao Qi <yao@codesourcery.com>
4903 * common/agent.c (agent_loaded_p): New.
4904 (agent_look_up_symbols): New global.
4905 * common/agent.h: Declare agent_loaded_p.
4907 2012-03-03 Yao Qi <yao@codesourcery.com>
4909 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4910 (agent_capability_check, agent_capability_invalidate): New.
4911 (symbol_list): New array element.
4912 * common/agent.h (enum agent_capa): New.
4913 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4915 2012-03-03 Yao Qi <yao@codesourcery.com>
4917 * target.h (struct target_ops) <to_use_agent>: New field.
4918 (struct target_ops) <to_can_use_agent>: New field.
4919 (target_use_agent, target_can_use_agent): New macro.
4920 * target.c (update_current_target): Update.
4921 * remote.c: New enum `PACKET_QAgent'.
4922 (remote_protocol_features): Add a new element.
4923 (remote_use_agent, remote_can_use_agent): New.
4924 (init_remote_ops): Initialize field `can_use_agent' with
4925 remote_can_use_agent. Intiailize field `use_agent' with
4927 * common/agent.c (use_agent): New global.
4928 * common/agent.h: Declare it.
4929 * tracepoint.c (info_static_tracepoint_markers_command): Add
4931 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4932 (COMMON_OBS): Add common/agent.o and agent.o
4933 (common-agent.o): New rule.
4936 2012-03-03 Yao Qi <yao@codesourcery.com>
4938 * common/agent.c: New.
4939 * common/agent.h: New.
4940 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4942 * configure, configh.in: Regenerated.
4944 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4946 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4947 unless it exists for this architecture.
4949 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4951 * language.h (struct language_defn): New "method" la_read_var_value.
4952 * findvar.c: #include "language.h".
4953 (default_read_var_value): Renames read_var_value. Rewrite
4954 function description.
4955 (read_var_value): New function.
4956 * value.h (default_read_var_value): Add prototype.
4957 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4959 (ada_language_defn): Add entry for la_read_var_value.
4960 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4961 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4962 language_defn structures to add entry for new la_read_var_value
4965 2012-03-02 Tom Tromey <tromey@redhat.com>
4966 Pedro Alves <palves@redhat.com>
4968 PR breakpoints/13776:
4969 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4971 (delete_longjmp_breakpoint_at_next_stop): New.
4972 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4973 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4974 before deleting the inferior. Add comments.
4975 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4976 breakpoints immediately, but only on next stop. Move that code
4977 next to where we mark other breakpoints for deletion.
4979 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4981 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4983 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4986 2012-03-02 Pedro Alves <palves@redhat.com>
4988 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4990 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4992 Fix -Wmissing-prototypes build.
4993 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4994 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4995 (gdbsim_has_memory): Likewise.
4997 2012-03-02 Yao Qi <yao@codesourcery.com>
4999 Fix -Wmissing-prototypes build.
5000 * charset.c (phony_iconv_open): Make static.
5001 (phony_iconv_close, phony_iconv): Likewise.
5002 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5003 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5005 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5006 * ser-mingw.c (create_select_thread): Make static.
5007 * windows-termcap.c (tgetent): New prototype.
5008 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5010 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5012 Fix -Wmissing-prototypes build.
5013 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5014 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5015 (_initialize_loadable): New prototypes.
5017 2012-03-02 Doug Evans <dje@google.com>
5019 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5020 abbrev table, read_comp_unit will do it.
5022 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5024 Fix -Wmissing-prototypes build.
5025 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5026 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5027 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5028 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5029 (_initialize_arm_symbian_tdep): New prototype.
5030 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5031 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5032 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5034 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5035 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5037 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5038 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5039 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5041 * moxie-tdep.c (moxie_process_record): Likewise.
5042 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5043 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5044 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5045 (_initialize_rl78_tdep): New prototype.
5046 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5047 (_initialize_rx_tdep): New prototype.
5048 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5049 (_initialize_darwin_solib): New prototype.
5050 * solib-spu.c: Include solib-spu.h.
5051 (_initialize_spu_solib): New prototype.
5052 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5053 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5054 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5055 (tic6x_software_single_step): Make it static.
5056 (_initialize_tic6x_tdep): New prototype.
5058 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5060 Fix -Wmissing-prototypes build.
5061 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5062 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5064 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5066 Fix -Wmissing-prototypes build.
5067 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5068 (frv_have_stopped_data_address): Remove.
5070 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5072 Fix -Wmissing-prototypes build.
5073 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5074 * sh-tdep.c: Include sh64-tdep.h.
5075 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5076 * sh64-tdep.c: Include sh64-tdep.h.
5077 * sh64-tdep.h: New file.
5079 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5081 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5083 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5085 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5086 sp_regnum once the gdbarch_init_osabi hook has been called.
5088 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5090 * mips-tdep.c (mips32_bc1_pc): New function.
5091 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5092 BPOSGE32 and BPOSGE64 instructions.
5093 (deal_with_atomic_sequence): Likewise.
5094 (mips32_instruction_has_delay_slot): Likewise.
5096 2012-03-01 Maciej W. Rozycki <macro@mips.com>
5097 Chris Dearman <chris@mips.com>
5098 Maciej W. Rozycki <macro@codesourcery.com>
5099 Joseph Myers <joseph@codesourcery.com>
5101 * features/mips-dsp.xml: New file.
5102 * features/mips64-dsp.xml: New file.
5103 * features/mips-dsp-linux.xml: New file.
5104 * features/mips64-dsp-linux.xml: New file.
5105 * features/Makefile (WHICH): Add mips-dsp-linux and
5107 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5108 * features/mips-dsp-linux.c: New file.
5109 * features/mips64-dsp-linux.c: New file.
5110 * regformats/mips-dsp-linux.dat: New file.
5111 * regformats/mips64-dsp-linux.dat: New file.
5112 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5114 (mips64_linux_register_addr): Likewise.
5115 (mips64_linux_regsets_fetch_registers): Likewise.
5116 (mips64_linux_regsets_store_registers): Likewise.
5117 (mips64_linux_fetch_registers): Update call to
5118 mips64_linux_regsets_fetch_registers.
5119 (mips64_linux_store_registers): Update call to
5120 mips64_linux_regsets_store_registers.
5121 (mips_linux_read_description): Probe for DSP registers.
5122 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5123 and initialize_tdesc_mips64_dsp_linux.
5124 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5125 Remove padding of no longer used embedded register slots.
5126 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5127 (MIPS_RESTART_REGNUM): Redefine enum value.
5128 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5130 (mips_tx39_reg_names): Likewise.
5131 (mips_linux_reg_names): New array of register names for Linux
5133 (mips_register_name): Check for a null pointer in
5134 mips_processor_reg_names and return an empty string.
5135 (mips_register_type): Exclude embedded registers for the IRIX
5137 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5138 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5140 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5141 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5142 (mips_gdbarch_init): Likewise. Initialize internal register
5143 indices for the Linux ABI. Use dynamic numbers to refer to
5144 registers, as applicable, while parsing the target description.
5145 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5147 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5149 * frame.h (read_frame_register_unsigned): Fix typo in function
5152 2012-03-01 Pedro Alves <palves@redhat.com>
5154 * jit-reader.in [!__cplusplus]
5155 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5157 2012-03-01 Pedro Alves <palves@redhat.com>
5159 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5160 * configure: Regenerate.
5162 2012-03-01 Pedro Alves <palves@redhat.com>
5164 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5165 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5166 (ftrace_command, strace_command): Make static.
5167 * d-lang.c (_initialize_d_language): Declare.
5168 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5169 * dwarf2loc.c (_initialize_dwarf2loc):
5170 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5171 * exec.c (exec_get_section_table): Make static.
5172 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5173 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5174 * inferior.c (remove_inferior_command, add_inferior_command)
5175 (clone_inferior_command): Make static.
5176 * linux-nat.c (linux_nat_thread_address_space)
5177 (linux_nat_core_of_thread): Make static.
5178 * linux-tdep.c (_initialize_linux_tdep): Declare.
5179 * objc-lang.c (_initialize_objc_lang): Declare.
5180 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5182 (_initialize_opencl_language): Declare.
5183 * record.c (_initialize_record): Declare.
5184 * remote.c (demand_private_info, remote_get_tib_address)
5185 (remote_supports_cond_tracepoints)
5186 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5188 * skip.c (_initialize_step_skip): Declare.
5189 * symtab.c (skip_prologue_using_lineinfo): Make static.
5190 * tracepoint.c (delete_trace_state_variable)
5191 (trace_variable_command, delete_trace_variable_command)
5192 (get_uploaded_tsv, find_matching_tracepoint_location)
5193 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5195 * value.c (pack_unsigned_long): Make static.
5196 * varobj.c (varobj_ensure_python_env): Make static.
5197 * windows-tdep.c (_initialize_windows_tdep): Declare.
5198 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5200 2012-03-01 Pedro Alves <palves@redhat.com>
5202 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5204 (linux_init_abi): Install it as has_shared_address_space gdbarch
5207 2012-03-01 Pedro Alves <palves@redhat.com>
5209 * observer.c (observer_test_first_notification_function)
5210 (observer_test_second_notification_function)
5211 (observer_test_third_notification_function): Add declarations.
5213 2012-03-01 Pedro Alves <palves@redhat.com>
5215 * common/signals.c (default_target_signal_to_host)
5216 (default_target_signal_from_host): Move ...
5217 * arch-utils.c: ... here.
5218 * arch-utils.h (default_target_signal_to_host)
5219 (default_target_signal_from_host): Declare.
5221 * common/signals.c (target_signal_from_command): Move ...
5222 * infrun.c: ... here.
5223 * inferior.h (target_signal_from_command): Declare.
5224 * target.h (target_signal_from_command)
5225 (default_target_signal_from_host, default_target_signal_to_host):
5226 Delete declarations.
5228 * common/signals.c (_initialize_signals): Delete.
5230 2012-03-01 Pedro Alves <palves@redhat.com>
5232 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5233 both __cplusplus and !__cplusplus.
5235 2012-03-01 Pedro Alves <palves@redhat.com>
5237 * psymtab.c (find_and_open_source): Delete declaration.
5238 * source.c (find_and_open_source): Move comment ...
5239 * source.h (find_and_open_source): ... to this new declaration.
5241 2012-03-01 Pedro Alves <palves@redhat.com>
5243 * inline-frame.c: Include inline-frame.h.
5245 2012-03-01 Pedro Alves <palves@redhat.com>
5247 * tui/tui-data.c (set_gen_win_origin): Delete.
5248 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5249 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5251 2012-03-01 Pedro Alves <palves@redhat.com>
5253 * remote.c (encode_actions): Delete declaration.
5254 * tracepoint.c (encode_actions): Make extern.
5255 * tracepoint.h (encode_actions): Declare.
5257 2012-03-01 Pedro Alves <palves@redhat.com>
5259 * python/py-breakpoint.c: Include python.h.
5260 * python/py-continueevent.c (create_continue_event_object): Make
5262 * python/py-lazy-string.c (stpy_get_type): Make static.
5263 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5265 * python/py-utils.c (unicode_to_target_python_string): Make
5267 * python/py-value.c: Include python.h.
5269 2012-03-01 Pedro Alves <palves@redhat.com>
5271 * inferior.c (delete_threads_of_inferior): Delete.
5273 2012-03-01 Pedro Alves <palves@redhat.com>
5275 Import fallback definitions from glibc.
5277 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5278 ps_prochandle): Forward declare.
5279 (ps_err_e): Use glibc's comments.
5280 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5281 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5282 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5283 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5284 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5285 (struct ps_prochandle): Adjust comment.
5287 2012-03-01 Pedro Alves <palves@redhat.com>
5289 * ada-lang.c (ada_modulus_from_name): Delete.
5290 * ada-lex.l (lexer_init): Make static.
5292 2012-03-01 Pedro Alves <palves@redhat.com>
5296 * frame.c (read_frame_register_unsigned): New.
5297 * frame.h (read_frame_register_unsigned): Declare.
5298 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5300 (print_i387_control_word): New parameter `control_p'. Handle it.
5301 (i387_print_float_info): Handle unavailable float registers.
5303 2012-03-01 Keith Seitz <keiths@redhat.com>
5305 * linespec.c (decode_line_2): Sort the list of methods
5306 alphabetically before presenting the user with a selection
5309 2012-03-01 Doug Evans <dje@google.com>
5311 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5313 (dwarf2_read_abbrevs): Remove corresponding initialization.
5315 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5317 * NEWS: Mention new python command class gdb.COMMAND_USER.
5318 * cli/cli-cmds.c (show_user): Print error when used on a python
5320 (init_cli_cmds): Update documentation strings for "show user" and
5321 "set/show max-user-call-depth" to clarify that it does not apply to
5323 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5325 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5327 * top.c (execute_command): Only execute a user-defined command as a
5328 legacy macro if c->user_commands is set.
5330 2012-03-01 Tom Tromey <tromey@redhat.com>
5332 * valprint.h (struct generic_val_print_decorations): New.
5333 (generic_val_print): Declare.
5334 * valprint.c (generic_val_print): New function.
5335 * p-valprint.c (p_decorations): New global.
5336 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5337 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5338 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5339 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5340 * m2-valprint.c (m2_decorations): New global.
5341 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5342 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5343 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5344 TYPE_CODE_ERROR>: Call generic_val_print.
5345 * f-valprint.c (f_decorations): New global.
5346 (f_val_print): Use print_function_pointer_address.
5347 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5348 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5349 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5351 * c-valprint.c (c_decorations): New global.
5352 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5353 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5354 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5355 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5356 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5357 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5360 2012-03-01 Tom Tromey <tromey@redhat.com>
5362 * valprint.c (val_print): Update.
5363 * p-valprint (pascal_val_print): Return void.
5364 * p-lang.h (pascal_val_print): Return void.
5365 * m2-valprint.c (m2_val_print): Return void.
5366 * m2-lang.h (m2_val_print): Return void.
5367 * language.h (struct language_defn) <la_val_print>: Return void.
5368 * language.c (unk_lang_val_print): Return void.
5369 * jv-valprint.c (java_val_print): Return void.
5370 * jv-lang.h (java_val_print): Return void.
5371 * f-valprint.c (f_val_print): Return void.
5372 * f-lang.h (f_val_print): Return void.
5373 * d-valprint.c (d_val_print): Return void.
5374 (dynamic_array_type): Update.
5375 * d-lang.h (d_val_print): Return void.
5376 * c-valprint.c (c_val_print): Return void.
5377 * c-lang.h (c_val_print): Return void.
5378 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5380 * ada-lang.h (ada_val_print): Return void.
5382 2012-03-01 Tom Tromey <tromey@redhat.com>
5384 * value.h (val_print): Return void.
5385 * valprint.c (val_print): Return void.
5387 2012-03-01 Tom Tromey <tromey@redhat.com>
5389 * value.h (common_val_print): Return void.
5390 * valprint.c (common_val_print): Return void.
5392 2012-03-01 Tom Tromey <tromey@redhat.com>
5394 * value.h (value_print): Return void.
5395 * valprint.c (value_print): Return void.
5396 * p-valprint.c (pascal_value_print): Return void.
5397 * p-lang.h (pascal_value_print): Return void.
5398 * language.h (struct language_defn) <la_value_print>: Return
5400 * language.c (unk_lang_value_print): Return void.
5401 * jv-valprint.c (java_value_print): Return void.
5402 * jv-lang.h (java_value_print): Return void.
5403 * f-valprint.c (c_value_print): Don't declare.
5405 * c-valprint.c (c_value_print): Return void.
5406 * c-lang.h (c_value_print): Return void.
5407 * ada-valprint.c (ada_value_print): Return void.
5408 * ada-lang.h (ada_value_print): Return void.
5410 2012-03-01 Tom Tromey <tromey@redhat.com>
5412 * value.c (value_primitive_field): Handle virtual base classes.
5414 2012-03-01 Tom Tromey <tromey@redhat.com>
5416 * gdbtypes.h (struct vbase): Remove.
5418 2012-03-01 Tom Tromey <tromey@redhat.com>
5420 * c-valprint.c (print_function_pointer_address): Move...
5421 * valprint.c: ... here. Make non-static.
5422 * m2-valprint.c (print_function_pointer_address): Remove.
5423 * valprint.h (print_function_pointer_address): Declare.
5425 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5427 * NEWS: Document the fact that one can provide a condition when
5428 creating an Ada exception catchpoint.
5430 2012-03-01 Tom Tromey <tromey@redhat.com>
5432 * valprint.c (val_print_type_code_flags): Fix placement of
5435 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5437 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5438 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5439 environment variable before calling update-copyright.
5441 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5443 * gnulib/extra/update-copyright: Update to the latest from
5444 gnulib's git repository.
5445 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5446 variable to 2 instead of 1.
5448 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5450 * varobj.c (c_value_of_variable): Remove dead code.
5452 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5454 * ada-lex.p (processId): Do not modify already encoded IDs.
5455 Update function documentation.
5457 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5459 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5460 "name" with "struct symbol *name_sym".
5461 * ada-exp.y (write_var_or_type): Update call to
5462 ada_find_renaming_symbol.
5463 "name" with "struct symbol *name_sym". Adjust Implementation
5464 accordingly. Adjust the function documentation.
5466 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5468 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5469 * ada-lang.c (ada_find_any_type): Add advance declaration.
5470 Make static. Replace ada_find_any_symbol by
5471 ada_find_any_type_symbol.
5472 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5473 Improve function description. Make static.
5474 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5475 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5477 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5479 * ada-lang.c (struct tag_args): Delete.
5480 (ada_get_tsd_type): Function body moved up in source file.
5481 (ada_tag_name_1, ada_tag_name_2): Delete.
5482 (ada_get_tsd_from_tag): New function.
5483 (ada_tag_name_from_tsd): New function.
5484 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5485 to determine the tag name.
5487 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5489 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5491 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5494 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5496 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5498 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5500 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5503 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5505 * ada-lang.c (constrained_packed_array_type): If there is a
5506 parallel XA type, use it to determine the array index type.
5508 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5510 * ada-valprint.c (ada_val_print_1): If our value is a reference
5511 to an array descriptor, dereference it before converting it
5514 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5516 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5517 creating fixed value.
5518 (ada_value_ind, ada_coerce_ref, assign_component)
5519 (ada_evaluate_subexp): Remove call to unwrap_value before
5520 call to ada_to_fixed_value.
5522 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5524 * ada-lang.c (to_fixed_array_type): Set result's type name.
5526 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5528 * ada-lang.c (catch_ada_exception_command_split): Add new
5529 argument cond_string. Add support for condition at end of
5530 "catch exception" commands.
5531 (ada_decode_exception_location): Add new argument cond_string.
5532 Update call to catch_ada_exception_command_split.
5533 (create_ada_exception_catchpoint): Add new argument cond_string.
5534 Set the breakpoint condition if needed.
5535 (catch_ada_exception_command): Update call to
5536 ada_decode_exception_location.
5537 (ada_decode_assert_location): Add function documentation.
5538 Add support for condition at end of "catch assert" command.
5539 (catch_assert_command): Update calls to ada_decode_assert_location
5540 and create_ada_exception_catchpoint.
5542 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5544 Fix disp-step-syscall.exp: fork: single step over fork.
5545 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5546 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5547 comment, change parameters gdbarch and ptid to regcache. Remove
5548 parameter regcache, initialize gdbarch from regcache here.
5549 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5551 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5553 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5554 'syscall'. Make the 'int' check more strict.
5556 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5558 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5559 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5560 (i386_linux_intx80_sysenter_syscall_record): ... here.
5561 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5562 Use the renamed function name.
5564 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5566 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5567 * breakpoint.c (until_break_command): Likewise.
5568 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5569 * infcall.c (call_function_by_hand): Likewise.
5570 * infcmd.c (finish_forward): Likewise.
5571 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5573 2012-02-28 Tristan Gingold <gingold@adacore.com>
5575 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5576 avoid variable assignments inside condition.
5578 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5580 Fix static analysis issue found by cppcheck.
5581 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5582 uninitialized BUF for size 2.
5584 2012-02-27 Chris Dearman <chris@mips.com>
5585 Nathan Froyd <froydnj@codesourcery.com>
5586 Maciej W. Rozycki <macro@codesourcery.com>
5588 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5589 (mips16_instruction_has_delay_slot): Likewise.
5590 (mips_segment_boundary): Likewise.
5591 (mips_adjust_breakpoint_address): Likewise.
5592 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5594 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5595 Maciej W. Rozycki <macro@codesourcery.com>
5597 * infrun.c (handle_inferior_event): Don't proceed through
5598 shared library trampolines if stepping at the machine
5601 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5603 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5606 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5608 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5609 (sh_stub_unwind_sniffer): New functions.
5610 (sh_stub_unwind): New variable.
5611 (sh_gdbarch_init): Wire everything.
5613 2012-02-27 Pedro Alves <palves@redhat.com>
5615 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5616 (linux_nat_post_attach_wait): Adjust to use
5617 linux_proc_pid_is_stopped.
5618 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5619 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5620 based on pid_is_stopped from both linux-nat.c and
5621 gdbserver/linux-low.c, and renamed.
5623 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5625 * remote.c (remote_watchpoint_addr_within_range): New function.
5626 (init_remote_ops): Use it.
5628 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5630 * target.h (target_watchpoint_addr_within_range): Document macro.
5632 2012-02-24 Pedro Alves <palves@redhat.com>
5634 * stack.c (set_last_displayed_sal): Issue internal_error instead
5635 of warning, and issue it after clearing the last displayed sal.
5637 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5638 Pedro Alves <palves@redhat.com>
5640 * breakpoint.c (until_break_command): Install breakpoints after
5641 all frame manipulations.
5643 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5645 * remote.c (remote_supports_cond_breakpoints): New forward
5647 (remote_add_target_side_condition): New function.
5648 (remote_insert_breakpoint): Add target-side breakpoint
5649 conditional if supported.
5650 (remote_insert_hw_breakpoint): Likewise.
5651 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5654 * target.c (update_current_target): Inherit
5655 to_supports_evaluation_of_breakpoint_conditions.
5656 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5658 * target.h (struct target_ops)
5659 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5660 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5662 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5663 (condition_evaluation_both, condition_evaluation_auto,
5664 condition_evaluation_host, condition_evaluation_target,
5665 condition_evaluation_enums, condition_evaluation_mode_1,
5666 condition_evaluation_mode): New static globals.
5667 (translate_condition_evaluation_mode): New function.
5668 (breakpoint_condition_evaluation_mode): New function.
5669 (gdb_evaluates_breakpoint_condition_p): New function.
5670 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5671 (mark_breakpoint_modified): New function.
5672 (mark_breakpoint_location_modified): New function.
5673 (set_condition_evaluation_mode): New function.
5674 (show_condition_evaluation_mode): New function.
5675 (bp_location_compare_addrs): New function.
5676 (get_first_location_gte_addr): New helper function.
5677 (set_breakpoint_condition): Free condition bytecode if locations
5678 has become unconditional. Call mark_breakpoint_modified (...).
5679 (condition_command): Call update_global_location_list (1) for
5681 (breakpoint_xfer_memory): Use is_breakpoint (...).
5682 (is_breakpoint): New function.
5683 (parse_cond_to_aexpr): New function.
5684 (build_target_condition_list): New function.
5685 (insert_bp_location): Handle target-side conditional
5686 breakpoints and call build_target_condition_list (...).
5687 (update_inserted_breakpoint_locations): New function.
5688 (insert_breakpoint_locations): Handle target-side conditional
5690 (bpstat_check_breakpoint_conditions): Add comment.
5691 (bp_condition_evaluator): New function.
5692 (bp_location_condition_evaluator): New function.
5693 (print_breakpoint_location): Print information on where the condition
5695 (print_one_breakpoint_location): Likewise.
5696 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5697 breakpoint location.
5698 (force_breakpoint_reinsertion): New functions.
5699 (update_global_location_list): Handle target-side breakpoint
5701 Reinsert locations that are already inserted if conditions have
5703 (bp_location_dtor): Free agent expression bytecode.
5704 (disable_breakpoint): Call mark_breakpoint_modified (...).
5705 Call update_global_location_list (...) with parameter 1 for breakpoints.
5706 (disable_command): Call mark_breakpoint_location_modified (...).
5707 Call update_global_location_list (...) with parameter 1 for breakpoints.
5708 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5709 (enable_command): mark_breakpoint_location_modified (...).
5710 (_initialize_breakpoint): Update documentation and add
5711 condition-evaluation breakpoint subcommand.
5713 * breakpoint.h: Include ax.h.
5714 (condition_list): New data structure.
5715 (condition_status): New enum.
5716 (bp_target_info) <cond_list>: New field.
5717 (bp_location) <condition_changed, cond_bytecode>: New fields.
5718 (is_breakpoint): New prototype.
5720 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5722 * remote.c (remote_state) <cond_breakpoints>: New field.
5723 (PACKET_ConditionalBreakpoints): New enum.
5724 (remote_cond_breakpoint_feature): New function.
5725 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5726 (remote_supports_cond_breakpoints): New function.
5727 (_initialize_remote): Add new packet configuration for
5728 target-side conditional breakpoints.
5730 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5732 * NEWS: Mention target-side conditional breakpoint support,
5733 new condition-evaluation breakpoint subcommand and remote
5736 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5738 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5741 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5743 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5744 (after_prologue): Remove.
5746 2012-02-23 Tom Tromey <tromey@redhat.com>
5748 * jv-valprint.c (java_val_print): Remove dead code.
5750 2012-02-23 Tristan Gingold <gingold@adacore.com>
5752 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5753 known_tasks_element and known_tasks_length fields.
5754 (read_known_tasks_array): Change argument type. Use pointer type
5755 and number of elements from DATA. Adjust.
5756 (read_known_tasks_list): Likewise.
5757 (get_known_tasks_addr): Remove.
5758 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5759 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5760 type and array length. Merge former get_known_tasks_addr code.
5762 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5765 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5766 it after set_momentary_breakpoint.
5768 2012-02-22 Sterling Augustine <saugustine@google.com>
5771 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5773 2012-02-22 Gary Benson <gbenson@redhat.com>
5775 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5776 (find_slot_in_mapped_hash): Likewise.
5778 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5781 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5782 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5783 * configure: Regenerate.
5785 2012-02-21 Tristan Gingold <gingold@adacore.com>
5786 Pedro Alves <palves@redhat.com>
5788 * ia64-tdep.c: Do not include libunwind-ia64.h.
5789 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5790 Include libunwind-ia64.h instead of libunwind.h.
5791 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5792 for libunwind.h existence.
5793 * configure, config.in: Regenerate.
5795 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5797 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5798 instead of value_rtti_target_type.
5799 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5800 instead of value_rtti_target_type.
5801 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5802 value_rtti_target_type.
5803 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5804 (value_rtti_target_type): Rename to ...
5805 (value_rtti_indirect_type): ... here and make it indirect. Update
5807 * value.c (readjust_indirect_value_type): New function.
5808 (coerce_ref): Support for enclosing type setting for references
5809 with readjust_indirect_value_type.
5810 * value.h (readjust_value_type): New declaration.
5811 (value_rtti_target_type): Rename to ...
5812 (value_rtti_indirect_type): ... here.
5814 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5816 * MAINTAINERS (Write After Approval): Add myself to the list.
5818 2012-02-20 Doug Evans <dje@google.com>
5820 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5821 Rename objfile_p_char parameter to objfilep.
5822 (build_objfile_section_table): Result is now void. All callers
5824 * objfiles.h (struct objfile): Tweak comments, whitespace.
5825 (build_objfile_section_table): Update.
5827 * elfread.c (elf_symfile_segments): Fix warning text.
5829 2012-02-20 Tom Tromey <tromey@redhat.com>
5832 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5833 particular set of file names once.
5834 (dw2_map_symbol_filenames): Likewise.
5836 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5839 * main.c (write_files): Remove the declaration.
5840 (external_editor_command): Move the declaration ...
5841 [GDBTK] (external_editor_command): ... here. Fix the comment.
5843 2012-02-20 Tom Tromey <tromey@redhat.com>
5845 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5848 2012-02-20 Tristan Gingold <gingold@adacore.com>
5850 * darwin-nat.h (enum darwin_msg_state): Add comments.
5852 2012-02-20 Tristan Gingold <gingold@adacore.com>
5854 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5857 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5859 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5860 between function description and implementation.
5862 2012-02-17 Tom Tromey <tromey@redhat.com>
5865 * python/py-event.c (event_object_getset): New global.
5866 (event_object_type): Reference it.
5867 * python/py-type.c (field_object_getset): New global.
5868 (field_object_type): Reference it.
5869 * python/python-internal.h (gdb_py_generic_dict): Declare.
5870 * python/py-utils.c (gdb_py_generic_dict): New function.
5872 2012-02-17 Tristan Gingold <gingold@adacore.com>
5874 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5876 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5878 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5879 TYPE_CALLING_CONVENTION annotation.
5881 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5883 * MAINTAINERS: Add rx to target ISA section.
5884 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5885 (ALLDEPFILES): Add rx-tdep.c.
5887 2012-02-16 Tom Tromey <tromey@redhat.com>
5889 * symfile.c (symbol_file_add_main_1): Use inferior's
5891 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5892 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5894 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5896 (follow_exec): Use inferior's symfile_flags.
5897 * inferior.h (struct inferior) <symfile_flags>: New field.
5899 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5902 * remote-sim.c (gdbsim_create_inferior): Call error() when
5903 sim_create_inferior() fails.
5905 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5907 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5909 2012-02-16 Tom Tromey <tromey@redhat.com>
5912 * thread.c (struct current_thread_cleanup) <was_removable>: New
5914 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5915 (make_cleanup_restore_current_thread): Initialize new field.
5917 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5919 * MAINTAINERS: Add rl78 to target ISA section.
5920 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5921 (ALLDEPFILES): Add rl78-tdep.c.
5922 * NEWS: Mention rl78 as a new target.
5924 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5926 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5928 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5930 2012-02-15 Tom Tromey <tromey@redhat.com>
5933 * infcmd.c (registers_info): Print just the current register's
5936 2012-02-15 Tom Tromey <tromey@redhat.com>
5938 * python/py-symbol.c (sympy_value): Use _().
5940 2012-02-15 Pedro Alves <palves@redhat.com>
5942 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5943 output to be like native targets'.
5944 (remote_pid_to_str): Special case the null ptid.
5946 2012-02-14 Stan Shebs <stan@codesourcery.com>
5948 * NEWS: Mention enable count command.
5949 * breakpoint.h (struct breakpoint): New field enable_count.
5950 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5951 (enable_breakpoint): Add arg to call.
5952 (struct disp_data): New struct.
5953 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5954 (do_map_enable_once_breakpoint): Create a struct and pass it.
5955 (do_map_enable_delete_breakpoint): Ditto.
5956 (do_map_enable_count_breakpoint): New function.
5957 (enable_count_command): New function.
5958 (bpstat_stop_status): Decrement enable_count.
5959 (print_one_breakpoint_location): Report enable count.
5960 (_initialize_breakpoint): Add enable count command.
5962 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5964 * rl78-tdep.c (reggroups.h): Include.
5965 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5966 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5967 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5968 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5969 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5970 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5971 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5972 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5973 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5974 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5975 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5976 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5977 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5978 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5979 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5980 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5981 beginning of register list.
5982 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5983 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5984 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5985 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5986 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5987 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5988 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5989 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5990 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5991 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5992 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5993 the pseudo registers. Rearrange other pseudo registers too so
5994 that the bank registers appear at the end.
5995 (rl78_register_type): Account for the fact that the byte sized
5996 bank registers are now pseudo-registers.
5997 (rl78_register_name): Rearrange the register name array. Make
5998 initial set of raw banked registers inaccessible.
5999 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6000 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6001 case for copying bytes back and forth between raw and pseudo
6002 versions of the banked registers. Update other cases to reflect
6004 (rl78_return_value): Update to account for changed names of
6006 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6007 rl78_register_sim_regno().
6009 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6011 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6012 the name parameter being passed to find_pc_partial_function().
6014 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6016 * MAINTAINERS: Step down from being ia64 target maintainer.
6018 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6020 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6021 compilation warning.
6023 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6025 Fix crash on loaded shlibs without loaded exec_bfd.
6026 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6027 (set_section_command): Replace exec_bfd by p->bfd.
6029 2012-02-10 Tom Tromey <tromey@redhat.com>
6031 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6032 when we have a C++ qualified name.
6034 2012-02-10 Pedro Alves <palves@redhat.com>
6036 * inferior.c (inferior_pid_to_str): New.
6037 (print_inferior, inferior_command): Use it.
6039 2012-02-10 Pedro Alves <palves@redhat.com>
6041 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6043 * configure: Regenerate.
6045 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6047 * linespec.c (decode_line_internal): Fix comment correctness.
6049 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
6052 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6053 * amd64bsd-nat.c: Add support for debug registers (adapted from
6055 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6056 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6057 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6058 (amd64bsd_dr_get_control): New functions.
6059 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6060 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6061 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6062 watchpoints initialization.
6063 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6065 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6067 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6069 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6071 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6073 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6075 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6077 * language.h (symbol_name_cmp_ftype): Renames
6078 symbol_name_match_p_ftype.
6079 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6080 la_get_symbol_name_match_p.
6081 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6082 ada_get_symbol_name_match_p. Update comment.
6083 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6084 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6085 Renames symbol_name_match_p. Update field type.
6086 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6087 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6088 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6089 "la_get_symbol_name_cmp" in comments.
6090 * language.c: Likewise.
6092 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6094 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6096 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6097 (amd64_sol2_gregset32_reg_offs): Likewise.
6099 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6101 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6102 of the returned BFD is allocated by GDB.
6104 2012-02-07 Tom Tromey <tromey@redhat.com>
6107 * python/python-internal.h (frame_object_type): Declare.
6108 * python/py-symbol.c (sympy_needs_frame): New function.
6109 (sympy_value): New function.
6110 (symbol_object_getset): Add "needs_frame".
6111 (symbol_object_methods): Add "value".
6112 * python/py-frame.c (frame_object_type): No longer static.
6114 2012-02-07 Tom Tromey <tromey@redhat.com>
6117 * python/py-symbol.c (sympy_line): New function.
6118 (symbol_object_getset): Add "line".
6120 2012-02-07 Tom Tromey <tromey@redhat.com>
6122 * charset.c (find_charset_names): Check 'in' against NULL.
6124 2012-02-06 Doug Evans <dje@google.com>
6126 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6127 and fields.name members from char * to const char *. All uses updated.
6128 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6129 from char * to const char *. All uses updated.
6130 (type_name_no_tag): Update.
6131 (lookup_unsigned_typename, lookup_signed_typename): Update.
6132 * gdbtypes.c (type_name_no_tag): Change result type
6133 from char * to const char *. All callers updated.
6134 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6135 name parameter from char * to const char *.
6136 * symtab.h (struct cplus_specific): Change type of demangled_name
6137 member from char * to const char *. All uses updated.
6138 (struct general_symbol_info): Change type of name and
6139 mangled_lang.demangled_name members from char * to const char *.
6141 (symbol_get_demangled_name, symbol_natural_name): Update.
6142 (symbol_demangled_name, symbol_search_name): Update.
6143 * symtab.c (symbol_get_demangled_name): Change result type
6144 from char * to const char *. All callers updated.
6145 (symbol_natural_name, symbol_demangled_name): Ditto.
6146 (symbol_search_name): Ditto.
6147 (completion_list_add_name): Change type of symname,sym_text,
6148 text,word parameters from char * to const char *.
6149 (completion_list_objc_symbol): Change type of sym_text,
6150 text,word parameters from char * to const char *.
6151 * ada-lang.c (find_struct_field): Change type of name parameter
6152 from char * to const char *.
6153 (encoded_ordered_before): Similarly for N0,N1 parameters.
6154 (old_renaming_is_invisible): Similarly for function_name parameter.
6155 (ada_type_name): Change result type from char * to const char *.
6156 All callers updated.
6157 * ada-lang.h (ada_type_name): Update.
6158 * buildsym.c (hashname): Change type of name parameter
6159 from char * to const char *.
6160 * buildsym.h (hashname): Update.
6161 * dbxread.c (end_psymtab): Change type of include_list parameter
6162 from char ** to const char **.
6163 * dwarf2read.c (determine_prefix): Change result type
6164 from char * to const char *. All callers updated.
6165 * f-lang.c (find_common_for_function): Change type of name, funcname
6166 parameters from char * to const char *.
6167 * f-lang.c (find_common_for_function): Update.
6168 * f-valprint.c (list_all_visible_commons): Change type of funcname
6169 parameters from char * to const char *.
6170 * gdbarch.sh (static_transform_name): Change type of name parameter
6171 and result from char * to const char *.
6172 * gdbarch.c: Regenerate.
6173 * gdbarch.h: Regenerate.
6174 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6175 of name parameter from char * to const char *.
6176 * jv-lang.c (java_primitive_type_from_name): Ditto.
6177 (java_demangled_signature_length): Similarly for signature parameter.
6178 (java_demangled_signature_copy): Ditto.
6179 (java_demangle_type_signature): Ditto.
6180 * jv-lang.h (java_primitive_type_from_name): Update.
6181 (java_demangle_type_signature): Update.
6182 * objc-lang.c (specialcmp): Change type of a,b parameters
6183 from char * to const char *.
6184 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6185 from char * to const char *. All callers updated.
6186 * p-lang.h (is_pascal_string_type): Update.
6187 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6188 of name parameter from char * to const char *.
6189 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6190 * utils.c (fprintf_symbol_filtered): Ditto.
6191 * defs.h (fprintf_symbol_filtered): Update.
6192 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6193 * stabsread.h (end_psymtab): Update.
6194 * stack.c (find_frame_funname): Change type of funname parameter
6195 from char ** to const char **.
6196 * stack.h (find_frame_funname): Update.
6197 * typeprint.c (type_print): Change type of varstring parameter
6198 from char * to const char *.
6199 * value.h (type_print): Update.
6200 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6201 from char * to const char *. All callers updated.
6202 (xcoff_end_psymtab): Change type of include_list parameter
6203 from char ** to const char **. All callers updated.
6204 (swap_sym): Similarly for name parameter. All callers updated.
6205 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6207 (process_coff_symbol): Use xstrdup.
6208 * stabsread.c (stabs_method_name_from_physname): Renamed from
6209 update_method_name_from_physname. Change result type from void
6210 to char *. All callers updated.
6211 (read_member_functions): In has_destructor case, store name in objfile
6212 obstack instead of malloc space. In !has_stub case, fix mem leak.
6214 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6216 * configure: Rebuild.
6217 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6220 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6222 * configure.tgt (rl78-*-elf): New target.
6223 * rl78-tdep.c: New file.
6225 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6227 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6228 and continue the loop. Add QUIT statement.
6230 2012-02-03 Tom Tromey <tromey@redhat.com>
6233 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6234 bfd_lookup_symbol_from_symtab.
6235 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6236 gdb_bfd_lookup_symbol_from_symtab.
6238 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6240 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6241 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6242 symbol. Add assertion that sym2 is never NULL.
6244 2012-02-02 Doug Evans <dje@google.com>
6246 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6247 "name" parameter to const char ** from char **. All callers updated.
6248 (find_pc_partial_function): Ditto.
6249 (cache_pc_function_name): Change type to const char * from char *.
6250 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6251 (find_pc_partial_function): Update.
6252 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6253 type of "name" parameter to const char * from char *.
6255 * arch-utils.c (generic_in_solib_return_trampoline): Change
6256 type of "name" parameter to const char * from char *.
6257 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6258 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6259 type of "name" parameter to const char * from char *.
6260 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6261 * gdbarch.c: Regenerate.
6262 * gdbarch.h: Regenerate.
6263 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6264 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6265 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6266 type of "name" parameter to const char * from char *.
6267 * skip.c (skip_function_pc): Ditto.
6268 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6269 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6270 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6271 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6272 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6273 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6274 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6275 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6276 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6278 2012-02-02 Pedro Alves <palves@redhat.com>
6280 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6281 the current inferior has no execution. Make sure the current
6282 remote process matches gdb's current inferior.
6284 2012-02-02 Tom Tromey <tromey@redhat.com>
6287 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6290 2012-02-02 Tom Tromey <tromey@redhat.com>
6293 * symtab.c (lookup_language_this): Set block_found.
6295 2012-02-01 Tom Tromey <tromey@redhat.com>
6298 * jit.c (struct jit_inferior_data): Rewrite.
6299 (struct jit_objfile_data): New.
6300 (get_jit_objfile_data): New function.
6301 (add_objfile_entry): Update.
6302 (jit_read_descriptor): Return int. Replace descriptor_addr
6303 argument with inf_data. Update. Don't call error.
6304 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6306 (jit_inferior_init): Don't look up descriptor. Don't call error.
6307 (jit_reset_inferior_data_and_breakpoints)
6308 (jit_inferior_created_observer): Remove.
6309 (jit_inferior_exit_hook): Update.
6310 (jit_executable_changed_observer): Remove.
6311 (jit_event_handler): Update.
6312 (free_objfile_data): Reset inferior data if needed.
6313 (_initialize_jit): Update.
6315 2012-02-01 Tom Tromey <tromey@redhat.com>
6317 * jit.c (bfd_open_from_target_memory): Move higher in file.
6319 2012-02-01 Tristan Gingold <gingold@adacore.com>
6321 * libunwind-frame.c (libunwind_load): Display message if dlopen
6324 2012-02-01 Gary Benson <gbenson@redhat.com>
6326 * symtab.h (symbol_found_callback_ftype): New typedef.
6327 (iterate_over_symbols): Use the above.
6328 * symtab.c (iterate_over_symbols): Likewise.
6329 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6330 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6331 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6332 (iterate_name_matcher): Document return values.
6333 (collect_one_symbol): Likewise.
6334 (collect_function_symbols): Likewise.
6335 (collect_symbols): Likewise.
6337 2012-02-01 Tom Tromey <tromey@redhat.com>
6339 * ada-lang.c (resolve_subexp): Update.
6340 (ada_lookup_symbol_list): Add 'full_search' argument.
6341 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6342 ada_lookup_symbol_list.
6343 (ada_lookup_encoded_symbol): Update.
6344 (get_var_value): Update.
6345 * ada-exp.y (block_lookup): Update.
6346 (write_var_or_type): Update.
6347 (write_name_assoc): Update.
6348 * ada-lang.h (ada_lookup_symbol_list): Update.
6350 2012-01-31 Tom Tromey <tromey@redhat.com>
6352 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6355 2012-01-31 Doug Evans <dje@google.com>
6357 * symtab.h: Remove outdated comment.
6358 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6360 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6362 Fix build error in Darwin port.
6363 * i386-darwin-nat.c: Include i386-nat.h.
6365 2012-01-30 Tom Tromey <tromey@redhat.com>
6367 PR breakpoints/13568:
6368 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6369 argument. Check for recursive includes.
6370 (dwarf_decode_macros): Create an include hash.
6372 2012-01-30 Michael Eager <eager@eagercon.com>
6374 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6375 * ppc-linux-tdep.c: Include glibc-tdep.h.
6376 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6377 (powerpc_linux_in_plt_stub): New function.
6378 (powerpc_linux_in_dynsym_resolve_code): New function.
6379 (ppc_skip_trampoline_code): New function.
6380 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6381 Use glibc_skip_solib_resolver.
6383 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6385 Code cleanup: Make 1440 bytes of data segment read-only.
6386 * arch-utils.c (endian_enum): Make it const char *const [].
6387 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6389 * breakpoint.c (always_inserted_enums): Likewise.
6390 * cli/cli-cmds.c (script_ext_enums): Likewise.
6391 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6392 enumlist parameter const char *const *.
6393 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6394 const char *const *.
6395 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6396 parameter const char *const *.
6397 * cris-tdep.c (cris_modes): Make it const char *const [].
6398 * filesystem.c (target_file_system_kinds): Likewise.
6399 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6400 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6401 (can_use_displaced_stepping_enum, scheduler_enums)
6402 (exec_direction_names): Likewise.
6403 * language.c (_initialize_language): Make the type_or_range_names and
6404 case_sensitive_names variables const char *const [].
6405 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6406 * python/python.c (python_excp_enums): Likewise.
6407 * remote.c (interrupt_sequence_modes): Likewise.
6408 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6409 * serial.c (logbase_enums): Likewise.
6410 * sh-tdep.c (sh_cc_enum): Likewise.
6411 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6413 * symtab.c (multiple_symbols_modes): Likewise.
6414 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6416 * utils.c (internal_problem_modes): Likewise.
6418 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6420 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6421 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6424 2012-01-27 Doug Evans <dje@google.com>
6426 * configure.ac (with_python): Fix absolute path handling for win32.
6427 * configure: Regenerate.
6429 2012-01-26 Doug Evans <dje@google.com>
6431 * symtab.c: Whitespace cleanup, no code changes.
6433 * symtab.c (lookup_symbol_in_language): Improve comment.
6434 (lookup_symbol_aux): Fix comment.
6436 * psymtab.c (add_psymbol_to_list): Result is now "void".
6437 * psympriv.h (add_psymbol_to_list): Update.
6439 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6441 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6443 Do not open script filenames twice.
6444 * cli/cli-cmds.c (source_script_from_stream): Pass to
6445 source_python_script also STREAM.
6446 * python/py-auto-load.c (source_section_scripts): Pass to
6447 source_python_script_for_objfile also STREAM.
6448 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6450 * python/python-internal.h (source_python_script_for_objfile): New
6451 parameter file, rename parameter file to filename.
6452 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6453 instead if !_WIN32. Update the function comment.
6454 (source_python_script, source_python_script_for_objfile)
6455 (source_python_script): New parameter file, rename parameter file to
6456 filename. Pass FILENAME to python_run_simple_file.
6457 * python/python.h (source_python_script): New parameter file, rename
6458 parameter file to filename.
6460 2012-01-26 Pedro Alves <palves@redhat.com>
6462 * corelow.c (core_has_fake_pid): Delete.
6463 (core_close): Delete references to `core_has_fake_pid'.
6464 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6465 (core_open): Delete references to `core_has_fake_pid'.
6466 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6469 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6471 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6472 Remove language parameter from name_matcher. Adjust the comment.
6473 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6474 Remove language parameter.
6475 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6476 * linespec.c (iterate_name_matcher): Likewise.
6477 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6478 name_matcher. Adjust call accordingly.
6479 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6480 (maintenance_check_symtabs): Adjust type of parameter "fun".
6481 * psymtab.h (maintenance_check_symtabs): Likewise.
6483 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6485 * language.h (symbol_name_match_p_ftype): New typedef.
6486 (struct language_defn): Replace field la_symbol_name_compare
6487 by la_get_symbol_name_match_p.
6488 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6489 (ada_language_defn): Use it.
6490 * linespec.c (struct symbol_matcher_data): New type.
6491 (iterate_name_matcher): Rewrite.
6492 (iterate_over_all_matching_symtabs): Pass a pointer to
6493 a symbol_matcher_data struct to expand_symtabs_matching
6494 instead of just the lookup name.
6495 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6496 opencl-lang.c, p-lang.c, language.c: Delete field
6497 la_symbol_name_compare, and replace by NULL for new field
6498 la_get_symbol_name_match_p.
6499 * symfile.h (struct quick_symbol_functions): Update comment.
6501 2012-01-25 Tom Tromey <tromey@redhat.com>
6503 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6506 2012-01-24 Tom Tromey <tromey@redhat.com>
6509 * solib.c (update_solib_list): Update the program space's
6510 added_solibs and deleted_solibs fields.
6511 * progspace.h (struct program_space) <added_solibs,
6512 deleted_solibs>: New fields.
6513 (clear_program_space_solib_cache): Declare.
6514 * progspace.c (release_program_space): Call
6515 clear_program_space_solib_cache.
6516 (clear_program_space_solib_cache): New function.
6517 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6518 bpstat_stop_status. Use handle_solib_event.
6519 * breakpoint.c: Include gdb_regex.h.
6520 (print_solib_event): New function.
6521 (bpstat_print): Use print_solib_event.
6522 (bpstat_stop_status): Add special case for bp_shlib_event.
6523 (handle_solib_event): New function.
6524 (bpstat_what): Use handle_solib_event.
6525 (struct solib_catchpoint): New.
6526 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6527 (breakpoint_hit_catch_solib, check_status_catch_solib)
6528 (print_it_catch_solib, print_one_catch_solib)
6529 (print_mention_catch_solib, print_recreate_catch_solib): New
6531 (catch_solib_breakpoint_ops): New global.
6532 (catch_load_or_unload, catch_load_command_1)
6533 (catch_unload_command_1): New functions.
6534 (internal_bkpt_check_status): Add special case for
6536 (internal_bkpt_print_it): Use print_solib_event.
6537 (initialize_breakpoint_ops): Initialize
6538 catch_solib_breakpoint_ops.
6539 (_initialize_breakpoint): Register "catch load" and "catch
6541 * breakpoint.h (handle_solib_event): Declare.
6542 * NEWS: Add entry for "catch load" and "catch unload".
6544 2012-01-24 Tom Tromey <tromey@redhat.com>
6546 * ada-lang.c: Include gdb_vecs.h.
6547 * charset.c: Include gdb_vecs.h.
6548 * tracepoint.h: Include gdb_vecs.h.
6549 * gdb_vecs.h: New file.
6551 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6553 * breakpoint.c (breakpoint_hit_catch_fork)
6554 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6555 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6556 * infrun.c (inferior_has_forked, inferior_has_vforked)
6557 (inferior_has_execd, inferior_has_called_syscall): Delete.
6558 (handle_syscall_event): Get syscall_number from the execution
6559 control state's wait status.
6560 (wait_for_inferior): Don't clear syscall_number.
6562 2012-01-24 Pedro Alves <palves@redhat.com>
6564 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6565 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6566 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6567 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6569 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6570 false for events other than TARGET_SIGNAL_TRAP.
6571 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6573 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6574 events other than TARGET_SIGNAL_TRAP.
6575 (tracepoint_breakpoint_hit): Add `ws' parameter.
6576 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6578 (bpstat_stop_status): Same.
6579 (pc_at_non_inline_function): Same.
6580 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6581 to pass the current event's waitstatus to bpstat_stop_status
6582 and pc_at_non_inline_function.
6584 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6587 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6588 Update the function comment for it.
6589 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6590 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6593 2012-01-24 Pedro Alves <palves@redhat.com>
6595 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6596 outside `bs->stop' block.
6597 (bpstat_what): Rework bp_shlib_event handling.
6598 (internal_bkpt_check_status): If the breakpoint is a
6599 bp_shlib_event, then set bs->stop and bs->print if
6600 stop_on_solib_events is set.
6602 2012-01-24 Gary Benson <gbenson@redhat.com>
6604 Delete #if 0'd out code.
6605 * stack.c (print_frame_label_vars): Remove.
6606 (catch_info): Likewise.
6607 (_initialize_stack): Remove "info catch" command.
6608 * NEWS: Mention the above.
6610 2012-01-24 Pedro Alves <palves@redhat.com>
6612 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6614 (remote_notice_new_inferior): If the remote end doesn't support
6615 the multiprocess extensions, then the PID is fake.
6616 (add_current_inferior_and_thread): New.
6617 (remote_start_remote): Use it.
6618 (extended_remote_attach_1): Adjust.
6619 (extended_remote_create_inferior_1): Use
6620 add_current_inferior_and_thread.
6622 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6624 Fix watchpoints to be specific for each inferior.
6625 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6626 current_program_space.
6627 * i386-nat.c (i386_inferior_data_cleanup): New.
6628 (i386_inferior_data_get): Replace variable inf_data_local by an
6630 (i386_use_watchpoints): Initialize i386_inferior_data.
6631 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6632 specific iterate_over_lwps.
6634 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6636 Fix watchpoints across inferior fork.
6637 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6638 comment for linux_nat_iterate_watchpoint_lwps.
6639 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6640 linux_nat_iterate_watchpoint_lwps.
6641 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6642 * i386-linux-nat.c (update_debug_registers_callback): Update the
6643 comment for linux_nat_iterate_watchpoint_lwps.
6644 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6645 linux_nat_iterate_watchpoint_lwps.
6646 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6647 * i386-nat.c: Include inferior.h.
6648 (dr_mirror): Remove.
6649 (i386_inferior_data, struct i386_inferior_data)
6650 (i386_inferior_data_get): New.
6651 (i386_debug_reg_state): Use i386_inferior_data_get.
6652 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6653 (i386_insert_watchpoint, i386_remove_watchpoint)
6654 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6655 (i386_remove_hw_breakpoint): New variable state, use
6656 i386_debug_reg_state instead of DR_MIRROR.
6657 * linux-nat.c (delete_lwp): New declaration.
6658 (num_lwps): Move here from downwards.
6659 (delete_lwp_cleanup): New.
6660 (linux_child_follow_fork): Create new child_lp, call
6661 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6663 (num_lwps): Move upwards.
6664 (linux_nat_iterate_watchpoint_lwps): New.
6665 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6666 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6668 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6672 2012-01-23 Pedro Alves <palves@redhat.com>
6674 * top.c (caution): Rename to ...
6675 (confirm): ... this.
6676 (show_caution): Rename to ...
6677 (show_confirm): ... this.
6678 (quit_cover): Adjust.
6679 (init_main): Adjust.
6680 * top.h (caution): Rename to ...
6681 (confirm): ... this.
6682 * utils.c (internal_vproblem, defaulted_query): Adjust.
6684 2012-01-23 Pedro Alves <palves@redhat.com>
6686 * top.c (caution): Update comment.
6687 (execute_command): Don't consider the current value of `caution'.
6689 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6691 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6693 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6695 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6696 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6697 * target.c (target_fileio_pwrite): Remove buffer address from
6699 (target_fileio_pread): Likewise.
6701 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6703 * NEWS: Document remote "info proc" and "generate-core-file".
6705 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6707 * gdbarch.sh (find_memory_regions): New callback.
6708 * gdbarch.c, gdbarch.h: Regenerate.
6710 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6711 callback before falling back to target method.
6713 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6714 (linux_target_install_ops): No longer install it.
6716 * linux-tdep.c (linux_find_memory_regions): New function.
6717 (linux_init_abi): Install it.
6719 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6721 * gdbarch.sh (make_corefile_notes): New architecture callback.
6722 * gdbarch.c: Regenerate.
6723 * gdbarch.h: Likewise.
6725 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6726 before target_make_corefile_notes. If NULL is returned, the
6727 target does not support core file generation.
6729 * linux-nat.c: Include "linux-tdep.h".
6730 (find_signalled_thread, find_stop_signal): Remove.
6731 (linux_nat_do_thread_registers): Likewise.
6732 (struct linux_nat_corefile_thread_data): Likewise.
6733 (linux_nat_corefile_thread_callback): Likewise.
6734 (iterate_over_spus): Likewise.
6735 (struct linux_spu_corefile_data): Likewise.
6736 (linux_spu_corefile_callback): Likewise.
6737 (linux_spu_make_corefile_notes): Likewise.
6738 (linux_nat_collect_thread_registers): New function.
6739 (linux_nat_make_corefile_notes): Replace contents by call to
6740 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6741 as native-only callback.
6743 * linux-tdep.h: Include "bfd.h".
6744 (struct regcache): Add forward declaration.
6745 (linux_collect_thread_registers_ftype): New typedef.
6746 (linux_make_corefile_notes): Add prototype.
6747 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6748 "regset.h", and "elf-bfd.h".
6749 (find_signalled_thread, find_stop_signal): New functions.
6750 (linux_spu_make_corefile_notes): Likewise.
6751 (linux_collect_thread_registers): Likewise.
6752 (struct linux_corefile_thread_data): New data structure.
6753 (linux_corefile_thread_callback): New funcion.
6754 (linux_make_corefile_notes): Likewise.
6755 (linux_make_corefile_notes_1): Likewise.
6756 (linux_init_abi): Install it.
6758 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6760 * gdbarch.sh (info_proc): New callback.
6761 * gdbarch.c, gdbarch.h: Regenerate.
6763 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6764 before falling back to the target info_proc callback.
6766 * linux-nat.c: Do not include "cli/cli-utils.h".
6767 (linux_nat_info_proc): Remove.
6768 (linux_target_install_ops): No longer install it.
6770 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6771 (read_mapping): New function.
6772 (linux_info_proc): Likewise.
6773 (linux_init_abi): Install it.
6775 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6777 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6778 * infcmd.c: (info_proc_cmd_1): New function.
6779 (info_proc_cmd): New function, moved here from equivalent routine
6780 orignally in linux-nat.c.
6781 (info_proc_cmd_mappings): Likewise.
6782 (info_proc_cmd_stat): Likewise.
6783 (info_proc_cmd_status): Likewise.
6784 (info_proc_cmd_cwd): Likewise.
6785 (info_proc_cmd_cmdline): Likewise.
6786 (info_proc_cmd_exe): Likewise.
6787 (info_proc_cmd_all): Likewise.
6788 (_initialize_infcmd): Install "info proc" command and subcommands.
6790 * target.h (struct target_ops): Add to_info_proc.
6791 (target_info_proc): Add prototype.
6792 * target.c (target_info_proc): New function.
6794 * procfs.c (procfs_info_proc): Add prototype.
6795 (info_proc_cmd): Rename into ...
6796 (procfs_info_proc): ... this. Update argument types as appropriate
6797 for a to_info_proc implementation. Handle "what" argument.
6798 (procfs_target): Install procfs_info_proc.
6799 (_initialize_procfs): No longer install "info proc" command.
6801 * linux-nat.c: (enum info_proc_what): Remove.
6802 (linux_nat_info_proc_cmd_1): Rename into ...
6803 (linux_nat_info_proc): ... this. Update argument types as appropriate
6804 for a to_info_proc implementation.
6805 (linux_nat_info_proc_cmd): Remove.
6806 (linux_nat_info_proc_cmd_mappings): Likewise.
6807 (linux_nat_info_proc_cmd_stat): Likewise.
6808 (linux_nat_info_proc_cmd_status): Likewise.
6809 (linux_nat_info_proc_cmd_cwd): Likewise.
6810 (linux_nat_info_proc_cmd_cmdline): Likewise.
6811 (linux_nat_info_proc_cmd_exe): Likewise.
6812 (linux_nat_info_proc_cmd_all): Likewise.
6813 (linux_target_install_ops): Install linux_nat_info_proc.
6814 (_initialize_linux_nat): No longer install "info proc" command
6817 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6819 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6820 * config.in, configure: Regenerate.
6822 * target.h (struct target_ops): Add to_fileio_readlink.
6823 (target_fileio_readlink): Add prototype.
6824 * target.c (target_fileio_readlink): New function.
6826 * inf-child.c: Conditionally include <sys/param.h>.
6827 (inf_child_fileio_readlink): New function.
6828 (inf_child_target): Install it.
6830 * remote.c (PACKET_vFile_readlink): New enum value.
6831 (remote_hostio_readlink): New function.
6832 (init_remote_ops): Install it.
6833 (_initialize_remote): Handle vFile:readlink packet type.
6835 2012-01-20 Pedro Alves <palves@redhat.com>
6836 Ulrich Weigand <ulrich.weigand@linaro.org>
6838 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6839 * config.in, configure: Regenerate.
6841 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6842 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6843 (target_fileio_open): Add prototype.
6844 (target_fileio_pwrite): Likewise.
6845 (target_fileio_pread): Likewise.
6846 (target_fileio_close): Likewise.
6847 (target_fileio_unlink): Likewise.
6848 (target_fileio_read_alloc): Likewise.
6849 (target_fileio_read_stralloc): Likewise.
6851 * target.c: Include "gdb/fileio.h".
6852 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6853 (default_fileio_target): New function.
6854 (target_fileio_open): Likewise.
6855 (target_fileio_pwrite): Likewise.
6856 (target_fileio_pread): Likewise.
6857 (target_fileio_close): Likewise.
6858 (target_fileio_unlink): Likewise.
6859 (target_fileio_close_cleanup): Likewise.
6860 (target_fileio_read_alloc_1): Likewise.
6861 (target_fileio_read_alloc): Likewise.
6862 (target_fileio_read_stralloc): Likewise.
6864 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6865 <fcntl.h>, and <unistd.h>.
6866 (inf_child_fileio_open_flags_to_host): New function.
6867 (inf_child_errno_to_fileio_error): Likewise.
6868 (inf_child_fileio_open): Likewise.
6869 (inf_child_fileio_pwrite): Likewise.
6870 (inf_child_fileio_pread): Likewise.
6871 (inf_child_fileio_close): Likewise.
6872 (inf_child_fileio_unlink): Likewise.
6873 (inf_child_target): Install to_fileio routines.
6875 * remote.c (init_remote_ops): Install to_fileio routines.
6877 2012-01-20 Pedro Alves <palves@redhat.com>
6878 Ulrich Weigand <ulrich.weigand@linaro.org>
6880 * remote.c (remote_multi_process_p): Only check for multi-process
6881 protocol feature, do not check for extended protocol.
6882 (remote_supports_multi_process): Check for extended protocol here.
6883 (set_general_process): Likewise.
6884 (extended_remote_kill): Likewise.
6885 (remote_pid_to_str): Likewise.
6886 (remote_query_supported): Always query multiprocess mode.
6888 2012-01-20 Pedro Alves <palves@redhat.com>
6889 Ulrich Weigand <ulrich.weigand@linaro.org>
6891 * inferior.h (struct inferior): Add fake_pid_p.
6892 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6893 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6894 magic_null_ptid since the remote side doesn't provide a real PID.
6896 2012-01-19 Tom Tromey <tromey@redhat.com>
6898 * NEWS: Combine the two Python sections.
6900 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6902 * target.h (target_close): Update comment on the target's unpush state.
6904 2012-01-19 Pedro Alves <palves@redhat.com>
6906 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6907 linux_nat_async directly instead of going through the target
6909 * target.c (unpush_target): Close target after unpushing it, not
6912 2012-01-19 Gary Benson <gbenson@redhat.com>
6914 * mdebugread.c (sort_blocks): Replace integer constants with ones
6915 derived from FIRST_LOCAL_BLOCK.
6917 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6918 Jan Kratochvil <jan.kratochvil@redhat.com>
6921 * symfile.c (find_separate_debug_file): New function.
6922 (terminate_after_last_dir_separator): Likewise.
6923 (find_separate_debug_file_by_debuglink): Also try realpath.
6924 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6925 * configure: Regenerate.
6926 * config.in: Regenerate.
6928 2012-01-18 Doug Evans <dje@google.com>
6930 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6931 (main.o): Remove rule.
6932 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6933 (--with-sysroot): Rewrite.
6934 * configure: Regenerate.
6935 * config.in: Regenerate.
6937 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6939 * parse.c (initialize_expout): New function.
6940 (reallocate_expout): Likewise.
6941 (parse_exp_in_context): Use `initialize_expout' and
6942 `reallocate_expout' when appropriate.
6944 2012-01-18 Pedro Alves <palves@redhat.com>
6946 * record.c (struct record_breakpoint, record_breakpoint_p)
6947 (record_breakpoints): New.
6948 (record_insert_breakpoint, record_remove_breakpoint): Manage
6949 record breakpoints list. Only remove breakpoints from the
6950 inferior if they had been inserted there in the first place.
6952 2012-01-17 Doug Evans <dje@google.com>
6954 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6955 if we know we don't have a file name to look for.
6957 2012-01-17 Pedro Alves <palves@redhat.com>
6959 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6960 the frame's stop reason is UNWIND_UNAVAILABLE.
6962 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6964 Fix compilation error.
6965 * m2-exp.y (yyerror): Use ANSI C prototype.
6967 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6969 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6970 (growbuf_by_size): Likewise.
6971 (yyerror): Likewise.
6972 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6973 (modblock): Remove variable (was #if 0'ed).
6974 (parse_number): Convert prototype from K&R to ANSI C.
6975 (yyerror): Likewise.
6976 * objc-exp.y (parse_number): Likewise.
6977 (yyerror): Likewise.
6978 (yylex): Remove #if 0'ed code.
6979 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6980 (yyerror): Likewise.
6982 2012-01-16 Tom Tromey <tromey@redhat.com>
6985 * symtab.h (compare_filenames_for_search): Declare.
6986 * symtab.c (compare_filenames_for_search): New function.
6987 (iterate_over_some_symtabs): Use it.
6988 * symfile.h (struct quick_symbol_functions)
6989 <map_symtabs_matching_filename>: Change spec.
6990 * psymtab.c (partial_map_symtabs_matching_filename): Use
6991 compare_filenames_for_search. Update for new spec.
6992 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6993 compare_filenames_for_search. Update for new spec.
6994 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6996 2012-01-16 Tom Tromey <tromey@redhat.com>
6999 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7000 (struct main_type) <flag_flag_enum>: New field.
7001 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7002 * NEWS: Add entries.
7003 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7005 * python/lib/gdb/printing.py (_EnumInstance): New class.
7006 (FlagEnumerationPrinter): Likewise.
7008 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7010 * breakpoint.c (create_sals_from_address_default): New function.
7011 (create_breakpoints_sal_default): Likewise.
7012 (decode_linespec_default): Likewise.
7013 (is_marker_spec): Removed.
7014 (strace_marker_p): New function.
7015 (init_breakpoint_sal): Using `strace_marker_p' instead of
7017 (create_breakpoint): Call method `create_sals_from_address' from
7018 breakpoint_ops, replacing code that created SALs conditionally
7019 on the type of the breakpoint. Call method `create_breakpoints_sal',
7020 replacing code that created breakpoints conditionally on the type
7022 (base_breakpoint_create_sals_from_address): New function.
7023 (base_breakpoint_create_breakpoints_sal): Likewise.
7024 (base_breakpoint_decode_linespec): Likewise.
7025 (base_breakpoint_ops): Add methods
7026 `base_breakpoint_create_sals_from_address',
7027 `base_breakpoint_create_breakpoints_sal' and
7028 `base_breakpoint_decode_linespec'.
7029 (bkpt_create_sals_from_address): New function.
7030 (bkpt_create_breakpoints_sal): Likewise.
7031 (bkpt_decode_linespec): Likewise.
7032 (tracepoint_create_sals_from_address): Likewise.
7033 (tracepoint_create_breakpoints_sal): Likewise.
7034 (tracepoint_decode_linespec): Likewise.
7035 (strace_marker_create_sals_from_address): Likewise.
7036 (strace_marker_create_breakpoints_sal): Likewise.
7037 (strace_marker_decode_linespec): Likewise.
7038 (strace_marker_breakpoint_ops): New variable.
7039 (addr_string_to_sals): Remove `marker_spec'. Call method
7040 `decode_linespec' from breakpoint_ops, replacing code that decoded
7041 an address string into a SAL. Use `strace_marker_p' instead of
7043 (strace_command): Decide whether we are dealing with a static
7044 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7045 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7046 * breakpoint.h (linespec_result, linespec_sals): New forward
7048 (breakpoint_ops) <create_sals_from_address>,
7049 <create_breakpoints_sal>, <decode_linespec>: New methods.
7051 2012-01-14 Doug Evans <dje@google.com>
7053 * NEWS: Update text for "maint set python print-stack".
7054 It is deprecated in gdb 7.4 and deleted in 7.5.
7056 2012-01-13 Eli Zaretskii <eliz@gnu.org>
7058 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7061 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7063 * configure: Regenerate.
7064 * config.in: Regenerate.
7066 2012-01-12 Keith Seitz <keiths@redhat.com>
7069 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7070 (ANONYMOUS_UNION_NAME): Define.
7071 (is_path_expr_parent): New function.
7072 (get_path_expr_parent): New function.
7073 (is_anonymous_child): New function.
7074 (create_child_with_value): If the child is anonymous and without
7075 a name, assign an object name to it.
7076 (c_describe_child): Use get_path_expr_parent to determine
7077 the parent expression.
7078 If there field represents an anonymous struct or union and
7079 has no name, set an appropriate display name and expression.
7080 (cplus_describe_child): Likewise.
7082 2012-01-12 Pedro Alves <palves@redhat.com>
7084 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7085 available when %ebp is found to be zero (outermost).
7087 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
7089 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7090 an internal gdb_static_assert.
7091 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7093 2012-01-11 Tom Tromey <tromey@redhat.com>
7096 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7097 catch" and "catch throw".
7099 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7101 * blockframe.c (block_innermost_frame): Start search from selected
7102 frame, if present, or otherwise the current frame.
7104 * c-exp.y (variable): Update innermost_block for
7105 'block COLONCOLON NAME' clause.
7106 * m2-exp.y (variable): Ditto.
7107 * objc-exp.y (variable): Ditto.
7109 2012-01-10 Tom Tromey <tromey@redhat.com>
7112 * python/python.c (finish_python_initialization): Set sys.argv.
7114 2012-01-10 Doug Evans <dje@google.com>
7116 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7117 "want_line_info". All callers updated.
7118 (dwarf_decode_lines_1): New function.
7119 (handle_DW_AT_stmt_list): Add function comment.
7120 New arg "want_line_info". All callers updated.
7121 (read_file_scope,read_type_unit_scope): Move comment from
7122 handle_DW_AT_stmt_list to here.
7124 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7126 Fix regression after libiberty/ update for GCC PR 6057 and others.
7127 * c-exp.y (operator) <OPERATOR DELETE>
7128 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7129 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7130 (make_builtin_type, make_name): New variable i, add gdb_assert.
7131 (operator) <OPERATOR NEW>: Update ARGS to 3.
7132 (operator) <OPERATOR DELETE>: Add trailing space.
7133 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7134 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7135 * cp-support.c (cp_canonicalize_string): Check NULL from
7136 cp_comp_to_string, call warning and return.
7138 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7140 Fix duplicate .o files after omitting libbfd.a.
7141 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7142 (SFILES): Add corelow.c.
7143 (COMMON_OBS): Add corelow.o.
7144 (ALLDEPFILES): Remove corelow.c.
7145 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7146 * config/alpha/alpha-osf3.mh: Likewise.
7147 * config/alpha/fbsd.mh: Likewise.
7148 * config/arm/nbsdaout.mh: Likewise.
7149 * config/arm/nbsdelf.mh: Likewise.
7150 * config/i386/i386gnu.mh: Likewise.
7151 * config/ia64/hpux.mh: Likewise.
7152 * config/ia64/linux.mh: Likewise.
7153 * config/m32r/linux.mh: Likewise.
7154 * config/m68k/linux.mh: Likewise.
7155 * config/mips/irix5.mh: Likewise.
7156 * config/mips/irix6.mh: Likewise.
7157 * config/pa/hpux.mh: Likewise.
7158 * config/pa/linux.mh: Likewise.
7159 * config/powerpc/aix.mh: Likewise.
7160 * config/sparc/linux.mh: Likewise.
7161 * config/sparc/linux64.mh: Likewise.
7162 * config/sparc/sol2.mh: Likewise.
7163 * config/vax/vax.mh: Likewise.
7164 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7165 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7166 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7167 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7168 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7169 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7170 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7171 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7172 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7173 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7174 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7175 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7176 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7177 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7178 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7179 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7180 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7181 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7182 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7183 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7184 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7185 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7186 corelow.o from gdb_target_obs.
7187 * corefile.c (core_target): Update the comment on NULL value.
7188 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7189 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7190 MATCHES. Drop YUMMY set on NULL.
7191 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7192 reclaim CORE_DATA if it is already NULL.
7194 2012-01-09 Doug Evans <dje@google.com>
7196 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7197 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7199 2012-01-09 Keith Seitz <keiths@redhat.com>
7201 * breakpoint.c (wrapper.h): Don't include.
7203 2012-01-09 Keith Seitz <keiths@redhat.com>
7205 * Makefile.in (SFILES): Remove wrapper.c.
7206 (HFILES_NO_SRCDIR): Remove wrapper.h.
7207 (COMMON_OBS): Remove wrapper.o.
7208 * cli/cli-interp.c: Don't inlude wrapper.h.
7209 * corelow.c: Likewise.
7210 (core_open): Replace gdb_target_find_new_threads with
7211 TRY_CATCH around target_find_new_threads.
7212 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7213 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7214 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7215 evaluate_expression.
7216 (varobj_set_value): Likewise for evaluate_expression and
7218 (install_new_variable): Likewise for value_fetch_lazy.
7219 (adjust_value_for_child_access): Likewise for value_ind.
7220 (c_describe_child): Likewise for value_subscript and
7222 (c_value_of_root): Likewise for evaluate_expression.
7223 * wrapper.c: Remove.
7224 * wrapper.h: Remove.
7226 2012-01-09 Doug Evans <dje@google.com>
7228 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7229 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7230 "abfd" args with "section". All callers updated.
7231 Error checking code moved ...
7232 (error_check_comp_unit_head): ... here. New function.
7233 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7234 Delete arg "abfd". New arg "type_offset". All callers updated.
7235 (create_debug_types_hash_table): Simplify by using
7236 read_and_check_type_unit_head.
7238 * parser-defs.h (namecopy): Delete.
7239 * parse.c (namecopy, namecopy_size): Move into copy_name.
7241 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7243 Partially fix duplicate .o files after omitting libbfd.a.
7244 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7245 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7246 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7247 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7248 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7249 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7250 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7252 2012-01-09 Pedro Alves <palves@redhat.com>
7254 * MAINTAINERS: Update my email address.
7256 2012-01-08 Doug Evans <dje@google.com>
7258 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7259 n_type_units. Rename type_comp_units to all_type_units.
7261 (add_signatured_type_cu_to_table): Renamed from
7262 add_signatured_type_cu_to_list. All callers updated.
7264 * gdbtypes.h (struct cplus_struct_type): Delete member
7265 nfn_fields_total. All uses removed.
7267 2012-01-06 Doug Evans <dje@google.com>
7269 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7271 (dwarf2_find_comp_unit): Delete.
7272 (process_psymtab_comp_unit): Make result "void".
7273 Delete args buffer, info_ptr, buffer_size, and replace with
7274 "section". All callers updated.
7275 (dwarf2_build_psymtabs_hard): Simplify.
7277 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7278 Thiago Jung Bauermann <bauerman@br.ibm.com>
7280 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7281 before `struct gdb_exception'.
7282 * breakpoint.c (update_global_location_list_nothrow)
7283 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7284 * cp-abi.c (value_rtti_type): Likewise.
7285 * cp-support.c (cp_validate_operator): Likewise.
7286 * infrun.c (insert_exception_resume_breakpoint)
7287 (check_exception_resume, keep_going): Likewise.
7288 * mi-interp.c (mi_breakpoint_created)
7289 (mi_breakpoint_modified): Likewise.
7290 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7291 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7292 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7294 2012-01-05 Doug Evans <dje@google.com>
7296 * dwarf2read.c (statement_prologue): Delete, unused.
7298 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7299 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7301 * dwarf2read.c (comp_unit_header): Delete, unused.
7303 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7305 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7306 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7308 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7310 * infrun.c (normal_stop): Don't skip calling the normal_stop
7311 observers if the thread was doing a multi-step, but stopped for
7312 some reason other than stepping.
7314 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7316 * cli/cli-decode.h: Add comments.
7317 (CMD_LIST_AMBIGUOUS): Moved to command.h
7318 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7319 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7320 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7321 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7322 (add_com, add_com_alias, add_info, add_info_alias)
7323 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7325 * command.h: Add and adjust comments.
7326 (CMD_LIST_AMBIGUOUS): Moved here.
7327 (help_cmd, help_cmd_list): Delete declarations.
7329 2012-01-04 Doug Evans <dje@google.com>
7331 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7332 All callers updated.
7333 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7334 Replace all arguments with "per_cu". All callers updated.
7336 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7338 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7339 New arg "per_cu". All callers updated.
7341 Delete #if 0'd out code.
7342 * language.c (binop_result_type): Delete.
7343 (simple_type, ordered_type, same_type, integral_type): Delete.
7344 (numeric_type, character_type, string_type, boolean_type): Delete.
7345 (float_type, structured_type): Delete.
7346 * language.h: Update.
7348 2012-01-04 Tom Tromey <tromey@redhat.com>
7350 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7352 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7354 * corefile.c (close_exec_file): Delete.
7355 (reopen_exec_file): Remove commented out code that seems related
7356 to close_exec_file, which is being deleted here.
7357 * inferior.h (close_exec_file): Delete.
7358 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7360 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7362 * ada-lang.c: #include "cli/cli-utils.h".
7363 (get_selections): Use skip_spaces.
7364 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7365 (catch_ada_exception_command_split): Use skip_spaces.
7366 (ada_decode_assert_location): Likewise.
7368 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7370 * linespec.c (decode_line_internal): Check for C++ or Java
7371 compound constructs only if the current language is C, C++
7374 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7377 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7378 Joel Brobecker <brobecker@adacore.com>
7379 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7380 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7382 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7383 fall through into AT_ENTRY_POINT.
7384 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7386 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7387 PPC_INSN_SIZE skip to 3 times.
7389 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7391 * linespec.c (add_minsym): Preserve function descriptors.
7393 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7395 * breakpoint.c (all_locations_are_pending): Consider locations
7396 in program spaces executing during startup pending as well.
7398 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7400 Copyright year update in most files of the GDB Project.
7402 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7404 * copyright.sh: Delete.
7405 * copyright.py: Rewrite.
7407 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7409 * gnulib/extra/update-copyright: New file, imported from gnulib.
7411 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7413 * README (Copyright and License Notices): New section.
7415 2012-01-03 Tom Tromey <tromey@redhat.com>
7418 * python/py-value.c (valpy_dereference, valpy_get_address
7419 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7420 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7421 (valpy_absolute, valpy_richcompare): Free intermediate values.
7423 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7425 * ada-lang.c: Reformat the copyright notice.
7427 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7429 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7430 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7431 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7432 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7433 Revert this part of:
7434 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7435 Build gdb directly from *.o files not using libgdb.a.
7436 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7438 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7440 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7441 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7442 Reformat the copyright header.
7444 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7446 Revert this part of:
7447 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7448 Remove the gdbtui binary.
7449 * gdb.c (main): Remove args.interpreter_p initialization.
7450 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7451 * main.h (struct captured_main_args): Remove interpreter_p.
7453 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7455 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7457 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7459 * top.c (print_gdb_version): Update copyright year.
7461 2012-01-02 Yao Qi <yao@codesourcery.com>
7463 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7465 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7466 Joel Brobecker <brobecker@adacore.com>
7468 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7469 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7471 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7472 fall through into AT_ENTRY_POINT.
7473 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7475 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7476 PPC_INSN_SIZE skip to 3 times.
7478 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7480 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7482 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7484 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7486 Build gdb directly from *.o files not using libgdb.a.
7487 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7488 (COMMON_OBS): Remove solib-target.o.
7489 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7490 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7491 (LIBGDB_OBS, libgdb.a): Move it above.
7492 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7493 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7494 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7495 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7496 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7497 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7498 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7499 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7500 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7501 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7502 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7503 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7504 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7505 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7506 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7507 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7508 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7509 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7510 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7511 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7512 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7513 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7514 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7515 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7516 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7517 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7518 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7520 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7522 Remove the gdbtui binary.
7523 * .gitignore (/gdbtui): Remove.
7524 * Makefile.in (TUI): Remove.
7525 (SUBDIR_TUI_OBS): Remove tui-main.o.
7526 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7527 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7528 (tui-main.o): Remove.
7529 (all_object_files): Remove tui-main.o.
7530 * NEWS: New note for the gdbtui removal.
7531 * configure: Rebuilt.
7532 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7533 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7534 CONFIG_UNINSTALL respectively.
7535 * gdb.c (main): Remove args.interpreter_p initialization.
7536 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7537 * main.h (struct captured_main_args): Remove interpreter_p.
7538 * tui/tui-main.c: Remove.
7540 2012-01-01 Doug Evans <dje@google.com>
7542 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7543 (dwarf2_physname, read_import_statement): Ditto.
7544 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7545 (process_structure_scope read_subroutine_type): Ditto.
7546 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7547 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7548 (dwarf2_fetch_die_location_block): Ditto.
7549 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7551 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7552 All callers updated.
7553 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7554 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7555 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7557 * dwarf2read.c (load_cu): Move assert to more useful location.
7559 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7560 All callers updated.
7562 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7563 (dwarf2_elf_names): Minor reformat.
7564 (dwarf2_per_cu_data): Tweak comment.
7565 (dwarf2_read_section): Fix comment.
7566 (create_all_comp_units): Fix comment.
7567 (load_full_comp_unit): Fix comment.
7568 (process_full_comp_unit): Fix comment.
7569 (read_signatured_type): Fix comment.
7571 For older changes see ChangeLog-2011.
7577 version-control: never