1 2012-06-18 Doug Evans <dje@google.com>
3 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4 Adjust address for DW_OP_GNU_addr_index.
5 * dwarf2expr.h (dwarf_expr_context): Update comment.
6 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
7 all callers updated. Handle TLS vars described with
9 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
10 and DW_OP_GNU_const_index.
11 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
13 * block.c (find_block_in_blockvector): Make explicit the fact that we
16 2012-06-18 Tom Tromey <tromey@redhat.com>
18 * c-exp.y (operator): Remove trailing space after "delete" and
21 2012-06-18 Mark Kettenis <kettenis@gnu.org>
22 Jan Kratochvil <jan.kratochvil@redhat.com>
24 Switch i386 and derived targets to ON_STACK.
25 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
26 (amd64_dicos_init_abi): Remove its installment.
27 * dicos-tdep.c (dicos_init_abi): Remove the
28 set_gdbarch_call_dummy_location call. Update the comment here.
29 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
30 (i386_dicos_init_abi): Remove its installment.
31 * i386-tdep.c (i386_push_dummy_code): New function.
32 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
35 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
37 Remove stale dummy frames.
38 * breakpoint.c: Include dummy-frame.h.
39 (longjmp_breakpoint_ops): New variable.
40 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
41 bp_longjmp_call_dummy.
42 (bpstat_what, bptype_string, print_one_breakpoint_location)
43 (init_bp_location): Support bp_longjmp_call_dummy.
44 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
45 (set_longjmp_breakpoint_for_call_dummy)
46 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
48 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
49 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
50 FIXME comment and extend the other comment for bp_call_dummy.
51 (set_longjmp_breakpoint_for_call_dummy)
52 (check_longjmp_breakpoint_for_call_dummy): New declarations.
53 * dummy-frame.c: Include gdbthread.h.
54 (pop_dummy_frame_bpt): New function.
55 (pop_dummy_frame): Call pop_dummy_frame_bpt.
56 (dummy_frame_discard): New function.
57 (cleanup_dummy_frames): Update the comment about longjmps.
58 * dummy-frame.h (dummy_frame_discard): New declaration.
59 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
60 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
61 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
62 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
63 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
64 keep_going if IS_LONGJMP and there is no other reason to stop.
66 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
68 * remote-sim.c (sim_command_completer): Initialize
71 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
73 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
74 * dwarf2loc.c (call_site_parameter_matches): Support
75 CALL_SITE_PARAMETER_PARAM_OFFSET.
76 (needs_dwarf_reg_entry_value): Push stub value.
77 * dwarf2read.c (read_call_site_scope): New variable origin. Support
78 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
79 * gdbtypes.h (enum call_site_parameter_kind): New item
80 CALL_SITE_PARAMETER_PARAM_OFFSET.
81 (struct call_site.parameter.u): New field param_offset.
83 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
85 Code cleanup: Generalize call_site.parameter key.
86 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
87 variable dwarf_reg. New variable kind_u. Update parameters to
88 push_dwarf_reg_entry_value.
89 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
90 * dwarf2expr.h (enum call_site_parameter_kind)
91 (union call_site_parameter_u): Forward declarations.
92 (struct dwarf_expr_context_funcs): Update parameters and their
93 description for push_dwarf_reg_entry_value.
94 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
95 * dwarf2loc.c (call_site_parameter_matches): New function.
96 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
97 description. Use call_site_parameter_matches.
98 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
99 Update parameters and their description.
100 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
101 New variable kind_u. Adjust the caller for updated parameters.
102 (needs_dwarf_reg_entry_value): Update parameters.
103 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
104 instead of attr. Update for the changed fields of struct
106 * gdbtypes.h: Include dwarf2expr.h.
107 (enum call_site_parameter_kind): New.
108 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
109 fb_offset into new union u.
111 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
113 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
114 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
117 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
119 * amd64-linux-nat.c (compat_x32_clock_t): New.
120 (compat_x32_siginfo_t): Likewise.
121 (compat_x32_siginfo_from_siginfo): Likewise.
122 (siginfo_from_compat_x32_siginfo): Likewise.
123 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
124 and siginfo_from_compat_x32_siginfo for x32.
126 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
128 * tracepoint.c (tfile_xfer_partial): Add a lseek.
130 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
132 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
133 instead of gdbarch_ptr_bit.
134 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
135 (amd64_supply_native_gregset): Likewise.
136 (amd64_collect_native_gregset): Likewise.
137 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
138 (amd64_supply_xsave): Likewise.
139 (amd64_collect_fxsave): Likewise.
140 (amd64_collect_xsave): Likewise.
142 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
144 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
145 (amd64_linux_read_description): Check DS segment register for
148 2012-06-15 Tom Tromey <tromey@redhat.com>
150 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
151 init_cutu_and_read_dies.
153 2012-06-15 Iain Sandoe <iain@codesourcery.com>
155 * MAINTAINERS (Write After Approval): Add myself to the list.
157 2012-06-15 Tom Tromey <tromey@redhat.com>
159 * valops.c (value_find_oload_method_list): Now static.
160 * value.h (value_find_oload_method_list): Don't declare.
162 2012-06-15 Tom Tromey <tromey@redhat.com>
164 * valops.c (find_overload_match): Use value_ind.
166 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
168 * infrun.c (handle_inferior_event): Correct indentation.
170 2012-06-14 Doug Evans <dje@google.com>
172 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
173 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
175 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
176 updated. Handle DEBUG_LOC_START_LENGTH.
177 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
178 (loclist_describe_location): Ditto.
180 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
183 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
184 after hiding inline functions.
186 2012-06-13 Joel Brobecker <brobecker@adacore.com>
188 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
189 _initialize_inf_ttrace.
191 2012-06-13 Joel Brobecker <brobecker@adacore.com>
193 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
194 _initialize_hppa_hpux_nat.
196 2012-06-13 Joel Brobecker <brobecker@adacore.com>
198 * remote-sim.c (sim_command_completer): Change type of return
199 value to "VEC (char_ptr) *". Adjust implementation accordingly.
201 2012-06-13 Mark Kettenis <kettenis@gnu.org>
202 Jan Kratochvil <jan.kratochvil@redhat.com>
205 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
206 stack on a 16-byte boundary.
208 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
210 * jit.c (finalize_symtab): Set function's return type to 'void' by
213 2012-06-13 Mark Kettenis <kettenis@gnu.org>
214 H.J. Lu <hongjiu.lu@intel.com>
216 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
217 Move bits common to both the classic LP64 and the new x32 ILP32
219 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
220 (amd64_x32_linux_init_abi): New function.
221 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
224 * i386-tdep.h (i386_pseudo_register_name): New prototype.
225 * i386-tdep.c (i386_pseudo_register_name): Make public.
226 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
227 * amd64-tdep.c (amd64_dword_names): Add "eip".
228 (amd64_x32_pseudo_register_type): New function
229 (amd64_x32_init_abi): New function.
231 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
234 * inferior.h (struct inferior_suspend_state): Comment out.
235 (struct inferior): Comment out the field suspend.
236 * infrun.c (struct infcall_suspend_state): Comment out the field
238 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
241 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
243 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
244 * c-exp.y (classify_inner_name): Remove caller assumptions in the
245 function comment. Return ERROR for unresolved cases. Implement
246 returning proper NAME.
247 (yylex): Accept also NAME from classify_inner_name.
248 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
249 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
251 * cp-support.h (cp_lookup_nested_type): Update its declaration.
253 2012-06-13 Tom Tromey <tromey@redhat.com>
255 * breakpoint.c (condition_completer): New function.
256 (_initialize_breakpoint): Use it.
257 * value.c (complete_internalvar): New function.
258 * value.h (complete_internalvar): Declare.
260 2012-06-13 Tom Tromey <tromey@redhat.com>
262 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
263 * breakpoint.c (catch_syscall_completer): Return a VEC.
264 * cli/cli-cmds.c (complete_command): Update.
265 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
266 (complete_on_enum): Likewise.
267 * command.h: Include gdb_vecs.h.
268 (completer_ftype): Change return type.
269 (complete_on_cmdlist, complete_on_enum): Likewise.
270 * completer.c (noop_completer, filename_completer)
271 (location_completer): Return a VEC.
272 (add_struct_fields): Remove 'nextp' argument. Change 'output'
274 (expression_completer, complete_line_internal, complete_line)
275 (command_completer): Return a VEC.
276 (gdb_completion_word_break_characters, line_completion_function):
278 * completer.h: Include gdb_vecs.h.
279 (complete_line, noop_completer, filename_completer)
280 (expression_completer, location_completer, command_completer):
282 * f-lang.c (f_word_break_characters): Return a VEC.
283 * interps.c (interpreter_completer): Return a VEC.
284 * language.h (struct language_defn)
285 <la_make_symbol_completion_list>: Return a VEC.
286 * python/py-cmd.c (cmdpy_completer): Return a VEC.
287 * symtab.c (free_completion_list): Take a VEC.
288 (return_val_size, return_val_index): Remove.
289 (return_val): Now a VEC.
290 (completion_list_add_name): Update.
291 (default_make_symbol_completion_list_break_on)
292 (default_make_symbol_completion_list, make_symbol_completion_list)
293 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
295 (add_filename_to_list): Update.
296 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
298 (maybe_add_partial_symtab_filename): Update.
299 (make_source_files_completion_list): Return a VEC.
300 * symtab.h (default_make_symbol_completion_list_break_on)
301 (default_make_symbol_completion_list, make_symbol_completion_list)
302 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
303 (make_source_files_completion_list): Update.
305 2012-06-13 Tom Tromey <tromey@redhat.com>
307 * breakpoint.c (add_catch_command): Use completer_ftype.
308 * breakpoint.h: Include command.h.
309 (add_catch_command): Use completer_ftype.
310 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
311 * cli/cli-decode.h (struct cmd_list_element) <completer>:
313 * command.h (completer_ftype): New typedef.
314 (set_cmd_completer): Use it.
315 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
318 2012-06-13 Pedro Alves <palves@redhat.com>
320 Partial revert of previous change.
322 * serial.c (scb_base): New global.
323 (serial_for_fd): New.
324 (serial_open, serial_fdopen_ops): Link new serial in open serials
326 (do_serial_close): Unlink serial from the open serials chain.
328 2012-06-12 Pedro Alves <palves@redhat.com>
330 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
332 (prepare_for_detach): No longer context switch here in non-stop
334 (fetch_inferior_event): Ditto.
335 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
336 to the event thread before removing breakpoints. Switch to the
337 event thread before inserting breakpoints and resuming.
338 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
339 event thread before resuming.
340 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
341 Switch to the event thread before removing breakpoints.
343 2012-06-12 Eli Zaretskii <eliz@gnu.org>
345 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
346 special characters correctly for the Windows shells. See
347 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
349 [!__MINGW32__]: Remove extra double quote character from special
352 2012-06-11 Stan Shebs <stan@codesourcery.com>
354 * ui-out.h: Remove #if 0 declarations.
355 * ui-out.c: Remove #if 0 functions.
357 2012-06-11 Pedro Alves <palves@redhat.com>
359 * ser-base.c (run_async_handler_and_reschedule): New.
360 (fd_event, push_event): Use it.
361 * serial.c (serial_open, serial_fdopen_ops): Set the initial
362 reference count to 1.
363 (do_serial_close): Set the bufp field to NULL. Use serial_unref
365 (serial_is_open, serial_ref, serial_unref): New.
366 * serial.h (serial_open): Adjust comment.
367 (serial_is_open): Declare.
368 (serial_close): Adjust comment.
369 (serial_ref, serial_unref) Declare.
370 (struct serial): New field 'refcnt'.
372 2012-06-11 Pedro Alves <palves@redhat.com>
374 Remove #if 0'd "connect" command, and unnecessary associated
375 refcounting and serial reuse bits.
377 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
378 * serial.c (last_serial_opened): Delete.
380 (serial_open): Adjust.
381 (serial_for_fd): Delete.
382 (serial_fdopen_ops, do_serial_close): Adjust.
383 (serial_fdopen_ops): Adjust.
385 2012-06-11 Pedro Alves <palves@redhat.com>
387 * serial.c (do_serial_close): Remove early return when SCB is
390 2012-06-11 Tom Tromey <tromey@redhat.com>
392 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
394 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
396 Fix regression by the "ambiguous linespec" series.
397 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
398 get_last_displayed_symtab and get_last_displayed_line and depending
401 2012-06-11 Tom Tromey <tromey@redhat.com>
403 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
404 (dw2_find_symbol_file): Use it.
406 2012-06-11 Michael Eager <eager@eagercon.com>
408 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
409 * mips-linux-tdep.h (mips_signals): New
411 2012-06-11 Tom Tromey <tromey@redhat.com>
413 * infrun.c (handle_inferior_event)
414 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
416 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
417 exception logic in all cases. Update comments.
418 (insert_longjmp_resume_breakpoint): Set the exception resume
421 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
423 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
425 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
427 * valarith.c (binop_types_user_defined_p): Fix a typo.
429 2012-06-08 Yao Qi <yao@codesourcery.com>
430 Chung-Lin Tang <cltang@codesourcery.com>
432 * arch-utils.c (default_return_in_first_hidden_param_p): New.
433 * arch-utils.h: Declare.
434 * gdbarch.sh: Add return_in_first_hidden_param_p.
435 * gdbarch.c, gdbarch.h: Regenerated.
436 * infcall.c (call_function_by_hand): Call
437 gdbarch_return_in_first_hidden_param_p instead of
438 language_pass_by_reference.
440 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
441 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
442 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
443 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
444 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
445 `cplus_return_struct_by_reference'.
446 (tic6x_return_value): Handle language cplusplus.
447 (tic6x_return_in_first_hidden_param_p): New.
448 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
450 2012-06-07 Doug Evans <dje@google.com>
452 * dwarf2read.c (dwarf2_cu): Add comment.
454 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
456 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
458 (mips_eabi_push_dummy_call): Likewise.
459 (mips_n32n64_push_dummy_call): Likewise.
460 (mips_o32_push_dummy_call): Likewise.
461 (mips_o64_push_dummy_call): Likewise.
463 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
465 * mips-tdep.c (mips_convert_register_p): Correct coding style.
467 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
469 * mips-tdep.c (mips_pseudo_register_type): Use
470 mips_float_register_p.
472 2012-06-06 Pedro Alves <palves@redhat.com>
474 * infrun.c (handle_inferior_event): Remove calls to
475 reinit_frame_cache that follow a context_switch call.
477 2012-06-06 Pedro Alves <palves@redhat.com>
479 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
480 context_switch and remove stale comment.
482 2012-06-06 Pedro Alves <palves@redhat.com>
484 * infrun.c (struct execution_control_state): Remove
485 `new_thread_event' field.
486 (handle_inferior_event): Simplify new threads handling; don't
487 resume the inferior if we find a new thread.
489 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
491 * NEWS: Document the deprecation of SH's 'regs' command.
492 * inferior.h (all_registers_info): Add function declaration.
493 * sh-tdep.c (sh_show_regs): Remove variable.
494 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
495 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
496 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
497 (sh_show_regs_command): Remove functions.
498 (sh_gdbarch_init): Don't set sh_show_regs.
499 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
500 'info all-registers'.
501 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
502 (sh64_show_regs): Remove functions.
503 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
505 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
507 * configure.ac: Move development=true below AC_INIT.
508 * configure: Regenerate.
510 2012-06-05 Stan Shebs <stan@codesourcery.com>
512 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
515 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
517 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
519 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
520 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
521 * target.c (target_read_stack, target_write_memory)
522 (target_write_raw_memory): Likewise.
523 * target.h (target_read_stack, target_write_memory)
524 (target_write_raw_memory): Likewise.
526 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
528 * symfile-mem.c: Change gdb_static_assert to ssize_t.
529 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
530 * target.c (target_read_memory): Change LEN to ssize_t.
531 * target.h (target_read_memory): Change LEN to ssize_t.
533 2012-06-05 Pedro Alves <palves@redhat.com>
537 * breakpoint.c (until_break_command): Only fetch the selected
538 frame after decode_line_1.
540 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
542 * solib-svr4.c (enable_break): Don't fallback to setting the solib
543 event breakpoint at _start, __start or main if a program
544 interpreter is not found.
546 2012-06-05 Joel Brobecker <brobecker@adacore.com>
548 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
550 * windows-tdep.c: #include "objfiles.h".
551 (windows_iterate_over_objfiles_in_search_order): New function.
552 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
553 iterate_over_objfiles_in_search_order gdbarch method to
554 windows_iterate_over_objfiles_in_search_order.
555 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
557 2012-06-05 Joel Brobecker <brobecker@adacore.com>
559 * gdbarch.sh: Add generation of
560 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
561 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
562 (iterate_over_objfiles_in_search_order): New gdbarch method.
563 * gdbarch.h, gdbarch.c: Regenerate.
564 * objfiles.h (default_iterate_over_objfiles_in_search_order):
566 * objfiles.c (default_iterate_over_objfiles_in_search_order):
568 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
569 out of lookup_symbol_aux_symtabs.
570 (lookup_symbol_aux_symtabs): Replace extracted-out code by
571 call to lookup_symbol_aux_objfile.
572 (struct global_sym_lookup_data): New type.
573 (lookup_symbol_global_iterator_cb): New function.
574 (lookup_symbol_global): Search for symbol using
575 gdbarch_iterate_over_objfiles_in_search_order and
576 lookup_symbol_global_iterator_cb.
577 * findvar.c (struct minsym_lookup_data): New type.
578 (minsym_lookup_iterator_cb): New function.
579 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
580 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
581 and minsym_lookup_iterator_cb.
583 2012-06-05 Joel Brobecker <brobecker@adacore.com>
585 Revert the following patch:
586 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
587 try locating the symbol in the symbol's own objfile first, before
588 extending the search to all objfiles.
589 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
590 out of lookup_symbol_aux_symtabs.
591 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
592 Replace extracted-out code by call to lookup_symbol_aux_objfile.
593 Do not search EXCLUDE_OBJFILE.
594 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
595 (lookup_symbol_global): Search for matches in the block's objfile
596 first, before searching all other objfiles.
598 2012-06-05 Joel Brobecker <brobecker@adacore.com>
600 * breakpoint.c (find_condition_and_thread): Stop parsing
601 as soon as the first invalid keyword is found.
603 2012-06-05 Joel Brobecker <brobecker@adacore.com>
605 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
607 2012-06-05 Joel Brobecker <brobecker@adacore.com>
609 * config/djgpp/djcheck.sh: Add copyright header.
611 2012-06-05 Joel Brobecker <brobecker@adacore.com>
613 * copyright.py (update_files, main): Fix path to update-copyright
616 2012-06-05 Joel Brobecker <brobecker@adacore.com>
618 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
619 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
620 for which a reminder to update by hand is printed.
622 2012-06-04 Doug Evans <dje@google.com>
624 * buildsym.c (make_blockvector): Add comment.
626 2012-06-04 Pedro Alves <palves@redhat.com>
628 * arch-utils.c (default_gdb_signal_from_target): Delete.
629 * arch-utils.h (default_gdb_signal_from_target): Delete.
630 * corelow.c (core_open) <signal mapping>: Extended comment. Check
631 gdbarch_gdb_signal_from_target_p.
632 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
634 * gdbarch.h: Regenerate.
635 * gdbarch.c: Regenerate.
637 2012-06-04 Pedro Alves <palves@redhat.com>
639 * gdbarch.sh (gdb_signal_from_target): Mention that the
640 implementation of the method must be host independent.
641 * gdbarch.h: Regenerate.
643 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
645 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
647 (target_read_memory_bfd): New function.
648 (symbol_file_add_from_memory): Use it.
650 2012-06-03 Doug Evans <dje@google.com>
652 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
654 (basic_lookup_transparent_type): Ditto.
656 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
657 (ALL_PRIMARY_SYMTABS): Use it.
658 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
659 * dwarf2read.c (dw2_find_symbol_file): Ditto.
660 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
661 * symtab.c (lookup_symbol_aux_objfile): Ditto.
662 (basic_lookup_transparent_type): Ditto.
664 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
666 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
667 it to optimize resolution of demangled name.
669 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
671 * configure.ac (development): Define new variable.
672 Call AC_CHECK_LIB for mcheck if $development.
673 (ERROR_ON_WARNING): Enable it by default only if $development.
674 * config.in: Regenerate.
675 * configure: Regenerate.
677 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
679 * target.c (target_read_memory): Make LEN argument as size_t.
680 * target.h (target_read_memory): Likewise.
682 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
684 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
686 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
688 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
689 BookE interface for PowerPC server processors if not available
692 2012-05-31 Keith Seitz <keiths@redhat.com>
694 * linespec.c (decode_objc): Add cleanup to free
696 (find_linespec_symbols): Add cleanup to free CLASSES.
697 * symfile.c (find_separate_debug_file_by_debuglink): Add
698 cleanup to free DEBUGLINK.
699 * ui-out.c (clear_header_list): No need to check if
700 HEADER_NEXT.COLHDR is NULL.
701 Free HEADER_NEXT.COL_NAME.
703 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
705 * ada-lang.c (standard_lookup): Prevent uninitialized variable
708 2012-05-30 Jeff Kenton <jkenton@tilera.com>
710 * configure.host (gdb_host_cpu): Handle tilegx*.
711 (gdb_host): Handle tilegx-*-linux*.
712 * tilegx-linux-nat.c: New file.
713 * config/tilegx/linux.mh: New file.
715 2012-05-30 Jeff Kenton <jkenton@tilera.com>
717 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
719 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
721 * configure.tgt: Handle tilegx-*-linux*.
722 * tilegx-tdep.h: New file.
723 * tilegx-tdep.c: New file.
724 * tilegx-linux-tdep.c: New file.
725 * regformats/reg-tilegx.dat: New file.
727 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
729 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
730 accounting of hw watchpoints on ppc.
732 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
734 * source.c (openp): Expand tilde in path entries.
736 2012-05-29 Doug Evans <dje@google.com>
738 * buildsym.c (block_compar): Fix comment.
739 (end_symtab): Fix and clarify some comments.
741 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
742 cleanup_undefined_types.
743 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
746 2012-05-29 Tom Tromey <tromey@redhat.com>
748 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
750 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
751 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
753 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
756 2012-05-29 Tristan Gingold <gingold@adacore.com>
758 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
759 (struct darwin_info): ... New struct.
760 (solib_darwin_pspace_data): New variable.
761 (darwin_pspace_data_cleanup): New function.
762 (get_darwin_info): Likewise.
763 (darwin_dyld_version_ok, darwin_load_image_infos)
764 (darwin_solib_get_all_image_info_addr_at_init)
765 (darwin_solib_read_all_image_info_addr): Add info argument.
767 (darwin_current_sos): Use per pspace structure.
768 (darwin_solib_create_inferior_hook): Likewise.
769 (darwin_clear_solib): Likewise.
770 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
772 2012-05-28 Pedro Alves <palves@redhat.com>
774 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
775 block that uses them. Clear ecss before handling each event.
777 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
779 * solib-svr4.c (svr4_current_sos): New comment on
780 svr4_current_sos_via_xfer_libraries fall back.
782 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
784 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
785 it as a fallback for TYPE_IS_OPAQUE.
786 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
787 symbols for lookup_symbol.
789 2012-05-24 John Steele Scott <toojays@toojays.net>
791 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
792 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
793 (producer_is_gxx_lt_4_6): Move the checking and caching to...
794 (check_producer): ... this new function, which also checks for ICC
795 and caches the result.
796 (producer_is_icc): New function.
797 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
800 2012-05-24 Pedro Alves <palves@redhat.com>
804 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
805 (default_gdb_signal_to_target): ... this. Add comment.
806 (default_gdb_signal_from_host): Rename to ...
807 (default_gdb_signal_from_target): ... this. Add comment.
808 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
809 (default_gdb_signal_to_target): ... this.
810 (default_gdb_signal_from_host): Rename to ...
811 (default_gdb_signal_from_target): ... this.
812 * corelow.c (core_open): Adjust to naming change. Replace comment.
813 * gdbarch.sh (gdb_signal_from_host): Rename to ...
814 (gdb_signal_from_target): ... this. Adjust to
815 default_gdb_signal_from_host naming change. Extend comment.
816 (gdb_signal_to_host): Rename to ...
817 (gdb_signal_to_target): ... this. Adjust to
818 default_gdb_signal_to_host naming change.
819 * gdbarch.h, gdbarch.c: Renegerate.
821 2012-05-24 Pedro Alves <palves@redhat.com>
825 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
827 2012-05-24 Pedro Alves <palves@redhat.com>
831 Replace target_signal with gdb_signal throughout.
833 2012-05-24 Pedro Alves <palves@redhat.com>
837 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
838 string, instead of reusing the va_list argument.
840 2012-05-24 Tom Tromey <tromey@redhat.com>
842 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
845 2012-05-23 Doug Evans <dje@google.com>
847 * symtab.c (search_symbols): Formatting fixes.
848 (print_symbol_info): Formatting fixes.
850 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
851 int64_t change to leb128 API.
852 (read_encoded_value, decode_frame_entry_1): Ditto.
853 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
854 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
855 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
856 (execute_stack_op): Ditto.
857 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
858 (safe_read_uleb128, safe_read_sleb128): Ditto.
859 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
860 (dwarf2_compile_expr_to_ax): Ditto.
861 (locexpr_describe_location_piece): Ditto.
862 (disassemble_dwarf_expression): Ditto.
863 (locexpr_describe_location_1): Ditto.
865 2012-05-23 Stan Shebs <stan@codesourcery.com>
866 Kwok Cheung Yeung <kcy@codesourcery.com>
868 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
869 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
870 (mi-cmd-info.o): New rule.
871 * osdata.h (info_osdata_command): New declaration.
872 * osdata.c (info_osdata_command): Change to non-static.
873 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
874 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
875 * mi/mi-cmd-info.c: New file.
877 2012-05-23 Doug Evans <dje@google.com>
879 * symtab.c (search_symbols): Pass NULL for file_matcher to
880 expand_symtabs_matching if there are no files to match.
882 * gdbtypes.c (lookup_typename): Simplify.
884 2012-05-23 Pedro Alves <palves@redhat.com>
886 * arch-utils.h (default_target_signal_to_host): Delete.
887 * arch-utils.c (default_target_signal_to_host): Delete.
888 * gdbarch.sh (target_signal_to_host): Remove.
889 * gdbarch.h, gdbarch.c: Regenerate.
891 2012-05-22 Doug Evans <dje@google.com>
893 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
895 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
896 (execute_cfa_program): Update to match API of leb128 functions.
897 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
899 (read_unsigned_leb128, read_signed_leb128): Delete.
900 (read_initial_length): Change type of buf argument to
902 (read_encoded_value): Update to match API of leb128 functions.
903 (decode_frame_entry): Change result to "const gdb_byte *", and
904 similarly for "start" parameter.
905 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
906 (dwarf2_build_frame_info): Change local frame_ptr to
908 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
909 read_uleb128, read_sleb128. All callers updated.
910 (safe_skip_leb128): New function.
911 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
912 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
913 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
914 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
915 read_uleb128, read_sleb128.
916 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
917 (execute_stack_op): Update to match API of leb128 functions.
918 * dwarf2expr.h: #include "leb128.h".
919 (read_uleb128, read_sleb128): Delete.
920 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
921 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
922 * dwarf2loc.c (debug_loc_kind): New enum.
923 (decode_debug_loc_addresses): New function.
924 (decode_debug_loc_dwo_addresses): New function.
925 (dwarf2_find_location_expression): Rewrite.
926 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
927 (locexpr_describe_location_piece): Ditto.
928 (disassemble_dwarf_expression): Ditto.
929 (locexpr_describe_location_1): Ditto.
930 (loclist_describe_location): Rewrite.
931 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
932 * dwarf2read.c (die_reader_specs): New member "buffer_end".
933 (dwarf2_section_buffer_overflow_complaint): Renamed from
934 dwarf2_macros_too_long_complaint. All callers updated.
935 (skip_leb128): Delete.
936 (init_cu_die_reader): Initialize reader->buffer_end.
937 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
938 (skip_form_bytes): New arg buffer_end. All callers updated.
939 Replace call to skip_leb128 with gdb_skip_leb128.
940 (skip_unknown_opcode): New arg mac_end. All callers updated.
941 (fill_in_loclist_baton): Initialize baton->from_dwo.
943 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
945 * mips-linux-nat.c (mips_linux_read_description): Use a more
946 verbose error message.
948 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
950 * NEWS: Add MIPS/Linux DSP support.
951 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
952 (SIGCONTEXT_DSPCTL): New macro.
953 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
954 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
955 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
956 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
957 (N64_SIGCONTEXT_HI3): Likewise.
958 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
959 (N64_SIGCONTEXT_LO3): Likewise.
960 (N64_SIGCONTEXT_DSPCTL): Likewise.
961 (N64_SIGCONTEXT_FPCSR): Clarify definition.
962 (mips_linux_o32_sigframe_init): Handle DSP registers.
963 (mips_linux_n32n64_sigframe_init): Likewise.
965 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
967 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
970 2012-05-22 Pedro Alves <palves@redhat.com>
972 * target.h (store_waitstatus): Move declaration ...
973 * inf-child.h (store_waitstatus): ... here.
974 * target.c: Move inclusion of gdb_wait.h, and ...
975 (store_waitstatus): ... this ...
976 * inf-child.c: ... here.
977 * linux-nat.c: Include inf-child.h.
978 * rs6000-nat.c: Include inf-child.h.
979 * spu-linux-nat.c: Include inf-child.h.
981 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
983 * tracepoint.c (start_tracing): Add missing i18n markup.
984 (stop_tracing, set_trace_user): Ditto.
985 (set_trace_notes, set_trace_stop_notes): Ditto.
987 2012-05-21 Tom Tromey <tromey@redhat.com>
990 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
992 * value.h (value_cast_pointers): Update.
993 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
994 (value_cast): Update.
995 (update_search_result): New function.
996 (do_search_struct_field): New, from search_struct_field. Check
997 for ambiguous results.
998 (search_struct_field): Rewrite.
999 * infcall.c (value_arg_coerce): Update.
1000 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1001 value_cast_pointers.
1002 * ada-lang.c (ada_convert_actual): Update.
1004 2012-05-21 Tom Tromey <tromey@redhat.com>
1006 * macroexp.c (macro_stringify): Terminate the string.
1008 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1010 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1012 * auto-load.c (auto_load_expand_dir_vars): New function.
1013 (auto_load_safe_path_vec_update): Use it, remove the
1014 substitute_path_component call thanks to it.
1015 (auto_load_objfile_script): Remove the debug_file_directory processing.
1016 Use auto_load_expand_dir_vars, remove the substitute_path_component
1018 * configure: Regenerate.
1019 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1020 path. Escape $ also for $debugdir.
1021 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1022 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1024 2012-05-20 Doug Evans <dje@google.com>
1026 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1027 before use. Check for symtab->includes == NULL before scanning it.
1029 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1031 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1033 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1035 * NEWS: Add microMIPS support and "set mips compression",
1036 "show mips compression" commands.
1037 * mips-tdep.h (mips_isa): New enum.
1038 (gdbarch_tdep): Add mips_isa.
1039 (mips_pc_is_mips16): Update prototype.
1040 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1041 * mips-tdep.c (mips_compression_mips16): New variable.
1042 (mips_compression_micromips): Likewise.
1043 (mips_compression_strings): Likewise.
1044 (mips_compression_string): Likewise.
1045 (is_mips16_isa, is_micromips_isa): New functions.
1046 (is_mips16_addr): Rename to...
1047 (is_compact_addr): ... this.
1048 (unmake_mips16_addr): Likewise to...
1049 (unmake_compact_addr): ... this.
1050 (make_mips16_addr): Likewise to...
1051 (make_compact_addr): ... this.
1052 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1054 (mips_elf_make_msymbol_special): Handle microMIPS code.
1055 (msymbol_is_special): Rename to...
1056 (msymbol_is_mips16): ... this.
1057 (mips_make_symbol_special, mips_pc_is_mips16): Update
1059 (msymbol_is_mips, msymbol_is_micromips): New functions.
1060 (mips16_to_32_reg): Rename to...
1061 (mips_reg3_to_reg): ... this.
1062 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1063 (mips_pc_isa): Likewise.
1064 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1066 (mips_fetch_instruction): Pass return status instead of printing
1067 an error message if requested. Handle microMIPS code. Bail out
1069 (micromips_op): New macro.
1070 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1071 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1072 (b6s4_op, b7s3_reg): Likewise.
1073 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1074 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1075 (mips_insn_size): New function.
1076 (mips32_next_pc): Update mips_fetch_instruction call.
1077 (micromips_relative_offset7): New function.
1078 (micromips_relative_offset10): Likewise.
1079 (micromips_relative_offset16): Likewise.
1080 (micromips_pc_insn_size): Likewise.
1081 (micromips_bc1_pc): Likewise.
1082 (micromips_next_pc): Likewise.
1083 (unpack_mips16): Update mips_fetch_instruction call.
1084 (extended_mips16_next_pc): Update according to change to
1086 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1088 (mips16_scan_prologue): Update mips_fetch_instruction call.
1089 Update according to change to mips16_to_32_reg.
1090 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1091 (mips_insn16_frame_base_sniffer): Likewise.
1092 (micromips_decode_imm9): New function.
1093 (micromips_scan_prologue): Likewise.
1094 (mips_micro_frame_cache): Likewise.
1095 (mips_micro_frame_this_id): Likewise.
1096 (mips_micro_frame_prev_register): Likewise.
1097 (mips_micro_frame_sniffer): Likewise.
1098 (mips_micro_frame_unwind): New variable.
1099 (mips_micro_frame_base_address): New function.
1100 (mips_micro_frame_base): New variable.
1101 (mips_micro_frame_base_sniffer): New function.
1102 (mips32_scan_prologue): Update mips_fetch_instruction call.
1103 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1104 rather than for MIPS16.
1105 (mips_insn32_frame_base_sniffer): Likewise.
1106 (mips_addr_bits_remove): Handle microMIPS code.
1107 (deal_with_atomic_sequence): Rename to...
1108 (mips_deal_with_atomic_sequence): ... this. Update the type
1109 of the variable used to hold an instruction. Remove the ISA bit
1110 check. Update mips_fetch_instruction call.
1111 (micromips_deal_with_atomic_sequence): New function.
1112 (deal_with_atomic_sequence): Likewise.
1113 (mips_about_to_return): Handle microMIPS code. Update
1114 mips_fetch_instruction call.
1115 (heuristic_proc_start): Check for the standard MIPS ISA rather
1116 than for MIPS16. Update mips_pc_is_mips16 and
1117 mips_fetch_instruction calls. Handle microMIPS code.
1118 (mips_push_dummy_code): Handle microMIPS code.
1119 (mips_eabi_push_dummy_call): Likewise.
1120 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1121 (mips_o64_push_dummy_call): Handle microMIPS code.
1122 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1123 (is_delayed): Remove function.
1124 (mips_single_step_through_delay): Replace the call to is_delayed
1125 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1126 Handle microMIPS code.
1127 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1129 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1131 (micromips_in_function_epilogue_p): New function.
1132 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1134 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1136 (gdb_print_insn_mips): Likewise.
1137 (mips_breakpoint_from_pc): Likewise.
1138 (mips_remote_breakpoint_from_pc): New function.
1139 (mips32_instruction_has_delay_slot): Simplify making use of the
1140 updated mips_fetch_instruction interface.
1141 (micromips_instruction_has_delay_slot): New function.
1142 (mips16_instruction_has_delay_slot): Simplify making use of the
1143 updated mips_fetch_instruction interface.
1144 (mips_adjust_breakpoint_address): Check for the standard MIPS
1145 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1146 calls. Handle microMIPS code.
1147 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1148 (mips_skip_trampoline_code): Handle microMIPS code.
1149 (global_mips_compression): New function.
1150 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1151 file flags. Register the microMIPS remote breakpoint handler
1152 and heuristic frame unwinder.
1153 (show_mips_compression): New function.
1154 (_initialize_mips_tdep): Add the "set mips compression" and
1155 "show mips compression" commands.
1157 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1162 * amd64-darwin-tdep.c:
1163 * arm-symbian-tdep.c:
1167 * bfin-linux-tdep.c:
1174 * dwarf2-frame-tailcall.c:
1203 * microblaze-tdep.c:
1204 * mips-linux-tdep.c:
1212 * python/py-finishbreakpoint.c:
1213 * python/py-inferior.c:
1214 * python/py-infthread.c:
1218 * remote-m32r-sdi.c:
1222 * rs6000-aix-tdep.c:
1248 * amd64-darwin-tdep.c:
1249 * arm-symbian-tdep.c:
1250 * arm-tdep.c: Delete unused variables.
1252 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1254 Rename $ddir to $datadir.
1255 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1256 * auto-load.c (auto_load_safe_path_vec_update)
1257 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1258 * configure: Regenerate.
1259 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1260 Likewise. Remove the 'use $ddir' help string.
1262 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1264 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1265 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1267 2012-05-18 Tom Tromey <tromey@redhat.com>
1270 * valprint.h (struct value_print_options) <symbol_print>: New
1272 * valprint.c (user_print_options): Add default for symbol_print.
1273 (show_symbol_print): New function.
1274 (generic_val_print): Respect symbol_print.
1275 (_initialize_valprint): Add "print symbol" setting.
1276 * f-valprint.c (f_val_print): Respect symbol_print.
1277 * c-valprint.c (c_val_print): Respect symbol_print.
1279 * printcmd.c (print_address_symbolic): Return int. Ignore some
1281 (print_address_demangle): Return int.
1282 * defs.h: (print_address_symbolic): Return int.
1283 * value.h (print_address_demangle): Return int.
1285 2012-05-18 Tom Tromey <tromey@redhat.com>
1287 * valprint.c (val_print_string): Don't print leading space.
1288 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1289 print space before string or vtbl.
1290 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1292 * jv-valprint.c (java_value_print): Print space before string.
1293 * go-valprint.c (print_go_string): Print space before string.
1294 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1295 space before string.
1296 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1297 space before string or vtbl.
1298 * auxv.c (fprint_target_auxv): Print space after address.
1300 2012-05-18 Tom Tromey <tromey@redhat.com>
1302 * printcmd.c (print_address_demangle): Remove special case for 0.
1304 2012-05-18 Tom Tromey <tromey@redhat.com>
1306 * printcmd.c (print_address_demangle): Add 'opts' argument.
1307 * p-valprint.c (pascal_val_print): Update.
1308 * jv-valprint.c (java_val_print): Update.
1310 * valprint.c (generic_val_print): Update.
1311 (print_function_pointer_address): Add 'options' argument. Remove
1312 'addressprint' argument. Update.
1313 * m2-valprint.c (print_unpacked_pointer): Update.
1314 * gnu-v3-abi.c (print_one_vtable): Update.
1315 (gnuv3_print_method_ptr): Update.
1316 * f-valprint.c (f_val_print): Update.
1317 * cp-valprint.c (cp_print_value_fields): Update.
1318 * valprint.h (print_function_pointer_address): Update.
1319 * c-valprint.c (c_val_print): Update.
1321 2012-05-18 Tom Tromey <tromey@redhat.com>
1323 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1324 directly corresponding to the found psymtab.
1325 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1326 (dw2_find_pc_sect_symtab): Use it.
1327 * block.h (blockvector_contains_pc): Declare.
1328 * block.c (find_block_in_blockvector): New function.
1329 (blockvector_for_pc_sect): Use it.
1330 (blockvector_contains_pc): New function.
1332 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1334 * mips-tdep.h (mips_write_pc): New prototype.
1335 * mips-tdep.c (mips_write_pc): Make external, add description.
1336 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1339 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1341 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1343 (mips_unwind_pc, mips_write_pc): Likewise.
1344 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1347 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1349 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1350 proc_warn, proc_error, proc_get_status, proc_flags,
1351 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1352 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1353 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1354 proc_stop_process, proc_wait_for_stop, proc_run_process,
1355 proc_set_traced_signals, proc_set_traced_faults,
1356 proc_set_traced_sysentry, proc_set_traced_sysexit,
1357 proc_set_held_signals, proc_get_held_signals,
1358 proc_get_traced_signals, proc_get_traced_faults,
1359 proc_get_traced_sysentry, proc_get_traced_sysexit,
1360 proc_clear_current_fault, proc_set_current_signal,
1361 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1362 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1363 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1364 proc_get_current_thread, proc_get_current_thread,
1365 proc_get_current_thread, proc_update_threads,
1366 proc_update_threads, proc_update_threads, proc_update_threads,
1367 proc_iterate_over_threads, procfs_find_new_threads,
1368 procfs_pid_to_str): Make static. Remove advance declaration.
1369 (proc_cursig): Make static. Conditionalized defintion on
1370 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1371 (proc_syscall, proc_set_kill_on_last_close,
1372 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1373 proc_get_pending_signals, proc_get_signal_actions,
1374 proc_trace_signal, proc_ignore_signal): Delete.
1376 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1378 * coffread.c (cs_section_address): Passing proper argument for
1379 `bfd_get_section_vma'.
1380 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1381 `bfd_get_section_flags'.
1382 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1383 `bfd_get_section_vma'.
1385 2012-05-16 Tom Tromey <tromey@redhat.com>
1388 * macrotab.h: (macro_define_special): Declare.
1389 (enum macro_special_kind): New.
1390 (struct macro_definition) <argc, replacement>: Update comments.
1391 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1392 (macro_define_object_internal): New function.
1393 (macro_define_object): Use it.
1394 (macro_define_special): New function.
1395 (fixup_definition): New function.
1396 (macro_lookup_definition, foreach_macro_in_scope)
1397 (foreach_macro): Use fixup_definition.
1398 * macroexp.h (macro_stringify): Declare.
1399 * macroexp.c (free_buffer_return_text): New function.
1400 (stringify): Constify "arg".
1401 (macro_stringify): New function.
1402 * dwarf2read.c (macro_start_file): Call macro_define_special.
1404 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1405 Maciej W. Rozycki <macro@mips.com>
1407 * breakpoint.h (bp_location): Add related_address member.
1408 * inferior.h (get_return_value): Take a pointer to struct value
1409 instead of struct type for the function requested.
1410 * value.h (using_struct_return): Likewise.
1411 * gdbarch.sh (return_value): Take a pointer to struct value
1412 instead of struct type for the function requested.
1413 * breakpoint.c (set_breakpoint_location_function): Initialize
1414 related_address for bp_gnu_ifunc_resolver breakpoints.
1415 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1416 requested function's address to gdbarch_return_value.
1417 * eval.c (evaluate_subexp_standard): Pass the requested
1418 function's address to using_struct_return.
1419 * infcall.c (call_function_by_hand): Pass the requested
1420 function's address to using_struct_return and
1421 gdbarch_return_value.
1422 * infcmd.c (get_return_value): Take a pointer to struct value
1423 instead of struct type for the function requested.
1424 (print_return_value): Update accordingly.
1425 (finish_command_continuation): Likewise.
1426 * stack.c (return_command): Pass the requested function's
1427 address to using_struct_return and gdbarch_return_value.
1428 * value.c (using_struct_return): Take a pointer to struct value
1429 instead of struct type for the function requested. Pass the
1430 requested function's address to gdbarch_return_value.
1431 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1432 New function_value member, replacing function_type.
1433 (bpfinishpy_dealloc): Update accordingly.
1434 (bpfinishpy_pre_stop_hook): Likewise.
1435 (bpfinishpy_init): Likewise. Record the requested function's
1437 * mips-tdep.c (mips_fval_reg): New enum.
1438 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1439 words put in GP registers.
1440 (mips_o64_push_dummy_call): Update a comment.
1441 (mips_o32_return_value): Take a pointer to struct value instead
1442 of struct type for the function requested and use it to check if
1443 using the MIPS16 calling convention. Return the designated
1444 general purpose registers for floating-point values returned in
1446 (mips_o64_return_value): Likewise.
1447 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1448 (ppc_sysv_abi_broken_return_value): Likewise.
1449 (ppc64_sysv_abi_return_value): Likewise.
1450 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1451 value instead of struct type for the function requested.
1452 * amd64-tdep.c (amd64_return_value): Likewise.
1453 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1454 * arm-tdep.c (arm_return_value): Likewise.
1455 * avr-tdep.c (avr_return_value): Likewise.
1456 * bfin-tdep.c (bfin_return_value): Likewise.
1457 * cris-tdep.c (cris_return_value): Likewise.
1458 * frv-tdep.c (frv_return_value): Likewise.
1459 * h8300-tdep.c (h8300_return_value): Likewise.
1460 (h8300h_return_value): Likewise.
1461 * hppa-tdep.c (hppa32_return_value): Likewise.
1462 (hppa64_return_value): Likewise.
1463 * i386-tdep.c (i386_return_value): Likewise.
1464 * ia64-tdep.c (ia64_return_value): Likewise.
1465 * iq2000-tdep.c (iq2000_return_value): Likewise.
1466 * lm32-tdep.c (lm32_return_value): Likewise.
1467 * m32c-tdep.c (m32c_return_value): Likewise.
1468 * m32r-tdep.c (m32r_return_value): Likewise.
1469 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1470 * m68k-tdep.c (m68k_return_value): Likewise.
1471 (m68k_svr4_return_value): Likewise.
1472 * m88k-tdep.c (m88k_return_value): Likewise.
1473 * mep-tdep.c (mep_return_value): Likewise.
1474 * microblaze-tdep.c (microblaze_return_value): Likewise.
1475 * mn10300-tdep.c (mn10300_return_value): Likewise.
1476 * moxie-tdep.c (moxie_return_value): Likewise.
1477 * mt-tdep.c (mt_return_value): Likewise.
1478 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1479 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1480 (ppc_sysv_abi_broken_return_value): Likewise.
1481 (ppc64_sysv_abi_return_value): Likewise.
1482 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1483 * rl78-tdep.c (rl78_return_value): Likewise.
1484 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1485 * rx-tdep.c (rx_return_value): Likewise.
1486 * s390-tdep.c (s390_return_value): Likewise.
1487 * score-tdep.c (score_return_value): Likewise.
1488 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1489 (sh_return_value_fpu): Likewise.
1490 * sh64-tdep.c (sh64_return_value): Likewise.
1491 * sparc-tdep.c (sparc32_return_value): Likewise.
1492 * sparc64-tdep.c (sparc64_return_value): Likewise.
1493 * spu-tdep.c (spu_return_value): Likewise.
1494 * tic6x-tdep.c (tic6x_return_value): Likewise.
1495 * v850-tdep.c (v850_return_value): Likewise.
1496 * vax-tdep.c (vax_return_value): Likewise.
1497 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1498 * xtensa-tdep.c (xtensa_return_value): Likewise.
1499 * gdbarch.c: Regenerate.
1500 * gdbarch.h: Regenerate.
1502 2012-05-15 Tom Tromey <tromey@redhat.com>
1504 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1506 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1508 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1509 of command in two error message.
1511 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1513 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1515 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1517 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1519 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1521 * NEWS (show auto-load scripts-directory): Add forgotten command.
1523 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1525 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1528 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1530 * amd64-tdep.c: Include features/i386/x32.c and
1531 features/i386/x32-avx.c.
1532 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1533 initialize_tdesc_x32_avx.
1535 2012-05-14 Stan Shebs <stan@codesourcery.com>
1538 * breakpoint.h (enum bptype): New type bp_dprintf.
1539 (struct breakpoint): New field extra_string.
1540 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1541 (create_breakpoint): Add extra_string arg.
1542 * breakpoint.c (dprintf_breakpoint_ops): New.
1543 (is_breakpoint): Add bp_dprintf.
1544 (bpstat_what): Add dprintf case.
1545 (bptype_string): Ditto.
1546 (print_one_breakpoint_location): Ditto.
1547 (init_bp_location): Ditto.
1548 (bkpt_print_mention): Ditto.
1549 (dprintf_style_enums): New array.
1550 (dprintf_style): New global.
1551 (dprintf_function): New global.
1552 (dprintf_channel): New global.
1553 (update_dprintf_command_list): New function.
1554 (update_dprintf_commands): New function.
1555 (init_breakpoint_sal): Add extra_string argument, handle it.
1556 (create_breakpoint_sal): Add extra_string argument.
1557 (create_breakpoints_sal): Add extra_string argument, update callers.
1558 (find_condition_and_thread): Add extra argument.
1559 (create_breakpoint): Add extra_string argument, record it.
1560 (dprintf_command): New function.
1561 (break_command_1): Add arg to create_breakpoint call.
1562 (handle_gnu_v3_exceptions): Ditto.
1563 (trace_command): Ditto.
1564 (ftrace_command): Ditto.
1565 (strace_command): Ditto.
1566 (bkpt_print_mention): Add dprintf case.
1567 (create_breakpoint_sal_default): Add extra_string argument.
1568 (_initialize_breakpoint): Add new commands.
1569 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1570 * python/py-breakpoint.c (bppy_init): Ditto.
1571 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1573 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1575 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1577 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1579 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1582 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1584 Add a new function gdb.find_pc_line to the Python API.
1585 * NEWS (Python Scripting): Add entry about the new function.
1586 * python/python.c (gdbpy_find_pc_line): New function which
1587 implements gdb.find_pc_line.
1588 (GdbMethods): Add entry for the new function.
1590 2012-05-12 Pedro Alves <palves@redhat.com>
1592 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1593 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1595 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1597 * inferior.c: Include completer.h
1598 (initialize_inferiors): Set completer of add-inferior to
1601 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1603 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1604 gdbarch_ptr_bit for x32 core dump.
1606 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1608 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1609 and features/i386/x32-avx-linux.c.
1611 2012-05-11 Stan Shebs <stan@codesourcery.com>
1612 Kwok Cheung Yeung <kcy@codesourcery.com>
1614 * NEWS: Describe new info os commands.
1615 * common/linux-osdata.c (PID_T, TIME_T): Define.
1616 (MAX_PID_T_STRLEN): New.
1617 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1619 (command_from_pid): Add comment. Change to use PID_T.
1620 (commandline_from_pid): Change to use PID_T.
1621 (user_from_pid): Add comment.
1622 (get_process_owner): Add comment. Change to use PID_T and
1624 (get_number_of_cpu_cores): Add comment.
1625 (get_cores_used_by_process): Add comment. Change to use PID_T and
1627 (linux_xfer_osdata_processes): Change to use PID_T and
1629 (compare_processes): New function.
1630 (linux_xfer_osdata_processgroups): New function.
1631 (linux_xfer_osdata_threads): Change to use PID_T.
1632 (linux_xfer_osdata_fds): New function.
1633 (format_socket_state, print_sockets): New functions.
1634 (union socket_addr): New union.
1635 (linux_xfer_osdata_isockets): New function.
1636 (time_from_time_t, group_from_gid): New functions.
1637 (linux_xfer_osdata_shm): New function.
1638 (linux_xfer_osdata_sem): New function.
1639 (linux_xfer_osdata_msg): New function.
1640 (linux_xfer_osdata_modules): New function.
1641 (osdata_table): Add new entries.
1642 * common/buffer.c (buffer_xml_printf): Add support for long and
1643 long long format specifiers.
1645 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1647 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1648 (tdesc_x32_avx_linux): Likewise.
1650 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1652 Implement multi-component --with-auto-load-dir.
1653 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1655 (--with-auto-load-safe-path): Update the default value description.
1656 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1658 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1659 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1660 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1661 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1662 "set auto-load scripts-directory".
1663 * config.in: Regenerate.
1664 * configure: Regenerate.
1665 * configure.ac (--with-auto-load-dir): New configure option.
1666 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1668 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1670 Provide $ddir substitution for --with-auto-load-safe-path.
1671 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1673 * auto-load.c: Include observer.h.
1674 (auto_load_safe_path_vec_update): Call substitute_path_component for
1675 each component. New variable ddir_subst.
1676 (auto_load_gdb_datadir_changed): New function.
1677 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1678 AUTO_LOAD_SAFE_PATH. New comment.
1679 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1680 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1681 * config.in: Regenerate.
1682 * configure: Regenerate.
1683 * configure.ac (--auto-load-safe-path): Rename
1684 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1685 GDB_DATADIR/auto-load.
1686 * defs.h (substitute_path_component): New declaration.
1687 * top.c: Include observer.h.
1688 (set_gdb_datadir): New function.
1689 (init_main): Install it for "set data-directory".
1690 * utils.c (substitute_path_component): New function.
1692 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1694 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1695 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1696 DEBUG_FILE_DIRECTORY. Handle multiple components of
1697 DEBUG_FILE_DIRECTORY.
1699 2012-05-10 Tom Tromey <tromey@redhat.com>
1701 * dwarf2read.c (recursively_write_psymbols): New function.
1702 (write_psymtabs_to_index): Use it.
1704 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1706 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1707 (load_partial_comp_unit): Update.
1708 (queue_comp_unit): Add argument 'pretend_language'.
1709 (process_queue): Update.
1710 (psymtab_to_symtab_1): Skip dependencies that have a user.
1711 (load_partial_comp_unit_reader): Give meaning to the 'data'
1713 (load_full_comp_unit): Add 'pretend_language' argument.
1714 (process_full_comp_unit): Add 'pretend_language' argument. Set
1716 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1718 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1719 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1721 (prepare_one_comp_unit): Add 'pretend_language' argument.
1723 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1724 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1725 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1726 (dw2_do_instantiate_symtab): Check whether symtab was read in
1728 (dw2_instantiate_symtab): Add assertion. Call
1729 process_cu_includes.
1730 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1731 (partial_symtab_p): New typedef.
1732 (set_partial_user): New function.
1733 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1734 (scan_partial_symbols): Add imported CU to imported_symtabs.
1735 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1736 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1737 (get_symtab, recursively_compute_inclusions)
1738 (compute_symtab_includes, process_cu_includes)
1739 (process_imported_unit_die): New functions.
1740 (process_die) <DW_TAG_imported_unit>: New case.
1741 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1743 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1745 (struct partial_die_info) <locdesc>: Remove.
1747 (process_psymtab_comp_unit): Add 'read_partial' argument.
1749 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1750 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1751 (add_partial_symbol): Update.
1752 (process_die): Handle DW_TAG_partial_unit.
1753 (read_file_scope): Update comment.
1754 (load_partial_dies): Handle DW_TAG_imported_unit.
1755 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1756 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1758 2012-05-10 Tom Tromey <tromey@redhat.com>
1760 * cc-with-dwz.sh: New file.
1762 2012-05-10 Tom Tromey <tromey@redhat.com>
1764 * symtab.h (struct symtab) <includes, user>: New fields.
1765 * block.h (struct block_iterator) <d, idx, which>: New fields.
1766 * block.c (initialize_block_iterator, find_iterator_symtab)
1767 (block_iterator_step, block_iter_name_step)
1768 (block_iter_match_step): New functions.
1769 (block_iterator_first, block_iterator_next)
1770 (block_iter_name_first, block_iter_name_next)
1771 (block_iter_match_first, block_iter_match_next): Rewrite.
1772 (get_block_symtab): New function.
1774 2012-05-10 Tom Tromey <tromey@redhat.com>
1776 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1778 * jit.c (finalize_symtab): Use allocate_global_block,
1780 * buildsym.c (finish_block_internal): New function, from old
1782 (finish_block): Rewrite.
1783 (end_symtab): Use finish_block_internal, set_block_symtab.
1784 * block.h (struct global_block): New.
1785 (allocate_global_block, set_block_symtab): Declare.
1786 * block.c (allocate_global_block, set_block_symtab): New
1789 2012-05-10 Tom Tromey <tromey@redhat.com>
1791 * psymtab.c (partial_map_expand_apply): Add assertion.
1792 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1793 (psymtab_to_symtab): Find unshared psymtab.
1794 (dump_psymtab): Print including psymtabs.
1795 (recursively_search_psymtabs): New function.
1796 (expand_symtabs_matching_via_partial): Use it.
1797 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1799 (enum psymtab_search_status): New.
1801 2012-05-10 Tom Tromey <tromey@redhat.com>
1803 * tracepoint.c (scope_info): Update.
1804 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1805 (find_pc_sect_symtab, search_symbols)
1806 (default_make_symbol_completion_list_break_on)
1807 (make_file_symbol_completion_list): Update.
1808 * symmisc.c (dump_symtab_1): Update.
1809 * stack.c (print_frame_args, iterate_over_block_locals)
1810 (print_frame_labels, iterate_over_block_arg_vars): Update.
1811 * python/py-block.c (block_object) <dict>: Remove.
1813 <iter>: Change type.
1814 (blpy_iter): Update.
1815 (blpy_block_syms_iternext): Update.
1816 * psymtab.c (map_block): Use block iterators.
1817 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1818 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1819 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1820 * infrun.c (check_exception_resume): Update.
1821 * cp-support.c (make_symbol_overload_list_block): Update.
1822 * coffread.c (patch_opaque_types): Update.
1823 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1824 * block.h (struct block_iterator): New.
1825 (block_iterator_first, block_iterator_next, block_iter_name_first)
1826 (block_iter_name_next, block_iter_match_first)
1827 (block_iter_match_next): Declare.
1828 (ALL_BLOCK_SYMBOLS): Redefine.
1829 * block.c (block_iterator_first, block_iterator_next)
1830 (block_iter_name_first, block_iter_name_next)
1831 (block_iter_match_first, block_iter_match_next): New functions.
1832 * ada-lang.c (ada_add_block_symbols)
1833 (ada_make_symbol_completion_list): Use block iterator.
1835 2012-05-10 Tom Tromey <tromey@redhat.com>
1837 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1838 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1839 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1840 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1841 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1844 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1846 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1847 print-file-var-lib2.c, print-file-var-main.c and
1848 print-file-var.exp (located in gdb/testsuite/gdb.base).
1850 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1852 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1853 try locating the symbol in the symbol's own objfile first, before
1854 extending the search to all objfiles.
1855 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1856 out of lookup_symbol_aux_symtabs.
1857 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1858 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1859 Do not search EXCLUDE_OBJFILE.
1860 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1861 (lookup_symbol_global): Search for matches in the block's objfile
1862 first, before searching all other objfiles.
1864 2012-05-10 Tristan Gingold <gingold@adacore.com>
1866 * printcmd.c (set_command): Add pre/post inc/dec.
1868 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1870 * gdb.1: Document -ex option.
1872 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1874 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1875 * inferior.h (AT_SYMBOL): Delete.
1877 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1879 * mips-tdep.c (mips_push_dummy_code): New function.
1880 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1881 ON_STACK and install mips_push_dummy_code as our gdbarch
1882 push_dummy_code routine.
1884 2012-05-09 Pedro Alves <palves@redhat.com>
1886 * target.c (set_maintenance_target_async_permitted): Rename to ...
1887 (set_target_async_command): ... this.
1888 (show_maintenance_target_async_permitted): Rename to ...
1889 (show_target_async_command): ... this.
1890 (initialize_targets): Adjust.
1892 2012-05-08 Doug Evans <dje@google.com>
1894 * go-exp.y (classify_name): Add missing assignment of fields of
1897 2012-05-08 Eli Zaretskii <eliz@gnu.org>
1899 Display the ">" prompt in interactive mode while reading canned
1900 commands, even when the current interpreter is MI.
1902 * interps.c (interp_set_temp): New function.
1904 * interps.h (interp_set_temp): Add prototype.
1906 * cli/cli-script.c (restore_interp): New cleanup function.
1907 (read_command_lines): Temporarily override the current interpreter
1908 with CLI and arrange for restoring the original one.
1910 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1912 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1914 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1916 * probe.c (parse_probes): Move conditional to check for
1917 debuginfo files from here...
1918 * stap-probe.c (stap_get_probes): ... to here.
1920 2012-05-07 Mark Kettenis <kettenis@gnu.org>
1921 H.J. Lu <hongjiu.lu@intel.com>
1923 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1924 `movl %esp, %ebp' for the X32 ABI.
1926 2012-05-07 Tom Tromey <tromey@redhat.com>
1928 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1930 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1931 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1932 (dwarf_stack_op_name): Remove.
1933 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1934 (decode_locdesc): Use get_DW_OP_name.
1935 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1936 (dwarf2_compile_expr_to_ax): Likewise.
1937 (disassemble_dwarf_expression): Likewise.
1938 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1940 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
1942 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1943 (sh_linux_sigtramp_cache): New function.
1944 (sh_linux_sigreturn_init): New function.
1945 (sh_linux_rt_sigreturn_init): New function.
1946 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1948 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1950 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1951 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1952 (sh_linux_init_abi): Add init calls to register new tramp_frame
1953 definitions under 32-bit SH, update comments.
1955 2012-05-07 Pedro Alves <palves@redhat.com>
1959 * amd64-linux-tdep.c: Include glibc-tdep.h.
1960 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1961 gdbarch_skip_solib_resolver callback.
1963 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1965 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1966 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1967 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1968 (add_auto_load_safe_path): Change the error message.
1969 (_initialize_auto_load): Change the "safe-path" help text.
1970 * configure: Regenerate
1971 * configure.ac (--without-auto-load-safe-path): Set
1972 WITH_AUTO_LOAD_SAFE_PATH to /.
1974 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1976 * stap-probe.h: Do not include unecessary `probe.h'.
1978 2012-05-05 Alan Modra <amodra@gmail.com>
1980 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1981 bfd_und_section_ptr.
1982 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1983 and bfd_com_section_ptr.
1985 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1987 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1989 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1991 * windows-nat.h (segment_register_p_ftype): New typedef.
1992 (windows_set_segment_register_p): Add declaration.
1993 * windows-nat.c (segment_register_p): New static global.
1994 (windows_set_segment_register_p): New function.
1995 (do_windows_fetch_inferior_registers): Add special handling
1996 for segment registers.
1997 * amd64-windows-nat.c: #include "amd64-tdep.h".
1998 (amd64_windows_segment_register_p): New function.
1999 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2000 * i386-windows-nat.c: #include "i386-tdep.h".
2001 (i386_windows_segment_register_p): New function.
2002 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2004 2012-05-04 Tristan Gingold <gingold@adacore.com>
2006 * printcmd.c (set_command): Emit a warning if the expression is not
2009 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2011 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2014 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2016 * stap-probe.c (stap_is_operator): Change declaration.
2017 (stap_get_opcode): Change return value.
2018 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2019 `stap_parse_argument_1'.
2021 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2023 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2026 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2028 Add two new methods global_block and static_block to gdb.Symtab
2030 * NEWS (Python scripting): Add entry about the new methods.
2031 * python/py-symtab.c (stpy_global_block): New function which
2032 implements the gdb.Symtab.global_block() method.
2033 (stpy_static_block): New function which implements the
2034 gdb.Symtab.static_block() method.
2035 (symtab_object_methods): Add entries for the two new methods.
2037 2012-05-03 Doug Evans <dje@google.com>
2039 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2042 2012-05-03 Yao Qi <yao@codesourcery.com>
2044 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2046 (i386_process_record): Ditto.
2048 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2050 * infcall.c (unwind_on_signal_p): Make static.
2052 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2054 * sol-thread.c (solaris_pid_to_str): Make static.
2055 (_initialize_sol_thread): Add prototype.
2057 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2059 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2061 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2063 * MAINTAINERS: Remove myself.
2065 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2067 Fix --without-auto-load-safe-path for MS-Windows host platform.
2068 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2070 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2072 * gdb_curses.h: Undefine KEY_EVENT before including curses
2073 headers. Move "#undef MOUSE_MOVED" before any curses header
2076 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2078 * features/i386/i386-mmx-linux.c: Regenerate.
2079 * features/rs6000/powerpc-32.c: Likewise.
2080 * features/rs6000/powerpc-32l.c: Likewise.
2081 * features/rs6000/powerpc-403.c: Likewise.
2082 * features/rs6000/powerpc-403gc.c: Likewise.
2083 * features/rs6000/powerpc-405.c: Likewise.
2084 * features/rs6000/powerpc-505.c: Likewise.
2085 * features/rs6000/powerpc-601.c: Likewise.
2086 * features/rs6000/powerpc-602.c: Likewise.
2087 * features/rs6000/powerpc-603.c: Likewise.
2088 * features/rs6000/powerpc-604.c: Likewise.
2089 * features/rs6000/powerpc-64.c: Likewise.
2090 * features/rs6000/powerpc-64l.c: Likewise.
2091 * features/rs6000/powerpc-750.c: Likewise.
2092 * features/rs6000/powerpc-860.c: Likewise.
2093 * features/rs6000/powerpc-e500.c: Likewise.
2094 * features/rs6000/powerpc-e500l.c: Likewise.
2095 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2096 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2097 * features/rs6000/rs6000.c: Likewise.
2099 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2101 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2103 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2104 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2105 (stap_parse_argument) <e>: Likewise.
2106 (handle_stap_probe) <byte_order>: Likewise.
2108 2012-04-30 Doug Evans <dje@google.com>
2110 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2111 init_and_read_dies_worker. All callers updated.
2112 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2113 replaced with init_cutu_and_read_dies.
2114 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2115 (find_partial_die): Remove FIXME. Don't free current CU.
2117 2012-04-30 Sterling Augustine <saugustine@google.com>
2119 * contrib: New directory.
2120 * contrib/test_pubnames_and_indexes.py: New file.
2122 2012-04-30 Doug Evans <dje@google.com>
2124 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2125 All callers updated.
2126 (init_cu_die_reader): Verify the section is non-empty.
2127 (dwarf_decode_line_header): Don't dereference section->asection
2128 until we know the section is present.
2130 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2132 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2135 2012-04-29 Yao Qi <yao@codesourcery.com>
2137 * gdb-code-style.el: New hook gdb-markup-hook
2138 and gdb-comment-hook.
2140 2012-04-28 Doug Evans <dje@google.com>
2142 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2143 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2145 * symfile.h (dwarf2_debug_sections): New member addr.
2146 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2147 (ctx_no_get_addr_index): New function.
2148 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2149 (ctx_no_get_addr_index): Declare.
2150 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2151 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2152 (dwarf_expr_ctx_funcs): Update.
2153 (needs_get_addr_index): New function.
2154 (needs_frame_ctx_funcs): Update.
2155 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2156 * dwarf2read.c: #include "gdbcore.h".
2157 (dwarf2_per_objfile): New members addr, dwo_files.
2158 (dwarf2_elf_names): Add entry for addr.
2159 (struct dwo_section_names): New type.
2160 (dwo_section_names): New static global.
2161 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2162 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2163 old debug_types_section member updated to use this.
2164 Rename member debug_types_section to info_or_types_section,
2166 (signatured_type): Rename member type_offset to type_offset_in_tu,
2167 all uses updated. New member type_offset_in_section.
2168 (struct dwo_sections): New type.
2169 (struct dwo_unit): New type.
2170 (struct dwo_file): New type.
2171 (die_reader_specs): New member dwo_file.
2172 (dwarf2_locate_sections): Watch for .debug_addr.
2173 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2174 (dwarf2_read_section): Get bfd of section from bfd's asection,
2176 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2177 (create_signatured_type_table_from_index): Initialize
2178 sig_type->info_or_types_section.
2179 (dw2_get_file_names): Statement lists for type units with DWO files
2180 live in the DWO file.
2181 (create_debug_types_hash_table): New function.
2182 (create_all_type_units): Rewrite.
2183 (init_cu_die_reader): New arg dwo_file, all callers updated.
2184 (init_and_read_dies_worker): Get section from
2185 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2186 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2187 continue reading the CU/TU from there.
2188 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2189 updated. Get section from this_cu->info_or_types_section.
2190 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2191 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2192 DW_FORM_GNU_str_index.
2193 (hash_dwo_file, eq_dwo_file): New functions.
2194 (allocate_dwo_file_hash_table): New function.
2195 (hash_dwo_unit, eq_dwo_unit): New functions.
2196 (allocate_dwo_unit_table): New function.
2197 (dwarf2_locate_dwo_sections): New function.
2198 (struct create_dwo_info_table_data): New type.
2199 (create_debug_info_hash_table_reader): New function.
2200 (create_debug_info_hash_table): New function.
2201 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2202 (lookup_dwo_file): New function.
2203 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2204 (free_dwo_file, free_dwo_file_cleanup): New functions.
2205 (free_dwo_file_from_slot, free_dwo_files): New functions.
2206 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2207 (dwarf2_record_block_ranges): Ditto.
2208 (read_partial_die): Ditto.
2209 (process_enumeration_scope): Update to use type_offset_in_section.
2210 (read_full_die_1): New function.
2211 (read_full_die): Rewrite.
2212 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2213 DW_FORM_GNU_str_index.
2214 (read_addr_index_1, read_addr_index): New functions.
2215 (read_addr_index_from_leb128): New function.
2216 (struct dwarf2_read_addr_index_data): New type.
2217 (dwarf2_read_addr_index_reader): New function.
2218 (dwarf2_read_addr_index): New function.
2219 (read_str_index): New function.
2220 (leb128_size): New function.
2221 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2222 If processing a type unit from a DWO file, get the line section
2224 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2225 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2226 DW_FORM_GNU_str_index.
2227 (lookup_die_type): Check whether section offset of type's die is
2228 known before looking it up. Remove assert. Condition can
2229 legimately happen for inter-cu type references.
2230 (dwarf_attr_name): Handle Fission attributes.
2231 (dwarf_form_name): Handle Fission forms.
2232 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2233 DW_FORM_GNU_str_index.
2234 (follow_die_sig): Update to use type_offset_in_section.
2235 (decode_locdesc): New case DW_OP_GNU_addr_index.
2236 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2237 DW_FORM_GNU_str_index.
2238 (cu_debug_loc_section): New function.
2239 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2240 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2241 Free DWO files if present.
2242 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2244 Refactor DIE reading.
2245 * dwarf2read.c (dwarf2_per_objfile): Replace members
2246 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2247 (die_reader_specs): New member "die_section". Temporarily make
2248 member "buffer" non-const, pending constifying all info_ptr uses.
2249 (die_reader_func_ftype): New typedef.
2250 (dw2_get_file_names_reader): New function.
2251 (dw2_get_file_names): Rewrite.
2252 (read_and_check_type_unit_head): Rename arg type_offset to
2254 (create_all_type_units): Improve debugging message.
2255 Improve dummy type unit check.
2256 (init_cu_die_reader): New arg "section". All callers updated.
2257 (init_and_read_dies_worker): New function.
2258 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2259 (init_cutu_and_read_dies_no_follow): New function.
2260 (init_cutu_and_read_dies_simple): New function.
2261 (process_psymtab_comp_unit_reader): New function.
2262 (process_psymtab_comp_unit): Delete args section,
2263 is_debug_types_section. Rewrite. All callers updated.
2264 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2265 All callers updated. Rewrite.
2266 (load_partial_comp_unit_reader): New function.
2267 (load_partial_comp_unit): Rewrite.
2268 (skip_children): New arg reader. Delete args buffer, cu.
2269 All callers updated.
2270 (skip_one_die): New arg reader. Delete args buffer, cu.
2271 All callers updated.
2272 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2273 All callers updated.
2274 (load_full_comp_unit_reader): New function.
2275 (load_full_comp_unit): Rewrite.
2276 (read_comp_unit): Delete.
2277 (read_die_and_children_1): Delete, contents moved ...
2278 (read_die_and_children): ... here.
2279 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2280 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2281 All callers updated.
2282 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2283 All callers updated.
2284 (find_partial_die): Rewrite load_all_dies support.
2285 (read_attribute_value): New arg reader. Delete args abfd, cu.
2286 All callers updated.
2287 (read_attribute): New arg reader. Delete args abfd, cu.
2288 All callers updated.
2289 (load_full_type_unit): Add assert.
2290 (read_signatured_type_reader): New function.
2291 (read_signatured_type): Rewrite.
2292 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2293 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2294 All callers updated. Set per_cu->cu = NULL after freeing it.
2295 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2296 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2297 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2298 (set_die_type): Update.
2299 (get_die_type_at_offset): Update.
2300 (read_file_scope): Call prepare_one_comp_unit.
2301 (read_type_unit_scope): Ditto.
2302 (prepare_one_comp_unit): Set producer if present.
2304 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2306 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2307 gettext function on `error'.
2309 2012-04-27 Doug Evans <dje@google.com>
2311 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2314 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2315 Tom Tromey <tromey@redhat.com>
2317 * breakpoint.c (struct breakpoint_objfile_data)
2318 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2319 <exception_probes>: New fields.
2320 (free_breakpoint_probes): New function.
2321 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2322 `_Unwind_DebugHook'.
2323 (create_exception_master_breakpoint): Likewise.
2324 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2325 * infrun.c: Including necessary header files for handling SystemTap
2327 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2328 via SystemTap probes.
2329 (check_exception_resume): Remove `func' argument. Handle exception
2330 unwinding breakpoint set via a SystemTap probe.
2331 (insert_exception_resume_from_probe): New function.
2333 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2334 Tom Tromey <tromey@redhat.com>
2335 Jan Kratochvil <jan.kratochvil@redhat.com>
2337 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2338 (COMMON_OBS): Likewise.
2339 (HFILES_NO_SRCDIR): Add `probe'.
2340 * NEWS: Mention support for static and SystemTap probes.
2341 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2342 SystemTap probes' arguments parser.
2343 * arm-linux-tdep.c: Including headers needed to perform the parsing
2344 of SystemTap probes' arguments.
2345 (arm_stap_is_single_operand): New function.
2346 (arm_stap_parse_special_token): Likewise.
2347 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2348 probes' arguments parser.
2349 * ax-gdb.c (require_rvalue): Removing static declaration.
2350 (gen_expr): Likewise.
2351 * ax-gdb.h (gen_expr): Declaring function.
2352 (require_rvalue): Likewise.
2353 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2354 (bkpt_probe_breakpoint_ops): New variable.
2355 (momentary_breakpoint_from_master): Set the `probe' value.
2356 (add_location_to_breakpoint): Likewise.
2357 (break_command_1): Using proper breakpoint_ops according to the
2358 argument passed by the user in the command line.
2359 (bkpt_probe_insert_location): New function.
2360 (bkpt_probe_remove_location): Likewise.
2361 (bkpt_probe_create_sals_from_address): Likewise.
2362 (bkpt_probe_decode_linespec): Likewise.
2363 (tracepoint_probe_create_sals_from_address): Likewise.
2364 (tracepoint_probe_decode_linespec): Likewise.
2365 (tracepoint_probe_breakpoint_ops): New variable.
2366 (trace_command): Using proper breakpoint_ops according to the
2367 argument passed by the user in the command line.
2368 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2369 static probes on breakpoints and tracepoints.
2370 * breakpoint.h (struct bp_location) <probe>: New field.
2371 * cli-utils.c (skip_spaces_const): New function.
2372 (extract_arg): Likewise.
2373 * cli-utils.h (skip_spaces_const): Likewise.
2374 (extract_arg): Likewise.
2375 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2376 * configure.ac: Append `stap-probe.o' to be generated when ELF
2378 * configure: Regenerate.
2379 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2380 * elfread.c: Include `probe.h' and `arch-utils.h'.
2381 (probe_key): New variable.
2382 (elf_get_probes): New function.
2383 (elf_get_probe_argument_count): Likewise.
2384 (elf_evaluate_probe_argument): Likewise.
2385 (elf_compile_to_ax): Likewise.
2386 (elf_symfile_relocate_probe): Likewise.
2387 (stap_probe_key_free): Likewise.
2388 (elf_probe_fns): New variable.
2389 (elf_sym_fns): Add `sym_probe_fns' value.
2390 (elf_sym_fns_lazy_psyms): Likewise.
2391 (elf_sym_fns_gdb_index): Likewise.
2392 (_initialize_elfread): Initialize objfile cache for static
2394 * gdb_vecs.h (struct probe): New forward declaration.
2395 (probe_p): New VEC declaration.
2396 * gdbarch.c: Regenerate.
2397 * gdbarch.h: Regenerate.
2398 * gdbarch.sh (stap_integer_prefix): New variable.
2399 (stap_integer_suffix): Likewise.
2400 (stap_register_prefix): Likewise.
2401 (stap_register_suffix): Likewise.
2402 (stap_register_indirection_prefix): Likewise.
2403 (stap_register_indirection_suffix): Likewise.
2404 (stap_gdb_register_prefix): Likewise.
2405 (stap_gdb_register_suffix): Likewise.
2406 (stap_is_single_operand): New function.
2407 (stap_parse_special_token): Likewise.
2408 (struct stap_parse_info): Forward declaration.
2409 * i386-tdep.c: Including headers needed to perform the parsing
2410 of SystemTap probes' arguments.
2411 (i386_stap_is_single_operand): New function.
2412 (i386_stap_parse_special_token): Likewise.
2413 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2414 probes' arguments parser.
2415 * i386-tdep.h (i386_stap_is_single_operand): New function.
2416 (i386_stap_parse_special_token): Likewise.
2417 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2418 * mipsread.c (ecoff_sym_fns): Likewise.
2419 * objfiles.c (objfile_relocate1): Support relocation for static
2421 * parse.c (prefixify_expression): Remove static declaration.
2422 (initialize_expout): Likewise.
2423 (reallocate_expout): Likewise.
2424 * parser-defs.h (initialize_expout): Declare function.
2425 (reallocate_expout): Likewise.
2426 (prefixify_expression): Likewise.
2427 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2428 of SystemTap probes' arguments.
2429 (ppc_stap_is_single_operand): New function.
2430 (ppc_stap_parse_special_token): Likewise.
2431 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2432 probes' arguments parser.
2433 * probe.c: New file, for generic statically defined probe support.
2434 * probe.h: Likewise.
2435 * s390-tdep.c: Including headers needed to perform the parsing of
2436 SystemTap probes' arguments.
2437 (s390_stap_is_single_operand): New function.
2438 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2439 probes' arguments parser.
2440 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2441 * stap-probe.c: New file, for SystemTap probe support.
2442 * stap-probe.h: Likewise.
2443 * symfile.h: Include `gdb_vecs.h'.
2444 (struct sym_probe_fns): New struct.
2445 (struct sym_fns) <sym_probe_fns>: New field.
2446 * symtab.c (init_sal): Initialize `probe' field.
2447 * symtab.h (struct probe): Forward declaration.
2448 (struct symtab_and_line) <probe>: New field.
2449 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2451 (stop_tracing): Likewise.
2452 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2454 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2455 Tom Tromey <tromey@redhat.com>
2457 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2458 and to compile agent expressions.
2459 * infrun.c (siginfo_make_value): New argument `ignore'.
2460 (siginfo_funcs): New struct.
2461 (_initialize_infrun): New argument when calling
2462 `create_internalvar_type_lazy'.
2463 * thread.c (thread_id_make_value): New argument `ignore'.
2464 (thread_funcs): New struct.
2465 (_initialize_thread): New argument when calling
2466 `create_internalvar_type_lazy'.
2467 * tracepoint.c (sdata_make_value): New argument `ignore'.
2468 (sdata_funcs): New struct.
2469 (_initialize_tracepoint): New argument when calling
2470 `create_internalvar_type_lazy'.
2471 * value.c (make_value): New struct.
2472 (create_internalvar_type_lazy): New argument `data'.
2473 (compile_internalvar_to_ax): New function.
2474 (value_of_internalvar): Properly handling `make_value' case.
2475 (clear_internalvar): Likewise.
2476 (show_convenience): Adding `TRY_CATCH' block.
2477 * value.h (internalvar_make_value): Delete, replace by...
2478 (struct internalvar_funcs): ... this.
2479 (create_internalvar_type_lazy) <fun>: Delete argument.
2480 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2481 (compile_internalvar_to_ax): New function.
2482 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2483 (tlb_funcs): New struct.
2484 (_initialize_windows_tdep): New argument when calling
2485 `create_internalvar_type_lazy'.
2487 2012-04-27 Mark Wielaard <mjw@redhat.com>
2489 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2490 see whether it is an address or a constant offset from DW_AT_low_pc.
2491 (dwarf2_record_block_ranges): Likewise.
2492 (read_partial_die): Likewise.
2494 2012-04-26 Mark Wielaard <mjw@redhat.com>
2496 * MAINTAINERS (Write After Approval): Add myself to the list.
2498 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2500 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2501 (proc_prettyprint_signal): Likewise.
2502 (proc_prettyprint_faultset): Likewise.
2503 (proc_prettyprint_fault): Likewise.
2504 (proc_prettyprint_actionset): Likewise.
2505 (proc_prettyprint_flags): Move to new proc-flags.c section.
2506 (proc_prettyfprint_flags): New prototype.
2507 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2508 (proc_syscall, proc_cursig): Likewise.
2509 (proc_set_kill_on_last_close): Likewise.
2510 (proc_unset_kill_on_last_close): Likewise.
2511 (proc_set_watchpoint): Make static.
2512 (proc_delete_dead_threads): Likewise.
2513 (procfs_set_watchpoint): Likewise.
2514 (_initialize_procfs): Add prototype.
2515 * proc-events.c: Include proc-utils.h.
2516 (init_syscall_table): Make static.
2517 * proc-api.c (_initialize_proc_api): Add prototype.
2518 * proc-flags.c: Include proc-utils.h.
2520 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2522 * configure.ac: Add AC_ARG_PROGRAM.
2523 * configure: Regenerate.
2525 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2527 Fix DW_AT_lower_bound defaults for DWARF-4+.
2528 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2529 high. New variable low_default_is_valid. Implement DWARF-4+
2530 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2531 no default by the DWARF standard.
2533 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2534 Maciej W. Rozycki <macro@codesourcery.com>
2536 * infrun.c (handle_inferior_event): Move the check for return
2537 trampolines ahead of the check for function trampolines.
2538 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2539 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2540 (mips_str_mips16_ret_stub): Likewise.
2541 (mips_str_call_fp_stub): Likewise.
2542 (mips_str_call_stub): Likewise.
2543 (mips_str_fn_stub): Likewise.
2544 (mips_str_pic): Likewise.
2545 (mips_in_frame_stub): New function.
2546 (mips_unwind_pc): Return the return address rather than the PC
2547 if the PC of an intermediate frame is inside a call thunk.
2548 (mips_is_stub_suffix): New function.
2549 (mips_is_stub_mode): Likewise.
2550 (mips_get_mips16_fn_stub_pc): Likewise.
2551 (mips_skip_mips16_trampoline_code): Update to handle all the
2552 currently generated stub types. Don't recurse into __fn_stub
2553 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2554 Use cooked register accesses.
2555 (mips_in_return_stub): Reintroduce function.
2556 (mips_skip_trampoline_code): Traverse trampolines recursively.
2557 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2559 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2563 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2565 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2566 * features/arm-with-m-vfp-d16.xml: New file. Describes
2567 Cortex-M with VFPv4-sp-d16 FPU register layout.
2568 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2569 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2570 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2571 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2572 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2574 2012-04-25 Doug Evans <dje@google.com>
2576 * cli/cli-decode.c (print_doc_line): Use stream instead of
2579 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2581 * features/arm-with-iwmmxt.c: Regenerate.
2582 * features/arm-with-m-fpa-layout.c: Likewise.
2583 * features/arm-with-m.c: Likewise.
2584 * features/arm-with-neon.c: Likewise.
2585 * features/arm-with-vfpv2.c: Likewise.
2586 * features/arm-with-vfpv3.c: Likewise.
2587 * features/mips-dsp-linux.c: Likewise.
2588 * features/mips-linux.c: Likewise.
2589 * features/mips64-dsp-linux.c: Likewise.
2590 * features/mips64-linux.c: Likewise.
2591 * features/s390-linux32.c: Likewise.
2592 * features/s390-linux32v1.c: Likewise.
2593 * features/s390-linux32v2.c: Likewise.
2594 * features/s390-linux64.c: Likewise.
2595 * features/s390-linux64v1.c: Likewise.
2596 * features/s390-linux64v2.c: Likewise.
2597 * features/s390x-linux64.c: Likewise.
2598 * features/s390x-linux64v1.c: Likewise.
2599 * features/s390x-linux64v2.c: Likewise.
2600 * features/tic6x-c62x-linux.c: Likewise.
2601 * features/tic6x-c62x.c: Likewise.
2602 * features/tic6x-c64x-linux.c: Likewise.
2603 * features/tic6x-c64x.c: Likewise.
2604 * features/tic6x-c64xp-linux.c: Likewise.
2605 * features/tic6x-c64xp.c: Likewise.
2606 * target-descriptions.c: Only generate `field_type' and `type'
2607 variables when needed.
2609 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2611 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2613 2012-04-25 Doug Evans <dje@google.com>
2615 Initial pass at Go language support.
2617 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2619 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2620 (YYFILES): Add go-exp.c.
2621 (YYOBJ): Add go-exp.o.
2622 (local-maintainer-clean): Delete go-exp.c.
2623 * defs.h (enum language): Add language_go.
2624 * dwarf2read.c: #include "go-lang.h".
2625 (fixup_go_packaging): New function.
2626 (process_full_comp_unit): Call it when processing Go CUs.
2627 (dwarf2_physname): Add Go support.
2628 (read_file_scope): Handle missing language spec for GNU Go.
2629 (set_cu_language): Handle DW_LANG_Go.
2630 * go-exp.y: New file.
2631 * go-lang.h: New file.
2632 * go-lang.c: New file.
2633 * go-typeprint.c: New file.
2634 * go-valprint.c: New file.
2635 * symtab.c: #include "go-lang.h".
2636 (symbol_set_language): Handle language_go.
2637 (symbol_find_demangled_name, symbol_set_names): Ditto.
2638 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2640 2012-04-24 Jim Meyering <meyering@redhat.com>
2642 avoid a few strncpy-induced buffer overruns
2643 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2644 fname and psargs before trying to concatenate.
2645 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2646 "name" before applying strchr.
2648 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2650 * CONTRIBUTE: Use unified diff instead of context diff when
2653 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2655 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2656 code. Handle JR.HB correctly.
2658 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2661 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2662 with the other MIPS16 helpers.
2664 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2666 * observer.sh: Conditionally declare `args', thus cleaning up
2667 unused instances of this variable.
2669 2012-04-24 Yao Qi <yao@codesourcery.com>
2671 Revert this patch to allow breakpoint always-inserted
2673 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2674 * breakpoint.c: Include record.h.
2675 (breakpoints_always_inserted_mode): Return false when the record
2678 * breakpoint.c (iterate_over_bp_locations): New.
2679 * breakpoint.h: Declare.
2680 New typedef walk_bp_location_callback.
2681 * record.c (record_open): Call record_init_record_breakpoints.
2682 (record_sync_record_breakpoints): New.
2683 (record_init_record_breakpoints): New.
2684 * NEWS: Mention supporting breakpoint always-inserted mode in
2687 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2689 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2692 2012-04-24 Yao Qi <yao@codesourcery.com>
2694 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2695 (is_catchpoint): ... it.
2696 (print_one_breakpoint_location): Caller update.
2697 * breakpoint.h: Update declaration.
2699 2012-04-23 David S. Miller <davem@davemloft.net>
2701 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2703 2012-04-23 Tom Tromey <tromey@redhat.com>
2705 * buildsym.c (add_free_pendings): Remove.
2706 * buildsym.h (add_free_pendings): Remove.
2708 2012-04-23 Doug Evans <dje@google.com>
2710 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2711 attr.u.unsnd instead of attr.u.addr.
2712 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2713 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2715 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2716 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2718 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2720 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2722 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2723 (mips_o32_return_value): Likewise.
2724 (mips_o64_return_value): Likewise.
2726 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2728 * ada-lang.c (ada_evaluate_subexp): Add cases for
2729 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2730 their treatment in eval.c.
2732 2012-04-21 David S. Miller <davem@davemloft.net>
2734 * sparc-tdep.c (X_DISP10): Define.
2735 (sparc_analyze_control_transfer): Handle compare-and-branch.
2737 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2739 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2740 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2742 2012-04-20 Nigel Stephens <nigel@mips.com>
2743 Maciej W. Rozycki <macro@codesourcery.com>
2745 * mips-tdep.c (mips_float_register_p): New function.
2746 (mips_convert_register_float_case_p): Use mips_float_register_p.
2747 (mips_register_type): Likewise.
2748 (mips_print_register): Likewise.
2749 (print_gp_register_row): Likewise.
2750 (mips_print_registers_info): Likewise.
2752 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2754 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2757 2012-04-20 Andrew Pinski <apinski@cavium.com>
2759 * MAINTAINERS (Write After Approval): Add myself to the list.
2761 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2763 * MAINTAINERS: Update my e-mail address.
2765 2012-04-20 Pedro Alves <palves@redhat.com>
2767 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2769 * configure: Regenerate.
2771 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2773 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2775 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2777 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2779 Fix compilation compatibility with python-2.4
2780 * python/py-type.c (convert_field): Cast ADDRSTRING for
2781 PyObject_SetAttrString as non-const. New comment.
2783 2012-04-19 Tom Tromey <tromey@redhat.com>
2785 * top.c (quit_target): Use all_cleanups.
2786 * main.c (captured_command_loop): Use all_cleanups.
2787 * exceptions.c (throw_exception): Use all_cleanups.
2789 2012-04-19 Pedro Alves <palves@redhat.com>
2791 * Makefile.in (GNULIB_BUILDDIR): New.
2792 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2793 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2794 (CLEANDIRS). Remove gnulib/import.
2795 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2797 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2798 (gnulib/import/Makefile): Replace gnulib/import with
2799 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2800 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2801 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2802 acx_configure_dir.m4.
2803 * acinclude.m4: Include acx_configure_dir.m4.
2804 * acx_configure_dir.m4: New file.
2805 * aclocal.m4: Regenerate.
2806 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2807 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2808 (GNULIB): New variable.
2809 (GNULIB_STDINT_H): Adjust.
2810 (AC_OUTPUT): Don't output gnulib/Makefile.
2811 * gdb/defs.h: Include build-gnulib/config.h.
2812 * aclocal.m4: Regenerate.
2813 * config.in: Regenerate.
2814 * configure: Regenerate.
2816 * gnulib/Makefile.in: New file.
2817 * gnulib/configure.ac: New file.
2818 * gnulib/aclocal.m4: New file.
2819 * gnulib/config.in: New file.
2820 * gnulib/configure: New file.
2821 * gnulib/: Re-run gnulib-tool to adjust.
2823 2012-04-19 Doug Evans <dje@google.com>
2825 * cleanups.h (struct cleanup): Move to cleanups.c.
2826 (make_cleanup_dtor_ftype): New typedef.
2827 (make_cleanup_dtor): Use it.
2828 (ALL_CLEANUPS): Replace with ...
2829 (all_cleanups): ... this. Declare. All uses updated.
2830 * cleanups.c: #include "gdb_assert.h".
2831 (sentinel_cleanup): New static global.
2832 (SENTINEL_CLEANUP): Define.
2833 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2834 (make_my_cleanup2): Assert result is non-NULL.
2835 (all_cleanups): New function.
2836 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2839 2012-04-19 Pedro Alves <palves@redhat.com>
2841 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2842 Adjust paths to gnulib imported files.
2844 2012-04-19 Pedro Alves <palves@redhat.com>
2846 * gnulib/: Move whole directory ...
2847 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2848 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2849 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2850 (aclocal_m4_deps): Adjust.
2851 * aclocal.m4: Regenerate.
2852 * configure: Regenerate.
2853 * configure.ac: Adjust AC_OUTPUT output.
2855 2012-04-19 Yao Qi <yao@codesourcery.com>
2857 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2859 * vec.c: Move it ...
2860 * common/vec.c: ... here.
2861 * vec.h: Move it ...
2862 * common/vec.h: ... here.
2864 2012-04-19 Yao Qi <yao@codesourcery.com>
2866 * gdb-code-style.el: New.
2868 2012-04-18 Pedro Alves <palves@redhat.com>
2870 Update gnulib from latest git.
2871 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2873 * gnulib/Makefile.am: Update.
2874 * gnulib/dummy.c: Update.
2875 * gnulib/extra/arg-nonnull.h: Update.
2876 * gnulib/extra/c++defs.h: Update.
2877 * gnulib/extra/update-copyright: Update.
2878 * gnulib/extra/warn-on-use.h: Update.
2879 * gnulib/inttypes.in.h: Update.
2880 * gnulib/m4/00gnulib.m4: Update.
2881 * gnulib/m4/extensions.m4: Update.
2882 * gnulib/m4/gnulib-cache.m4: Update.
2883 * gnulib/m4/gnulib-common.m4: Update.
2884 * gnulib/m4/gnulib-comp.m4: Update.
2885 * gnulib/m4/gnulib-tool.m4: Update.
2886 * gnulib/m4/include_next.m4: Update.
2887 * gnulib/m4/inttypes-pri.m4: Update.
2888 * gnulib/m4/inttypes.m4: Update.
2889 * gnulib/m4/longlong.m4: Update.
2890 * gnulib/m4/memchr.m4: Update.
2891 * gnulib/m4/memmem.m4: Update.
2892 * gnulib/m4/mmap-anon.m4: Update.
2893 * gnulib/m4/multiarch.m4: Update.
2894 * gnulib/m4/onceonly.m4: Update.
2895 * gnulib/m4/stddef_h.m4: Update.
2896 * gnulib/m4/stdint.m4: Update.
2897 * gnulib/m4/string_h.m4: Update.
2898 * gnulib/m4/warn-on-use.m4: Update.
2899 * gnulib/m4/wchar_h.m4: Update.
2900 * gnulib/m4/wchar_t.m4: Update.
2901 * gnulib/m4/wint_t.m4: Update.
2902 * gnulib/memchr.c: Update.
2903 * gnulib/memmem.c: Update.
2904 * gnulib/stddef.in.h: Update.
2905 * gnulib/stdint.in.h: Update.
2906 * gnulib/str-two-way.h: Update.
2907 * gnulib/string.in.h: Update.
2908 * gnulib/wchar.in.h: Update.
2910 * gnulib/extra/arg-nonnull.h: Delete.
2911 * gnulib/extra/c++defs.h: Delete.
2912 * gnulib/extra/warn-on-use.h: Delete.
2913 * gnulib/m4/wchar_h.m4: Delete.
2914 * gnulib/m4/wint_t.m4: Delete.
2915 * gnulib/wchar.in.h: Delete.
2917 * gnulib/extra/snippets/arg-nonnull.h: New.
2918 * gnulib/extra/snippets/c++defs.h: New.
2919 * gnulib/extra/snippets/warn-on-use.h: New.
2921 * aclocal.m4: Regenerate.
2922 * config.in: Regenerate.
2923 * configure: Regenerate.
2924 * gnulib/Makefile.in: Regenerate.
2926 2012-04-18 Pedro Alves <palves@redhat.com>
2928 Reimport the update-copyright module from gnulib
2929 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2931 * configure: Regenerate.
2932 * gnulib/Makefile.am: Update.
2933 * gnulib/Makefile.in: Regenerate.
2934 * gnulib/extra/update-copyright: Update.
2935 * gnulib/m4/gnulib-cache.m4: Update.
2936 * gnulib/m4/gnulib-comp.m4: Update.
2938 2012-04-18 Tristan Gingold <gingold@adacore.com>
2940 * configure.ac (aix): Put -lpthread into libs.
2941 * configure: Regenerate.
2943 2012-04-18 Tom Tromey <tromey@redhat.com>
2945 * linespec.c (convert_linespec_to_sals): Don't use
2947 (compare_msymbols): Arguments are minsym_and_objfile, not
2948 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2950 2012-04-18 Pedro Alves <palves@redhat.com>
2952 Revert gnulib/ part of:
2953 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2954 Copyright year update in most files (performed by copyright.sh).
2956 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2958 Fix 64-bit constants on 32-bit hosts.
2959 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2960 from unsigned long to ULONGEST.
2961 (read_signed_leb128): Change declaration return type from long to
2963 (dwarf2_const_value_attr): Change declaration parameter value from long
2965 (dwarf2_compute_name): Change variable value from long to LONGEST.
2966 (read_unsigned_leb128): Change return type, variable result and some
2967 casts from unsigned long to ULONGEST.
2968 (read_signed_leb128): Change return type, variable result and some
2969 casts from long to LONGEST.
2970 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2971 value from long to LONGEST.
2972 (dwarf2_const_value): Change variable value from long to LONGEST.
2973 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2974 plongest and hex_string.
2975 * symtab.h (struct general_symbol_info): Change ivalue from long to
2976 LONGEST, remove the comment.
2977 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2978 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2980 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2983 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2984 * ada-lang.c (ada_discrete_type_high_bound)
2985 (ada_discrete_type_low_bound): Fix function comment. Use
2986 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2987 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2988 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2989 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2990 Use TYPE_FIELD_ENUMVAL.
2991 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2992 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2993 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2994 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2996 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2997 * dwarf2read.c (process_enumeration_scope): Likewise.
2998 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3000 (class StructMainTypePrettyPrinter): Support also
3001 FIELD_LOC_KIND_ENUMVAL.
3002 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3004 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3005 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3006 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3007 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3009 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3010 accommodate enumval.
3011 (struct call_site): Adjust loc_kind to accommodate enumval.
3012 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3013 (TYPE_FIELD_ENUMVAL): New macros.
3014 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3015 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3017 * p-typeprint.c (pascal_type_print_base): Likewise.
3018 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3020 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3021 * python/py-type.c (convert_field): New variable addrstring. Use
3022 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3023 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3024 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3025 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3027 * valprint.c (generic_val_print): Likewise.
3029 2012-04-17 Doug Evans <dje@google.com>
3031 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3033 * dwarf2read.c: Whitespace fixes.
3034 (lookup_signatured_type): Tweak comment.
3035 (get_die_type_at_offset): Fix comment.
3037 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3039 * xcoffread.c (xcoff_secnum_to_sections): New function.
3040 (secnum_to_section, secnum_to_bfd_section): Reimplement
3041 using xcoff_secnum_to_sections. Rename "secnum" parameter
3043 (RECORD_MINIMAL_SYMBOL): Delete.
3044 (record_minimal_symbol): New function.
3045 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3046 by call to record_minimal_symbol and set misc_func_recorded
3047 to 1. Set last_csect_sec to the XCOFF section index instead
3048 of GDB's section_offset index. Update calls to
3049 prim_record_minimal_symbol_and_info to pass the BFD section
3052 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3054 * xcoffread.c (read_xcoff_symtab): Delete variables
3055 last_csect_val and last_csect_sec and associated code.
3057 2012-04-17 Doug Evans <dje@google.com>
3059 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3060 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3061 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3062 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3064 * cleanups.h: New file.
3065 * cleanups.c: New file.
3066 * Makefile.in (SFILES): Add cleanups.c.
3067 (HFILES_NO_SRCDIR): Add cleanups.h.
3068 (COMMON_OBS): Add cleanups.o.
3069 * defs.h (struct cleanup): Moved to cleanups.h.
3070 (do_cleanups,do_final_cleanups): Ditto.
3071 (discard_cleanups,discard_final_cleanups): Ditto
3072 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3073 (save_cleanups,save_final_cleanups): Ditto.
3074 (restore_cleanups,restore_final_cleanups): Ditto.
3075 (null_cleanup): Ditto.
3076 (make_my_cleanup,make_my_cleanup2): Ditto.
3077 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3078 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3079 (do_cleanups,do_final_cleanups): Ditto.
3080 (discard_cleanups,discard_final_cleanups): Ditto
3081 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3082 (save_cleanups,save_final_cleanups): Ditto.
3083 (restore_cleanups,restore_final_cleanups): Ditto.
3084 (null_cleanup): Ditto.
3085 (make_my_cleanup,make_my_cleanup2): Ditto.
3086 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3088 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3090 (make_cleanup_dyn_string_delete): Ditto.
3091 (make_cleanup_ui_file_delete): Ditto.
3092 (make_cleanup_ui_out_redirect_pop): Ditto.
3093 (make_cleanup_free_section_addr_info): Ditto.
3094 (make_cleanup_restore_integer): Ditto.
3095 (make_cleanup_unpush_target): Ditto.
3096 (make_cleanup_value_free_to_mark): Ditto.
3097 (make_cleanup_value_free): Ditto.
3098 (make_cleanup_free_so): Ditto.
3100 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3102 New option "set debug auto-load".
3103 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3104 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3105 (auto_load_safe_path_vec_update)
3106 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3108 (file_is_auto_load_safe): New parameters debug_fmt and ....
3109 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3110 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3111 caller by explanatory string.
3112 (_initialize_auto_load): Register "set debug auto-load".
3113 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3115 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3116 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3117 by explanatory string.
3118 * main.c (captured_main): Likewise.
3119 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3120 (source_section_scripts): Likewise.
3122 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3124 New option "set auto-load safe-path".
3125 * NEWS: New commands "set auto-load safe-path"
3126 and "show auto-load safe-path".
3127 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3128 (auto_load_safe_path, auto_load_safe_path_vec)
3129 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3130 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3131 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3132 (source_gdb_script_for_objfile): New variable is_safe. Call
3133 file_is_auto_load_safe. Return if it is not.
3134 (struct loaded_script): New field loaded.
3135 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3136 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3137 output "Missing" to "No".
3138 (_initialize_auto_load): New variable cmd. Initialize
3139 auto_load_safe_path. Register "set auto-load safe-path",
3140 "show auto-load safe-path" and "add-auto-load-safe-path".
3141 * auto-load.h (maybe_add_script): Add parameter loaded.
3142 (file_is_auto_load_safe): New declaration.
3143 * config.in: Regenerate.
3144 * configure: Regenerate.
3145 * configure.ac: New parameters --with-auto-load-safe-path
3146 and --without-auto-load-safe-path.
3147 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3148 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3149 * main.c (captured_main): Check file_is_auto_load_safe for
3151 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3152 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3153 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3156 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3158 auto-load: Implementation.
3159 * NEWS: New descriptions for "info auto-load",
3160 "info auto-load gdb-scripts", "info auto-load python-scripts",
3161 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3162 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3163 and "show auto-load-scripts". New description for "set auto-load",
3164 "show auto-load", "set auto-load gdb-scripts",
3165 "show auto-load gdb-scripts", "set auto-load python-scripts",
3166 "show auto-load python-scripts", "set auto-load local-gdbinit",
3167 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3168 "show auto-load libthread-db".
3169 * auto-load.c: Remove include python/python-internal.h. Add includes
3170 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3172 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3173 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3174 (gdbpy_global_auto_load): Rename to ...
3175 (global_auto_load): ... here.
3176 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3177 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3178 (script_language_gdb, source_gdb_script_for_objfile): New.
3179 (struct loaded_script): New field language.
3180 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3182 (maybe_add_script): Add parameter language. Drop redundant
3183 entry.full_path initialization. Initialize entry.language and
3185 (auto_load_objfile_script): Change parameter suffix to language.
3186 Remove the call of maybe_add_script.
3187 Call language->source_script_for_objfile.
3188 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3190 (collect_matching_scripts): Adjust it for
3191 struct collect_matching_scripts_data.
3192 (auto_load_info_scripts_pattern_nl): New variable.
3193 (info_auto_load_scripts): Rename to ...
3194 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3195 for struct collect_matching_scripts_data.
3196 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3197 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3198 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3199 (auto_load_info_cmdlist_get): New.
3200 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3201 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3202 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3203 "info auto-load local-gdbinit".
3204 * auto-load.h (struct script_language): New.
3205 (gdbpy_global_auto_load): Rename to ...
3206 (global_auto_load): ... here.
3207 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3208 (auto_load_local_gdbinit_loaded): New declarations.
3209 (maybe_add_script): New parameter language.
3210 (auto_load_objfile_script): Change parameter suffix to language.
3211 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3212 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3213 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3215 * linux-thread-db.c: Include auto-load.h and ctype.h.
3216 (auto_load_thread_db, show_auto_load_thread_db): New.
3217 (struct thread_db_info): New field filename.
3218 (delete_thread_db_info): Call xfree for FILENAME.
3219 (try_thread_db_load): Initialize FILENAME.
3220 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3221 if !AUTO_LOAD_THREAD_DB.
3222 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3223 (_initialize_thread_db): Install auto_load_thread_db
3224 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3225 as "info auto-load libthread-db".
3226 * main.c (captured_main): Rename gdbpy_global_auto_load to
3227 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3228 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3229 (print_gdb_help): Extend the help for 'local init file'.
3230 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3231 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3232 (auto_load_scripts): Rename to ...
3233 (auto_load_python_scripts): ... here, update the comment.
3234 (gdbpy_load_auto_script_for_objfile): New declaration.
3235 (show_auto_load_python_scripts, script_language_python)
3236 (gdbpy_load_auto_script_for_objfile): New.
3237 (source_section_scripts): Refactor the code.
3238 (load_auto_scripts_for_objfile): Rename to ...
3239 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3240 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3241 (info_auto_load_python_scripts): New.
3242 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3243 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3244 Register "set auto-load-scripts" as its deprecated alias. Register
3245 "info auto-load python-scripts". Register "info auto-load-scripts" as
3246 its deprecated alias.
3247 (load_auto_scripts_for_objfile): Rename to ...
3248 (gdbpy_load_auto_scripts_for_objfile): ... here.
3249 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3250 (gdbpy_load_auto_scripts_for_objfile): ... here.
3252 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3254 auto-load: Move files.
3255 * Makefile.in (SFILES): Add auto-load.c.
3256 (HFILES_NO_SRCDIR): Add auto-load.h.
3257 (COMMON_OBS): Add auto-load.o.
3258 (distclean): Change .gdbinit for gdb-gdb.gdb.
3259 * auto-load.c: New file, with parts from python/py-auto-load.c.
3260 * auto-load.h: New file, with parts from python/python.h.
3261 * configure: Regenerate.
3262 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3263 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3264 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3265 * main.c: Include auto-load.h.
3266 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3267 command.h, observer.h and progspace.h to auto-load.c. Add include
3269 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3270 (struct loaded_script, auto_load_pspace_data)
3271 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3272 (hash_loaded_script_entry, eq_loaded_script_entry)
3273 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3274 (maybe_add_script): Move to auto-load.c.
3275 (source_section_scripts): Change maybe_add_script parameters passing,
3276 use script_not_found_warning_print.
3277 (clear_section_scripts, auto_load_objfile_script)
3278 (auto_load_new_objfile, loaded_script_ptr)
3279 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3280 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3281 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3282 auto_load_new_objfile and info_auto_load_scripts initizations to
3284 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3286 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3289 * charset.c (find_charset_names): Remove variables ix and elt.
3290 Use free_char_ptr_vec.
3291 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3292 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3293 debugdir_end. New variable debugdir_len.
3294 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3295 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3297 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3298 and elt. Use free_char_ptr_vec.
3299 * source.c (add_path): Remove variables argv, arg and argv_index.
3300 New variables dir_vec, back_to, ix and name.
3301 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3302 make_cleanup_freeargv. Remove variable separator. Simplify the code
3303 no longer expecting DIRNAME_SEPARATOR.
3304 (openp): Remove variable p, p1 and len. New variables dir_vec,
3305 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3306 no longer expecting DIRNAME_SEPARATOR.
3307 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3308 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3310 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3311 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3312 (dirnames_to_char_ptr_vec): New functions.
3314 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3317 * source.c (add_path): Remove always true conditional 'p == 0' and
3318 unindent its code block.
3320 2012-04-17 Pedro Alves <palves@redhat.com>
3322 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3323 (FIELD_BITPOS_LVAL): ... this.
3324 (FIELD_BITPOS): New.
3325 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3326 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3327 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3329 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3331 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3332 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3333 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3336 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3338 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3339 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3340 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3341 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3342 * jv-lang.c (java_link_class_type): Likewise, once.
3343 * stabsread.c (read_enum_type): Likewise.
3345 2012-04-16 Yao Qi <yao@codesourcery.com>
3347 * common/agent.c (agent_run_command): Add one more parameter `len'.
3349 * common/agent.h: Update declaration.
3350 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3352 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3354 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3357 * value.c (value_actual_type): New function.
3358 * value.h (value_actual_type): New declaration.
3359 * varobj.c (update_type_if_necessary): New function.
3360 (varobj_create): Call value_actual_type instead of
3362 (install_dynamic_child): distinct changed and type changed MI variable
3364 (update_dynamic_varobj_children): Updated for install_dynamic_child
3365 change. All callers updated.
3366 (varobj_update): Support for MI variable object type change if
3367 the value changed and RTTI is used to determine the type.
3368 (create_child_with_value): Call value_actual_type instead of
3370 (adjust_value_for_child_access): Extended with a new parameter which
3371 specify whether the given value should be casted to enclosing type.
3372 All callers updated.
3374 2012-04-14 Yao Qi <yao@codesourcery.com>
3376 Import gnulib module inttypes from git
3377 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3378 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3379 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3380 gnulib/m4/inttypes-pri.m4
3381 * aclocal.m4, config.in, configure: Regenerated.
3382 * gnulib/Makefile.am: Update.
3383 * gnulib/Makefile.in: Update.
3384 * gnulib/m4/gnulib-cache.m4: Update.
3385 * gnulib/m4/gnulib-comp.m4: Update.
3386 * gnulib/inttypes.in.h: New.
3387 * gnulib/m4/inttypes-pri.m4: New.
3388 * gnulib/m4/inttypes.m4: New.
3390 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3392 * infrun.c (resume): Update PC address to the real PC after
3393 preparing to do displaced stepping.
3395 2012-04-12 Doug Evans <dje@google.com>
3397 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3398 All callers updated.
3400 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3402 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3404 2012-04-12 Doug Evans <dje@google.com>
3406 * dwarf2read.c (create_all_type_units): Renamed from
3407 create_debug_types_hash_table. All callers updated.
3409 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3410 local type_sig to sig_type, type_offset to type_offset_in_tu.
3411 (hash_signatured_type): Renamed from hash_type_signature,
3412 all callers updated.
3413 (eq_signatured_type): Renamed from eq_type_signature,
3414 all callers updated.
3415 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3416 (process_enumeration_scope): Ditto.
3417 (lookup_signatured_type_at_offset): Ditto.
3418 (load_full_type_unit, read_signatured_type): Ditto.
3420 2012-04-12 Yao Qi <yao@codesourcery.com>
3422 * remote.c (async_remote_interrupt): Correct function name in
3424 (async_remote_interrupt_twice): Ditto.
3426 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3428 * source.c (find_and_open_source): Consistently pass resulting
3429 full path through xfullpath.
3431 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3433 Provide more specific displaced-stepping memory error message.
3434 * infrun.c (displaced_step_prepare): New variable status. Call
3435 target_read_memory instead of read_memory, provide more specific
3438 2012-04-11 Tristan Gingold <gingold@adacore.com>
3441 * darwin-nat.c (darwin_execvp): Revert previous patch.
3443 2012-04-11 Tristan Gingold <gingold@adacore.com>
3446 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3449 2012-04-11 Tristan Gingold <gingold@adacore.com>
3451 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3454 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3456 New command 'explore' which helps explore values and types in
3458 * NEWS: Add an entry about the new 'explore' command.
3459 * data-directory/Makefile.in: Add gdb/command/explore.py
3460 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3461 command using the GDB Python API.
3463 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3465 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3466 extension in jump target calculation.
3468 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3470 * mips-tdep.c (mips32_next_pc): Handle JALX.
3472 2012-04-10 Yao Qi <yao@codesourcery.com>
3474 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3476 2012-04-10 Yao Qi <yao@codesourcery.com>
3478 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3479 and gnulib/m4/gnulib-tool.m4.
3481 2012-04-10 Doug Evans <dje@google.com>
3483 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3484 (load_partial_dies): Clarify comment.
3485 (find_partial_die): Support rereading type units.
3486 Clarify CU handling, if we know offset is in CU, don't search for the
3487 containing CU. Add comment regarding memory waste.
3489 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3491 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3492 i386/x32-avx and i386/x32-avx-linux.
3493 (i386/x32-expedite): New.
3494 (i386/x32-linux-expedite): Likewise.
3495 (i386/x32-avx-expedite): Likewise.
3496 (i386/x32-avx-linux-expedite): Likewise.
3497 ($(outdir)/i386/x32.dat): Likewise.
3498 ($(outdir)/i386/x32-linux.dat): Likewise.
3499 ($(outdir)/i386/x32-avx.dat): Likewise.
3500 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3502 * features/i386/x32-avx-linux.xml: New file.
3503 * features/i386/x32-avx.xml: Likewise.
3504 * features/i386/x32-core.xml: Likewise.
3505 * features/i386/x32-linux.xml: Likewise.
3506 * features/i386/x32.xml: Likewise.
3508 * features/i386/x32-avx-linux.c: New. Generated.
3509 * features/i386/x32-avx.c: Likewise.
3510 * features/i386/x32-linux.c: Likewise.
3511 * features/i386/x32.c: Likewise.
3512 * regformats/i386/x32-avx-linux.dat: Likewise.
3513 * regformats/i386/x32-avx.dat: Likewise.
3514 * regformats/i386/x32-linux.dat: Likewise.
3515 * regformats/i386/x32.dat: Likewise.
3517 2012-04-10 Tristan Gingold <gingold@adacore.com>
3519 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3520 code to kill the inferior.
3522 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3524 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3526 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3528 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3529 (yyvsp): New defines.
3530 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3532 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3534 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3536 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3538 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3541 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3543 * sparc64-tdep.c (sparc64_store_arguments)
3544 (sparc64_store_arguments): Fix coding style.
3546 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3548 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3549 complex floats, adjust some related comments and tighten a related
3551 (sparc64_extract_return_value): Handle complex floats.
3553 2012-04-07 Doug Evans <dje@google.com>
3555 * dwarf2read.c (load_partial_dies): Change condition to assert.
3557 2012-04-06 Doug Evans <dje@google.com>
3559 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3562 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3564 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3566 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3567 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3570 2012-04-05 Keith Seitz <keiths@redhat.com>
3572 * linespec.c (decode_compound): Remove.
3573 (enum offset_relative_sign): New enum.
3574 (struct line_offset): New struct.
3575 (struct linespec): New struct.
3576 (struct linespec_state): Move file_symtabs,
3577 user_filename, and user_function into struct linespec.
3578 Make result an anonymous struct holding vectors of
3579 symbolp and minsym_and_objfile_d.
3580 Add language member.
3581 (enum ls_token_type): New enum.
3582 (linespec_keywords): New array.
3583 (struct ls_token): New struct.
3584 (struct ls_parser): New struct.
3585 (linespec_lexer_lex_number): New function.
3586 (linespec_lexer_lex_keyword): New function.
3587 (is_ada_operator): New function.
3588 (skip_quote_char): New function.
3589 (copy_token_string): New function.
3590 (is_closing_quote_enclosed): New function.
3591 (find_parameter_list_end): New function.
3592 (linespec_lexer_lex_string): New function.
3593 (linespec_lexer_lex_one): New function.
3594 (linespec_lexer_consume_token): New function.
3595 (linespec_lexer_peek_token): New function.
3596 (cplusplus_error): Remove unused function.
3597 (find_methods): Update comment.
3598 (find_toplevel_char): Return const.
3599 (is_objc_method_format): Remove unused function.
3600 (find_toplevel_string): New function.
3601 (is_linespec_boundary): Remove.
3602 (symbol_not_found_error): New function.
3603 (find_method_overload_end): Remove function.
3604 (unexpected_linespec_error): New function.
3605 (keep_name_info): Remove.
3606 (linespec_parse_line_offset): New function.
3607 (linespec_parse_basic): New function.
3608 (canonicalize_linespec): New function.
3609 (decode_line_internal): Remove.
3610 (create_sals_line_offset): New function adapted from
3612 (convert_linespec_to_sals): New function.
3613 (parse_linespec): New function.
3614 (linespec_parser_new): New function.
3615 (linespec_state_destructor): Change parameter type to
3616 struct linespec_state *.
3617 Add language parameter.
3618 Remove freeing of moved members.
3619 (linespec_parser_delete): New function.
3620 (decode_line_full): Use parse_linespec and linespec_parser_new.
3621 (decode_line_1): Likewise.
3622 (decode_indirect): Rename to ...
3623 (linespec_expression_to_pc): ... this and rewrite
3624 to simply find CORE_ADDR, storing this result for later
3626 (locate_first_half): Remove.
3627 (deocde_objc): Add parameter LS.
3628 Initialize new struct collect_info members.
3629 Handle minimal symbols, too.
3630 (decode_compound): Delete.
3631 (lookup_prefix_sym): Rewrite.
3632 (compare_msymbols): New function.
3633 (find_method): Rewrite.
3634 Do not call cplusplus_error.
3635 (symtabs_from_filename): Rewrite.
3636 (collect_function_symbols): Delete.
3637 (find_function_symbols): Rewrite without ARGPTR-style
3639 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3640 (decode_dollar): Adapted and renamed to ...
3641 (linespec_parse_variable): ... this.
3642 (find_linespec_symbols): New function.
3643 (decode_label): Adapted and renamed to ...
3644 (find_label_symbols): ... this.
3645 (decode_digits_list_mode): Add and use LS argument.
3646 (decode_digits_ordinary): Likewise.
3647 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3648 If in list mode, allow any symbol class. Otherwise, only
3649 permit LOC_BLOCK symbols.
3650 (minsym_found): Update comments.
3651 (search_minsyms_for_name): Do not convert the matching symbol
3652 into a SAL. Simply push the symbol and objfile into the
3654 (decode_variable): Delete. Contents adapted into
3655 find_linespec_symbols.
3657 * cp-support.c (SKIP_SPACE): Remove.
3658 (operator_tokens): Remove unused global.
3659 (cp_validate_operator): Remove.
3660 * cp-support.h (cp_validate_operator): Remove declaration.
3662 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3664 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3665 for TYPE_VPTR_FIELDNO.
3666 * valprint.c (valprint_check_validity): Make it global, move the
3667 function comment ...
3668 * value.h (valprint_check_validity): ... to this new declaration.
3670 2012-04-02 Tristan Gingold <gingold@adacore.com>
3672 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3673 the STATE32 api for i386 state.
3674 (i386_darwin_store_inferior_registers): Likewise.
3676 2012-04-02 Tristan Gingold <gingold@adacore.com>
3678 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3680 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3683 2012-04-02 Tristan Gingold <gingold@adacore.com>
3686 * darwin-nat.c (darwin_execvp): Set binary preference.
3688 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3690 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3692 2012-03-30 Tom Tromey <tromey@redhat.com>
3694 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3695 of TRY_CATCH. Fix error handling.
3696 * python/py-value.c (convert_value_from_python): Move 'old'
3697 declaration to innermost scope.
3699 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3700 Andrey Smirnov <andrew.smirnov@gmail.com>
3702 -Wshadow warning fix.
3703 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3704 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3705 Adjust code accordingly.
3707 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3709 * ada-lang.c (symbol_completion_add): Rename parameter
3710 "encoded" into "encoded_p". Ajust code and documentation
3713 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3714 Andrey Smirnov <andrew.smirnov@gmail.com>
3716 -Wshadow warning fix.
3717 * ada-lang.c (symbol_completion_add): Rename parameter
3718 "wild_match" into wild_match_p. Update code and documentation
3721 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3723 * ada-lang.c (symbol_completion_match): Rename parameter
3724 "encoded" into "encoded_p". Ajust code and documentation
3727 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3728 Andrey Smirnov <andrew.smirnov@gmail.com>
3730 -Wshadow warning fix.
3731 * ada-lang.c (symbol_completion_match): Rename parameter
3732 "wild_match" into "wild_match_p". Adjust code and function
3733 documentation accordingly.
3735 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3736 Andrey Smirnov <andrew.smirnov@gmail.com>
3738 -Wshadow warning fix.
3739 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3740 "symbol_info" into "info". Adjust code accordingly.
3741 (ada_lookup_symbol): Likewise.
3743 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3745 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3746 of this function's documentation.
3748 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3749 Andrey Smirnov <andrew.smirnov@gmail.com>
3751 -Wshadow warning fix.
3752 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3753 variable into "wild_match_p". Adjust code accordingly.
3755 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3756 Andrey Smirnov <andrew.smirnov@gmail.com>
3758 -Wshadow warning fix.
3759 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3760 parameter into "wild_match_p". Adjust code accordingly.
3761 Document this parameter in the function description.
3763 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3764 Andrey Smirnov <andrew.smirnov@gmail.com>
3766 -Wshadow warning fix.
3767 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3768 "wild_match" parameter to "wild_match_p" (-Wshadow).
3770 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3772 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3773 in function documentation.
3775 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3776 Andrey Smirnov <andrew.smirnov@gmail.com>
3778 -Wshadow warning fix.
3779 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3780 variable into wild_match_p. Adjust code accordingly.
3782 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3783 Andrey Smirnov <andrew.smirnov@gmail.com>
3785 * ada-valprint.c (ada_val_print_1): Move the code handling
3786 TYPE_CODE_ENUM inside its own lexical block. Declare
3787 variables len and val there, instead of in the function's
3788 top level block. Avoid declaring deref_val again in a way
3789 that shadows another variable of the same name declared
3790 in one of the up-level blocks. Just re-use the up-level
3793 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3795 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3796 Replace block_found argument by symbol_info. Adjust
3797 implementation accordingly. Add function documentation.
3798 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3800 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3801 * ada-exp.y (write_object_renaming): Adjust to new
3802 ada_lookup_encoded_symbol API.
3804 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3806 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3809 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3811 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3812 (v850_register_name): Add the mpu and fpu register names.
3813 (v850e_register_name): Add the mpu and fpu register names.
3814 (v850e2_register_name): New function.
3815 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3818 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3820 * NEWS: Add entry for Ada varobj support.
3822 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3824 * varobj.c (default_value_is_changeable_p): New function,
3825 extracted from varobj_value_is_changeable_p. Add declaration.
3826 (ada_value_is_changeable_p): New function, extracted from
3827 varobj_value_is_changeable_p. Add declaration.
3828 (struct language_specific): New field "value_is_changeable_p".
3829 (languages): Add entries for new field.
3830 (varobj_create): Set language before calling install_new_value.
3831 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3832 "value_is_changeable_p" language callback.
3834 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3836 * ada-varobj.h, ada-varobj.c: New files.
3837 * Makefile.in (SFILES): Add ada-varobj.c.
3838 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3839 (COMMON_OBS): Add ada-varobj.o.
3841 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3843 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3844 (struct language_specific): New field "value_has_mutated".
3845 (languages): Set field "value_has_mutated" in each entry of array.
3846 (varobj_value_has_mutated): New function.
3847 (varobj_udpdate): Add handling of type mutation.
3848 (value_of_root): Add handling of type mutation.
3849 (ada_value_has_mutated): New function.
3851 2012-03-28 Pedro Alves <palves@redhat.com>
3853 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3854 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3856 2012-03-28 Tom Tromey <tromey@redhat.com>
3858 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3859 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3862 2012-03-28 Tom Tromey <tromey@redhat.com>
3864 * .dir-locals.el: New file.
3866 2012-03-28 Pedro Alves <palves@redhat.com>
3868 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3870 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3872 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3875 2012-03-27 Pedro Alves <palves@redhat.com>
3877 Eliminate struct ui_stream.
3879 * ui-out.h (struct ui_stream): Delete.
3880 (ui_out_field_stream): Adjust prototype.
3881 (ui_out_stream_new, ui_out_stream_delete)
3882 (make_cleanup_ui_out_stream_delete): Delete declarations.
3883 * ui-out.c (ui_out_field_stream): Change prototype to take a
3884 ui_file instead of a ui_stream. Adjust.
3885 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3886 (make_cleanup_ui_out_stream_delete): Delete.
3887 * breakpoint.c (print_breakpoint_location)
3888 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3889 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3890 * disasm.c (dump_insns): Ditto.
3891 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3893 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3894 ui_stream/ui_out_stream_new.
3895 * infcmd.c (print_return_value): Ditto.
3896 * osdata.c (info_osdata_command): Don't allocate a local
3898 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3899 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3900 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3901 allocate a local ui_stream.
3902 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3903 instead of ui_stream/ui_out_stream_new.
3904 (list_args_or_locals): Don't allocate a local ui_stream.
3905 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3906 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3907 ui_stream/ui_out_stream_new.
3908 * cli/cli-setshow.c (do_setshow_command): Ditto.
3910 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
3912 * arm-linux-tdep.c (arm_linux_init_abi): Call
3913 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3914 * arm-tdep.c (arm_process_record): New function.
3915 (deallocate_reg_mem): New function.
3916 (decode_insn): New function.
3917 (thumb_record_branch): New function.
3918 (thumb_record_ldm_stm_swi(): New function.
3919 (thumb_record_misc): New function.
3920 (thumb_record_ld_st_stack): New function.
3921 (thumb_record_ld_st_imm_offset): New function.
3922 (thumb_record_ld_st_reg_offset(): New function.
3923 (thumb_record_add_sub_cmp_mov): New function.
3924 (thumb_record_shift_add_sub): New function.
3925 (arm_record_coproc_data_proc): New function.
3926 (arm_record_coproc): New function.
3927 (arm_record_b_bl): New function.
3928 (arm_record_ld_st_multiple): New function.
3929 (arm_record_ld_st_reg_offset): New function.
3930 (arm_record_ld_st_imm_offset): New function.
3931 (arm_record_data_proc_imm): New function.
3932 (arm_record_data_proc_misc_ld_str): New function.
3933 (arm_record_extension_space): New function.
3934 (arm_record_strx): New function.
3935 (sbo_sbz): New function.
3936 (struct insn_decode_record): New structure for arm insn record.
3937 (REG_ALLOC): New macro for reg allocations.
3938 (MEM_ALLOC): New macro for memory allocations.
3939 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
3941 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3943 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3944 (store_register): Likewise.
3946 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3948 * MAINTAINERS (Write After Approval): Add myself to the list.
3950 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3952 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3953 Describe also the option "auto".
3955 2012-03-22 Richard Henderson <rth@redhat.com>
3957 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3958 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3960 2012-03-22 Richard Henderson <rth@redhat.com>
3962 * jit.c (jit_read_code_entry): Compute alignment and offset of
3963 int64_t member before computing entry_size.
3965 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3967 Python scripting: Add new method Value.referenced_value to
3968 gdb.Value which can dereference pointer as well as reference
3970 * NEWS: Add entry under 'Python scripting' about the new method
3971 Value.referenced_value on gdb.Value objects.
3972 * python/py-value.c (valpy_referenced_value): New function
3973 defining a new method on gdb.Value objects which can dereference
3974 pointer and reference values.
3976 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3978 * MAINTAINERS (Write After Approval): Add myself to the list.
3980 2012-03-21 Kevin Buettner <kevinb@redhat.com>
3982 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3983 in addition to "main".
3985 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3987 * expression.h (op_name): Add declaration.
3988 * expprint.c (op_name): Remove declaration. Make non-static.
3989 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3991 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3993 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3995 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3996 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3997 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3998 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3999 (linux_nat_get_siginfo): Likewise.
4000 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4001 (linux_nat_get_siginfo): Likewise.
4002 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4003 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4004 * procfs.c (gdb_siginfo_t): Likewise.
4006 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4008 * .gitignore: Ignore more files.
4010 2012-03-20 Pedro Alves <palves@redhat.com>
4012 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4015 2012-03-20 Yao Qi <yao@codesourcery.com>
4017 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4020 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4022 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4023 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4024 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4026 * dwarf2expr.h (cu_offset, sect_offset): New types.
4027 (struct dwarf_expr_context_funcs) <dwarf_call>
4028 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4030 (struct dwarf_expr_context) <len>: Improve the comment.
4031 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4032 cu_offset and sect_offset.
4033 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4034 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4035 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4036 * dwarf2loc.h: Include dwarf2expr.h.
4037 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4039 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4040 Improve the comment.
4041 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4042 (struct signatured_type, struct line_header, struct partial_die_info)
4043 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4044 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4045 (get_die_type_at_offset, create_cus_from_index)
4046 (create_signatured_type_table_from_index, dw2_get_file_names)
4047 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4048 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4049 (create_debug_types_hash_table, process_psymtab_comp_unit)
4050 (load_partial_comp_unit, create_all_comp_units)
4051 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4052 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4053 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4054 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4055 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4056 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4057 (find_partial_die, read_attribute_value, lookup_die_type)
4058 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4059 (is_ref_attr): New function comment.
4060 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4061 Use cu_offset and sect_offset.
4062 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4063 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4064 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4065 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4066 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4067 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4068 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4071 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4074 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4075 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4077 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4079 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4081 * NEWS: Describe new options --init-command=FILE, -ix and
4082 --init-eval-command=COMMAND, -iex.
4083 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4084 CMDARG_INIT_COMMAND.
4085 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4086 "init-command", "init-eval-command", "ix" and "iex" to the variable
4087 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4088 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4089 (print_gdb_help): Describe --init-command=FILE, -ix and
4090 --init-eval-command=COMMAND, -iex.
4092 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4095 * main.c (struct cmdarg): Move it here from main. Add more comments.
4096 (cmdarg_s, VEC (cmdarg_s)): New.
4097 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4098 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4099 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4100 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4103 2012-03-19 Tom Tromey <tromey@redhat.com>
4105 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4107 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4110 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4113 2012-03-16 Chris January <chris.january@allinea.com>
4115 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4118 2012-03-16 Chris January <chris.january@allinea.com>
4120 * source.c (add_path): Use memmove instead of strcpy because the
4123 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4125 * value.h (set_value_parent): Add declaration.
4126 * value.c (set_value_parent): New function.
4127 (value_address): If VALUE->PARENT is not NULL, then use it as
4128 the base address instead of VALUE->LOCATION.address.
4129 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4130 the same as OBJ's address. Adjust V's offset accordingly.
4133 2012-03-16 Gary Benson <gbenson@redhat.com>
4135 PR breakpoints/10738
4136 * dwarf2read.c (use_deprecated_index_sections): New global.
4137 (struct partial_die_info): New member may_be_inlined.
4138 (read_partial_die): Set may_be_inlined where appropriate.
4139 (add_partial_subprogram): Add partial symbols for partial
4140 DIEs that may be inlined.
4141 (new_symbol_full): Add inlined subroutines to the current
4143 (write_psymtabs_to_index): Bump version number.
4144 (dwarf2_read_index): Read only version 6 indices unless
4145 use_deprecated_index_sections is set.
4146 * linespec.c (symbol_and_data_callback): New structure.
4147 (iterate_inline_only): New function.
4148 (iterate_over_all_matching_symtabs): New argument
4149 "include_inline". If nonzero, also call the callback for
4150 symbols representing inlined subroutines.
4151 (lookup_prefix_sym): Pass extra argument to the above.
4152 (find_function_symbols): Likewise.
4153 (add_matching_symbols_to_info): Likewise.
4154 * NEWS: Mention that GDB can now set breakpoints on inlined
4157 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4159 * p-typeprint.c (pascal_type_print_method_args):
4160 Fix display of parameter of methods.
4162 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4164 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4165 Add missing prototype.
4167 2012-03-16 Yao Qi <yao@codesourcery.com>
4168 Jan Kratochvil <jan.kratochvil@redhat.com>
4170 Fix false compilation warning.
4171 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4173 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4174 Pedro Alves <pedro@codesourcery.com>
4176 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4177 (arm_register_g_packet_guesses): New function.
4178 (arm_gdbarch_init): Don't force a target description with
4179 registers when the executable is detected as M-profile. Instead
4180 set gdbarch->tdep->is_m. Register `g' packet guesses.
4181 (_initialize_arm_tdep): Initialize the new target description.
4182 * features/arm-with-m-fpa-layout.xml: New description.
4183 * features/arm-with-m-fpa-layout.c: New, generated.
4185 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4187 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4188 Update function description.
4189 (insert_bp_location): Do not wipe bl->target_info out.
4190 * mem-break.c: #include "gdb_string.h".
4191 (default_memory_insert_breakpoint): Do not call target_read_memory
4192 with a pointer to the breakpoint's shadow_contents buffer. Use
4193 a local buffer instead.
4194 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4196 2012-03-15 Tom Tromey <tromey@redhat.com>
4198 * NEWS: Mention "info vtbl", not "info vtable".
4199 * cp-support.c (info_vtbl_command): Fix comment.
4200 (_initialize_cp_support): Fix text.
4202 2012-03-15 Tom Tromey <tromey@redhat.com>
4204 * cp-valprint.c (cp_print_value_fields): Use
4205 print_function_pointer_address for vtable slot.
4207 2012-03-15 Tom Tromey <tromey@redhat.com>
4209 * gnu-v3-abi.c (struct value_and_voffset): New.
4210 (hash_value_and_voffset, eq_value_and_voffset)
4211 (compare_value_and_voffset, compute_vtable_size)
4212 (print_one_vtable, gnuv3_print_vtable): New functions.
4213 (init_gnuv3_ops): Initialize 'print_vtable' field.
4214 * cp-support.c (info_vtbl_command): New function.
4215 (_initialize_cp_support): Add "info vtbl".
4216 * cp-abi.h (cplus_print_vtable): Declare.
4217 (struct cp_abi_ops) <print_vtable>: New field.
4218 * cp-abi.c (cplus_print_vtable): New function.
4221 2012-03-15 Tom Tromey <tromey@redhat.com>
4223 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4224 iterate_over_symbols.
4226 2012-03-14 Doug Evans <dje@google.com>
4228 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4229 DW_OP_GNU_parameter_ref.
4231 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4233 Fix double prompt of 'interpreter-exec mi'.
4234 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4235 (mi_interpreter_resume): use it.
4236 (mi_execute_command_input_handler): New function.
4237 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4238 mi_execute_command_input_handler.
4240 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4242 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4244 (darwin_debug_port_info): Make static.
4245 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4246 * machoread.c (_initialize_machoread): Add prototype.
4247 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4248 (i386_darwin_set_control, i386_darwin_get_control)
4249 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4250 i386_darwin_get_status, i386_darwin_get_control):
4251 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4253 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4255 * ax-gdb.c (gen_usual_unary): Remove special handling of
4256 enum and bool types.
4258 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4260 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4262 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4264 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4266 2012-03-13 Chris January <chris.january@allinea.com>
4268 * aix-thread.c (fill_sprs): Store the floating point registers
4269 at the correct offsets into vals.
4271 2012-03-13 Doug Evans <dje@google.com>
4273 * NEWS: Mention symbol-reloading has been deleted.
4274 * symfile.c (symbol_reloading): Delete.
4275 (show_symbol_reloading): Delete.
4276 (_initialize_symfile): Delete set/show symbol-reloading.
4278 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4279 read_in_chain until we have successfully read it in.
4280 (load_full_comp_unit): Ditto.
4281 (read_signatured_type): Add comment.
4283 2012-03-13 Chris January <chris.january@allinea.com>
4285 * stabsread.c (fix_common_block): Change type of valu argument
4288 2012-03-13 Chris January <chris.january@allinea.com>
4290 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4293 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4295 * common/linux-procfs.c (linux_proc_get_int): New, from
4296 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4298 (linux_proc_get_tgid): Only call linux_proc_get_int.
4299 (linux_proc_get_tracerpid): New.
4300 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4301 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4302 linux_proc_pid_has_state.
4303 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4304 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4305 (linux_ptrace_attach_warnings): New.
4306 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4308 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4309 (linux_nat_attach): New variables ex, buffer, message and message_s.
4310 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4312 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4314 * Makefile.in (linux-ptrace.o): New.
4315 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4317 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4318 * common/linux-ptrace.c: New file.
4319 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4320 * config/arm/linux.mh: Likewise.
4321 * config/i386/linux.mh: Likewise.
4322 * config/i386/linux64.mh: Likewise.
4323 * config/ia64/linux.mh: Likewise.
4324 * config/m32r/linux.mh: Likewise.
4325 * config/m68k/linux.mh: Likewise.
4326 * config/mips/linux.mh: Likewise.
4327 * config/pa/linux.mh: Likewise.
4328 * config/powerpc/linux.mh: Likewise.
4329 * config/powerpc/ppc64-linux.mh: Likewise.
4330 * config/powerpc/spu-linux.mh: Likewise.
4331 * config/s390/s390.mh: Likewise.
4332 * config/sparc/linux.mh: Likewise.
4333 * config/sparc/linux64.mh: Likewise.
4334 * config/xtensa/linux.mh: Likewise.
4335 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4336 common/linux-procfs.c.
4337 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4339 2012-03-13 Hui Zhu <teawater@gmail.com>
4340 Pedro Alves <palves@redhat.com>
4342 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4343 CREATE_BREAKPOINT_FLAGS_INSERTED.
4344 (create_breakpoint_sal, create_breakpoints_sal)
4345 (base_breakpoint_create_breakpoints_sal)
4346 (tracepoint_create_breakpoints_sal)
4347 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4349 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4350 (ftrace_command, strace_command): Adjust.
4351 (create_tracepoint_from_upload): Pass
4352 CREATE_BREAKPOINT_FLAGS_INSERTED.
4353 * breakpoint.h (enum breakpoint_create_flags): New.
4354 (create_breakpoint): New flags parameter.
4355 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4356 * python/py-breakpoint.c (bppy_init): Adjust.
4357 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4358 * spu-tdep.c (spu_catch_start): Adjust.
4360 2012-03-13 Pedro Alves <palves@redhat.com>
4361 Hui Zhu <teawater@gmail.com>
4362 Yao Qi <yao@codesourcery.com>
4364 * remote.c (struct remote_state): New field `starting_up'.
4365 (remote_start_remote): Set and clear it.
4366 (remote_can_download_tracepoint): If starting up, return false.
4368 2012-03-13 Yao Qi <yao@codesourcery.com>
4370 * inferior.h (struct inferior): Remove fields any_syscall_count,
4371 syscalls_counts and total_syscalls_count. Move them to new
4372 struct catch_syscall_inferior_data in breakpoint.c.
4373 * breakpoint.c: Call DEF_VEC_I(int).
4374 (struct catch_syscall_inferior_data): New.
4375 (get_catch_syscall_inferior_data): New.
4376 (catch_syscall_inferior_data_cleanup): New.
4377 (insert_catch_syscall): Update to access data in
4378 struct catch_syscall_inferior_data.
4379 (insert_catch_syscall): Likewise.
4380 (remove_catch_syscall): Likewise.
4381 (remove_catch_syscall): Likewise.
4382 (is_syscall_catchpoint_enabled): Likewise.
4383 (add_catch_command): Likewise.
4384 (_initialize_breakpoint): Register cleanup.
4385 * breakpoint.h: Removed DEF_VEC_I(int).
4386 * dwarf2loc.c: Call DEF_VEC_I(int).
4387 * mi/mi-main.c: Likewise.
4389 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4391 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4393 2012-03-12 Chris January <chris.january@allinea.com>
4395 * aix-thread.c (_initialize_aix_thread): Add prototype.
4396 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4397 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4399 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4401 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4402 include of "amd64-nat.h".
4404 2012-03-12 Tom Tromey <tromey@redhat.com>
4406 * buildsym.c (record_pending_block): Now static.
4407 * buildsym.h: (record_pending_block): Remove.
4409 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4411 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4413 2012-03-09 Tom Tromey <tromey@redhat.com>
4415 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4416 producer_is_gxx_lt_4_6>: New fields.
4417 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4419 2012-03-09 Tom Tromey <tromey@redhat.com>
4421 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4423 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4425 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4428 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4430 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4432 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 Fix -Wmissing-prototypes build.
4435 * arm-linux-nat.c (get_thread_id): Make it static.
4436 * xtensa-linux-nat.c (get_thread_id): Likewise.
4438 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4440 * server.c (process_point_options): If a conditional expression
4441 is found, only print a message if remote_debug is nonzero.
4443 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4445 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4446 of internal error for unknown/unsupported types.
4448 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4450 Fix CU relative vs. absolute DIE offsets.
4451 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4452 offset to offset_in_cu.
4453 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4455 (dwarf2_fetch_die_location_block): Rename parameter offset to
4456 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4458 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4460 * libunwind-frame.c: Rename to ...
4461 * ia64-libunwind-tdep.c: ... here.
4462 * libunwind-frame.h: Rename to ...
4463 * ia64-libunwind-tdep.h: ... here.
4464 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4465 ia64-libunwind-tdep.h.
4466 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4467 * README (--with-libunwind): Rename to ...
4468 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4469 * config.in: Regenerate.
4470 * configure: Regenerate.
4471 * configure.ac: New option --with-libunwind-ia64, make the
4472 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4473 Remove AC_DEFINE for HAVE_LIBUNWIND.
4474 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4475 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4476 Rename libunwind-frame in the general comment.
4477 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4478 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4479 Move forward declarations inside #ifndef. Rename libunwind-frame in
4480 the general comment.
4481 * ia64-tdep.c: Rename libunwind-frame.h #include to
4482 ia64-libunwind-tdep.h.
4483 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4484 (ia64_libunwind_descr): Rename libunwind-frame to
4485 ia64-libunwind-tdep in these function comments.
4486 * ia64-tdep.h: Rename libunwind-frame.h #include to
4487 ia64-libunwind-tdep.h.
4488 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4489 ia64-libunwind-tdep in that data comment.
4491 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4493 * libunwind-frame.h (struct frame_unwind): New declaration.
4495 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4497 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4498 "set breakpoint condition-evaluation" command.
4500 2012-03-08 Tristan Gingold <gingold@adacore.com>
4502 * sparc-stub.c: Move to stubs/
4503 * sh-stub.c: Likewise.
4504 * m68k-stub.c: Likewise.
4505 * m32r-stub.c: Likewise.
4506 * i386-stub.c: Likewise.
4508 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4510 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4511 linux_get_siginfo_type.
4513 * m68klinux-nat.c: Include "gdb_proc_service.h".
4514 (PTRACE_GET_THREAD_AREA): Define.
4515 (ps_get_thread_area): New function.
4517 2012-03-08 Yao Qi <yao@codesourcery.com>
4519 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4521 (remote_query_attached): Likewise.
4522 (remote_static_tracepoint_marker_at): Likewise.
4523 (remote_set_permissions): Likewise.
4524 (remote_detach_1, extended_remote_attach_1): Likewise.
4525 (send_g_packet, remote_vkill): Likewise.
4526 (extended_remote_disable_randomization): Likewise.
4527 (remote_add_target_side_condition): Likewise.
4528 (remote_insert_breakpoint): Likewise.
4529 (remote_remove_breakpoint): Likewise.
4530 (remote_insert_watchpoint): Likewise.
4531 (remote_remove_watchpoint): Likewise.
4532 (remote_insert_hw_breakpoint): Likewise.
4533 (remote_insert_hw_breakpoint): Likewise.
4534 (remote_remove_hw_breakpoint): Likewise.
4535 (remote_download_command_source): Likewise.
4536 (remote_download_tracepoint): Likewise.
4537 (remote_download_trace_state_variable): Likewise.
4538 (remote_disable_tracepoint): Likewise.
4539 (remote_trace_set_readonly_regions): Likewise.
4540 (remote_get_tracepoint_status): Likewise.
4541 (remote_trace_find): Likewise.
4542 (remote_get_trace_state_variable_value): Likewise.
4543 (remote_set_disconnected_tracing): Likewise.
4544 (remote_set_circular_trace_buffer): Likewise.
4545 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4546 (remote_use_agent): Likewise.
4547 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4550 2012-03-07 Pedro Alves <palves@redhat.com>
4552 * NEWS: Mention QProgramSignals.
4553 * inferior.h (update_signals_program_target): Declare.
4554 * infrun.c: (update_signals_program_target): New.
4555 (handle_command): Update the target of the new program signals
4557 * remote.c (PACKET_QProgramSignals): New enum.
4558 (last_program_signals_packet): New global.
4559 (remote_program_signals): New.
4560 (remote_start_remote): Update the target with the program signals
4562 (remote_protocol_features): Add entry for QPassSignals.
4563 (remote_open_1): Free anc clear last_program_signals_packet.
4564 (init_remote_ops): Install remote_program_signals.
4565 * target.c (update_current_target): Adjust.
4566 (target_program_signals): New.
4567 * target.h (struct target_ops) <to_program_signals>: New field.
4568 (target_program_signals): Declare.
4570 2012-03-07 Pedro Alves <palves@redhat.com>
4572 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4575 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4577 * m68klinux-nat.c (getregs_supplies): Make static.
4578 (getfpregs_supplies): Likewise.
4579 (have_ptrace_getregs): Likewise.
4581 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4583 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4584 in call to get_die_type_at_offset.
4586 2012-03-06 Stan Shebs <stan@codesourcery.com>
4588 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4589 * mi/mi-cmd-disas.c: Ditto.
4590 * mi/mi-cmd-env.c: Ditto.
4591 * mi/mi-cmd-file.c: Ditto.
4592 * mi/mi-cmd-stack.c: Ditto.
4593 * mi/mi-cmd-target.c: Ditto.
4594 * mi/mi-cmd-var.c: Ditto.
4595 * mi/mi-cmds.c: Ditto.
4596 * mi/mi-cmds.h: Ditto.
4597 * mi/mi-console.c: Ditto.
4598 * mi/mi-getopt.c: Ditto.
4599 * mi/mi-getopt.h: Ditto.
4600 * mi/mi-interp.c: Ditto.
4601 * mi/mi-main.c: Ditto.
4602 * mi/mi-out.c: Ditto.
4603 * mi/mi-parse.c: Ditto.
4604 * mi/mi-parse.h: Ditto.
4605 * mi/mi-symbol-cmds.c: Ditto.
4607 * mi/mi-getopt.h: Move mi_opt struct up.
4608 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4610 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4612 2012-03-06 Tom Tromey <tromey@redhat.com>
4614 * proc-service.c (ps_pglobal_lookup): Set the current program
4617 2012-03-06 Pedro Alves <palves@redhat.com>
4619 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4621 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4623 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4625 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4628 * common/linux-osdata.c (linux_common_core_of_thread): New function
4630 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4631 call by linux_common_core_of_thread.
4632 (linux_nat_core_of_thread_1): Remove.
4633 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4634 * linux-thread-db.c: Include linux-osdata.h.
4635 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4636 linux_common_core_of_thread.
4638 2012-03-05 Tom Tromey <tromey@redhat.com>
4640 * value.c (value_primitive_field): Don't fetch contents for
4643 2012-03-05 Tom Tromey <tromey@redhat.com>
4645 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4647 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4649 * s390-nat.c: Include "gregset.h".
4651 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4653 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4654 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4655 (libunwind_load): New variable so_error, use it for dlerror. Try to
4656 load also LIBUNWIND_SO_7.
4658 2012-03-05 Pedro Alves <palves@redhat.com>
4660 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4661 is not NULL, and remove resulting dead code.
4663 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4665 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4666 prologue to sh_analyze_prologue.
4667 (sh_analyze_prologue): Make better use of such an upper limit, and
4668 generally be more cautious about accessing memory.
4670 2012-03-05 Tom Tromey <tromey@redhat.com>
4672 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4673 _initialize_ia64_hpux_tdep.
4675 2012-03-05 Pedro Alves <palves@redhat.com>
4679 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4680 the register state is clear, supply explicit zero, instead of
4681 marking the register unavailable.
4683 2012-03-05 Tristan Gingold <gingold@adacore.com>
4685 * NEWS: Mention OpenVMS ia64 new target.
4687 2012-03-05 Tristan Gingold <gingold@adacore.com>
4689 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4690 (ia64_unw_accessors, ia64_unw_rse_accessors)
4691 (ia64_libunwind_descr): Declare.
4692 * ia64-vms-tdep.c: New file.
4693 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4694 (ia64_libunwind_descr): Make them public.
4695 * configure.tgt: Add ia64-*-*vms*.
4696 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4697 (ALLDEPFILES): Add ia64-vms-tdep.c
4699 2012-03-05 Tristan Gingold <gingold@adacore.com>
4701 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4702 * remote.c (PACKET_qXfer_uib): New enum value.
4703 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4704 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4705 (_initialize_remote): Call add_packet_config_cmd for
4708 2012-03-05 Tristan Gingold <gingold@adacore.com>
4710 * osabi.c (gdb_osabi_names): Add OpenVMS.
4711 (generic_elf_osabi_sniffer): Likewise.
4712 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4714 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4716 Removed unused code.
4717 * libunwind-frame.c (libunwind_frame_unwind)
4718 (libunwind_frame_base_address): Remove.
4719 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4721 2012-03-04 Yao Qi <yao@codesourcery.com>
4723 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4724 remove trailing new line.
4725 (agent_run_command, agent_run_command): Add _ markup.
4726 (agent_capability_check): Likewise.
4728 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4730 * breakpoint.c (set_condition_evaluation_mode): Set
4731 CONDITION_EVALUATION_MODE unconditionally.
4733 2012-03-03 Yao Qi <yao@codesourcery.com>
4735 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4736 * common/agent.h: Update declaration.
4737 * inf-child.c (inf_child_use_agent): New.
4738 (inf_child_can_use_agent): New.
4739 (inf_child_target): Initialize fields `to_use_agent'
4740 and `to_can_use_agent'.
4741 * agent.c (agent_new_objfile): New.
4742 (_initialize_agent): Add agent_new_objfile to new_objfile
4745 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4747 (linux_target_install_ops): Initialize field
4748 `to_static_tracepoint_markers_by_strid'.
4749 * remote.c (free_current_marker): Move it to ...
4750 * tracepoint.c (free_current_marker): ... here. New.
4751 (cleanup_target_stop): New.
4752 * tracepoint.h: Declare free_current_marker.
4753 * NEWS: Add one entry about `info static-tracepoint-marker'.
4755 2012-03-03 Yao Qi <yao@codesourcery.com>
4757 * common/agent.c (agent_loaded_p): New.
4758 (agent_look_up_symbols): New global.
4759 * common/agent.h: Declare agent_loaded_p.
4761 2012-03-03 Yao Qi <yao@codesourcery.com>
4763 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4764 (agent_capability_check, agent_capability_invalidate): New.
4765 (symbol_list): New array element.
4766 * common/agent.h (enum agent_capa): New.
4767 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4769 2012-03-03 Yao Qi <yao@codesourcery.com>
4771 * target.h (struct target_ops) <to_use_agent>: New field.
4772 (struct target_ops) <to_can_use_agent>: New field.
4773 (target_use_agent, target_can_use_agent): New macro.
4774 * target.c (update_current_target): Update.
4775 * remote.c: New enum `PACKET_QAgent'.
4776 (remote_protocol_features): Add a new element.
4777 (remote_use_agent, remote_can_use_agent): New.
4778 (init_remote_ops): Initialize field `can_use_agent' with
4779 remote_can_use_agent. Intiailize field `use_agent' with
4781 * common/agent.c (use_agent): New global.
4782 * common/agent.h: Declare it.
4783 * tracepoint.c (info_static_tracepoint_markers_command): Add
4785 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4786 (COMMON_OBS): Add common/agent.o and agent.o
4787 (common-agent.o): New rule.
4790 2012-03-03 Yao Qi <yao@codesourcery.com>
4792 * common/agent.c: New.
4793 * common/agent.h: New.
4794 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4796 * configure, configh.in: Regenerated.
4798 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4800 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4801 unless it exists for this architecture.
4803 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4805 * language.h (struct language_defn): New "method" la_read_var_value.
4806 * findvar.c: #include "language.h".
4807 (default_read_var_value): Renames read_var_value. Rewrite
4808 function description.
4809 (read_var_value): New function.
4810 * value.h (default_read_var_value): Add prototype.
4811 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4813 (ada_language_defn): Add entry for la_read_var_value.
4814 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4815 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4816 language_defn structures to add entry for new la_read_var_value
4819 2012-03-02 Tom Tromey <tromey@redhat.com>
4820 Pedro Alves <palves@redhat.com>
4822 PR breakpoints/13776:
4823 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4825 (delete_longjmp_breakpoint_at_next_stop): New.
4826 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4827 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4828 before deleting the inferior. Add comments.
4829 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4830 breakpoints immediately, but only on next stop. Move that code
4831 next to where we mark other breakpoints for deletion.
4833 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4835 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4837 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4840 2012-03-02 Pedro Alves <palves@redhat.com>
4842 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4844 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4846 Fix -Wmissing-prototypes build.
4847 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4848 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4849 (gdbsim_has_memory): Likewise.
4851 2012-03-02 Yao Qi <yao@codesourcery.com>
4853 Fix -Wmissing-prototypes build.
4854 * charset.c (phony_iconv_open): Make static.
4855 (phony_iconv_close, phony_iconv): Likewise.
4856 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4857 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4859 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4860 * ser-mingw.c (create_select_thread): Make static.
4861 * windows-termcap.c (tgetent): New prototype.
4862 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4864 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4866 Fix -Wmissing-prototypes build.
4867 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4868 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4869 (_initialize_loadable): New prototypes.
4871 2012-03-02 Doug Evans <dje@google.com>
4873 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4874 abbrev table, read_comp_unit will do it.
4876 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4878 Fix -Wmissing-prototypes build.
4879 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4880 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4881 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4882 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4883 (_initialize_arm_symbian_tdep): New prototype.
4884 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4885 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4886 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4888 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4889 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4891 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4892 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4893 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4895 * moxie-tdep.c (moxie_process_record): Likewise.
4896 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4897 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4898 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4899 (_initialize_rl78_tdep): New prototype.
4900 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4901 (_initialize_rx_tdep): New prototype.
4902 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4903 (_initialize_darwin_solib): New prototype.
4904 * solib-spu.c: Include solib-spu.h.
4905 (_initialize_spu_solib): New prototype.
4906 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4907 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4908 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4909 (tic6x_software_single_step): Make it static.
4910 (_initialize_tic6x_tdep): New prototype.
4912 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4914 Fix -Wmissing-prototypes build.
4915 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4916 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4918 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4920 Fix -Wmissing-prototypes build.
4921 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4922 (frv_have_stopped_data_address): Remove.
4924 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4926 Fix -Wmissing-prototypes build.
4927 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4928 * sh-tdep.c: Include sh64-tdep.h.
4929 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4930 * sh64-tdep.c: Include sh64-tdep.h.
4931 * sh64-tdep.h: New file.
4933 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4935 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4937 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4939 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4940 sp_regnum once the gdbarch_init_osabi hook has been called.
4942 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4944 * mips-tdep.c (mips32_bc1_pc): New function.
4945 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4946 BPOSGE32 and BPOSGE64 instructions.
4947 (deal_with_atomic_sequence): Likewise.
4948 (mips32_instruction_has_delay_slot): Likewise.
4950 2012-03-01 Maciej W. Rozycki <macro@mips.com>
4951 Chris Dearman <chris@mips.com>
4952 Maciej W. Rozycki <macro@codesourcery.com>
4953 Joseph Myers <joseph@codesourcery.com>
4955 * features/mips-dsp.xml: New file.
4956 * features/mips64-dsp.xml: New file.
4957 * features/mips-dsp-linux.xml: New file.
4958 * features/mips64-dsp-linux.xml: New file.
4959 * features/Makefile (WHICH): Add mips-dsp-linux and
4961 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4962 * features/mips-dsp-linux.c: New file.
4963 * features/mips64-dsp-linux.c: New file.
4964 * regformats/mips-dsp-linux.dat: New file.
4965 * regformats/mips64-dsp-linux.dat: New file.
4966 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4968 (mips64_linux_register_addr): Likewise.
4969 (mips64_linux_regsets_fetch_registers): Likewise.
4970 (mips64_linux_regsets_store_registers): Likewise.
4971 (mips64_linux_fetch_registers): Update call to
4972 mips64_linux_regsets_fetch_registers.
4973 (mips64_linux_store_registers): Update call to
4974 mips64_linux_regsets_store_registers.
4975 (mips_linux_read_description): Probe for DSP registers.
4976 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4977 and initialize_tdesc_mips64_dsp_linux.
4978 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4979 Remove padding of no longer used embedded register slots.
4980 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4981 (MIPS_RESTART_REGNUM): Redefine enum value.
4982 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4984 (mips_tx39_reg_names): Likewise.
4985 (mips_linux_reg_names): New array of register names for Linux
4987 (mips_register_name): Check for a null pointer in
4988 mips_processor_reg_names and return an empty string.
4989 (mips_register_type): Exclude embedded registers for the IRIX
4991 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4992 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4994 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4995 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4996 (mips_gdbarch_init): Likewise. Initialize internal register
4997 indices for the Linux ABI. Use dynamic numbers to refer to
4998 registers, as applicable, while parsing the target description.
4999 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5001 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5003 * frame.h (read_frame_register_unsigned): Fix typo in function
5006 2012-03-01 Pedro Alves <palves@redhat.com>
5008 * jit-reader.in [!__cplusplus]
5009 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5011 2012-03-01 Pedro Alves <palves@redhat.com>
5013 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5014 * configure: Regenerate.
5016 2012-03-01 Pedro Alves <palves@redhat.com>
5018 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5019 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5020 (ftrace_command, strace_command): Make static.
5021 * d-lang.c (_initialize_d_language): Declare.
5022 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5023 * dwarf2loc.c (_initialize_dwarf2loc):
5024 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5025 * exec.c (exec_get_section_table): Make static.
5026 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5027 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5028 * inferior.c (remove_inferior_command, add_inferior_command)
5029 (clone_inferior_command): Make static.
5030 * linux-nat.c (linux_nat_thread_address_space)
5031 (linux_nat_core_of_thread): Make static.
5032 * linux-tdep.c (_initialize_linux_tdep): Declare.
5033 * objc-lang.c (_initialize_objc_lang): Declare.
5034 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5036 (_initialize_opencl_language): Declare.
5037 * record.c (_initialize_record): Declare.
5038 * remote.c (demand_private_info, remote_get_tib_address)
5039 (remote_supports_cond_tracepoints)
5040 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5042 * skip.c (_initialize_step_skip): Declare.
5043 * symtab.c (skip_prologue_using_lineinfo): Make static.
5044 * tracepoint.c (delete_trace_state_variable)
5045 (trace_variable_command, delete_trace_variable_command)
5046 (get_uploaded_tsv, find_matching_tracepoint_location)
5047 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5049 * value.c (pack_unsigned_long): Make static.
5050 * varobj.c (varobj_ensure_python_env): Make static.
5051 * windows-tdep.c (_initialize_windows_tdep): Declare.
5052 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5054 2012-03-01 Pedro Alves <palves@redhat.com>
5056 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5058 (linux_init_abi): Install it as has_shared_address_space gdbarch
5061 2012-03-01 Pedro Alves <palves@redhat.com>
5063 * observer.c (observer_test_first_notification_function)
5064 (observer_test_second_notification_function)
5065 (observer_test_third_notification_function): Add declarations.
5067 2012-03-01 Pedro Alves <palves@redhat.com>
5069 * common/signals.c (default_target_signal_to_host)
5070 (default_target_signal_from_host): Move ...
5071 * arch-utils.c: ... here.
5072 * arch-utils.h (default_target_signal_to_host)
5073 (default_target_signal_from_host): Declare.
5075 * common/signals.c (target_signal_from_command): Move ...
5076 * infrun.c: ... here.
5077 * inferior.h (target_signal_from_command): Declare.
5078 * target.h (target_signal_from_command)
5079 (default_target_signal_from_host, default_target_signal_to_host):
5080 Delete declarations.
5082 * common/signals.c (_initialize_signals): Delete.
5084 2012-03-01 Pedro Alves <palves@redhat.com>
5086 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5087 both __cplusplus and !__cplusplus.
5089 2012-03-01 Pedro Alves <palves@redhat.com>
5091 * psymtab.c (find_and_open_source): Delete declaration.
5092 * source.c (find_and_open_source): Move comment ...
5093 * source.h (find_and_open_source): ... to this new declaration.
5095 2012-03-01 Pedro Alves <palves@redhat.com>
5097 * inline-frame.c: Include inline-frame.h.
5099 2012-03-01 Pedro Alves <palves@redhat.com>
5101 * tui/tui-data.c (set_gen_win_origin): Delete.
5102 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5103 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5105 2012-03-01 Pedro Alves <palves@redhat.com>
5107 * remote.c (encode_actions): Delete declaration.
5108 * tracepoint.c (encode_actions): Make extern.
5109 * tracepoint.h (encode_actions): Declare.
5111 2012-03-01 Pedro Alves <palves@redhat.com>
5113 * python/py-breakpoint.c: Include python.h.
5114 * python/py-continueevent.c (create_continue_event_object): Make
5116 * python/py-lazy-string.c (stpy_get_type): Make static.
5117 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5119 * python/py-utils.c (unicode_to_target_python_string): Make
5121 * python/py-value.c: Include python.h.
5123 2012-03-01 Pedro Alves <palves@redhat.com>
5125 * inferior.c (delete_threads_of_inferior): Delete.
5127 2012-03-01 Pedro Alves <palves@redhat.com>
5129 Import fallback definitions from glibc.
5131 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5132 ps_prochandle): Forward declare.
5133 (ps_err_e): Use glibc's comments.
5134 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5135 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5136 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5137 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5138 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5139 (struct ps_prochandle): Adjust comment.
5141 2012-03-01 Pedro Alves <palves@redhat.com>
5143 * ada-lang.c (ada_modulus_from_name): Delete.
5144 * ada-lex.l (lexer_init): Make static.
5146 2012-03-01 Pedro Alves <palves@redhat.com>
5150 * frame.c (read_frame_register_unsigned): New.
5151 * frame.h (read_frame_register_unsigned): Declare.
5152 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5154 (print_i387_control_word): New parameter `control_p'. Handle it.
5155 (i387_print_float_info): Handle unavailable float registers.
5157 2012-03-01 Keith Seitz <keiths@redhat.com>
5159 * linespec.c (decode_line_2): Sort the list of methods
5160 alphabetically before presenting the user with a selection
5163 2012-03-01 Doug Evans <dje@google.com>
5165 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5167 (dwarf2_read_abbrevs): Remove corresponding initialization.
5169 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5171 * NEWS: Mention new python command class gdb.COMMAND_USER.
5172 * cli/cli-cmds.c (show_user): Print error when used on a python
5174 (init_cli_cmds): Update documentation strings for "show user" and
5175 "set/show max-user-call-depth" to clarify that it does not apply to
5177 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5179 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5181 * top.c (execute_command): Only execute a user-defined command as a
5182 legacy macro if c->user_commands is set.
5184 2012-03-01 Tom Tromey <tromey@redhat.com>
5186 * valprint.h (struct generic_val_print_decorations): New.
5187 (generic_val_print): Declare.
5188 * valprint.c (generic_val_print): New function.
5189 * p-valprint.c (p_decorations): New global.
5190 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5191 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5192 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5193 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5194 * m2-valprint.c (m2_decorations): New global.
5195 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5196 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5197 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5198 TYPE_CODE_ERROR>: Call generic_val_print.
5199 * f-valprint.c (f_decorations): New global.
5200 (f_val_print): Use print_function_pointer_address.
5201 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5202 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5203 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5205 * c-valprint.c (c_decorations): New global.
5206 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5207 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5208 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5209 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5210 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5211 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5214 2012-03-01 Tom Tromey <tromey@redhat.com>
5216 * valprint.c (val_print): Update.
5217 * p-valprint (pascal_val_print): Return void.
5218 * p-lang.h (pascal_val_print): Return void.
5219 * m2-valprint.c (m2_val_print): Return void.
5220 * m2-lang.h (m2_val_print): Return void.
5221 * language.h (struct language_defn) <la_val_print>: Return void.
5222 * language.c (unk_lang_val_print): Return void.
5223 * jv-valprint.c (java_val_print): Return void.
5224 * jv-lang.h (java_val_print): Return void.
5225 * f-valprint.c (f_val_print): Return void.
5226 * f-lang.h (f_val_print): Return void.
5227 * d-valprint.c (d_val_print): Return void.
5228 (dynamic_array_type): Update.
5229 * d-lang.h (d_val_print): Return void.
5230 * c-valprint.c (c_val_print): Return void.
5231 * c-lang.h (c_val_print): Return void.
5232 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5234 * ada-lang.h (ada_val_print): Return void.
5236 2012-03-01 Tom Tromey <tromey@redhat.com>
5238 * value.h (val_print): Return void.
5239 * valprint.c (val_print): Return void.
5241 2012-03-01 Tom Tromey <tromey@redhat.com>
5243 * value.h (common_val_print): Return void.
5244 * valprint.c (common_val_print): Return void.
5246 2012-03-01 Tom Tromey <tromey@redhat.com>
5248 * value.h (value_print): Return void.
5249 * valprint.c (value_print): Return void.
5250 * p-valprint.c (pascal_value_print): Return void.
5251 * p-lang.h (pascal_value_print): Return void.
5252 * language.h (struct language_defn) <la_value_print>: Return
5254 * language.c (unk_lang_value_print): Return void.
5255 * jv-valprint.c (java_value_print): Return void.
5256 * jv-lang.h (java_value_print): Return void.
5257 * f-valprint.c (c_value_print): Don't declare.
5259 * c-valprint.c (c_value_print): Return void.
5260 * c-lang.h (c_value_print): Return void.
5261 * ada-valprint.c (ada_value_print): Return void.
5262 * ada-lang.h (ada_value_print): Return void.
5264 2012-03-01 Tom Tromey <tromey@redhat.com>
5266 * value.c (value_primitive_field): Handle virtual base classes.
5268 2012-03-01 Tom Tromey <tromey@redhat.com>
5270 * gdbtypes.h (struct vbase): Remove.
5272 2012-03-01 Tom Tromey <tromey@redhat.com>
5274 * c-valprint.c (print_function_pointer_address): Move...
5275 * valprint.c: ... here. Make non-static.
5276 * m2-valprint.c (print_function_pointer_address): Remove.
5277 * valprint.h (print_function_pointer_address): Declare.
5279 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5281 * NEWS: Document the fact that one can provide a condition when
5282 creating an Ada exception catchpoint.
5284 2012-03-01 Tom Tromey <tromey@redhat.com>
5286 * valprint.c (val_print_type_code_flags): Fix placement of
5289 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5291 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5292 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5293 environment variable before calling update-copyright.
5295 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5297 * gnulib/extra/update-copyright: Update to the latest from
5298 gnulib's git repository.
5299 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5300 variable to 2 instead of 1.
5302 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5304 * varobj.c (c_value_of_variable): Remove dead code.
5306 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5308 * ada-lex.p (processId): Do not modify already encoded IDs.
5309 Update function documentation.
5311 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5313 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5314 "name" with "struct symbol *name_sym".
5315 * ada-exp.y (write_var_or_type): Update call to
5316 ada_find_renaming_symbol.
5317 "name" with "struct symbol *name_sym". Adjust Implementation
5318 accordingly. Adjust the function documentation.
5320 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5322 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5323 * ada-lang.c (ada_find_any_type): Add advance declaration.
5324 Make static. Replace ada_find_any_symbol by
5325 ada_find_any_type_symbol.
5326 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5327 Improve function description. Make static.
5328 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5329 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5331 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5333 * ada-lang.c (struct tag_args): Delete.
5334 (ada_get_tsd_type): Function body moved up in source file.
5335 (ada_tag_name_1, ada_tag_name_2): Delete.
5336 (ada_get_tsd_from_tag): New function.
5337 (ada_tag_name_from_tsd): New function.
5338 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5339 to determine the tag name.
5341 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5343 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5345 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5348 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5350 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5352 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5354 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5357 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5359 * ada-lang.c (constrained_packed_array_type): If there is a
5360 parallel XA type, use it to determine the array index type.
5362 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5364 * ada-valprint.c (ada_val_print_1): If our value is a reference
5365 to an array descriptor, dereference it before converting it
5368 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5370 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5371 creating fixed value.
5372 (ada_value_ind, ada_coerce_ref, assign_component)
5373 (ada_evaluate_subexp): Remove call to unwrap_value before
5374 call to ada_to_fixed_value.
5376 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5378 * ada-lang.c (to_fixed_array_type): Set result's type name.
5380 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5382 * ada-lang.c (catch_ada_exception_command_split): Add new
5383 argument cond_string. Add support for condition at end of
5384 "catch exception" commands.
5385 (ada_decode_exception_location): Add new argument cond_string.
5386 Update call to catch_ada_exception_command_split.
5387 (create_ada_exception_catchpoint): Add new argument cond_string.
5388 Set the breakpoint condition if needed.
5389 (catch_ada_exception_command): Update call to
5390 ada_decode_exception_location.
5391 (ada_decode_assert_location): Add function documentation.
5392 Add support for condition at end of "catch assert" command.
5393 (catch_assert_command): Update calls to ada_decode_assert_location
5394 and create_ada_exception_catchpoint.
5396 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5398 Fix disp-step-syscall.exp: fork: single step over fork.
5399 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5400 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5401 comment, change parameters gdbarch and ptid to regcache. Remove
5402 parameter regcache, initialize gdbarch from regcache here.
5403 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5405 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5407 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5408 'syscall'. Make the 'int' check more strict.
5410 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5412 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5413 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5414 (i386_linux_intx80_sysenter_syscall_record): ... here.
5415 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5416 Use the renamed function name.
5418 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5420 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5421 * breakpoint.c (until_break_command): Likewise.
5422 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5423 * infcall.c (call_function_by_hand): Likewise.
5424 * infcmd.c (finish_forward): Likewise.
5425 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5427 2012-02-28 Tristan Gingold <gingold@adacore.com>
5429 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5430 avoid variable assignments inside condition.
5432 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5434 Fix static analysis issue found by cppcheck.
5435 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5436 uninitialized BUF for size 2.
5438 2012-02-27 Chris Dearman <chris@mips.com>
5439 Nathan Froyd <froydnj@codesourcery.com>
5440 Maciej W. Rozycki <macro@codesourcery.com>
5442 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5443 (mips16_instruction_has_delay_slot): Likewise.
5444 (mips_segment_boundary): Likewise.
5445 (mips_adjust_breakpoint_address): Likewise.
5446 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5448 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5449 Maciej W. Rozycki <macro@codesourcery.com>
5451 * infrun.c (handle_inferior_event): Don't proceed through
5452 shared library trampolines if stepping at the machine
5455 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5457 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5460 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5462 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5463 (sh_stub_unwind_sniffer): New functions.
5464 (sh_stub_unwind): New variable.
5465 (sh_gdbarch_init): Wire everything.
5467 2012-02-27 Pedro Alves <palves@redhat.com>
5469 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5470 (linux_nat_post_attach_wait): Adjust to use
5471 linux_proc_pid_is_stopped.
5472 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5473 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5474 based on pid_is_stopped from both linux-nat.c and
5475 gdbserver/linux-low.c, and renamed.
5477 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5479 * remote.c (remote_watchpoint_addr_within_range): New function.
5480 (init_remote_ops): Use it.
5482 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5484 * target.h (target_watchpoint_addr_within_range): Document macro.
5486 2012-02-24 Pedro Alves <palves@redhat.com>
5488 * stack.c (set_last_displayed_sal): Issue internal_error instead
5489 of warning, and issue it after clearing the last displayed sal.
5491 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5492 Pedro Alves <palves@redhat.com>
5494 * breakpoint.c (until_break_command): Install breakpoints after
5495 all frame manipulations.
5497 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5499 * remote.c (remote_supports_cond_breakpoints): New forward
5501 (remote_add_target_side_condition): New function.
5502 (remote_insert_breakpoint): Add target-side breakpoint
5503 conditional if supported.
5504 (remote_insert_hw_breakpoint): Likewise.
5505 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5508 * target.c (update_current_target): Inherit
5509 to_supports_evaluation_of_breakpoint_conditions.
5510 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5512 * target.h (struct target_ops)
5513 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5514 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5516 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5517 (condition_evaluation_both, condition_evaluation_auto,
5518 condition_evaluation_host, condition_evaluation_target,
5519 condition_evaluation_enums, condition_evaluation_mode_1,
5520 condition_evaluation_mode): New static globals.
5521 (translate_condition_evaluation_mode): New function.
5522 (breakpoint_condition_evaluation_mode): New function.
5523 (gdb_evaluates_breakpoint_condition_p): New function.
5524 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5525 (mark_breakpoint_modified): New function.
5526 (mark_breakpoint_location_modified): New function.
5527 (set_condition_evaluation_mode): New function.
5528 (show_condition_evaluation_mode): New function.
5529 (bp_location_compare_addrs): New function.
5530 (get_first_location_gte_addr): New helper function.
5531 (set_breakpoint_condition): Free condition bytecode if locations
5532 has become unconditional. Call mark_breakpoint_modified (...).
5533 (condition_command): Call update_global_location_list (1) for
5535 (breakpoint_xfer_memory): Use is_breakpoint (...).
5536 (is_breakpoint): New function.
5537 (parse_cond_to_aexpr): New function.
5538 (build_target_condition_list): New function.
5539 (insert_bp_location): Handle target-side conditional
5540 breakpoints and call build_target_condition_list (...).
5541 (update_inserted_breakpoint_locations): New function.
5542 (insert_breakpoint_locations): Handle target-side conditional
5544 (bpstat_check_breakpoint_conditions): Add comment.
5545 (bp_condition_evaluator): New function.
5546 (bp_location_condition_evaluator): New function.
5547 (print_breakpoint_location): Print information on where the condition
5549 (print_one_breakpoint_location): Likewise.
5550 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5551 breakpoint location.
5552 (force_breakpoint_reinsertion): New functions.
5553 (update_global_location_list): Handle target-side breakpoint
5555 Reinsert locations that are already inserted if conditions have
5557 (bp_location_dtor): Free agent expression bytecode.
5558 (disable_breakpoint): Call mark_breakpoint_modified (...).
5559 Call update_global_location_list (...) with parameter 1 for breakpoints.
5560 (disable_command): Call mark_breakpoint_location_modified (...).
5561 Call update_global_location_list (...) with parameter 1 for breakpoints.
5562 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5563 (enable_command): mark_breakpoint_location_modified (...).
5564 (_initialize_breakpoint): Update documentation and add
5565 condition-evaluation breakpoint subcommand.
5567 * breakpoint.h: Include ax.h.
5568 (condition_list): New data structure.
5569 (condition_status): New enum.
5570 (bp_target_info) <cond_list>: New field.
5571 (bp_location) <condition_changed, cond_bytecode>: New fields.
5572 (is_breakpoint): New prototype.
5574 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5576 * remote.c (remote_state) <cond_breakpoints>: New field.
5577 (PACKET_ConditionalBreakpoints): New enum.
5578 (remote_cond_breakpoint_feature): New function.
5579 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5580 (remote_supports_cond_breakpoints): New function.
5581 (_initialize_remote): Add new packet configuration for
5582 target-side conditional breakpoints.
5584 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5586 * NEWS: Mention target-side conditional breakpoint support,
5587 new condition-evaluation breakpoint subcommand and remote
5590 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5592 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5595 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5597 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5598 (after_prologue): Remove.
5600 2012-02-23 Tom Tromey <tromey@redhat.com>
5602 * jv-valprint.c (java_val_print): Remove dead code.
5604 2012-02-23 Tristan Gingold <gingold@adacore.com>
5606 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5607 known_tasks_element and known_tasks_length fields.
5608 (read_known_tasks_array): Change argument type. Use pointer type
5609 and number of elements from DATA. Adjust.
5610 (read_known_tasks_list): Likewise.
5611 (get_known_tasks_addr): Remove.
5612 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5613 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5614 type and array length. Merge former get_known_tasks_addr code.
5616 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5619 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5620 it after set_momentary_breakpoint.
5622 2012-02-22 Sterling Augustine <saugustine@google.com>
5625 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5627 2012-02-22 Gary Benson <gbenson@redhat.com>
5629 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5630 (find_slot_in_mapped_hash): Likewise.
5632 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5635 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5636 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5637 * configure: Regenerate.
5639 2012-02-21 Tristan Gingold <gingold@adacore.com>
5640 Pedro Alves <palves@redhat.com>
5642 * ia64-tdep.c: Do not include libunwind-ia64.h.
5643 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5644 Include libunwind-ia64.h instead of libunwind.h.
5645 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5646 for libunwind.h existence.
5647 * configure, config.in: Regenerate.
5649 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5651 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5652 instead of value_rtti_target_type.
5653 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5654 instead of value_rtti_target_type.
5655 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5656 value_rtti_target_type.
5657 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5658 (value_rtti_target_type): Rename to ...
5659 (value_rtti_indirect_type): ... here and make it indirect. Update
5661 * value.c (readjust_indirect_value_type): New function.
5662 (coerce_ref): Support for enclosing type setting for references
5663 with readjust_indirect_value_type.
5664 * value.h (readjust_value_type): New declaration.
5665 (value_rtti_target_type): Rename to ...
5666 (value_rtti_indirect_type): ... here.
5668 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5670 * MAINTAINERS (Write After Approval): Add myself to the list.
5672 2012-02-20 Doug Evans <dje@google.com>
5674 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5675 Rename objfile_p_char parameter to objfilep.
5676 (build_objfile_section_table): Result is now void. All callers
5678 * objfiles.h (struct objfile): Tweak comments, whitespace.
5679 (build_objfile_section_table): Update.
5681 * elfread.c (elf_symfile_segments): Fix warning text.
5683 2012-02-20 Tom Tromey <tromey@redhat.com>
5686 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5687 particular set of file names once.
5688 (dw2_map_symbol_filenames): Likewise.
5690 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5693 * main.c (write_files): Remove the declaration.
5694 (external_editor_command): Move the declaration ...
5695 [GDBTK] (external_editor_command): ... here. Fix the comment.
5697 2012-02-20 Tom Tromey <tromey@redhat.com>
5699 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5702 2012-02-20 Tristan Gingold <gingold@adacore.com>
5704 * darwin-nat.h (enum darwin_msg_state): Add comments.
5706 2012-02-20 Tristan Gingold <gingold@adacore.com>
5708 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5711 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5713 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5714 between function description and implementation.
5716 2012-02-17 Tom Tromey <tromey@redhat.com>
5719 * python/py-event.c (event_object_getset): New global.
5720 (event_object_type): Reference it.
5721 * python/py-type.c (field_object_getset): New global.
5722 (field_object_type): Reference it.
5723 * python/python-internal.h (gdb_py_generic_dict): Declare.
5724 * python/py-utils.c (gdb_py_generic_dict): New function.
5726 2012-02-17 Tristan Gingold <gingold@adacore.com>
5728 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5730 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5732 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5733 TYPE_CALLING_CONVENTION annotation.
5735 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5737 * MAINTAINERS: Add rx to target ISA section.
5738 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5739 (ALLDEPFILES): Add rx-tdep.c.
5741 2012-02-16 Tom Tromey <tromey@redhat.com>
5743 * symfile.c (symbol_file_add_main_1): Use inferior's
5745 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5746 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5748 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5750 (follow_exec): Use inferior's symfile_flags.
5751 * inferior.h (struct inferior) <symfile_flags>: New field.
5753 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5756 * remote-sim.c (gdbsim_create_inferior): Call error() when
5757 sim_create_inferior() fails.
5759 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5761 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5763 2012-02-16 Tom Tromey <tromey@redhat.com>
5766 * thread.c (struct current_thread_cleanup) <was_removable>: New
5768 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5769 (make_cleanup_restore_current_thread): Initialize new field.
5771 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5773 * MAINTAINERS: Add rl78 to target ISA section.
5774 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5775 (ALLDEPFILES): Add rl78-tdep.c.
5776 * NEWS: Mention rl78 as a new target.
5778 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5780 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5782 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5784 2012-02-15 Tom Tromey <tromey@redhat.com>
5787 * infcmd.c (registers_info): Print just the current register's
5790 2012-02-15 Tom Tromey <tromey@redhat.com>
5792 * python/py-symbol.c (sympy_value): Use _().
5794 2012-02-15 Pedro Alves <palves@redhat.com>
5796 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5797 output to be like native targets'.
5798 (remote_pid_to_str): Special case the null ptid.
5800 2012-02-14 Stan Shebs <stan@codesourcery.com>
5802 * NEWS: Mention enable count command.
5803 * breakpoint.h (struct breakpoint): New field enable_count.
5804 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5805 (enable_breakpoint): Add arg to call.
5806 (struct disp_data): New struct.
5807 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5808 (do_map_enable_once_breakpoint): Create a struct and pass it.
5809 (do_map_enable_delete_breakpoint): Ditto.
5810 (do_map_enable_count_breakpoint): New function.
5811 (enable_count_command): New function.
5812 (bpstat_stop_status): Decrement enable_count.
5813 (print_one_breakpoint_location): Report enable count.
5814 (_initialize_breakpoint): Add enable count command.
5816 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5818 * rl78-tdep.c (reggroups.h): Include.
5819 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5820 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5821 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5822 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5823 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5824 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5825 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5826 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5827 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5828 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5829 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5830 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5831 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5832 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5833 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5834 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5835 beginning of register list.
5836 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5837 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5838 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5839 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5840 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5841 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5842 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5843 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5844 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5845 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5846 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5847 the pseudo registers. Rearrange other pseudo registers too so
5848 that the bank registers appear at the end.
5849 (rl78_register_type): Account for the fact that the byte sized
5850 bank registers are now pseudo-registers.
5851 (rl78_register_name): Rearrange the register name array. Make
5852 initial set of raw banked registers inaccessible.
5853 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5854 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5855 case for copying bytes back and forth between raw and pseudo
5856 versions of the banked registers. Update other cases to reflect
5858 (rl78_return_value): Update to account for changed names of
5860 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5861 rl78_register_sim_regno().
5863 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5865 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5866 the name parameter being passed to find_pc_partial_function().
5868 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5870 * MAINTAINERS: Step down from being ia64 target maintainer.
5872 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5874 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5875 compilation warning.
5877 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5879 Fix crash on loaded shlibs without loaded exec_bfd.
5880 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5881 (set_section_command): Replace exec_bfd by p->bfd.
5883 2012-02-10 Tom Tromey <tromey@redhat.com>
5885 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5886 when we have a C++ qualified name.
5888 2012-02-10 Pedro Alves <palves@redhat.com>
5890 * inferior.c (inferior_pid_to_str): New.
5891 (print_inferior, inferior_command): Use it.
5893 2012-02-10 Pedro Alves <palves@redhat.com>
5895 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5897 * configure: Regenerate.
5899 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5901 * linespec.c (decode_line_internal): Fix comment correctness.
5903 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
5906 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5907 * amd64bsd-nat.c: Add support for debug registers (adapted from
5909 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5910 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5911 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5912 (amd64bsd_dr_get_control): New functions.
5913 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5914 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5915 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5916 watchpoints initialization.
5917 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5919 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5921 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5923 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5925 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5927 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5929 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5931 * language.h (symbol_name_cmp_ftype): Renames
5932 symbol_name_match_p_ftype.
5933 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5934 la_get_symbol_name_match_p.
5935 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5936 ada_get_symbol_name_match_p. Update comment.
5937 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5938 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5939 Renames symbol_name_match_p. Update field type.
5940 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5941 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5942 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5943 "la_get_symbol_name_cmp" in comments.
5944 * language.c: Likewise.
5946 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5948 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5950 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5951 (amd64_sol2_gregset32_reg_offs): Likewise.
5953 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5955 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5956 of the returned BFD is allocated by GDB.
5958 2012-02-07 Tom Tromey <tromey@redhat.com>
5961 * python/python-internal.h (frame_object_type): Declare.
5962 * python/py-symbol.c (sympy_needs_frame): New function.
5963 (sympy_value): New function.
5964 (symbol_object_getset): Add "needs_frame".
5965 (symbol_object_methods): Add "value".
5966 * python/py-frame.c (frame_object_type): No longer static.
5968 2012-02-07 Tom Tromey <tromey@redhat.com>
5971 * python/py-symbol.c (sympy_line): New function.
5972 (symbol_object_getset): Add "line".
5974 2012-02-07 Tom Tromey <tromey@redhat.com>
5976 * charset.c (find_charset_names): Check 'in' against NULL.
5978 2012-02-06 Doug Evans <dje@google.com>
5980 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5981 and fields.name members from char * to const char *. All uses updated.
5982 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5983 from char * to const char *. All uses updated.
5984 (type_name_no_tag): Update.
5985 (lookup_unsigned_typename, lookup_signed_typename): Update.
5986 * gdbtypes.c (type_name_no_tag): Change result type
5987 from char * to const char *. All callers updated.
5988 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5989 name parameter from char * to const char *.
5990 * symtab.h (struct cplus_specific): Change type of demangled_name
5991 member from char * to const char *. All uses updated.
5992 (struct general_symbol_info): Change type of name and
5993 mangled_lang.demangled_name members from char * to const char *.
5995 (symbol_get_demangled_name, symbol_natural_name): Update.
5996 (symbol_demangled_name, symbol_search_name): Update.
5997 * symtab.c (symbol_get_demangled_name): Change result type
5998 from char * to const char *. All callers updated.
5999 (symbol_natural_name, symbol_demangled_name): Ditto.
6000 (symbol_search_name): Ditto.
6001 (completion_list_add_name): Change type of symname,sym_text,
6002 text,word parameters from char * to const char *.
6003 (completion_list_objc_symbol): Change type of sym_text,
6004 text,word parameters from char * to const char *.
6005 * ada-lang.c (find_struct_field): Change type of name parameter
6006 from char * to const char *.
6007 (encoded_ordered_before): Similarly for N0,N1 parameters.
6008 (old_renaming_is_invisible): Similarly for function_name parameter.
6009 (ada_type_name): Change result type from char * to const char *.
6010 All callers updated.
6011 * ada-lang.h (ada_type_name): Update.
6012 * buildsym.c (hashname): Change type of name parameter
6013 from char * to const char *.
6014 * buildsym.h (hashname): Update.
6015 * dbxread.c (end_psymtab): Change type of include_list parameter
6016 from char ** to const char **.
6017 * dwarf2read.c (determine_prefix): Change result type
6018 from char * to const char *. All callers updated.
6019 * f-lang.c (find_common_for_function): Change type of name, funcname
6020 parameters from char * to const char *.
6021 * f-lang.c (find_common_for_function): Update.
6022 * f-valprint.c (list_all_visible_commons): Change type of funcname
6023 parameters from char * to const char *.
6024 * gdbarch.sh (static_transform_name): Change type of name parameter
6025 and result from char * to const char *.
6026 * gdbarch.c: Regenerate.
6027 * gdbarch.h: Regenerate.
6028 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6029 of name parameter from char * to const char *.
6030 * jv-lang.c (java_primitive_type_from_name): Ditto.
6031 (java_demangled_signature_length): Similarly for signature parameter.
6032 (java_demangled_signature_copy): Ditto.
6033 (java_demangle_type_signature): Ditto.
6034 * jv-lang.h (java_primitive_type_from_name): Update.
6035 (java_demangle_type_signature): Update.
6036 * objc-lang.c (specialcmp): Change type of a,b parameters
6037 from char * to const char *.
6038 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6039 from char * to const char *. All callers updated.
6040 * p-lang.h (is_pascal_string_type): Update.
6041 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6042 of name parameter from char * to const char *.
6043 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6044 * utils.c (fprintf_symbol_filtered): Ditto.
6045 * defs.h (fprintf_symbol_filtered): Update.
6046 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6047 * stabsread.h (end_psymtab): Update.
6048 * stack.c (find_frame_funname): Change type of funname parameter
6049 from char ** to const char **.
6050 * stack.h (find_frame_funname): Update.
6051 * typeprint.c (type_print): Change type of varstring parameter
6052 from char * to const char *.
6053 * value.h (type_print): Update.
6054 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6055 from char * to const char *. All callers updated.
6056 (xcoff_end_psymtab): Change type of include_list parameter
6057 from char ** to const char **. All callers updated.
6058 (swap_sym): Similarly for name parameter. All callers updated.
6059 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6061 (process_coff_symbol): Use xstrdup.
6062 * stabsread.c (stabs_method_name_from_physname): Renamed from
6063 update_method_name_from_physname. Change result type from void
6064 to char *. All callers updated.
6065 (read_member_functions): In has_destructor case, store name in objfile
6066 obstack instead of malloc space. In !has_stub case, fix mem leak.
6068 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6070 * configure: Rebuild.
6071 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6074 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6076 * configure.tgt (rl78-*-elf): New target.
6077 * rl78-tdep.c: New file.
6079 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6081 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6082 and continue the loop. Add QUIT statement.
6084 2012-02-03 Tom Tromey <tromey@redhat.com>
6087 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6088 bfd_lookup_symbol_from_symtab.
6089 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6090 gdb_bfd_lookup_symbol_from_symtab.
6092 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6094 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6095 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6096 symbol. Add assertion that sym2 is never NULL.
6098 2012-02-02 Doug Evans <dje@google.com>
6100 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6101 "name" parameter to const char ** from char **. All callers updated.
6102 (find_pc_partial_function): Ditto.
6103 (cache_pc_function_name): Change type to const char * from char *.
6104 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6105 (find_pc_partial_function): Update.
6106 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6107 type of "name" parameter to const char * from char *.
6109 * arch-utils.c (generic_in_solib_return_trampoline): Change
6110 type of "name" parameter to const char * from char *.
6111 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6112 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6113 type of "name" parameter to const char * from char *.
6114 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6115 * gdbarch.c: Regenerate.
6116 * gdbarch.h: Regenerate.
6117 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6118 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6119 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6120 type of "name" parameter to const char * from char *.
6121 * skip.c (skip_function_pc): Ditto.
6122 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6123 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6124 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6125 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6126 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6127 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6128 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6129 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6130 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6132 2012-02-02 Pedro Alves <palves@redhat.com>
6134 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6135 the current inferior has no execution. Make sure the current
6136 remote process matches gdb's current inferior.
6138 2012-02-02 Tom Tromey <tromey@redhat.com>
6141 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6144 2012-02-02 Tom Tromey <tromey@redhat.com>
6147 * symtab.c (lookup_language_this): Set block_found.
6149 2012-02-01 Tom Tromey <tromey@redhat.com>
6152 * jit.c (struct jit_inferior_data): Rewrite.
6153 (struct jit_objfile_data): New.
6154 (get_jit_objfile_data): New function.
6155 (add_objfile_entry): Update.
6156 (jit_read_descriptor): Return int. Replace descriptor_addr
6157 argument with inf_data. Update. Don't call error.
6158 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6160 (jit_inferior_init): Don't look up descriptor. Don't call error.
6161 (jit_reset_inferior_data_and_breakpoints)
6162 (jit_inferior_created_observer): Remove.
6163 (jit_inferior_exit_hook): Update.
6164 (jit_executable_changed_observer): Remove.
6165 (jit_event_handler): Update.
6166 (free_objfile_data): Reset inferior data if needed.
6167 (_initialize_jit): Update.
6169 2012-02-01 Tom Tromey <tromey@redhat.com>
6171 * jit.c (bfd_open_from_target_memory): Move higher in file.
6173 2012-02-01 Tristan Gingold <gingold@adacore.com>
6175 * libunwind-frame.c (libunwind_load): Display message if dlopen
6178 2012-02-01 Gary Benson <gbenson@redhat.com>
6180 * symtab.h (symbol_found_callback_ftype): New typedef.
6181 (iterate_over_symbols): Use the above.
6182 * symtab.c (iterate_over_symbols): Likewise.
6183 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6184 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6185 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6186 (iterate_name_matcher): Document return values.
6187 (collect_one_symbol): Likewise.
6188 (collect_function_symbols): Likewise.
6189 (collect_symbols): Likewise.
6191 2012-02-01 Tom Tromey <tromey@redhat.com>
6193 * ada-lang.c (resolve_subexp): Update.
6194 (ada_lookup_symbol_list): Add 'full_search' argument.
6195 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6196 ada_lookup_symbol_list.
6197 (ada_lookup_encoded_symbol): Update.
6198 (get_var_value): Update.
6199 * ada-exp.y (block_lookup): Update.
6200 (write_var_or_type): Update.
6201 (write_name_assoc): Update.
6202 * ada-lang.h (ada_lookup_symbol_list): Update.
6204 2012-01-31 Tom Tromey <tromey@redhat.com>
6206 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6209 2012-01-31 Doug Evans <dje@google.com>
6211 * symtab.h: Remove outdated comment.
6212 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6214 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6216 Fix build error in Darwin port.
6217 * i386-darwin-nat.c: Include i386-nat.h.
6219 2012-01-30 Tom Tromey <tromey@redhat.com>
6221 PR breakpoints/13568:
6222 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6223 argument. Check for recursive includes.
6224 (dwarf_decode_macros): Create an include hash.
6226 2012-01-30 Michael Eager <eager@eagercon.com>
6228 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6229 * ppc-linux-tdep.c: Include glibc-tdep.h.
6230 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6231 (powerpc_linux_in_plt_stub): New function.
6232 (powerpc_linux_in_dynsym_resolve_code): New function.
6233 (ppc_skip_trampoline_code): New function.
6234 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6235 Use glibc_skip_solib_resolver.
6237 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6239 Code cleanup: Make 1440 bytes of data segment read-only.
6240 * arch-utils.c (endian_enum): Make it const char *const [].
6241 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6243 * breakpoint.c (always_inserted_enums): Likewise.
6244 * cli/cli-cmds.c (script_ext_enums): Likewise.
6245 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6246 enumlist parameter const char *const *.
6247 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6248 const char *const *.
6249 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6250 parameter const char *const *.
6251 * cris-tdep.c (cris_modes): Make it const char *const [].
6252 * filesystem.c (target_file_system_kinds): Likewise.
6253 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6254 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6255 (can_use_displaced_stepping_enum, scheduler_enums)
6256 (exec_direction_names): Likewise.
6257 * language.c (_initialize_language): Make the type_or_range_names and
6258 case_sensitive_names variables const char *const [].
6259 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6260 * python/python.c (python_excp_enums): Likewise.
6261 * remote.c (interrupt_sequence_modes): Likewise.
6262 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6263 * serial.c (logbase_enums): Likewise.
6264 * sh-tdep.c (sh_cc_enum): Likewise.
6265 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6267 * symtab.c (multiple_symbols_modes): Likewise.
6268 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6270 * utils.c (internal_problem_modes): Likewise.
6272 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6274 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6275 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6278 2012-01-27 Doug Evans <dje@google.com>
6280 * configure.ac (with_python): Fix absolute path handling for win32.
6281 * configure: Regenerate.
6283 2012-01-26 Doug Evans <dje@google.com>
6285 * symtab.c: Whitespace cleanup, no code changes.
6287 * symtab.c (lookup_symbol_in_language): Improve comment.
6288 (lookup_symbol_aux): Fix comment.
6290 * psymtab.c (add_psymbol_to_list): Result is now "void".
6291 * psympriv.h (add_psymbol_to_list): Update.
6293 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6295 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6297 Do not open script filenames twice.
6298 * cli/cli-cmds.c (source_script_from_stream): Pass to
6299 source_python_script also STREAM.
6300 * python/py-auto-load.c (source_section_scripts): Pass to
6301 source_python_script_for_objfile also STREAM.
6302 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6304 * python/python-internal.h (source_python_script_for_objfile): New
6305 parameter file, rename parameter file to filename.
6306 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6307 instead if !_WIN32. Update the function comment.
6308 (source_python_script, source_python_script_for_objfile)
6309 (source_python_script): New parameter file, rename parameter file to
6310 filename. Pass FILENAME to python_run_simple_file.
6311 * python/python.h (source_python_script): New parameter file, rename
6312 parameter file to filename.
6314 2012-01-26 Pedro Alves <palves@redhat.com>
6316 * corelow.c (core_has_fake_pid): Delete.
6317 (core_close): Delete references to `core_has_fake_pid'.
6318 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6319 (core_open): Delete references to `core_has_fake_pid'.
6320 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6323 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6325 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6326 Remove language parameter from name_matcher. Adjust the comment.
6327 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6328 Remove language parameter.
6329 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6330 * linespec.c (iterate_name_matcher): Likewise.
6331 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6332 name_matcher. Adjust call accordingly.
6333 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6334 (maintenance_check_symtabs): Adjust type of parameter "fun".
6335 * psymtab.h (maintenance_check_symtabs): Likewise.
6337 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6339 * language.h (symbol_name_match_p_ftype): New typedef.
6340 (struct language_defn): Replace field la_symbol_name_compare
6341 by la_get_symbol_name_match_p.
6342 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6343 (ada_language_defn): Use it.
6344 * linespec.c (struct symbol_matcher_data): New type.
6345 (iterate_name_matcher): Rewrite.
6346 (iterate_over_all_matching_symtabs): Pass a pointer to
6347 a symbol_matcher_data struct to expand_symtabs_matching
6348 instead of just the lookup name.
6349 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6350 opencl-lang.c, p-lang.c, language.c: Delete field
6351 la_symbol_name_compare, and replace by NULL for new field
6352 la_get_symbol_name_match_p.
6353 * symfile.h (struct quick_symbol_functions): Update comment.
6355 2012-01-25 Tom Tromey <tromey@redhat.com>
6357 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6360 2012-01-24 Tom Tromey <tromey@redhat.com>
6363 * solib.c (update_solib_list): Update the program space's
6364 added_solibs and deleted_solibs fields.
6365 * progspace.h (struct program_space) <added_solibs,
6366 deleted_solibs>: New fields.
6367 (clear_program_space_solib_cache): Declare.
6368 * progspace.c (release_program_space): Call
6369 clear_program_space_solib_cache.
6370 (clear_program_space_solib_cache): New function.
6371 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6372 bpstat_stop_status. Use handle_solib_event.
6373 * breakpoint.c: Include gdb_regex.h.
6374 (print_solib_event): New function.
6375 (bpstat_print): Use print_solib_event.
6376 (bpstat_stop_status): Add special case for bp_shlib_event.
6377 (handle_solib_event): New function.
6378 (bpstat_what): Use handle_solib_event.
6379 (struct solib_catchpoint): New.
6380 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6381 (breakpoint_hit_catch_solib, check_status_catch_solib)
6382 (print_it_catch_solib, print_one_catch_solib)
6383 (print_mention_catch_solib, print_recreate_catch_solib): New
6385 (catch_solib_breakpoint_ops): New global.
6386 (catch_load_or_unload, catch_load_command_1)
6387 (catch_unload_command_1): New functions.
6388 (internal_bkpt_check_status): Add special case for
6390 (internal_bkpt_print_it): Use print_solib_event.
6391 (initialize_breakpoint_ops): Initialize
6392 catch_solib_breakpoint_ops.
6393 (_initialize_breakpoint): Register "catch load" and "catch
6395 * breakpoint.h (handle_solib_event): Declare.
6396 * NEWS: Add entry for "catch load" and "catch unload".
6398 2012-01-24 Tom Tromey <tromey@redhat.com>
6400 * ada-lang.c: Include gdb_vecs.h.
6401 * charset.c: Include gdb_vecs.h.
6402 * tracepoint.h: Include gdb_vecs.h.
6403 * gdb_vecs.h: New file.
6405 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6407 * breakpoint.c (breakpoint_hit_catch_fork)
6408 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6409 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6410 * infrun.c (inferior_has_forked, inferior_has_vforked)
6411 (inferior_has_execd, inferior_has_called_syscall): Delete.
6412 (handle_syscall_event): Get syscall_number from the execution
6413 control state's wait status.
6414 (wait_for_inferior): Don't clear syscall_number.
6416 2012-01-24 Pedro Alves <palves@redhat.com>
6418 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6419 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6420 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6421 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6423 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6424 false for events other than TARGET_SIGNAL_TRAP.
6425 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6427 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6428 events other than TARGET_SIGNAL_TRAP.
6429 (tracepoint_breakpoint_hit): Add `ws' parameter.
6430 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6432 (bpstat_stop_status): Same.
6433 (pc_at_non_inline_function): Same.
6434 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6435 to pass the current event's waitstatus to bpstat_stop_status
6436 and pc_at_non_inline_function.
6438 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6441 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6442 Update the function comment for it.
6443 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6444 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6447 2012-01-24 Pedro Alves <palves@redhat.com>
6449 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6450 outside `bs->stop' block.
6451 (bpstat_what): Rework bp_shlib_event handling.
6452 (internal_bkpt_check_status): If the breakpoint is a
6453 bp_shlib_event, then set bs->stop and bs->print if
6454 stop_on_solib_events is set.
6456 2012-01-24 Gary Benson <gbenson@redhat.com>
6458 Delete #if 0'd out code.
6459 * stack.c (print_frame_label_vars): Remove.
6460 (catch_info): Likewise.
6461 (_initialize_stack): Remove "info catch" command.
6462 * NEWS: Mention the above.
6464 2012-01-24 Pedro Alves <palves@redhat.com>
6466 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6468 (remote_notice_new_inferior): If the remote end doesn't support
6469 the multiprocess extensions, then the PID is fake.
6470 (add_current_inferior_and_thread): New.
6471 (remote_start_remote): Use it.
6472 (extended_remote_attach_1): Adjust.
6473 (extended_remote_create_inferior_1): Use
6474 add_current_inferior_and_thread.
6476 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6478 Fix watchpoints to be specific for each inferior.
6479 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6480 current_program_space.
6481 * i386-nat.c (i386_inferior_data_cleanup): New.
6482 (i386_inferior_data_get): Replace variable inf_data_local by an
6484 (i386_use_watchpoints): Initialize i386_inferior_data.
6485 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6486 specific iterate_over_lwps.
6488 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6490 Fix watchpoints across inferior fork.
6491 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6492 comment for linux_nat_iterate_watchpoint_lwps.
6493 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6494 linux_nat_iterate_watchpoint_lwps.
6495 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6496 * i386-linux-nat.c (update_debug_registers_callback): Update the
6497 comment for linux_nat_iterate_watchpoint_lwps.
6498 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6499 linux_nat_iterate_watchpoint_lwps.
6500 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6501 * i386-nat.c: Include inferior.h.
6502 (dr_mirror): Remove.
6503 (i386_inferior_data, struct i386_inferior_data)
6504 (i386_inferior_data_get): New.
6505 (i386_debug_reg_state): Use i386_inferior_data_get.
6506 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6507 (i386_insert_watchpoint, i386_remove_watchpoint)
6508 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6509 (i386_remove_hw_breakpoint): New variable state, use
6510 i386_debug_reg_state instead of DR_MIRROR.
6511 * linux-nat.c (delete_lwp): New declaration.
6512 (num_lwps): Move here from downwards.
6513 (delete_lwp_cleanup): New.
6514 (linux_child_follow_fork): Create new child_lp, call
6515 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6517 (num_lwps): Move upwards.
6518 (linux_nat_iterate_watchpoint_lwps): New.
6519 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6520 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6522 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6526 2012-01-23 Pedro Alves <palves@redhat.com>
6528 * top.c (caution): Rename to ...
6529 (confirm): ... this.
6530 (show_caution): Rename to ...
6531 (show_confirm): ... this.
6532 (quit_cover): Adjust.
6533 (init_main): Adjust.
6534 * top.h (caution): Rename to ...
6535 (confirm): ... this.
6536 * utils.c (internal_vproblem, defaulted_query): Adjust.
6538 2012-01-23 Pedro Alves <palves@redhat.com>
6540 * top.c (caution): Update comment.
6541 (execute_command): Don't consider the current value of `caution'.
6543 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6545 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6547 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6549 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6550 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6551 * target.c (target_fileio_pwrite): Remove buffer address from
6553 (target_fileio_pread): Likewise.
6555 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6557 * NEWS: Document remote "info proc" and "generate-core-file".
6559 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6561 * gdbarch.sh (find_memory_regions): New callback.
6562 * gdbarch.c, gdbarch.h: Regenerate.
6564 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6565 callback before falling back to target method.
6567 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6568 (linux_target_install_ops): No longer install it.
6570 * linux-tdep.c (linux_find_memory_regions): New function.
6571 (linux_init_abi): Install it.
6573 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6575 * gdbarch.sh (make_corefile_notes): New architecture callback.
6576 * gdbarch.c: Regenerate.
6577 * gdbarch.h: Likewise.
6579 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6580 before target_make_corefile_notes. If NULL is returned, the
6581 target does not support core file generation.
6583 * linux-nat.c: Include "linux-tdep.h".
6584 (find_signalled_thread, find_stop_signal): Remove.
6585 (linux_nat_do_thread_registers): Likewise.
6586 (struct linux_nat_corefile_thread_data): Likewise.
6587 (linux_nat_corefile_thread_callback): Likewise.
6588 (iterate_over_spus): Likewise.
6589 (struct linux_spu_corefile_data): Likewise.
6590 (linux_spu_corefile_callback): Likewise.
6591 (linux_spu_make_corefile_notes): Likewise.
6592 (linux_nat_collect_thread_registers): New function.
6593 (linux_nat_make_corefile_notes): Replace contents by call to
6594 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6595 as native-only callback.
6597 * linux-tdep.h: Include "bfd.h".
6598 (struct regcache): Add forward declaration.
6599 (linux_collect_thread_registers_ftype): New typedef.
6600 (linux_make_corefile_notes): Add prototype.
6601 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6602 "regset.h", and "elf-bfd.h".
6603 (find_signalled_thread, find_stop_signal): New functions.
6604 (linux_spu_make_corefile_notes): Likewise.
6605 (linux_collect_thread_registers): Likewise.
6606 (struct linux_corefile_thread_data): New data structure.
6607 (linux_corefile_thread_callback): New funcion.
6608 (linux_make_corefile_notes): Likewise.
6609 (linux_make_corefile_notes_1): Likewise.
6610 (linux_init_abi): Install it.
6612 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6614 * gdbarch.sh (info_proc): New callback.
6615 * gdbarch.c, gdbarch.h: Regenerate.
6617 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6618 before falling back to the target info_proc callback.
6620 * linux-nat.c: Do not include "cli/cli-utils.h".
6621 (linux_nat_info_proc): Remove.
6622 (linux_target_install_ops): No longer install it.
6624 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6625 (read_mapping): New function.
6626 (linux_info_proc): Likewise.
6627 (linux_init_abi): Install it.
6629 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6631 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6632 * infcmd.c: (info_proc_cmd_1): New function.
6633 (info_proc_cmd): New function, moved here from equivalent routine
6634 orignally in linux-nat.c.
6635 (info_proc_cmd_mappings): Likewise.
6636 (info_proc_cmd_stat): Likewise.
6637 (info_proc_cmd_status): Likewise.
6638 (info_proc_cmd_cwd): Likewise.
6639 (info_proc_cmd_cmdline): Likewise.
6640 (info_proc_cmd_exe): Likewise.
6641 (info_proc_cmd_all): Likewise.
6642 (_initialize_infcmd): Install "info proc" command and subcommands.
6644 * target.h (struct target_ops): Add to_info_proc.
6645 (target_info_proc): Add prototype.
6646 * target.c (target_info_proc): New function.
6648 * procfs.c (procfs_info_proc): Add prototype.
6649 (info_proc_cmd): Rename into ...
6650 (procfs_info_proc): ... this. Update argument types as appropriate
6651 for a to_info_proc implementation. Handle "what" argument.
6652 (procfs_target): Install procfs_info_proc.
6653 (_initialize_procfs): No longer install "info proc" command.
6655 * linux-nat.c: (enum info_proc_what): Remove.
6656 (linux_nat_info_proc_cmd_1): Rename into ...
6657 (linux_nat_info_proc): ... this. Update argument types as appropriate
6658 for a to_info_proc implementation.
6659 (linux_nat_info_proc_cmd): Remove.
6660 (linux_nat_info_proc_cmd_mappings): Likewise.
6661 (linux_nat_info_proc_cmd_stat): Likewise.
6662 (linux_nat_info_proc_cmd_status): Likewise.
6663 (linux_nat_info_proc_cmd_cwd): Likewise.
6664 (linux_nat_info_proc_cmd_cmdline): Likewise.
6665 (linux_nat_info_proc_cmd_exe): Likewise.
6666 (linux_nat_info_proc_cmd_all): Likewise.
6667 (linux_target_install_ops): Install linux_nat_info_proc.
6668 (_initialize_linux_nat): No longer install "info proc" command
6671 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6673 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6674 * config.in, configure: Regenerate.
6676 * target.h (struct target_ops): Add to_fileio_readlink.
6677 (target_fileio_readlink): Add prototype.
6678 * target.c (target_fileio_readlink): New function.
6680 * inf-child.c: Conditionally include <sys/param.h>.
6681 (inf_child_fileio_readlink): New function.
6682 (inf_child_target): Install it.
6684 * remote.c (PACKET_vFile_readlink): New enum value.
6685 (remote_hostio_readlink): New function.
6686 (init_remote_ops): Install it.
6687 (_initialize_remote): Handle vFile:readlink packet type.
6689 2012-01-20 Pedro Alves <palves@redhat.com>
6690 Ulrich Weigand <ulrich.weigand@linaro.org>
6692 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6693 * config.in, configure: Regenerate.
6695 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6696 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6697 (target_fileio_open): Add prototype.
6698 (target_fileio_pwrite): Likewise.
6699 (target_fileio_pread): Likewise.
6700 (target_fileio_close): Likewise.
6701 (target_fileio_unlink): Likewise.
6702 (target_fileio_read_alloc): Likewise.
6703 (target_fileio_read_stralloc): Likewise.
6705 * target.c: Include "gdb/fileio.h".
6706 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6707 (default_fileio_target): New function.
6708 (target_fileio_open): Likewise.
6709 (target_fileio_pwrite): Likewise.
6710 (target_fileio_pread): Likewise.
6711 (target_fileio_close): Likewise.
6712 (target_fileio_unlink): Likewise.
6713 (target_fileio_close_cleanup): Likewise.
6714 (target_fileio_read_alloc_1): Likewise.
6715 (target_fileio_read_alloc): Likewise.
6716 (target_fileio_read_stralloc): Likewise.
6718 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6719 <fcntl.h>, and <unistd.h>.
6720 (inf_child_fileio_open_flags_to_host): New function.
6721 (inf_child_errno_to_fileio_error): Likewise.
6722 (inf_child_fileio_open): Likewise.
6723 (inf_child_fileio_pwrite): Likewise.
6724 (inf_child_fileio_pread): Likewise.
6725 (inf_child_fileio_close): Likewise.
6726 (inf_child_fileio_unlink): Likewise.
6727 (inf_child_target): Install to_fileio routines.
6729 * remote.c (init_remote_ops): Install to_fileio routines.
6731 2012-01-20 Pedro Alves <palves@redhat.com>
6732 Ulrich Weigand <ulrich.weigand@linaro.org>
6734 * remote.c (remote_multi_process_p): Only check for multi-process
6735 protocol feature, do not check for extended protocol.
6736 (remote_supports_multi_process): Check for extended protocol here.
6737 (set_general_process): Likewise.
6738 (extended_remote_kill): Likewise.
6739 (remote_pid_to_str): Likewise.
6740 (remote_query_supported): Always query multiprocess mode.
6742 2012-01-20 Pedro Alves <palves@redhat.com>
6743 Ulrich Weigand <ulrich.weigand@linaro.org>
6745 * inferior.h (struct inferior): Add fake_pid_p.
6746 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6747 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6748 magic_null_ptid since the remote side doesn't provide a real PID.
6750 2012-01-19 Tom Tromey <tromey@redhat.com>
6752 * NEWS: Combine the two Python sections.
6754 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6756 * target.h (target_close): Update comment on the target's unpush state.
6758 2012-01-19 Pedro Alves <palves@redhat.com>
6760 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6761 linux_nat_async directly instead of going through the target
6763 * target.c (unpush_target): Close target after unpushing it, not
6766 2012-01-19 Gary Benson <gbenson@redhat.com>
6768 * mdebugread.c (sort_blocks): Replace integer constants with ones
6769 derived from FIRST_LOCAL_BLOCK.
6771 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6772 Jan Kratochvil <jan.kratochvil@redhat.com>
6775 * symfile.c (find_separate_debug_file): New function.
6776 (terminate_after_last_dir_separator): Likewise.
6777 (find_separate_debug_file_by_debuglink): Also try realpath.
6778 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6779 * configure: Regenerate.
6780 * config.in: Regenerate.
6782 2012-01-18 Doug Evans <dje@google.com>
6784 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6785 (main.o): Remove rule.
6786 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6787 (--with-sysroot): Rewrite.
6788 * configure: Regenerate.
6789 * config.in: Regenerate.
6791 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6793 * parse.c (initialize_expout): New function.
6794 (reallocate_expout): Likewise.
6795 (parse_exp_in_context): Use `initialize_expout' and
6796 `reallocate_expout' when appropriate.
6798 2012-01-18 Pedro Alves <palves@redhat.com>
6800 * record.c (struct record_breakpoint, record_breakpoint_p)
6801 (record_breakpoints): New.
6802 (record_insert_breakpoint, record_remove_breakpoint): Manage
6803 record breakpoints list. Only remove breakpoints from the
6804 inferior if they had been inserted there in the first place.
6806 2012-01-17 Doug Evans <dje@google.com>
6808 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6809 if we know we don't have a file name to look for.
6811 2012-01-17 Pedro Alves <palves@redhat.com>
6813 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6814 the frame's stop reason is UNWIND_UNAVAILABLE.
6816 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6818 Fix compilation error.
6819 * m2-exp.y (yyerror): Use ANSI C prototype.
6821 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6823 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6824 (growbuf_by_size): Likewise.
6825 (yyerror): Likewise.
6826 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6827 (modblock): Remove variable (was #if 0'ed).
6828 (parse_number): Convert prototype from K&R to ANSI C.
6829 (yyerror): Likewise.
6830 * objc-exp.y (parse_number): Likewise.
6831 (yyerror): Likewise.
6832 (yylex): Remove #if 0'ed code.
6833 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6834 (yyerror): Likewise.
6836 2012-01-16 Tom Tromey <tromey@redhat.com>
6839 * symtab.h (compare_filenames_for_search): Declare.
6840 * symtab.c (compare_filenames_for_search): New function.
6841 (iterate_over_some_symtabs): Use it.
6842 * symfile.h (struct quick_symbol_functions)
6843 <map_symtabs_matching_filename>: Change spec.
6844 * psymtab.c (partial_map_symtabs_matching_filename): Use
6845 compare_filenames_for_search. Update for new spec.
6846 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6847 compare_filenames_for_search. Update for new spec.
6848 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6850 2012-01-16 Tom Tromey <tromey@redhat.com>
6853 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6854 (struct main_type) <flag_flag_enum>: New field.
6855 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6856 * NEWS: Add entries.
6857 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6859 * python/lib/gdb/printing.py (_EnumInstance): New class.
6860 (FlagEnumerationPrinter): Likewise.
6862 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6864 * breakpoint.c (create_sals_from_address_default): New function.
6865 (create_breakpoints_sal_default): Likewise.
6866 (decode_linespec_default): Likewise.
6867 (is_marker_spec): Removed.
6868 (strace_marker_p): New function.
6869 (init_breakpoint_sal): Using `strace_marker_p' instead of
6871 (create_breakpoint): Call method `create_sals_from_address' from
6872 breakpoint_ops, replacing code that created SALs conditionally
6873 on the type of the breakpoint. Call method `create_breakpoints_sal',
6874 replacing code that created breakpoints conditionally on the type
6876 (base_breakpoint_create_sals_from_address): New function.
6877 (base_breakpoint_create_breakpoints_sal): Likewise.
6878 (base_breakpoint_decode_linespec): Likewise.
6879 (base_breakpoint_ops): Add methods
6880 `base_breakpoint_create_sals_from_address',
6881 `base_breakpoint_create_breakpoints_sal' and
6882 `base_breakpoint_decode_linespec'.
6883 (bkpt_create_sals_from_address): New function.
6884 (bkpt_create_breakpoints_sal): Likewise.
6885 (bkpt_decode_linespec): Likewise.
6886 (tracepoint_create_sals_from_address): Likewise.
6887 (tracepoint_create_breakpoints_sal): Likewise.
6888 (tracepoint_decode_linespec): Likewise.
6889 (strace_marker_create_sals_from_address): Likewise.
6890 (strace_marker_create_breakpoints_sal): Likewise.
6891 (strace_marker_decode_linespec): Likewise.
6892 (strace_marker_breakpoint_ops): New variable.
6893 (addr_string_to_sals): Remove `marker_spec'. Call method
6894 `decode_linespec' from breakpoint_ops, replacing code that decoded
6895 an address string into a SAL. Use `strace_marker_p' instead of
6897 (strace_command): Decide whether we are dealing with a static
6898 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6899 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6900 * breakpoint.h (linespec_result, linespec_sals): New forward
6902 (breakpoint_ops) <create_sals_from_address>,
6903 <create_breakpoints_sal>, <decode_linespec>: New methods.
6905 2012-01-14 Doug Evans <dje@google.com>
6907 * NEWS: Update text for "maint set python print-stack".
6908 It is deprecated in gdb 7.4 and deleted in 7.5.
6910 2012-01-13 Eli Zaretskii <eliz@gnu.org>
6912 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6915 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6917 * configure: Regenerate.
6918 * config.in: Regenerate.
6920 2012-01-12 Keith Seitz <keiths@redhat.com>
6923 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6924 (ANONYMOUS_UNION_NAME): Define.
6925 (is_path_expr_parent): New function.
6926 (get_path_expr_parent): New function.
6927 (is_anonymous_child): New function.
6928 (create_child_with_value): If the child is anonymous and without
6929 a name, assign an object name to it.
6930 (c_describe_child): Use get_path_expr_parent to determine
6931 the parent expression.
6932 If there field represents an anonymous struct or union and
6933 has no name, set an appropriate display name and expression.
6934 (cplus_describe_child): Likewise.
6936 2012-01-12 Pedro Alves <palves@redhat.com>
6938 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6939 available when %ebp is found to be zero (outermost).
6941 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
6943 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6944 an internal gdb_static_assert.
6945 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6947 2012-01-11 Tom Tromey <tromey@redhat.com>
6950 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6951 catch" and "catch throw".
6953 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6955 * blockframe.c (block_innermost_frame): Start search from selected
6956 frame, if present, or otherwise the current frame.
6958 * c-exp.y (variable): Update innermost_block for
6959 'block COLONCOLON NAME' clause.
6960 * m2-exp.y (variable): Ditto.
6961 * objc-exp.y (variable): Ditto.
6963 2012-01-10 Tom Tromey <tromey@redhat.com>
6966 * python/python.c (finish_python_initialization): Set sys.argv.
6968 2012-01-10 Doug Evans <dje@google.com>
6970 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6971 "want_line_info". All callers updated.
6972 (dwarf_decode_lines_1): New function.
6973 (handle_DW_AT_stmt_list): Add function comment.
6974 New arg "want_line_info". All callers updated.
6975 (read_file_scope,read_type_unit_scope): Move comment from
6976 handle_DW_AT_stmt_list to here.
6978 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6980 Fix regression after libiberty/ update for GCC PR 6057 and others.
6981 * c-exp.y (operator) <OPERATOR DELETE>
6982 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6983 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6984 (make_builtin_type, make_name): New variable i, add gdb_assert.
6985 (operator) <OPERATOR NEW>: Update ARGS to 3.
6986 (operator) <OPERATOR DELETE>: Add trailing space.
6987 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6988 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6989 * cp-support.c (cp_canonicalize_string): Check NULL from
6990 cp_comp_to_string, call warning and return.
6992 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6994 Fix duplicate .o files after omitting libbfd.a.
6995 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6996 (SFILES): Add corelow.c.
6997 (COMMON_OBS): Add corelow.o.
6998 (ALLDEPFILES): Remove corelow.c.
6999 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7000 * config/alpha/alpha-osf3.mh: Likewise.
7001 * config/alpha/fbsd.mh: Likewise.
7002 * config/arm/nbsdaout.mh: Likewise.
7003 * config/arm/nbsdelf.mh: Likewise.
7004 * config/i386/i386gnu.mh: Likewise.
7005 * config/ia64/hpux.mh: Likewise.
7006 * config/ia64/linux.mh: Likewise.
7007 * config/m32r/linux.mh: Likewise.
7008 * config/m68k/linux.mh: Likewise.
7009 * config/mips/irix5.mh: Likewise.
7010 * config/mips/irix6.mh: Likewise.
7011 * config/pa/hpux.mh: Likewise.
7012 * config/pa/linux.mh: Likewise.
7013 * config/powerpc/aix.mh: Likewise.
7014 * config/sparc/linux.mh: Likewise.
7015 * config/sparc/linux64.mh: Likewise.
7016 * config/sparc/sol2.mh: Likewise.
7017 * config/vax/vax.mh: Likewise.
7018 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7019 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7020 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7021 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7022 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7023 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7024 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7025 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7026 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7027 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7028 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7029 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7030 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7031 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7032 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7033 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7034 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7035 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7036 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7037 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7038 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7039 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7040 corelow.o from gdb_target_obs.
7041 * corefile.c (core_target): Update the comment on NULL value.
7042 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7043 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7044 MATCHES. Drop YUMMY set on NULL.
7045 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7046 reclaim CORE_DATA if it is already NULL.
7048 2012-01-09 Doug Evans <dje@google.com>
7050 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7051 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7053 2012-01-09 Keith Seitz <keiths@redhat.com>
7055 * breakpoint.c (wrapper.h): Don't include.
7057 2012-01-09 Keith Seitz <keiths@redhat.com>
7059 * Makefile.in (SFILES): Remove wrapper.c.
7060 (HFILES_NO_SRCDIR): Remove wrapper.h.
7061 (COMMON_OBS): Remove wrapper.o.
7062 * cli/cli-interp.c: Don't inlude wrapper.h.
7063 * corelow.c: Likewise.
7064 (core_open): Replace gdb_target_find_new_threads with
7065 TRY_CATCH around target_find_new_threads.
7066 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7067 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7068 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7069 evaluate_expression.
7070 (varobj_set_value): Likewise for evaluate_expression and
7072 (install_new_variable): Likewise for value_fetch_lazy.
7073 (adjust_value_for_child_access): Likewise for value_ind.
7074 (c_describe_child): Likewise for value_subscript and
7076 (c_value_of_root): Likewise for evaluate_expression.
7077 * wrapper.c: Remove.
7078 * wrapper.h: Remove.
7080 2012-01-09 Doug Evans <dje@google.com>
7082 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7083 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7084 "abfd" args with "section". All callers updated.
7085 Error checking code moved ...
7086 (error_check_comp_unit_head): ... here. New function.
7087 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7088 Delete arg "abfd". New arg "type_offset". All callers updated.
7089 (create_debug_types_hash_table): Simplify by using
7090 read_and_check_type_unit_head.
7092 * parser-defs.h (namecopy): Delete.
7093 * parse.c (namecopy, namecopy_size): Move into copy_name.
7095 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7097 Partially fix duplicate .o files after omitting libbfd.a.
7098 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7099 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7100 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7101 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7102 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7103 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7104 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7106 2012-01-09 Pedro Alves <palves@redhat.com>
7108 * MAINTAINERS: Update my email address.
7110 2012-01-08 Doug Evans <dje@google.com>
7112 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7113 n_type_units. Rename type_comp_units to all_type_units.
7115 (add_signatured_type_cu_to_table): Renamed from
7116 add_signatured_type_cu_to_list. All callers updated.
7118 * gdbtypes.h (struct cplus_struct_type): Delete member
7119 nfn_fields_total. All uses removed.
7121 2012-01-06 Doug Evans <dje@google.com>
7123 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7125 (dwarf2_find_comp_unit): Delete.
7126 (process_psymtab_comp_unit): Make result "void".
7127 Delete args buffer, info_ptr, buffer_size, and replace with
7128 "section". All callers updated.
7129 (dwarf2_build_psymtabs_hard): Simplify.
7131 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7132 Thiago Jung Bauermann <bauerman@br.ibm.com>
7134 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7135 before `struct gdb_exception'.
7136 * breakpoint.c (update_global_location_list_nothrow)
7137 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7138 * cp-abi.c (value_rtti_type): Likewise.
7139 * cp-support.c (cp_validate_operator): Likewise.
7140 * infrun.c (insert_exception_resume_breakpoint)
7141 (check_exception_resume, keep_going): Likewise.
7142 * mi-interp.c (mi_breakpoint_created)
7143 (mi_breakpoint_modified): Likewise.
7144 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7145 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7146 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7148 2012-01-05 Doug Evans <dje@google.com>
7150 * dwarf2read.c (statement_prologue): Delete, unused.
7152 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7153 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7155 * dwarf2read.c (comp_unit_header): Delete, unused.
7157 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7159 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7160 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7162 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7164 * infrun.c (normal_stop): Don't skip calling the normal_stop
7165 observers if the thread was doing a multi-step, but stopped for
7166 some reason other than stepping.
7168 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7170 * cli/cli-decode.h: Add comments.
7171 (CMD_LIST_AMBIGUOUS): Moved to command.h
7172 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7173 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7174 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7175 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7176 (add_com, add_com_alias, add_info, add_info_alias)
7177 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7179 * command.h: Add and adjust comments.
7180 (CMD_LIST_AMBIGUOUS): Moved here.
7181 (help_cmd, help_cmd_list): Delete declarations.
7183 2012-01-04 Doug Evans <dje@google.com>
7185 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7186 All callers updated.
7187 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7188 Replace all arguments with "per_cu". All callers updated.
7190 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7192 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7193 New arg "per_cu". All callers updated.
7195 Delete #if 0'd out code.
7196 * language.c (binop_result_type): Delete.
7197 (simple_type, ordered_type, same_type, integral_type): Delete.
7198 (numeric_type, character_type, string_type, boolean_type): Delete.
7199 (float_type, structured_type): Delete.
7200 * language.h: Update.
7202 2012-01-04 Tom Tromey <tromey@redhat.com>
7204 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7206 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7208 * corefile.c (close_exec_file): Delete.
7209 (reopen_exec_file): Remove commented out code that seems related
7210 to close_exec_file, which is being deleted here.
7211 * inferior.h (close_exec_file): Delete.
7212 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7214 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7216 * ada-lang.c: #include "cli/cli-utils.h".
7217 (get_selections): Use skip_spaces.
7218 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7219 (catch_ada_exception_command_split): Use skip_spaces.
7220 (ada_decode_assert_location): Likewise.
7222 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7224 * linespec.c (decode_line_internal): Check for C++ or Java
7225 compound constructs only if the current language is C, C++
7228 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7231 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7232 Joel Brobecker <brobecker@adacore.com>
7233 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7234 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7236 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7237 fall through into AT_ENTRY_POINT.
7238 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7240 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7241 PPC_INSN_SIZE skip to 3 times.
7243 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7245 * linespec.c (add_minsym): Preserve function descriptors.
7247 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7249 * breakpoint.c (all_locations_are_pending): Consider locations
7250 in program spaces executing during startup pending as well.
7252 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7254 Copyright year update in most files of the GDB Project.
7256 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7258 * copyright.sh: Delete.
7259 * copyright.py: Rewrite.
7261 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7263 * gnulib/extra/update-copyright: New file, imported from gnulib.
7265 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7267 * README (Copyright and License Notices): New section.
7269 2012-01-03 Tom Tromey <tromey@redhat.com>
7272 * python/py-value.c (valpy_dereference, valpy_get_address
7273 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7274 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7275 (valpy_absolute, valpy_richcompare): Free intermediate values.
7277 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7279 * ada-lang.c: Reformat the copyright notice.
7281 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7283 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7284 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7285 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7286 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7287 Revert this part of:
7288 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7289 Build gdb directly from *.o files not using libgdb.a.
7290 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7292 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7294 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7295 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7296 Reformat the copyright header.
7298 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7300 Revert this part of:
7301 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7302 Remove the gdbtui binary.
7303 * gdb.c (main): Remove args.interpreter_p initialization.
7304 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7305 * main.h (struct captured_main_args): Remove interpreter_p.
7307 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7309 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7311 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7313 * top.c (print_gdb_version): Update copyright year.
7315 2012-01-02 Yao Qi <yao@codesourcery.com>
7317 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7319 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7320 Joel Brobecker <brobecker@adacore.com>
7322 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7323 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7325 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7326 fall through into AT_ENTRY_POINT.
7327 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7329 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7330 PPC_INSN_SIZE skip to 3 times.
7332 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7334 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7336 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7338 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7340 Build gdb directly from *.o files not using libgdb.a.
7341 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7342 (COMMON_OBS): Remove solib-target.o.
7343 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7344 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7345 (LIBGDB_OBS, libgdb.a): Move it above.
7346 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7347 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7348 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7349 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7350 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7351 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7352 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7353 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7354 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7355 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7356 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7357 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7358 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7359 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7360 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7361 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7362 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7363 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7364 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7365 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7366 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7367 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7368 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7369 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7370 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7371 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7372 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7374 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7376 Remove the gdbtui binary.
7377 * .gitignore (/gdbtui): Remove.
7378 * Makefile.in (TUI): Remove.
7379 (SUBDIR_TUI_OBS): Remove tui-main.o.
7380 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7381 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7382 (tui-main.o): Remove.
7383 (all_object_files): Remove tui-main.o.
7384 * NEWS: New note for the gdbtui removal.
7385 * configure: Rebuilt.
7386 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7387 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7388 CONFIG_UNINSTALL respectively.
7389 * gdb.c (main): Remove args.interpreter_p initialization.
7390 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7391 * main.h (struct captured_main_args): Remove interpreter_p.
7392 * tui/tui-main.c: Remove.
7394 2012-01-01 Doug Evans <dje@google.com>
7396 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7397 (dwarf2_physname, read_import_statement): Ditto.
7398 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7399 (process_structure_scope read_subroutine_type): Ditto.
7400 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7401 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7402 (dwarf2_fetch_die_location_block): Ditto.
7403 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7405 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7406 All callers updated.
7407 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7408 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7409 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7411 * dwarf2read.c (load_cu): Move assert to more useful location.
7413 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7414 All callers updated.
7416 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7417 (dwarf2_elf_names): Minor reformat.
7418 (dwarf2_per_cu_data): Tweak comment.
7419 (dwarf2_read_section): Fix comment.
7420 (create_all_comp_units): Fix comment.
7421 (load_full_comp_unit): Fix comment.
7422 (process_full_comp_unit): Fix comment.
7423 (read_signatured_type): Fix comment.
7425 For older changes see ChangeLog-2011.
7431 version-control: never