1 2012-06-26 Doug Evans <dje@google.com>
3 * NEWS: Mention new options "set debug dwarf2-read" and
4 "set debug symtab-create".
5 * dwarf2read.c (dwarf2_read_debug): New static global.
6 (dwarf2_build_psymtabs_hard): Add debugging printfs.
7 (process_queue): Ditto.
8 (process_full_comp_unit): Ditto.
9 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
10 * elfread.c (elf_symfile_read): Add debugging printf.
11 * minsyms.c (install_minimal_symbols): Ditto.
12 * psymtab.c (allocate_psymtab): Ditto.
13 * symfile.c (allocate_symtab): Ditto.
14 * symtab.c (symtab_create_debug): New global.
15 (_initialize_symtab): Add new option "set debug symtab-create".
16 * symtab.h (symtab_create_debug): Declare.
18 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
19 (lookup_dwo_type_unit): Ditto.
21 2012-06-26 Roland McGrath <roland@hack.frob.com>
22 H.J. Lu <hongjiu.lu@intel.com>
24 * amd64-linux-nat.c: Include <sys/user.h>.
25 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
26 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
27 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
29 * configure.ac: Check if the fs_base and gs_base members of
30 `struct user_regs_struct' exist.
31 * config.in: Regenerated.
32 * configure: Likewise.
34 2012-06-25 Michael Eager <eager@eagercon.com>
37 * python/python.c (gdbpy_write): Check for interrupted output.
39 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
41 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
42 register as a stack alignment in ARM mode.
44 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
46 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
47 * gnulib/config.in: Regenerate.
48 * gnulib/configure: Likewise.
49 * gnulib/import/m4/extensions.m4: Update it.
50 * gnulib/import/m4/gnulib-common.m4: Likewise.
51 * gnulib/import/m4/memmem.m4: Likewise.
52 * gnulib/import/m4/mmap-anon.m4: Likewise.
53 * gnulib/import/m4/multiarch.m4: Likewise.
54 * gnulib/import/stdint.in.h: Likewise.
56 2012-06-24 Yao Qi <yao@codesourcery.com>
58 * corefile.c (write_memory_with_notification): New.
59 * gdbcore.h: Declare write_memory_with_notification.
60 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
61 'observer_notify_memory_changed' with 'write_memory_with_notification'.
62 * valops.c (value_assign): Likewise.
63 * python/py-inferior.c (infpy_write_memory): Call
64 'write_memory_with_notification'.
66 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
68 * cc-with-index.sh: Use also -ex "set auto-load no".
70 2012-06-23 Doug Evans <dje@google.com>
73 * NEWS: Document additions to .gdb_index.
74 * dwarf2read.c: #include "gdb/gdb-index.h".
75 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
76 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
77 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
78 (dwarf2_read_index): Recognize version 7.
79 (dw2_do_expand_symtabs_matching): New args want_specific_block,
80 block_kind, domain): All callers updated.
81 (dw2_find_symbol_file): Handle new index CU values.
82 (dw2_expand_symtabs_matching): Match symbol kind if requested.
83 (add_index_entry): New args is_static, kind. All callers updated.
84 (offset_type_compare, uniquify_cu_indices): New functions
85 (symbol_kind): New function.
86 (write_psymtabs_to_index): Remove duplicate CU values.
87 (write_psymtabs_to_index): Write .gdb_index version 7.
89 2012-06-22 Joel Brobecker <brobecker@adacore.com>
91 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
92 * configure: Regenerate.
94 2012-06-20 Yao Qi <yao@codesourcery.com>
96 * python/py-inferior.c: Update comments of infpy_read_memory
97 and infpy_write_memory.
99 2012-06-19 Tom Tromey <tromey@redhat.com>
102 * parser-defs.h (insert_type, insert_type_address_space): Declare.
103 (push_type_address_space): Remove.
104 * parse.c (insert_into_type_stack): New function.
105 (insert_type): Likewise.
106 (insert_type_address_space): Rename from push_type_address_space.
107 Insert tp_space_identifier.
108 * c-exp.y (ptr_operator): New production.
109 (abs_decl): Use ptr_operator.
110 (space_identifier): Call insert_type_address_space.
111 (ptype): Don't use const_or_volatile_or_space_identifier.
112 (const_or_volatile_noopt): Call insert_type.
113 (conversion_type_id, conversion_declarator): New productions.
114 (operator): Use conversion_type_id.
116 2012-06-18 Doug Evans <dje@google.com>
118 * symtab.h (minimal_symbol): New member created_by_gdb.
119 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
121 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
122 (search_symbols): Call it instead of lookup_symbol.
123 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
125 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
126 Adjust address for DW_OP_GNU_addr_index.
127 * dwarf2expr.h (dwarf_expr_context): Update comment.
128 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
129 all callers updated. Handle TLS vars described with
130 DW_OP_GNU_const_index.
131 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
132 and DW_OP_GNU_const_index.
133 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
135 * block.c (find_block_in_blockvector): Make explicit the fact that we
138 2012-06-18 Tom Tromey <tromey@redhat.com>
140 * c-exp.y (operator): Remove trailing space after "delete" and
143 2012-06-18 Mark Kettenis <kettenis@gnu.org>
144 Jan Kratochvil <jan.kratochvil@redhat.com>
146 Switch i386 and derived targets to ON_STACK.
147 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
148 (amd64_dicos_init_abi): Remove its installment.
149 * dicos-tdep.c (dicos_init_abi): Remove the
150 set_gdbarch_call_dummy_location call. Update the comment here.
151 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
152 (i386_dicos_init_abi): Remove its installment.
153 * i386-tdep.c (i386_push_dummy_code): New function.
154 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
155 i386_push_dummy_code.
157 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
159 Remove stale dummy frames.
160 * breakpoint.c: Include dummy-frame.h.
161 (longjmp_breakpoint_ops): New variable.
162 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
163 bp_longjmp_call_dummy.
164 (bpstat_what, bptype_string, print_one_breakpoint_location)
165 (init_bp_location): Support bp_longjmp_call_dummy.
166 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
167 (set_longjmp_breakpoint_for_call_dummy)
168 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
170 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
171 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
172 FIXME comment and extend the other comment for bp_call_dummy.
173 (set_longjmp_breakpoint_for_call_dummy)
174 (check_longjmp_breakpoint_for_call_dummy): New declarations.
175 * dummy-frame.c: Include gdbthread.h.
176 (pop_dummy_frame_bpt): New function.
177 (pop_dummy_frame): Call pop_dummy_frame_bpt.
178 (dummy_frame_discard): New function.
179 (cleanup_dummy_frames): Update the comment about longjmps.
180 * dummy-frame.h (dummy_frame_discard): New declaration.
181 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
182 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
183 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
184 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
185 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
186 keep_going if IS_LONGJMP and there is no other reason to stop.
188 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
190 * remote-sim.c (sim_command_completer): Initialize
193 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
195 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
196 * dwarf2loc.c (call_site_parameter_matches): Support
197 CALL_SITE_PARAMETER_PARAM_OFFSET.
198 (needs_dwarf_reg_entry_value): Push stub value.
199 * dwarf2read.c (read_call_site_scope): New variable origin. Support
200 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
201 * gdbtypes.h (enum call_site_parameter_kind): New item
202 CALL_SITE_PARAMETER_PARAM_OFFSET.
203 (struct call_site.parameter.u): New field param_offset.
205 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
207 Code cleanup: Generalize call_site.parameter key.
208 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
209 variable dwarf_reg. New variable kind_u. Update parameters to
210 push_dwarf_reg_entry_value.
211 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
212 * dwarf2expr.h (enum call_site_parameter_kind)
213 (union call_site_parameter_u): Forward declarations.
214 (struct dwarf_expr_context_funcs): Update parameters and their
215 description for push_dwarf_reg_entry_value.
216 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
217 * dwarf2loc.c (call_site_parameter_matches): New function.
218 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
219 description. Use call_site_parameter_matches.
220 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
221 Update parameters and their description.
222 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
223 New variable kind_u. Adjust the caller for updated parameters.
224 (needs_dwarf_reg_entry_value): Update parameters.
225 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
226 instead of attr. Update for the changed fields of struct
228 * gdbtypes.h: Include dwarf2expr.h.
229 (enum call_site_parameter_kind): New.
230 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
231 fb_offset into new union u.
233 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
235 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
236 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
239 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
241 * amd64-linux-nat.c (compat_x32_clock_t): New.
242 (compat_x32_siginfo_t): Likewise.
243 (compat_x32_siginfo_from_siginfo): Likewise.
244 (siginfo_from_compat_x32_siginfo): Likewise.
245 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
246 and siginfo_from_compat_x32_siginfo for x32.
248 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
250 * tracepoint.c (tfile_xfer_partial): Add a lseek.
252 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
254 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
255 instead of gdbarch_ptr_bit.
256 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
257 (amd64_supply_native_gregset): Likewise.
258 (amd64_collect_native_gregset): Likewise.
259 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
260 (amd64_supply_xsave): Likewise.
261 (amd64_collect_fxsave): Likewise.
262 (amd64_collect_xsave): Likewise.
264 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
266 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
267 (amd64_linux_read_description): Check DS segment register for
270 2012-06-15 Tom Tromey <tromey@redhat.com>
272 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
273 init_cutu_and_read_dies.
275 2012-06-15 Iain Sandoe <iain@codesourcery.com>
277 * MAINTAINERS (Write After Approval): Add myself to the list.
279 2012-06-15 Tom Tromey <tromey@redhat.com>
281 * valops.c (value_find_oload_method_list): Now static.
282 * value.h (value_find_oload_method_list): Don't declare.
284 2012-06-15 Tom Tromey <tromey@redhat.com>
286 * valops.c (find_overload_match): Use value_ind.
288 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
290 * infrun.c (handle_inferior_event): Correct indentation.
292 2012-06-14 Doug Evans <dje@google.com>
294 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
295 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
297 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
298 updated. Handle DEBUG_LOC_START_LENGTH.
299 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
300 (loclist_describe_location): Ditto.
302 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
305 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
306 after hiding inline functions.
308 2012-06-13 Joel Brobecker <brobecker@adacore.com>
310 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
311 _initialize_inf_ttrace.
313 2012-06-13 Joel Brobecker <brobecker@adacore.com>
315 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
316 _initialize_hppa_hpux_nat.
318 2012-06-13 Joel Brobecker <brobecker@adacore.com>
320 * remote-sim.c (sim_command_completer): Change type of return
321 value to "VEC (char_ptr) *". Adjust implementation accordingly.
323 2012-06-13 Mark Kettenis <kettenis@gnu.org>
324 Jan Kratochvil <jan.kratochvil@redhat.com>
327 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
328 stack on a 16-byte boundary.
330 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
332 * jit.c (finalize_symtab): Set function's return type to 'void' by
335 2012-06-13 Mark Kettenis <kettenis@gnu.org>
336 H.J. Lu <hongjiu.lu@intel.com>
338 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
339 Move bits common to both the classic LP64 and the new x32 ILP32
341 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
342 (amd64_x32_linux_init_abi): New function.
343 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
346 * i386-tdep.h (i386_pseudo_register_name): New prototype.
347 * i386-tdep.c (i386_pseudo_register_name): Make public.
348 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
349 * amd64-tdep.c (amd64_dword_names): Add "eip".
350 (amd64_x32_pseudo_register_type): New function
351 (amd64_x32_init_abi): New function.
353 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
356 * inferior.h (struct inferior_suspend_state): Comment out.
357 (struct inferior): Comment out the field suspend.
358 * infrun.c (struct infcall_suspend_state): Comment out the field
360 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
363 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
365 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
366 * c-exp.y (classify_inner_name): Remove caller assumptions in the
367 function comment. Return ERROR for unresolved cases. Implement
368 returning proper NAME.
369 (yylex): Accept also NAME from classify_inner_name.
370 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
371 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
373 * cp-support.h (cp_lookup_nested_type): Update its declaration.
375 2012-06-13 Tom Tromey <tromey@redhat.com>
377 * breakpoint.c (condition_completer): New function.
378 (_initialize_breakpoint): Use it.
379 * value.c (complete_internalvar): New function.
380 * value.h (complete_internalvar): Declare.
382 2012-06-13 Tom Tromey <tromey@redhat.com>
384 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
385 * breakpoint.c (catch_syscall_completer): Return a VEC.
386 * cli/cli-cmds.c (complete_command): Update.
387 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
388 (complete_on_enum): Likewise.
389 * command.h: Include gdb_vecs.h.
390 (completer_ftype): Change return type.
391 (complete_on_cmdlist, complete_on_enum): Likewise.
392 * completer.c (noop_completer, filename_completer)
393 (location_completer): Return a VEC.
394 (add_struct_fields): Remove 'nextp' argument. Change 'output'
396 (expression_completer, complete_line_internal, complete_line)
397 (command_completer): Return a VEC.
398 (gdb_completion_word_break_characters, line_completion_function):
400 * completer.h: Include gdb_vecs.h.
401 (complete_line, noop_completer, filename_completer)
402 (expression_completer, location_completer, command_completer):
404 * f-lang.c (f_word_break_characters): Return a VEC.
405 * interps.c (interpreter_completer): Return a VEC.
406 * language.h (struct language_defn)
407 <la_make_symbol_completion_list>: Return a VEC.
408 * python/py-cmd.c (cmdpy_completer): Return a VEC.
409 * symtab.c (free_completion_list): Take a VEC.
410 (return_val_size, return_val_index): Remove.
411 (return_val): Now a VEC.
412 (completion_list_add_name): Update.
413 (default_make_symbol_completion_list_break_on)
414 (default_make_symbol_completion_list, make_symbol_completion_list)
415 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
417 (add_filename_to_list): Update.
418 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
420 (maybe_add_partial_symtab_filename): Update.
421 (make_source_files_completion_list): Return a VEC.
422 * symtab.h (default_make_symbol_completion_list_break_on)
423 (default_make_symbol_completion_list, make_symbol_completion_list)
424 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
425 (make_source_files_completion_list): Update.
427 2012-06-13 Tom Tromey <tromey@redhat.com>
429 * breakpoint.c (add_catch_command): Use completer_ftype.
430 * breakpoint.h: Include command.h.
431 (add_catch_command): Use completer_ftype.
432 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
433 * cli/cli-decode.h (struct cmd_list_element) <completer>:
435 * command.h (completer_ftype): New typedef.
436 (set_cmd_completer): Use it.
437 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
440 2012-06-13 Pedro Alves <palves@redhat.com>
442 Partial revert of previous change.
444 * serial.c (scb_base): New global.
445 (serial_for_fd): New.
446 (serial_open, serial_fdopen_ops): Link new serial in open serials
448 (do_serial_close): Unlink serial from the open serials chain.
450 2012-06-12 Pedro Alves <palves@redhat.com>
452 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
454 (prepare_for_detach): No longer context switch here in non-stop
456 (fetch_inferior_event): Ditto.
457 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
458 to the event thread before removing breakpoints. Switch to the
459 event thread before inserting breakpoints and resuming.
460 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
461 event thread before resuming.
462 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
463 Switch to the event thread before removing breakpoints.
465 2012-06-12 Eli Zaretskii <eliz@gnu.org>
467 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
468 special characters correctly for the Windows shells. See
469 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
471 [!__MINGW32__]: Remove extra double quote character from special
474 2012-06-11 Stan Shebs <stan@codesourcery.com>
476 * ui-out.h: Remove #if 0 declarations.
477 * ui-out.c: Remove #if 0 functions.
479 2012-06-11 Pedro Alves <palves@redhat.com>
481 * ser-base.c (run_async_handler_and_reschedule): New.
482 (fd_event, push_event): Use it.
483 * serial.c (serial_open, serial_fdopen_ops): Set the initial
484 reference count to 1.
485 (do_serial_close): Set the bufp field to NULL. Use serial_unref
487 (serial_is_open, serial_ref, serial_unref): New.
488 * serial.h (serial_open): Adjust comment.
489 (serial_is_open): Declare.
490 (serial_close): Adjust comment.
491 (serial_ref, serial_unref) Declare.
492 (struct serial): New field 'refcnt'.
494 2012-06-11 Pedro Alves <palves@redhat.com>
496 Remove #if 0'd "connect" command, and unnecessary associated
497 refcounting and serial reuse bits.
499 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
500 * serial.c (last_serial_opened): Delete.
502 (serial_open): Adjust.
503 (serial_for_fd): Delete.
504 (serial_fdopen_ops, do_serial_close): Adjust.
505 (serial_fdopen_ops): Adjust.
507 2012-06-11 Pedro Alves <palves@redhat.com>
509 * serial.c (do_serial_close): Remove early return when SCB is
512 2012-06-11 Tom Tromey <tromey@redhat.com>
514 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
516 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
518 Fix regression by the "ambiguous linespec" series.
519 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
520 get_last_displayed_symtab and get_last_displayed_line and depending
523 2012-06-11 Tom Tromey <tromey@redhat.com>
525 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
526 (dw2_find_symbol_file): Use it.
528 2012-06-11 Michael Eager <eager@eagercon.com>
530 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
531 * mips-linux-tdep.h (mips_signals): New
533 2012-06-11 Tom Tromey <tromey@redhat.com>
535 * infrun.c (handle_inferior_event)
536 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
538 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
539 exception logic in all cases. Update comments.
540 (insert_longjmp_resume_breakpoint): Set the exception resume
543 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
545 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
547 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
549 * valarith.c (binop_types_user_defined_p): Fix a typo.
551 2012-06-08 Yao Qi <yao@codesourcery.com>
552 Chung-Lin Tang <cltang@codesourcery.com>
554 * arch-utils.c (default_return_in_first_hidden_param_p): New.
555 * arch-utils.h: Declare.
556 * gdbarch.sh: Add return_in_first_hidden_param_p.
557 * gdbarch.c, gdbarch.h: Regenerated.
558 * infcall.c (call_function_by_hand): Call
559 gdbarch_return_in_first_hidden_param_p instead of
560 language_pass_by_reference.
562 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
563 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
564 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
565 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
566 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
567 `cplus_return_struct_by_reference'.
568 (tic6x_return_value): Handle language cplusplus.
569 (tic6x_return_in_first_hidden_param_p): New.
570 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
572 2012-06-07 Doug Evans <dje@google.com>
574 * dwarf2read.c (dwarf2_cu): Add comment.
576 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
578 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
580 (mips_eabi_push_dummy_call): Likewise.
581 (mips_n32n64_push_dummy_call): Likewise.
582 (mips_o32_push_dummy_call): Likewise.
583 (mips_o64_push_dummy_call): Likewise.
585 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
587 * mips-tdep.c (mips_convert_register_p): Correct coding style.
589 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
591 * mips-tdep.c (mips_pseudo_register_type): Use
592 mips_float_register_p.
594 2012-06-06 Pedro Alves <palves@redhat.com>
596 * infrun.c (handle_inferior_event): Remove calls to
597 reinit_frame_cache that follow a context_switch call.
599 2012-06-06 Pedro Alves <palves@redhat.com>
601 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
602 context_switch and remove stale comment.
604 2012-06-06 Pedro Alves <palves@redhat.com>
606 * infrun.c (struct execution_control_state): Remove
607 `new_thread_event' field.
608 (handle_inferior_event): Simplify new threads handling; don't
609 resume the inferior if we find a new thread.
611 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
613 * NEWS: Document the deprecation of SH's 'regs' command.
614 * inferior.h (all_registers_info): Add function declaration.
615 * sh-tdep.c (sh_show_regs): Remove variable.
616 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
617 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
618 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
619 (sh_show_regs_command): Remove functions.
620 (sh_gdbarch_init): Don't set sh_show_regs.
621 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
622 'info all-registers'.
623 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
624 (sh64_show_regs): Remove functions.
625 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
627 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
629 * configure.ac: Move development=true below AC_INIT.
630 * configure: Regenerate.
632 2012-06-05 Stan Shebs <stan@codesourcery.com>
634 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
637 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
639 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
641 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
642 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
643 * target.c (target_read_stack, target_write_memory)
644 (target_write_raw_memory): Likewise.
645 * target.h (target_read_stack, target_write_memory)
646 (target_write_raw_memory): Likewise.
648 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
650 * symfile-mem.c: Change gdb_static_assert to ssize_t.
651 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
652 * target.c (target_read_memory): Change LEN to ssize_t.
653 * target.h (target_read_memory): Change LEN to ssize_t.
655 2012-06-05 Pedro Alves <palves@redhat.com>
659 * breakpoint.c (until_break_command): Only fetch the selected
660 frame after decode_line_1.
662 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
664 * solib-svr4.c (enable_break): Don't fallback to setting the solib
665 event breakpoint at _start, __start or main if a program
666 interpreter is not found.
668 2012-06-05 Joel Brobecker <brobecker@adacore.com>
670 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
672 * windows-tdep.c: #include "objfiles.h".
673 (windows_iterate_over_objfiles_in_search_order): New function.
674 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
675 iterate_over_objfiles_in_search_order gdbarch method to
676 windows_iterate_over_objfiles_in_search_order.
677 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
679 2012-06-05 Joel Brobecker <brobecker@adacore.com>
681 * gdbarch.sh: Add generation of
682 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
683 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
684 (iterate_over_objfiles_in_search_order): New gdbarch method.
685 * gdbarch.h, gdbarch.c: Regenerate.
686 * objfiles.h (default_iterate_over_objfiles_in_search_order):
688 * objfiles.c (default_iterate_over_objfiles_in_search_order):
690 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
691 out of lookup_symbol_aux_symtabs.
692 (lookup_symbol_aux_symtabs): Replace extracted-out code by
693 call to lookup_symbol_aux_objfile.
694 (struct global_sym_lookup_data): New type.
695 (lookup_symbol_global_iterator_cb): New function.
696 (lookup_symbol_global): Search for symbol using
697 gdbarch_iterate_over_objfiles_in_search_order and
698 lookup_symbol_global_iterator_cb.
699 * findvar.c (struct minsym_lookup_data): New type.
700 (minsym_lookup_iterator_cb): New function.
701 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
702 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
703 and minsym_lookup_iterator_cb.
705 2012-06-05 Joel Brobecker <brobecker@adacore.com>
707 Revert the following patch:
708 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
709 try locating the symbol in the symbol's own objfile first, before
710 extending the search to all objfiles.
711 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
712 out of lookup_symbol_aux_symtabs.
713 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
714 Replace extracted-out code by call to lookup_symbol_aux_objfile.
715 Do not search EXCLUDE_OBJFILE.
716 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
717 (lookup_symbol_global): Search for matches in the block's objfile
718 first, before searching all other objfiles.
720 2012-06-05 Joel Brobecker <brobecker@adacore.com>
722 * breakpoint.c (find_condition_and_thread): Stop parsing
723 as soon as the first invalid keyword is found.
725 2012-06-05 Joel Brobecker <brobecker@adacore.com>
727 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
729 2012-06-05 Joel Brobecker <brobecker@adacore.com>
731 * config/djgpp/djcheck.sh: Add copyright header.
733 2012-06-05 Joel Brobecker <brobecker@adacore.com>
735 * copyright.py (update_files, main): Fix path to update-copyright
738 2012-06-05 Joel Brobecker <brobecker@adacore.com>
740 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
741 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
742 for which a reminder to update by hand is printed.
744 2012-06-04 Doug Evans <dje@google.com>
746 * buildsym.c (make_blockvector): Add comment.
748 2012-06-04 Pedro Alves <palves@redhat.com>
750 * arch-utils.c (default_gdb_signal_from_target): Delete.
751 * arch-utils.h (default_gdb_signal_from_target): Delete.
752 * corelow.c (core_open) <signal mapping>: Extended comment. Check
753 gdbarch_gdb_signal_from_target_p.
754 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
756 * gdbarch.h: Regenerate.
757 * gdbarch.c: Regenerate.
759 2012-06-04 Pedro Alves <palves@redhat.com>
761 * gdbarch.sh (gdb_signal_from_target): Mention that the
762 implementation of the method must be host independent.
763 * gdbarch.h: Regenerate.
765 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
767 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
769 (target_read_memory_bfd): New function.
770 (symbol_file_add_from_memory): Use it.
772 2012-06-03 Doug Evans <dje@google.com>
774 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
776 (basic_lookup_transparent_type): Ditto.
778 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
779 (ALL_PRIMARY_SYMTABS): Use it.
780 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
781 * dwarf2read.c (dw2_find_symbol_file): Ditto.
782 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
783 * symtab.c (lookup_symbol_aux_objfile): Ditto.
784 (basic_lookup_transparent_type): Ditto.
786 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
788 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
789 it to optimize resolution of demangled name.
791 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
793 * configure.ac (development): Define new variable.
794 Call AC_CHECK_LIB for mcheck if $development.
795 (ERROR_ON_WARNING): Enable it by default only if $development.
796 * config.in: Regenerate.
797 * configure: Regenerate.
799 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
801 * target.c (target_read_memory): Make LEN argument as size_t.
802 * target.h (target_read_memory): Likewise.
804 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
806 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
808 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
810 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
811 BookE interface for PowerPC server processors if not available
814 2012-05-31 Keith Seitz <keiths@redhat.com>
816 * linespec.c (decode_objc): Add cleanup to free
818 (find_linespec_symbols): Add cleanup to free CLASSES.
819 * symfile.c (find_separate_debug_file_by_debuglink): Add
820 cleanup to free DEBUGLINK.
821 * ui-out.c (clear_header_list): No need to check if
822 HEADER_NEXT.COLHDR is NULL.
823 Free HEADER_NEXT.COL_NAME.
825 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
827 * ada-lang.c (standard_lookup): Prevent uninitialized variable
830 2012-05-30 Jeff Kenton <jkenton@tilera.com>
832 * configure.host (gdb_host_cpu): Handle tilegx*.
833 (gdb_host): Handle tilegx-*-linux*.
834 * tilegx-linux-nat.c: New file.
835 * config/tilegx/linux.mh: New file.
837 2012-05-30 Jeff Kenton <jkenton@tilera.com>
839 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
841 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
843 * configure.tgt: Handle tilegx-*-linux*.
844 * tilegx-tdep.h: New file.
845 * tilegx-tdep.c: New file.
846 * tilegx-linux-tdep.c: New file.
847 * regformats/reg-tilegx.dat: New file.
849 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
851 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
852 accounting of hw watchpoints on ppc.
854 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
856 * source.c (openp): Expand tilde in path entries.
858 2012-05-29 Doug Evans <dje@google.com>
860 * buildsym.c (block_compar): Fix comment.
861 (end_symtab): Fix and clarify some comments.
863 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
864 cleanup_undefined_types.
865 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
868 2012-05-29 Tom Tromey <tromey@redhat.com>
870 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
872 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
873 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
875 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
878 2012-05-29 Tristan Gingold <gingold@adacore.com>
880 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
881 (struct darwin_info): ... New struct.
882 (solib_darwin_pspace_data): New variable.
883 (darwin_pspace_data_cleanup): New function.
884 (get_darwin_info): Likewise.
885 (darwin_dyld_version_ok, darwin_load_image_infos)
886 (darwin_solib_get_all_image_info_addr_at_init)
887 (darwin_solib_read_all_image_info_addr): Add info argument.
889 (darwin_current_sos): Use per pspace structure.
890 (darwin_solib_create_inferior_hook): Likewise.
891 (darwin_clear_solib): Likewise.
892 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
894 2012-05-28 Pedro Alves <palves@redhat.com>
896 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
897 block that uses them. Clear ecss before handling each event.
899 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
901 * solib-svr4.c (svr4_current_sos): New comment on
902 svr4_current_sos_via_xfer_libraries fall back.
904 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
906 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
907 it as a fallback for TYPE_IS_OPAQUE.
908 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
909 symbols for lookup_symbol.
911 2012-05-24 John Steele Scott <toojays@toojays.net>
913 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
914 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
915 (producer_is_gxx_lt_4_6): Move the checking and caching to...
916 (check_producer): ... this new function, which also checks for ICC
917 and caches the result.
918 (producer_is_icc): New function.
919 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
922 2012-05-24 Pedro Alves <palves@redhat.com>
926 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
927 (default_gdb_signal_to_target): ... this. Add comment.
928 (default_gdb_signal_from_host): Rename to ...
929 (default_gdb_signal_from_target): ... this. Add comment.
930 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
931 (default_gdb_signal_to_target): ... this.
932 (default_gdb_signal_from_host): Rename to ...
933 (default_gdb_signal_from_target): ... this.
934 * corelow.c (core_open): Adjust to naming change. Replace comment.
935 * gdbarch.sh (gdb_signal_from_host): Rename to ...
936 (gdb_signal_from_target): ... this. Adjust to
937 default_gdb_signal_from_host naming change. Extend comment.
938 (gdb_signal_to_host): Rename to ...
939 (gdb_signal_to_target): ... this. Adjust to
940 default_gdb_signal_to_host naming change.
941 * gdbarch.h, gdbarch.c: Renegerate.
943 2012-05-24 Pedro Alves <palves@redhat.com>
947 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
949 2012-05-24 Pedro Alves <palves@redhat.com>
953 Replace target_signal with gdb_signal throughout.
955 2012-05-24 Pedro Alves <palves@redhat.com>
959 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
960 string, instead of reusing the va_list argument.
962 2012-05-24 Tom Tromey <tromey@redhat.com>
964 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
967 2012-05-23 Doug Evans <dje@google.com>
969 * symtab.c (search_symbols): Formatting fixes.
970 (print_symbol_info): Formatting fixes.
972 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
973 int64_t change to leb128 API.
974 (read_encoded_value, decode_frame_entry_1): Ditto.
975 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
976 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
977 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
978 (execute_stack_op): Ditto.
979 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
980 (safe_read_uleb128, safe_read_sleb128): Ditto.
981 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
982 (dwarf2_compile_expr_to_ax): Ditto.
983 (locexpr_describe_location_piece): Ditto.
984 (disassemble_dwarf_expression): Ditto.
985 (locexpr_describe_location_1): Ditto.
987 2012-05-23 Stan Shebs <stan@codesourcery.com>
988 Kwok Cheung Yeung <kcy@codesourcery.com>
990 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
991 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
992 (mi-cmd-info.o): New rule.
993 * osdata.h (info_osdata_command): New declaration.
994 * osdata.c (info_osdata_command): Change to non-static.
995 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
996 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
997 * mi/mi-cmd-info.c: New file.
999 2012-05-23 Doug Evans <dje@google.com>
1001 * symtab.c (search_symbols): Pass NULL for file_matcher to
1002 expand_symtabs_matching if there are no files to match.
1004 * gdbtypes.c (lookup_typename): Simplify.
1006 2012-05-23 Pedro Alves <palves@redhat.com>
1008 * arch-utils.h (default_target_signal_to_host): Delete.
1009 * arch-utils.c (default_target_signal_to_host): Delete.
1010 * gdbarch.sh (target_signal_to_host): Remove.
1011 * gdbarch.h, gdbarch.c: Regenerate.
1013 2012-05-22 Doug Evans <dje@google.com>
1015 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1017 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1018 (execute_cfa_program): Update to match API of leb128 functions.
1019 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1021 (read_unsigned_leb128, read_signed_leb128): Delete.
1022 (read_initial_length): Change type of buf argument to
1024 (read_encoded_value): Update to match API of leb128 functions.
1025 (decode_frame_entry): Change result to "const gdb_byte *", and
1026 similarly for "start" parameter.
1027 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1028 (dwarf2_build_frame_info): Change local frame_ptr to
1030 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1031 read_uleb128, read_sleb128. All callers updated.
1032 (safe_skip_leb128): New function.
1033 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1034 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1035 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1036 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1037 read_uleb128, read_sleb128.
1038 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1039 (execute_stack_op): Update to match API of leb128 functions.
1040 * dwarf2expr.h: #include "leb128.h".
1041 (read_uleb128, read_sleb128): Delete.
1042 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1043 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1044 * dwarf2loc.c (debug_loc_kind): New enum.
1045 (decode_debug_loc_addresses): New function.
1046 (decode_debug_loc_dwo_addresses): New function.
1047 (dwarf2_find_location_expression): Rewrite.
1048 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1049 (locexpr_describe_location_piece): Ditto.
1050 (disassemble_dwarf_expression): Ditto.
1051 (locexpr_describe_location_1): Ditto.
1052 (loclist_describe_location): Rewrite.
1053 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1054 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1055 (dwarf2_section_buffer_overflow_complaint): Renamed from
1056 dwarf2_macros_too_long_complaint. All callers updated.
1057 (skip_leb128): Delete.
1058 (init_cu_die_reader): Initialize reader->buffer_end.
1059 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1060 (skip_form_bytes): New arg buffer_end. All callers updated.
1061 Replace call to skip_leb128 with gdb_skip_leb128.
1062 (skip_unknown_opcode): New arg mac_end. All callers updated.
1063 (fill_in_loclist_baton): Initialize baton->from_dwo.
1065 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1067 * mips-linux-nat.c (mips_linux_read_description): Use a more
1068 verbose error message.
1070 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1072 * NEWS: Add MIPS/Linux DSP support.
1073 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1074 (SIGCONTEXT_DSPCTL): New macro.
1075 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1076 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1077 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1078 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1079 (N64_SIGCONTEXT_HI3): Likewise.
1080 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1081 (N64_SIGCONTEXT_LO3): Likewise.
1082 (N64_SIGCONTEXT_DSPCTL): Likewise.
1083 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1084 (mips_linux_o32_sigframe_init): Handle DSP registers.
1085 (mips_linux_n32n64_sigframe_init): Likewise.
1087 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1089 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1092 2012-05-22 Pedro Alves <palves@redhat.com>
1094 * target.h (store_waitstatus): Move declaration ...
1095 * inf-child.h (store_waitstatus): ... here.
1096 * target.c: Move inclusion of gdb_wait.h, and ...
1097 (store_waitstatus): ... this ...
1098 * inf-child.c: ... here.
1099 * linux-nat.c: Include inf-child.h.
1100 * rs6000-nat.c: Include inf-child.h.
1101 * spu-linux-nat.c: Include inf-child.h.
1103 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1105 * tracepoint.c (start_tracing): Add missing i18n markup.
1106 (stop_tracing, set_trace_user): Ditto.
1107 (set_trace_notes, set_trace_stop_notes): Ditto.
1109 2012-05-21 Tom Tromey <tromey@redhat.com>
1112 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1114 * value.h (value_cast_pointers): Update.
1115 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1116 (value_cast): Update.
1117 (update_search_result): New function.
1118 (do_search_struct_field): New, from search_struct_field. Check
1119 for ambiguous results.
1120 (search_struct_field): Rewrite.
1121 * infcall.c (value_arg_coerce): Update.
1122 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1123 value_cast_pointers.
1124 * ada-lang.c (ada_convert_actual): Update.
1126 2012-05-21 Tom Tromey <tromey@redhat.com>
1128 * macroexp.c (macro_stringify): Terminate the string.
1130 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1132 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1134 * auto-load.c (auto_load_expand_dir_vars): New function.
1135 (auto_load_safe_path_vec_update): Use it, remove the
1136 substitute_path_component call thanks to it.
1137 (auto_load_objfile_script): Remove the debug_file_directory processing.
1138 Use auto_load_expand_dir_vars, remove the substitute_path_component
1140 * configure: Regenerate.
1141 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1142 path. Escape $ also for $debugdir.
1143 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1144 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1146 2012-05-20 Doug Evans <dje@google.com>
1148 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1149 before use. Check for symtab->includes == NULL before scanning it.
1151 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1153 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1155 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1157 * NEWS: Add microMIPS support and "set mips compression",
1158 "show mips compression" commands.
1159 * mips-tdep.h (mips_isa): New enum.
1160 (gdbarch_tdep): Add mips_isa.
1161 (mips_pc_is_mips16): Update prototype.
1162 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1163 * mips-tdep.c (mips_compression_mips16): New variable.
1164 (mips_compression_micromips): Likewise.
1165 (mips_compression_strings): Likewise.
1166 (mips_compression_string): Likewise.
1167 (is_mips16_isa, is_micromips_isa): New functions.
1168 (is_mips16_addr): Rename to...
1169 (is_compact_addr): ... this.
1170 (unmake_mips16_addr): Likewise to...
1171 (unmake_compact_addr): ... this.
1172 (make_mips16_addr): Likewise to...
1173 (make_compact_addr): ... this.
1174 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1176 (mips_elf_make_msymbol_special): Handle microMIPS code.
1177 (msymbol_is_special): Rename to...
1178 (msymbol_is_mips16): ... this.
1179 (mips_make_symbol_special, mips_pc_is_mips16): Update
1181 (msymbol_is_mips, msymbol_is_micromips): New functions.
1182 (mips16_to_32_reg): Rename to...
1183 (mips_reg3_to_reg): ... this.
1184 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1185 (mips_pc_isa): Likewise.
1186 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1188 (mips_fetch_instruction): Pass return status instead of printing
1189 an error message if requested. Handle microMIPS code. Bail out
1191 (micromips_op): New macro.
1192 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1193 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1194 (b6s4_op, b7s3_reg): Likewise.
1195 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1196 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1197 (mips_insn_size): New function.
1198 (mips32_next_pc): Update mips_fetch_instruction call.
1199 (micromips_relative_offset7): New function.
1200 (micromips_relative_offset10): Likewise.
1201 (micromips_relative_offset16): Likewise.
1202 (micromips_pc_insn_size): Likewise.
1203 (micromips_bc1_pc): Likewise.
1204 (micromips_next_pc): Likewise.
1205 (unpack_mips16): Update mips_fetch_instruction call.
1206 (extended_mips16_next_pc): Update according to change to
1208 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1210 (mips16_scan_prologue): Update mips_fetch_instruction call.
1211 Update according to change to mips16_to_32_reg.
1212 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1213 (mips_insn16_frame_base_sniffer): Likewise.
1214 (micromips_decode_imm9): New function.
1215 (micromips_scan_prologue): Likewise.
1216 (mips_micro_frame_cache): Likewise.
1217 (mips_micro_frame_this_id): Likewise.
1218 (mips_micro_frame_prev_register): Likewise.
1219 (mips_micro_frame_sniffer): Likewise.
1220 (mips_micro_frame_unwind): New variable.
1221 (mips_micro_frame_base_address): New function.
1222 (mips_micro_frame_base): New variable.
1223 (mips_micro_frame_base_sniffer): New function.
1224 (mips32_scan_prologue): Update mips_fetch_instruction call.
1225 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1226 rather than for MIPS16.
1227 (mips_insn32_frame_base_sniffer): Likewise.
1228 (mips_addr_bits_remove): Handle microMIPS code.
1229 (deal_with_atomic_sequence): Rename to...
1230 (mips_deal_with_atomic_sequence): ... this. Update the type
1231 of the variable used to hold an instruction. Remove the ISA bit
1232 check. Update mips_fetch_instruction call.
1233 (micromips_deal_with_atomic_sequence): New function.
1234 (deal_with_atomic_sequence): Likewise.
1235 (mips_about_to_return): Handle microMIPS code. Update
1236 mips_fetch_instruction call.
1237 (heuristic_proc_start): Check for the standard MIPS ISA rather
1238 than for MIPS16. Update mips_pc_is_mips16 and
1239 mips_fetch_instruction calls. Handle microMIPS code.
1240 (mips_push_dummy_code): Handle microMIPS code.
1241 (mips_eabi_push_dummy_call): Likewise.
1242 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1243 (mips_o64_push_dummy_call): Handle microMIPS code.
1244 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1245 (is_delayed): Remove function.
1246 (mips_single_step_through_delay): Replace the call to is_delayed
1247 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1248 Handle microMIPS code.
1249 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1251 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1253 (micromips_in_function_epilogue_p): New function.
1254 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1256 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1258 (gdb_print_insn_mips): Likewise.
1259 (mips_breakpoint_from_pc): Likewise.
1260 (mips_remote_breakpoint_from_pc): New function.
1261 (mips32_instruction_has_delay_slot): Simplify making use of the
1262 updated mips_fetch_instruction interface.
1263 (micromips_instruction_has_delay_slot): New function.
1264 (mips16_instruction_has_delay_slot): Simplify making use of the
1265 updated mips_fetch_instruction interface.
1266 (mips_adjust_breakpoint_address): Check for the standard MIPS
1267 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1268 calls. Handle microMIPS code.
1269 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1270 (mips_skip_trampoline_code): Handle microMIPS code.
1271 (global_mips_compression): New function.
1272 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1273 file flags. Register the microMIPS remote breakpoint handler
1274 and heuristic frame unwinder.
1275 (show_mips_compression): New function.
1276 (_initialize_mips_tdep): Add the "set mips compression" and
1277 "show mips compression" commands.
1279 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1284 * amd64-darwin-tdep.c:
1285 * arm-symbian-tdep.c:
1289 * bfin-linux-tdep.c:
1296 * dwarf2-frame-tailcall.c:
1325 * microblaze-tdep.c:
1326 * mips-linux-tdep.c:
1334 * python/py-finishbreakpoint.c:
1335 * python/py-inferior.c:
1336 * python/py-infthread.c:
1340 * remote-m32r-sdi.c:
1344 * rs6000-aix-tdep.c:
1370 * amd64-darwin-tdep.c:
1371 * arm-symbian-tdep.c:
1372 * arm-tdep.c: Delete unused variables.
1374 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1376 Rename $ddir to $datadir.
1377 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1378 * auto-load.c (auto_load_safe_path_vec_update)
1379 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1380 * configure: Regenerate.
1381 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1382 Likewise. Remove the 'use $ddir' help string.
1384 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1386 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1387 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1389 2012-05-18 Tom Tromey <tromey@redhat.com>
1392 * valprint.h (struct value_print_options) <symbol_print>: New
1394 * valprint.c (user_print_options): Add default for symbol_print.
1395 (show_symbol_print): New function.
1396 (generic_val_print): Respect symbol_print.
1397 (_initialize_valprint): Add "print symbol" setting.
1398 * f-valprint.c (f_val_print): Respect symbol_print.
1399 * c-valprint.c (c_val_print): Respect symbol_print.
1401 * printcmd.c (print_address_symbolic): Return int. Ignore some
1403 (print_address_demangle): Return int.
1404 * defs.h: (print_address_symbolic): Return int.
1405 * value.h (print_address_demangle): Return int.
1407 2012-05-18 Tom Tromey <tromey@redhat.com>
1409 * valprint.c (val_print_string): Don't print leading space.
1410 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1411 print space before string or vtbl.
1412 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1414 * jv-valprint.c (java_value_print): Print space before string.
1415 * go-valprint.c (print_go_string): Print space before string.
1416 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1417 space before string.
1418 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1419 space before string or vtbl.
1420 * auxv.c (fprint_target_auxv): Print space after address.
1422 2012-05-18 Tom Tromey <tromey@redhat.com>
1424 * printcmd.c (print_address_demangle): Remove special case for 0.
1426 2012-05-18 Tom Tromey <tromey@redhat.com>
1428 * printcmd.c (print_address_demangle): Add 'opts' argument.
1429 * p-valprint.c (pascal_val_print): Update.
1430 * jv-valprint.c (java_val_print): Update.
1432 * valprint.c (generic_val_print): Update.
1433 (print_function_pointer_address): Add 'options' argument. Remove
1434 'addressprint' argument. Update.
1435 * m2-valprint.c (print_unpacked_pointer): Update.
1436 * gnu-v3-abi.c (print_one_vtable): Update.
1437 (gnuv3_print_method_ptr): Update.
1438 * f-valprint.c (f_val_print): Update.
1439 * cp-valprint.c (cp_print_value_fields): Update.
1440 * valprint.h (print_function_pointer_address): Update.
1441 * c-valprint.c (c_val_print): Update.
1443 2012-05-18 Tom Tromey <tromey@redhat.com>
1445 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1446 directly corresponding to the found psymtab.
1447 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1448 (dw2_find_pc_sect_symtab): Use it.
1449 * block.h (blockvector_contains_pc): Declare.
1450 * block.c (find_block_in_blockvector): New function.
1451 (blockvector_for_pc_sect): Use it.
1452 (blockvector_contains_pc): New function.
1454 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1456 * mips-tdep.h (mips_write_pc): New prototype.
1457 * mips-tdep.c (mips_write_pc): Make external, add description.
1458 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1461 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1463 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1465 (mips_unwind_pc, mips_write_pc): Likewise.
1466 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1469 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1471 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1472 proc_warn, proc_error, proc_get_status, proc_flags,
1473 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1474 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1475 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1476 proc_stop_process, proc_wait_for_stop, proc_run_process,
1477 proc_set_traced_signals, proc_set_traced_faults,
1478 proc_set_traced_sysentry, proc_set_traced_sysexit,
1479 proc_set_held_signals, proc_get_held_signals,
1480 proc_get_traced_signals, proc_get_traced_faults,
1481 proc_get_traced_sysentry, proc_get_traced_sysexit,
1482 proc_clear_current_fault, proc_set_current_signal,
1483 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1484 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1485 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1486 proc_get_current_thread, proc_get_current_thread,
1487 proc_get_current_thread, proc_update_threads,
1488 proc_update_threads, proc_update_threads, proc_update_threads,
1489 proc_iterate_over_threads, procfs_find_new_threads,
1490 procfs_pid_to_str): Make static. Remove advance declaration.
1491 (proc_cursig): Make static. Conditionalized defintion on
1492 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1493 (proc_syscall, proc_set_kill_on_last_close,
1494 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1495 proc_get_pending_signals, proc_get_signal_actions,
1496 proc_trace_signal, proc_ignore_signal): Delete.
1498 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1500 * coffread.c (cs_section_address): Passing proper argument for
1501 `bfd_get_section_vma'.
1502 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1503 `bfd_get_section_flags'.
1504 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1505 `bfd_get_section_vma'.
1507 2012-05-16 Tom Tromey <tromey@redhat.com>
1510 * macrotab.h: (macro_define_special): Declare.
1511 (enum macro_special_kind): New.
1512 (struct macro_definition) <argc, replacement>: Update comments.
1513 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1514 (macro_define_object_internal): New function.
1515 (macro_define_object): Use it.
1516 (macro_define_special): New function.
1517 (fixup_definition): New function.
1518 (macro_lookup_definition, foreach_macro_in_scope)
1519 (foreach_macro): Use fixup_definition.
1520 * macroexp.h (macro_stringify): Declare.
1521 * macroexp.c (free_buffer_return_text): New function.
1522 (stringify): Constify "arg".
1523 (macro_stringify): New function.
1524 * dwarf2read.c (macro_start_file): Call macro_define_special.
1526 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1527 Maciej W. Rozycki <macro@mips.com>
1529 * breakpoint.h (bp_location): Add related_address member.
1530 * inferior.h (get_return_value): Take a pointer to struct value
1531 instead of struct type for the function requested.
1532 * value.h (using_struct_return): Likewise.
1533 * gdbarch.sh (return_value): Take a pointer to struct value
1534 instead of struct type for the function requested.
1535 * breakpoint.c (set_breakpoint_location_function): Initialize
1536 related_address for bp_gnu_ifunc_resolver breakpoints.
1537 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1538 requested function's address to gdbarch_return_value.
1539 * eval.c (evaluate_subexp_standard): Pass the requested
1540 function's address to using_struct_return.
1541 * infcall.c (call_function_by_hand): Pass the requested
1542 function's address to using_struct_return and
1543 gdbarch_return_value.
1544 * infcmd.c (get_return_value): Take a pointer to struct value
1545 instead of struct type for the function requested.
1546 (print_return_value): Update accordingly.
1547 (finish_command_continuation): Likewise.
1548 * stack.c (return_command): Pass the requested function's
1549 address to using_struct_return and gdbarch_return_value.
1550 * value.c (using_struct_return): Take a pointer to struct value
1551 instead of struct type for the function requested. Pass the
1552 requested function's address to gdbarch_return_value.
1553 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1554 New function_value member, replacing function_type.
1555 (bpfinishpy_dealloc): Update accordingly.
1556 (bpfinishpy_pre_stop_hook): Likewise.
1557 (bpfinishpy_init): Likewise. Record the requested function's
1559 * mips-tdep.c (mips_fval_reg): New enum.
1560 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1561 words put in GP registers.
1562 (mips_o64_push_dummy_call): Update a comment.
1563 (mips_o32_return_value): Take a pointer to struct value instead
1564 of struct type for the function requested and use it to check if
1565 using the MIPS16 calling convention. Return the designated
1566 general purpose registers for floating-point values returned in
1568 (mips_o64_return_value): Likewise.
1569 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1570 (ppc_sysv_abi_broken_return_value): Likewise.
1571 (ppc64_sysv_abi_return_value): Likewise.
1572 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1573 value instead of struct type for the function requested.
1574 * amd64-tdep.c (amd64_return_value): Likewise.
1575 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1576 * arm-tdep.c (arm_return_value): Likewise.
1577 * avr-tdep.c (avr_return_value): Likewise.
1578 * bfin-tdep.c (bfin_return_value): Likewise.
1579 * cris-tdep.c (cris_return_value): Likewise.
1580 * frv-tdep.c (frv_return_value): Likewise.
1581 * h8300-tdep.c (h8300_return_value): Likewise.
1582 (h8300h_return_value): Likewise.
1583 * hppa-tdep.c (hppa32_return_value): Likewise.
1584 (hppa64_return_value): Likewise.
1585 * i386-tdep.c (i386_return_value): Likewise.
1586 * ia64-tdep.c (ia64_return_value): Likewise.
1587 * iq2000-tdep.c (iq2000_return_value): Likewise.
1588 * lm32-tdep.c (lm32_return_value): Likewise.
1589 * m32c-tdep.c (m32c_return_value): Likewise.
1590 * m32r-tdep.c (m32r_return_value): Likewise.
1591 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1592 * m68k-tdep.c (m68k_return_value): Likewise.
1593 (m68k_svr4_return_value): Likewise.
1594 * m88k-tdep.c (m88k_return_value): Likewise.
1595 * mep-tdep.c (mep_return_value): Likewise.
1596 * microblaze-tdep.c (microblaze_return_value): Likewise.
1597 * mn10300-tdep.c (mn10300_return_value): Likewise.
1598 * moxie-tdep.c (moxie_return_value): Likewise.
1599 * mt-tdep.c (mt_return_value): Likewise.
1600 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1601 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1602 (ppc_sysv_abi_broken_return_value): Likewise.
1603 (ppc64_sysv_abi_return_value): Likewise.
1604 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1605 * rl78-tdep.c (rl78_return_value): Likewise.
1606 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1607 * rx-tdep.c (rx_return_value): Likewise.
1608 * s390-tdep.c (s390_return_value): Likewise.
1609 * score-tdep.c (score_return_value): Likewise.
1610 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1611 (sh_return_value_fpu): Likewise.
1612 * sh64-tdep.c (sh64_return_value): Likewise.
1613 * sparc-tdep.c (sparc32_return_value): Likewise.
1614 * sparc64-tdep.c (sparc64_return_value): Likewise.
1615 * spu-tdep.c (spu_return_value): Likewise.
1616 * tic6x-tdep.c (tic6x_return_value): Likewise.
1617 * v850-tdep.c (v850_return_value): Likewise.
1618 * vax-tdep.c (vax_return_value): Likewise.
1619 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1620 * xtensa-tdep.c (xtensa_return_value): Likewise.
1621 * gdbarch.c: Regenerate.
1622 * gdbarch.h: Regenerate.
1624 2012-05-15 Tom Tromey <tromey@redhat.com>
1626 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1628 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1630 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1631 of command in two error message.
1633 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1635 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1637 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1639 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1641 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1643 * NEWS (show auto-load scripts-directory): Add forgotten command.
1645 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1647 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1650 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1652 * amd64-tdep.c: Include features/i386/x32.c and
1653 features/i386/x32-avx.c.
1654 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1655 initialize_tdesc_x32_avx.
1657 2012-05-14 Stan Shebs <stan@codesourcery.com>
1660 * breakpoint.h (enum bptype): New type bp_dprintf.
1661 (struct breakpoint): New field extra_string.
1662 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1663 (create_breakpoint): Add extra_string arg.
1664 * breakpoint.c (dprintf_breakpoint_ops): New.
1665 (is_breakpoint): Add bp_dprintf.
1666 (bpstat_what): Add dprintf case.
1667 (bptype_string): Ditto.
1668 (print_one_breakpoint_location): Ditto.
1669 (init_bp_location): Ditto.
1670 (bkpt_print_mention): Ditto.
1671 (dprintf_style_enums): New array.
1672 (dprintf_style): New global.
1673 (dprintf_function): New global.
1674 (dprintf_channel): New global.
1675 (update_dprintf_command_list): New function.
1676 (update_dprintf_commands): New function.
1677 (init_breakpoint_sal): Add extra_string argument, handle it.
1678 (create_breakpoint_sal): Add extra_string argument.
1679 (create_breakpoints_sal): Add extra_string argument, update callers.
1680 (find_condition_and_thread): Add extra argument.
1681 (create_breakpoint): Add extra_string argument, record it.
1682 (dprintf_command): New function.
1683 (break_command_1): Add arg to create_breakpoint call.
1684 (handle_gnu_v3_exceptions): Ditto.
1685 (trace_command): Ditto.
1686 (ftrace_command): Ditto.
1687 (strace_command): Ditto.
1688 (bkpt_print_mention): Add dprintf case.
1689 (create_breakpoint_sal_default): Add extra_string argument.
1690 (_initialize_breakpoint): Add new commands.
1691 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1692 * python/py-breakpoint.c (bppy_init): Ditto.
1693 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1695 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1697 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1699 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1701 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1704 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1706 Add a new function gdb.find_pc_line to the Python API.
1707 * NEWS (Python Scripting): Add entry about the new function.
1708 * python/python.c (gdbpy_find_pc_line): New function which
1709 implements gdb.find_pc_line.
1710 (GdbMethods): Add entry for the new function.
1712 2012-05-12 Pedro Alves <palves@redhat.com>
1714 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1715 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1717 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1719 * inferior.c: Include completer.h
1720 (initialize_inferiors): Set completer of add-inferior to
1723 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1725 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1726 gdbarch_ptr_bit for x32 core dump.
1728 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1730 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1731 and features/i386/x32-avx-linux.c.
1733 2012-05-11 Stan Shebs <stan@codesourcery.com>
1734 Kwok Cheung Yeung <kcy@codesourcery.com>
1736 * NEWS: Describe new info os commands.
1737 * common/linux-osdata.c (PID_T, TIME_T): Define.
1738 (MAX_PID_T_STRLEN): New.
1739 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1741 (command_from_pid): Add comment. Change to use PID_T.
1742 (commandline_from_pid): Change to use PID_T.
1743 (user_from_pid): Add comment.
1744 (get_process_owner): Add comment. Change to use PID_T and
1746 (get_number_of_cpu_cores): Add comment.
1747 (get_cores_used_by_process): Add comment. Change to use PID_T and
1749 (linux_xfer_osdata_processes): Change to use PID_T and
1751 (compare_processes): New function.
1752 (linux_xfer_osdata_processgroups): New function.
1753 (linux_xfer_osdata_threads): Change to use PID_T.
1754 (linux_xfer_osdata_fds): New function.
1755 (format_socket_state, print_sockets): New functions.
1756 (union socket_addr): New union.
1757 (linux_xfer_osdata_isockets): New function.
1758 (time_from_time_t, group_from_gid): New functions.
1759 (linux_xfer_osdata_shm): New function.
1760 (linux_xfer_osdata_sem): New function.
1761 (linux_xfer_osdata_msg): New function.
1762 (linux_xfer_osdata_modules): New function.
1763 (osdata_table): Add new entries.
1764 * common/buffer.c (buffer_xml_printf): Add support for long and
1765 long long format specifiers.
1767 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1769 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1770 (tdesc_x32_avx_linux): Likewise.
1772 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1774 Implement multi-component --with-auto-load-dir.
1775 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1777 (--with-auto-load-safe-path): Update the default value description.
1778 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1780 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1781 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1782 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1783 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1784 "set auto-load scripts-directory".
1785 * config.in: Regenerate.
1786 * configure: Regenerate.
1787 * configure.ac (--with-auto-load-dir): New configure option.
1788 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1790 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1792 Provide $ddir substitution for --with-auto-load-safe-path.
1793 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1795 * auto-load.c: Include observer.h.
1796 (auto_load_safe_path_vec_update): Call substitute_path_component for
1797 each component. New variable ddir_subst.
1798 (auto_load_gdb_datadir_changed): New function.
1799 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1800 AUTO_LOAD_SAFE_PATH. New comment.
1801 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1802 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1803 * config.in: Regenerate.
1804 * configure: Regenerate.
1805 * configure.ac (--auto-load-safe-path): Rename
1806 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1807 GDB_DATADIR/auto-load.
1808 * defs.h (substitute_path_component): New declaration.
1809 * top.c: Include observer.h.
1810 (set_gdb_datadir): New function.
1811 (init_main): Install it for "set data-directory".
1812 * utils.c (substitute_path_component): New function.
1814 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1816 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1817 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1818 DEBUG_FILE_DIRECTORY. Handle multiple components of
1819 DEBUG_FILE_DIRECTORY.
1821 2012-05-10 Tom Tromey <tromey@redhat.com>
1823 * dwarf2read.c (recursively_write_psymbols): New function.
1824 (write_psymtabs_to_index): Use it.
1826 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1828 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1829 (load_partial_comp_unit): Update.
1830 (queue_comp_unit): Add argument 'pretend_language'.
1831 (process_queue): Update.
1832 (psymtab_to_symtab_1): Skip dependencies that have a user.
1833 (load_partial_comp_unit_reader): Give meaning to the 'data'
1835 (load_full_comp_unit): Add 'pretend_language' argument.
1836 (process_full_comp_unit): Add 'pretend_language' argument. Set
1838 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1840 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1841 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1843 (prepare_one_comp_unit): Add 'pretend_language' argument.
1845 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1846 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1847 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1848 (dw2_do_instantiate_symtab): Check whether symtab was read in
1850 (dw2_instantiate_symtab): Add assertion. Call
1851 process_cu_includes.
1852 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1853 (partial_symtab_p): New typedef.
1854 (set_partial_user): New function.
1855 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1856 (scan_partial_symbols): Add imported CU to imported_symtabs.
1857 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1858 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1859 (get_symtab, recursively_compute_inclusions)
1860 (compute_symtab_includes, process_cu_includes)
1861 (process_imported_unit_die): New functions.
1862 (process_die) <DW_TAG_imported_unit>: New case.
1863 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1865 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1867 (struct partial_die_info) <locdesc>: Remove.
1869 (process_psymtab_comp_unit): Add 'read_partial' argument.
1871 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1872 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1873 (add_partial_symbol): Update.
1874 (process_die): Handle DW_TAG_partial_unit.
1875 (read_file_scope): Update comment.
1876 (load_partial_dies): Handle DW_TAG_imported_unit.
1877 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1878 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1880 2012-05-10 Tom Tromey <tromey@redhat.com>
1882 * cc-with-dwz.sh: New file.
1884 2012-05-10 Tom Tromey <tromey@redhat.com>
1886 * symtab.h (struct symtab) <includes, user>: New fields.
1887 * block.h (struct block_iterator) <d, idx, which>: New fields.
1888 * block.c (initialize_block_iterator, find_iterator_symtab)
1889 (block_iterator_step, block_iter_name_step)
1890 (block_iter_match_step): New functions.
1891 (block_iterator_first, block_iterator_next)
1892 (block_iter_name_first, block_iter_name_next)
1893 (block_iter_match_first, block_iter_match_next): Rewrite.
1894 (get_block_symtab): New function.
1896 2012-05-10 Tom Tromey <tromey@redhat.com>
1898 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1900 * jit.c (finalize_symtab): Use allocate_global_block,
1902 * buildsym.c (finish_block_internal): New function, from old
1904 (finish_block): Rewrite.
1905 (end_symtab): Use finish_block_internal, set_block_symtab.
1906 * block.h (struct global_block): New.
1907 (allocate_global_block, set_block_symtab): Declare.
1908 * block.c (allocate_global_block, set_block_symtab): New
1911 2012-05-10 Tom Tromey <tromey@redhat.com>
1913 * psymtab.c (partial_map_expand_apply): Add assertion.
1914 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1915 (psymtab_to_symtab): Find unshared psymtab.
1916 (dump_psymtab): Print including psymtabs.
1917 (recursively_search_psymtabs): New function.
1918 (expand_symtabs_matching_via_partial): Use it.
1919 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1921 (enum psymtab_search_status): New.
1923 2012-05-10 Tom Tromey <tromey@redhat.com>
1925 * tracepoint.c (scope_info): Update.
1926 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1927 (find_pc_sect_symtab, search_symbols)
1928 (default_make_symbol_completion_list_break_on)
1929 (make_file_symbol_completion_list): Update.
1930 * symmisc.c (dump_symtab_1): Update.
1931 * stack.c (print_frame_args, iterate_over_block_locals)
1932 (print_frame_labels, iterate_over_block_arg_vars): Update.
1933 * python/py-block.c (block_object) <dict>: Remove.
1935 <iter>: Change type.
1936 (blpy_iter): Update.
1937 (blpy_block_syms_iternext): Update.
1938 * psymtab.c (map_block): Use block iterators.
1939 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1940 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1941 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1942 * infrun.c (check_exception_resume): Update.
1943 * cp-support.c (make_symbol_overload_list_block): Update.
1944 * coffread.c (patch_opaque_types): Update.
1945 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1946 * block.h (struct block_iterator): New.
1947 (block_iterator_first, block_iterator_next, block_iter_name_first)
1948 (block_iter_name_next, block_iter_match_first)
1949 (block_iter_match_next): Declare.
1950 (ALL_BLOCK_SYMBOLS): Redefine.
1951 * block.c (block_iterator_first, block_iterator_next)
1952 (block_iter_name_first, block_iter_name_next)
1953 (block_iter_match_first, block_iter_match_next): New functions.
1954 * ada-lang.c (ada_add_block_symbols)
1955 (ada_make_symbol_completion_list): Use block iterator.
1957 2012-05-10 Tom Tromey <tromey@redhat.com>
1959 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1960 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1961 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1962 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1963 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1966 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1968 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1969 print-file-var-lib2.c, print-file-var-main.c and
1970 print-file-var.exp (located in gdb/testsuite/gdb.base).
1972 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1974 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1975 try locating the symbol in the symbol's own objfile first, before
1976 extending the search to all objfiles.
1977 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1978 out of lookup_symbol_aux_symtabs.
1979 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1980 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1981 Do not search EXCLUDE_OBJFILE.
1982 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1983 (lookup_symbol_global): Search for matches in the block's objfile
1984 first, before searching all other objfiles.
1986 2012-05-10 Tristan Gingold <gingold@adacore.com>
1988 * printcmd.c (set_command): Add pre/post inc/dec.
1990 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1992 * gdb.1: Document -ex option.
1994 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1996 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1997 * inferior.h (AT_SYMBOL): Delete.
1999 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2001 * mips-tdep.c (mips_push_dummy_code): New function.
2002 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2003 ON_STACK and install mips_push_dummy_code as our gdbarch
2004 push_dummy_code routine.
2006 2012-05-09 Pedro Alves <palves@redhat.com>
2008 * target.c (set_maintenance_target_async_permitted): Rename to ...
2009 (set_target_async_command): ... this.
2010 (show_maintenance_target_async_permitted): Rename to ...
2011 (show_target_async_command): ... this.
2012 (initialize_targets): Adjust.
2014 2012-05-08 Doug Evans <dje@google.com>
2016 * go-exp.y (classify_name): Add missing assignment of fields of
2019 2012-05-08 Eli Zaretskii <eliz@gnu.org>
2021 Display the ">" prompt in interactive mode while reading canned
2022 commands, even when the current interpreter is MI.
2024 * interps.c (interp_set_temp): New function.
2026 * interps.h (interp_set_temp): Add prototype.
2028 * cli/cli-script.c (restore_interp): New cleanup function.
2029 (read_command_lines): Temporarily override the current interpreter
2030 with CLI and arrange for restoring the original one.
2032 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2034 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2036 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2038 * probe.c (parse_probes): Move conditional to check for
2039 debuginfo files from here...
2040 * stap-probe.c (stap_get_probes): ... to here.
2042 2012-05-07 Mark Kettenis <kettenis@gnu.org>
2043 H.J. Lu <hongjiu.lu@intel.com>
2045 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2046 `movl %esp, %ebp' for the X32 ABI.
2048 2012-05-07 Tom Tromey <tromey@redhat.com>
2050 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2052 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2053 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2054 (dwarf_stack_op_name): Remove.
2055 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2056 (decode_locdesc): Use get_DW_OP_name.
2057 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2058 (dwarf2_compile_expr_to_ax): Likewise.
2059 (disassemble_dwarf_expression): Likewise.
2060 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2062 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2064 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2065 (sh_linux_sigtramp_cache): New function.
2066 (sh_linux_sigreturn_init): New function.
2067 (sh_linux_rt_sigreturn_init): New function.
2068 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2070 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2072 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2073 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2074 (sh_linux_init_abi): Add init calls to register new tramp_frame
2075 definitions under 32-bit SH, update comments.
2077 2012-05-07 Pedro Alves <palves@redhat.com>
2081 * amd64-linux-tdep.c: Include glibc-tdep.h.
2082 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2083 gdbarch_skip_solib_resolver callback.
2085 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2087 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2088 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2089 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2090 (add_auto_load_safe_path): Change the error message.
2091 (_initialize_auto_load): Change the "safe-path" help text.
2092 * configure: Regenerate
2093 * configure.ac (--without-auto-load-safe-path): Set
2094 WITH_AUTO_LOAD_SAFE_PATH to /.
2096 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2098 * stap-probe.h: Do not include unecessary `probe.h'.
2100 2012-05-05 Alan Modra <amodra@gmail.com>
2102 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2103 bfd_und_section_ptr.
2104 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2105 and bfd_com_section_ptr.
2107 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2109 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2111 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2113 * windows-nat.h (segment_register_p_ftype): New typedef.
2114 (windows_set_segment_register_p): Add declaration.
2115 * windows-nat.c (segment_register_p): New static global.
2116 (windows_set_segment_register_p): New function.
2117 (do_windows_fetch_inferior_registers): Add special handling
2118 for segment registers.
2119 * amd64-windows-nat.c: #include "amd64-tdep.h".
2120 (amd64_windows_segment_register_p): New function.
2121 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2122 * i386-windows-nat.c: #include "i386-tdep.h".
2123 (i386_windows_segment_register_p): New function.
2124 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2126 2012-05-04 Tristan Gingold <gingold@adacore.com>
2128 * printcmd.c (set_command): Emit a warning if the expression is not
2131 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2133 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2136 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2138 * stap-probe.c (stap_is_operator): Change declaration.
2139 (stap_get_opcode): Change return value.
2140 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2141 `stap_parse_argument_1'.
2143 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2145 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2148 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2150 Add two new methods global_block and static_block to gdb.Symtab
2152 * NEWS (Python scripting): Add entry about the new methods.
2153 * python/py-symtab.c (stpy_global_block): New function which
2154 implements the gdb.Symtab.global_block() method.
2155 (stpy_static_block): New function which implements the
2156 gdb.Symtab.static_block() method.
2157 (symtab_object_methods): Add entries for the two new methods.
2159 2012-05-03 Doug Evans <dje@google.com>
2161 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2164 2012-05-03 Yao Qi <yao@codesourcery.com>
2166 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2168 (i386_process_record): Ditto.
2170 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2172 * infcall.c (unwind_on_signal_p): Make static.
2174 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2176 * sol-thread.c (solaris_pid_to_str): Make static.
2177 (_initialize_sol_thread): Add prototype.
2179 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2181 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2183 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2185 * MAINTAINERS: Remove myself.
2187 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 Fix --without-auto-load-safe-path for MS-Windows host platform.
2190 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2192 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2194 * gdb_curses.h: Undefine KEY_EVENT before including curses
2195 headers. Move "#undef MOUSE_MOVED" before any curses header
2198 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2200 * features/i386/i386-mmx-linux.c: Regenerate.
2201 * features/rs6000/powerpc-32.c: Likewise.
2202 * features/rs6000/powerpc-32l.c: Likewise.
2203 * features/rs6000/powerpc-403.c: Likewise.
2204 * features/rs6000/powerpc-403gc.c: Likewise.
2205 * features/rs6000/powerpc-405.c: Likewise.
2206 * features/rs6000/powerpc-505.c: Likewise.
2207 * features/rs6000/powerpc-601.c: Likewise.
2208 * features/rs6000/powerpc-602.c: Likewise.
2209 * features/rs6000/powerpc-603.c: Likewise.
2210 * features/rs6000/powerpc-604.c: Likewise.
2211 * features/rs6000/powerpc-64.c: Likewise.
2212 * features/rs6000/powerpc-64l.c: Likewise.
2213 * features/rs6000/powerpc-750.c: Likewise.
2214 * features/rs6000/powerpc-860.c: Likewise.
2215 * features/rs6000/powerpc-e500.c: Likewise.
2216 * features/rs6000/powerpc-e500l.c: Likewise.
2217 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2218 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2219 * features/rs6000/rs6000.c: Likewise.
2221 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2223 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2225 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2226 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2227 (stap_parse_argument) <e>: Likewise.
2228 (handle_stap_probe) <byte_order>: Likewise.
2230 2012-04-30 Doug Evans <dje@google.com>
2232 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2233 init_and_read_dies_worker. All callers updated.
2234 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2235 replaced with init_cutu_and_read_dies.
2236 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2237 (find_partial_die): Remove FIXME. Don't free current CU.
2239 2012-04-30 Sterling Augustine <saugustine@google.com>
2241 * contrib: New directory.
2242 * contrib/test_pubnames_and_indexes.py: New file.
2244 2012-04-30 Doug Evans <dje@google.com>
2246 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2247 All callers updated.
2248 (init_cu_die_reader): Verify the section is non-empty.
2249 (dwarf_decode_line_header): Don't dereference section->asection
2250 until we know the section is present.
2252 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2254 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2257 2012-04-29 Yao Qi <yao@codesourcery.com>
2259 * gdb-code-style.el: New hook gdb-markup-hook
2260 and gdb-comment-hook.
2262 2012-04-28 Doug Evans <dje@google.com>
2264 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2265 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2267 * symfile.h (dwarf2_debug_sections): New member addr.
2268 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2269 (ctx_no_get_addr_index): New function.
2270 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2271 (ctx_no_get_addr_index): Declare.
2272 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2273 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2274 (dwarf_expr_ctx_funcs): Update.
2275 (needs_get_addr_index): New function.
2276 (needs_frame_ctx_funcs): Update.
2277 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2278 * dwarf2read.c: #include "gdbcore.h".
2279 (dwarf2_per_objfile): New members addr, dwo_files.
2280 (dwarf2_elf_names): Add entry for addr.
2281 (struct dwo_section_names): New type.
2282 (dwo_section_names): New static global.
2283 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2284 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2285 old debug_types_section member updated to use this.
2286 Rename member debug_types_section to info_or_types_section,
2288 (signatured_type): Rename member type_offset to type_offset_in_tu,
2289 all uses updated. New member type_offset_in_section.
2290 (struct dwo_sections): New type.
2291 (struct dwo_unit): New type.
2292 (struct dwo_file): New type.
2293 (die_reader_specs): New member dwo_file.
2294 (dwarf2_locate_sections): Watch for .debug_addr.
2295 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2296 (dwarf2_read_section): Get bfd of section from bfd's asection,
2298 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2299 (create_signatured_type_table_from_index): Initialize
2300 sig_type->info_or_types_section.
2301 (dw2_get_file_names): Statement lists for type units with DWO files
2302 live in the DWO file.
2303 (create_debug_types_hash_table): New function.
2304 (create_all_type_units): Rewrite.
2305 (init_cu_die_reader): New arg dwo_file, all callers updated.
2306 (init_and_read_dies_worker): Get section from
2307 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2308 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2309 continue reading the CU/TU from there.
2310 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2311 updated. Get section from this_cu->info_or_types_section.
2312 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2313 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2314 DW_FORM_GNU_str_index.
2315 (hash_dwo_file, eq_dwo_file): New functions.
2316 (allocate_dwo_file_hash_table): New function.
2317 (hash_dwo_unit, eq_dwo_unit): New functions.
2318 (allocate_dwo_unit_table): New function.
2319 (dwarf2_locate_dwo_sections): New function.
2320 (struct create_dwo_info_table_data): New type.
2321 (create_debug_info_hash_table_reader): New function.
2322 (create_debug_info_hash_table): New function.
2323 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2324 (lookup_dwo_file): New function.
2325 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2326 (free_dwo_file, free_dwo_file_cleanup): New functions.
2327 (free_dwo_file_from_slot, free_dwo_files): New functions.
2328 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2329 (dwarf2_record_block_ranges): Ditto.
2330 (read_partial_die): Ditto.
2331 (process_enumeration_scope): Update to use type_offset_in_section.
2332 (read_full_die_1): New function.
2333 (read_full_die): Rewrite.
2334 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2335 DW_FORM_GNU_str_index.
2336 (read_addr_index_1, read_addr_index): New functions.
2337 (read_addr_index_from_leb128): New function.
2338 (struct dwarf2_read_addr_index_data): New type.
2339 (dwarf2_read_addr_index_reader): New function.
2340 (dwarf2_read_addr_index): New function.
2341 (read_str_index): New function.
2342 (leb128_size): New function.
2343 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2344 If processing a type unit from a DWO file, get the line section
2346 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2347 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2348 DW_FORM_GNU_str_index.
2349 (lookup_die_type): Check whether section offset of type's die is
2350 known before looking it up. Remove assert. Condition can
2351 legimately happen for inter-cu type references.
2352 (dwarf_attr_name): Handle Fission attributes.
2353 (dwarf_form_name): Handle Fission forms.
2354 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2355 DW_FORM_GNU_str_index.
2356 (follow_die_sig): Update to use type_offset_in_section.
2357 (decode_locdesc): New case DW_OP_GNU_addr_index.
2358 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2359 DW_FORM_GNU_str_index.
2360 (cu_debug_loc_section): New function.
2361 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2362 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2363 Free DWO files if present.
2364 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2366 Refactor DIE reading.
2367 * dwarf2read.c (dwarf2_per_objfile): Replace members
2368 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2369 (die_reader_specs): New member "die_section". Temporarily make
2370 member "buffer" non-const, pending constifying all info_ptr uses.
2371 (die_reader_func_ftype): New typedef.
2372 (dw2_get_file_names_reader): New function.
2373 (dw2_get_file_names): Rewrite.
2374 (read_and_check_type_unit_head): Rename arg type_offset to
2376 (create_all_type_units): Improve debugging message.
2377 Improve dummy type unit check.
2378 (init_cu_die_reader): New arg "section". All callers updated.
2379 (init_and_read_dies_worker): New function.
2380 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2381 (init_cutu_and_read_dies_no_follow): New function.
2382 (init_cutu_and_read_dies_simple): New function.
2383 (process_psymtab_comp_unit_reader): New function.
2384 (process_psymtab_comp_unit): Delete args section,
2385 is_debug_types_section. Rewrite. All callers updated.
2386 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2387 All callers updated. Rewrite.
2388 (load_partial_comp_unit_reader): New function.
2389 (load_partial_comp_unit): Rewrite.
2390 (skip_children): New arg reader. Delete args buffer, cu.
2391 All callers updated.
2392 (skip_one_die): New arg reader. Delete args buffer, cu.
2393 All callers updated.
2394 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2395 All callers updated.
2396 (load_full_comp_unit_reader): New function.
2397 (load_full_comp_unit): Rewrite.
2398 (read_comp_unit): Delete.
2399 (read_die_and_children_1): Delete, contents moved ...
2400 (read_die_and_children): ... here.
2401 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2402 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2403 All callers updated.
2404 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2405 All callers updated.
2406 (find_partial_die): Rewrite load_all_dies support.
2407 (read_attribute_value): New arg reader. Delete args abfd, cu.
2408 All callers updated.
2409 (read_attribute): New arg reader. Delete args abfd, cu.
2410 All callers updated.
2411 (load_full_type_unit): Add assert.
2412 (read_signatured_type_reader): New function.
2413 (read_signatured_type): Rewrite.
2414 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2415 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2416 All callers updated. Set per_cu->cu = NULL after freeing it.
2417 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2418 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2419 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2420 (set_die_type): Update.
2421 (get_die_type_at_offset): Update.
2422 (read_file_scope): Call prepare_one_comp_unit.
2423 (read_type_unit_scope): Ditto.
2424 (prepare_one_comp_unit): Set producer if present.
2426 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2428 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2429 gettext function on `error'.
2431 2012-04-27 Doug Evans <dje@google.com>
2433 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2436 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2437 Tom Tromey <tromey@redhat.com>
2439 * breakpoint.c (struct breakpoint_objfile_data)
2440 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2441 <exception_probes>: New fields.
2442 (free_breakpoint_probes): New function.
2443 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2444 `_Unwind_DebugHook'.
2445 (create_exception_master_breakpoint): Likewise.
2446 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2447 * infrun.c: Including necessary header files for handling SystemTap
2449 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2450 via SystemTap probes.
2451 (check_exception_resume): Remove `func' argument. Handle exception
2452 unwinding breakpoint set via a SystemTap probe.
2453 (insert_exception_resume_from_probe): New function.
2455 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2456 Tom Tromey <tromey@redhat.com>
2457 Jan Kratochvil <jan.kratochvil@redhat.com>
2459 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2460 (COMMON_OBS): Likewise.
2461 (HFILES_NO_SRCDIR): Add `probe'.
2462 * NEWS: Mention support for static and SystemTap probes.
2463 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2464 SystemTap probes' arguments parser.
2465 * arm-linux-tdep.c: Including headers needed to perform the parsing
2466 of SystemTap probes' arguments.
2467 (arm_stap_is_single_operand): New function.
2468 (arm_stap_parse_special_token): Likewise.
2469 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2470 probes' arguments parser.
2471 * ax-gdb.c (require_rvalue): Removing static declaration.
2472 (gen_expr): Likewise.
2473 * ax-gdb.h (gen_expr): Declaring function.
2474 (require_rvalue): Likewise.
2475 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2476 (bkpt_probe_breakpoint_ops): New variable.
2477 (momentary_breakpoint_from_master): Set the `probe' value.
2478 (add_location_to_breakpoint): Likewise.
2479 (break_command_1): Using proper breakpoint_ops according to the
2480 argument passed by the user in the command line.
2481 (bkpt_probe_insert_location): New function.
2482 (bkpt_probe_remove_location): Likewise.
2483 (bkpt_probe_create_sals_from_address): Likewise.
2484 (bkpt_probe_decode_linespec): Likewise.
2485 (tracepoint_probe_create_sals_from_address): Likewise.
2486 (tracepoint_probe_decode_linespec): Likewise.
2487 (tracepoint_probe_breakpoint_ops): New variable.
2488 (trace_command): Using proper breakpoint_ops according to the
2489 argument passed by the user in the command line.
2490 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2491 static probes on breakpoints and tracepoints.
2492 * breakpoint.h (struct bp_location) <probe>: New field.
2493 * cli-utils.c (skip_spaces_const): New function.
2494 (extract_arg): Likewise.
2495 * cli-utils.h (skip_spaces_const): Likewise.
2496 (extract_arg): Likewise.
2497 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2498 * configure.ac: Append `stap-probe.o' to be generated when ELF
2500 * configure: Regenerate.
2501 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2502 * elfread.c: Include `probe.h' and `arch-utils.h'.
2503 (probe_key): New variable.
2504 (elf_get_probes): New function.
2505 (elf_get_probe_argument_count): Likewise.
2506 (elf_evaluate_probe_argument): Likewise.
2507 (elf_compile_to_ax): Likewise.
2508 (elf_symfile_relocate_probe): Likewise.
2509 (stap_probe_key_free): Likewise.
2510 (elf_probe_fns): New variable.
2511 (elf_sym_fns): Add `sym_probe_fns' value.
2512 (elf_sym_fns_lazy_psyms): Likewise.
2513 (elf_sym_fns_gdb_index): Likewise.
2514 (_initialize_elfread): Initialize objfile cache for static
2516 * gdb_vecs.h (struct probe): New forward declaration.
2517 (probe_p): New VEC declaration.
2518 * gdbarch.c: Regenerate.
2519 * gdbarch.h: Regenerate.
2520 * gdbarch.sh (stap_integer_prefix): New variable.
2521 (stap_integer_suffix): Likewise.
2522 (stap_register_prefix): Likewise.
2523 (stap_register_suffix): Likewise.
2524 (stap_register_indirection_prefix): Likewise.
2525 (stap_register_indirection_suffix): Likewise.
2526 (stap_gdb_register_prefix): Likewise.
2527 (stap_gdb_register_suffix): Likewise.
2528 (stap_is_single_operand): New function.
2529 (stap_parse_special_token): Likewise.
2530 (struct stap_parse_info): Forward declaration.
2531 * i386-tdep.c: Including headers needed to perform the parsing
2532 of SystemTap probes' arguments.
2533 (i386_stap_is_single_operand): New function.
2534 (i386_stap_parse_special_token): Likewise.
2535 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2536 probes' arguments parser.
2537 * i386-tdep.h (i386_stap_is_single_operand): New function.
2538 (i386_stap_parse_special_token): Likewise.
2539 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2540 * mipsread.c (ecoff_sym_fns): Likewise.
2541 * objfiles.c (objfile_relocate1): Support relocation for static
2543 * parse.c (prefixify_expression): Remove static declaration.
2544 (initialize_expout): Likewise.
2545 (reallocate_expout): Likewise.
2546 * parser-defs.h (initialize_expout): Declare function.
2547 (reallocate_expout): Likewise.
2548 (prefixify_expression): Likewise.
2549 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2550 of SystemTap probes' arguments.
2551 (ppc_stap_is_single_operand): New function.
2552 (ppc_stap_parse_special_token): Likewise.
2553 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2554 probes' arguments parser.
2555 * probe.c: New file, for generic statically defined probe support.
2556 * probe.h: Likewise.
2557 * s390-tdep.c: Including headers needed to perform the parsing of
2558 SystemTap probes' arguments.
2559 (s390_stap_is_single_operand): New function.
2560 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2561 probes' arguments parser.
2562 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2563 * stap-probe.c: New file, for SystemTap probe support.
2564 * stap-probe.h: Likewise.
2565 * symfile.h: Include `gdb_vecs.h'.
2566 (struct sym_probe_fns): New struct.
2567 (struct sym_fns) <sym_probe_fns>: New field.
2568 * symtab.c (init_sal): Initialize `probe' field.
2569 * symtab.h (struct probe): Forward declaration.
2570 (struct symtab_and_line) <probe>: New field.
2571 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2573 (stop_tracing): Likewise.
2574 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2576 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2577 Tom Tromey <tromey@redhat.com>
2579 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2580 and to compile agent expressions.
2581 * infrun.c (siginfo_make_value): New argument `ignore'.
2582 (siginfo_funcs): New struct.
2583 (_initialize_infrun): New argument when calling
2584 `create_internalvar_type_lazy'.
2585 * thread.c (thread_id_make_value): New argument `ignore'.
2586 (thread_funcs): New struct.
2587 (_initialize_thread): New argument when calling
2588 `create_internalvar_type_lazy'.
2589 * tracepoint.c (sdata_make_value): New argument `ignore'.
2590 (sdata_funcs): New struct.
2591 (_initialize_tracepoint): New argument when calling
2592 `create_internalvar_type_lazy'.
2593 * value.c (make_value): New struct.
2594 (create_internalvar_type_lazy): New argument `data'.
2595 (compile_internalvar_to_ax): New function.
2596 (value_of_internalvar): Properly handling `make_value' case.
2597 (clear_internalvar): Likewise.
2598 (show_convenience): Adding `TRY_CATCH' block.
2599 * value.h (internalvar_make_value): Delete, replace by...
2600 (struct internalvar_funcs): ... this.
2601 (create_internalvar_type_lazy) <fun>: Delete argument.
2602 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2603 (compile_internalvar_to_ax): New function.
2604 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2605 (tlb_funcs): New struct.
2606 (_initialize_windows_tdep): New argument when calling
2607 `create_internalvar_type_lazy'.
2609 2012-04-27 Mark Wielaard <mjw@redhat.com>
2611 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2612 see whether it is an address or a constant offset from DW_AT_low_pc.
2613 (dwarf2_record_block_ranges): Likewise.
2614 (read_partial_die): Likewise.
2616 2012-04-26 Mark Wielaard <mjw@redhat.com>
2618 * MAINTAINERS (Write After Approval): Add myself to the list.
2620 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2622 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2623 (proc_prettyprint_signal): Likewise.
2624 (proc_prettyprint_faultset): Likewise.
2625 (proc_prettyprint_fault): Likewise.
2626 (proc_prettyprint_actionset): Likewise.
2627 (proc_prettyprint_flags): Move to new proc-flags.c section.
2628 (proc_prettyfprint_flags): New prototype.
2629 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2630 (proc_syscall, proc_cursig): Likewise.
2631 (proc_set_kill_on_last_close): Likewise.
2632 (proc_unset_kill_on_last_close): Likewise.
2633 (proc_set_watchpoint): Make static.
2634 (proc_delete_dead_threads): Likewise.
2635 (procfs_set_watchpoint): Likewise.
2636 (_initialize_procfs): Add prototype.
2637 * proc-events.c: Include proc-utils.h.
2638 (init_syscall_table): Make static.
2639 * proc-api.c (_initialize_proc_api): Add prototype.
2640 * proc-flags.c: Include proc-utils.h.
2642 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2644 * configure.ac: Add AC_ARG_PROGRAM.
2645 * configure: Regenerate.
2647 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2649 Fix DW_AT_lower_bound defaults for DWARF-4+.
2650 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2651 high. New variable low_default_is_valid. Implement DWARF-4+
2652 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2653 no default by the DWARF standard.
2655 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2656 Maciej W. Rozycki <macro@codesourcery.com>
2658 * infrun.c (handle_inferior_event): Move the check for return
2659 trampolines ahead of the check for function trampolines.
2660 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2661 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2662 (mips_str_mips16_ret_stub): Likewise.
2663 (mips_str_call_fp_stub): Likewise.
2664 (mips_str_call_stub): Likewise.
2665 (mips_str_fn_stub): Likewise.
2666 (mips_str_pic): Likewise.
2667 (mips_in_frame_stub): New function.
2668 (mips_unwind_pc): Return the return address rather than the PC
2669 if the PC of an intermediate frame is inside a call thunk.
2670 (mips_is_stub_suffix): New function.
2671 (mips_is_stub_mode): Likewise.
2672 (mips_get_mips16_fn_stub_pc): Likewise.
2673 (mips_skip_mips16_trampoline_code): Update to handle all the
2674 currently generated stub types. Don't recurse into __fn_stub
2675 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2676 Use cooked register accesses.
2677 (mips_in_return_stub): Reintroduce function.
2678 (mips_skip_trampoline_code): Traverse trampolines recursively.
2679 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2681 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2685 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2687 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2688 * features/arm-with-m-vfp-d16.xml: New file. Describes
2689 Cortex-M with VFPv4-sp-d16 FPU register layout.
2690 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2691 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2692 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2693 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2694 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2696 2012-04-25 Doug Evans <dje@google.com>
2698 * cli/cli-decode.c (print_doc_line): Use stream instead of
2701 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2703 * features/arm-with-iwmmxt.c: Regenerate.
2704 * features/arm-with-m-fpa-layout.c: Likewise.
2705 * features/arm-with-m.c: Likewise.
2706 * features/arm-with-neon.c: Likewise.
2707 * features/arm-with-vfpv2.c: Likewise.
2708 * features/arm-with-vfpv3.c: Likewise.
2709 * features/mips-dsp-linux.c: Likewise.
2710 * features/mips-linux.c: Likewise.
2711 * features/mips64-dsp-linux.c: Likewise.
2712 * features/mips64-linux.c: Likewise.
2713 * features/s390-linux32.c: Likewise.
2714 * features/s390-linux32v1.c: Likewise.
2715 * features/s390-linux32v2.c: Likewise.
2716 * features/s390-linux64.c: Likewise.
2717 * features/s390-linux64v1.c: Likewise.
2718 * features/s390-linux64v2.c: Likewise.
2719 * features/s390x-linux64.c: Likewise.
2720 * features/s390x-linux64v1.c: Likewise.
2721 * features/s390x-linux64v2.c: Likewise.
2722 * features/tic6x-c62x-linux.c: Likewise.
2723 * features/tic6x-c62x.c: Likewise.
2724 * features/tic6x-c64x-linux.c: Likewise.
2725 * features/tic6x-c64x.c: Likewise.
2726 * features/tic6x-c64xp-linux.c: Likewise.
2727 * features/tic6x-c64xp.c: Likewise.
2728 * target-descriptions.c: Only generate `field_type' and `type'
2729 variables when needed.
2731 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2733 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2735 2012-04-25 Doug Evans <dje@google.com>
2737 Initial pass at Go language support.
2739 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2741 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2742 (YYFILES): Add go-exp.c.
2743 (YYOBJ): Add go-exp.o.
2744 (local-maintainer-clean): Delete go-exp.c.
2745 * defs.h (enum language): Add language_go.
2746 * dwarf2read.c: #include "go-lang.h".
2747 (fixup_go_packaging): New function.
2748 (process_full_comp_unit): Call it when processing Go CUs.
2749 (dwarf2_physname): Add Go support.
2750 (read_file_scope): Handle missing language spec for GNU Go.
2751 (set_cu_language): Handle DW_LANG_Go.
2752 * go-exp.y: New file.
2753 * go-lang.h: New file.
2754 * go-lang.c: New file.
2755 * go-typeprint.c: New file.
2756 * go-valprint.c: New file.
2757 * symtab.c: #include "go-lang.h".
2758 (symbol_set_language): Handle language_go.
2759 (symbol_find_demangled_name, symbol_set_names): Ditto.
2760 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2762 2012-04-24 Jim Meyering <meyering@redhat.com>
2764 avoid a few strncpy-induced buffer overruns
2765 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2766 fname and psargs before trying to concatenate.
2767 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2768 "name" before applying strchr.
2770 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2772 * CONTRIBUTE: Use unified diff instead of context diff when
2775 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2777 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2778 code. Handle JR.HB correctly.
2780 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2783 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2784 with the other MIPS16 helpers.
2786 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2788 * observer.sh: Conditionally declare `args', thus cleaning up
2789 unused instances of this variable.
2791 2012-04-24 Yao Qi <yao@codesourcery.com>
2793 Revert this patch to allow breakpoint always-inserted
2795 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2796 * breakpoint.c: Include record.h.
2797 (breakpoints_always_inserted_mode): Return false when the record
2800 * breakpoint.c (iterate_over_bp_locations): New.
2801 * breakpoint.h: Declare.
2802 New typedef walk_bp_location_callback.
2803 * record.c (record_open): Call record_init_record_breakpoints.
2804 (record_sync_record_breakpoints): New.
2805 (record_init_record_breakpoints): New.
2806 * NEWS: Mention supporting breakpoint always-inserted mode in
2809 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2811 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2814 2012-04-24 Yao Qi <yao@codesourcery.com>
2816 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2817 (is_catchpoint): ... it.
2818 (print_one_breakpoint_location): Caller update.
2819 * breakpoint.h: Update declaration.
2821 2012-04-23 David S. Miller <davem@davemloft.net>
2823 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2825 2012-04-23 Tom Tromey <tromey@redhat.com>
2827 * buildsym.c (add_free_pendings): Remove.
2828 * buildsym.h (add_free_pendings): Remove.
2830 2012-04-23 Doug Evans <dje@google.com>
2832 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2833 attr.u.unsnd instead of attr.u.addr.
2834 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2835 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2837 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2838 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2840 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2842 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2844 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2845 (mips_o32_return_value): Likewise.
2846 (mips_o64_return_value): Likewise.
2848 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2850 * ada-lang.c (ada_evaluate_subexp): Add cases for
2851 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2852 their treatment in eval.c.
2854 2012-04-21 David S. Miller <davem@davemloft.net>
2856 * sparc-tdep.c (X_DISP10): Define.
2857 (sparc_analyze_control_transfer): Handle compare-and-branch.
2859 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2861 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2862 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2864 2012-04-20 Nigel Stephens <nigel@mips.com>
2865 Maciej W. Rozycki <macro@codesourcery.com>
2867 * mips-tdep.c (mips_float_register_p): New function.
2868 (mips_convert_register_float_case_p): Use mips_float_register_p.
2869 (mips_register_type): Likewise.
2870 (mips_print_register): Likewise.
2871 (print_gp_register_row): Likewise.
2872 (mips_print_registers_info): Likewise.
2874 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2876 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2879 2012-04-20 Andrew Pinski <apinski@cavium.com>
2881 * MAINTAINERS (Write After Approval): Add myself to the list.
2883 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2885 * MAINTAINERS: Update my e-mail address.
2887 2012-04-20 Pedro Alves <palves@redhat.com>
2889 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2891 * configure: Regenerate.
2893 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2895 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2897 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2899 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2901 Fix compilation compatibility with python-2.4
2902 * python/py-type.c (convert_field): Cast ADDRSTRING for
2903 PyObject_SetAttrString as non-const. New comment.
2905 2012-04-19 Tom Tromey <tromey@redhat.com>
2907 * top.c (quit_target): Use all_cleanups.
2908 * main.c (captured_command_loop): Use all_cleanups.
2909 * exceptions.c (throw_exception): Use all_cleanups.
2911 2012-04-19 Pedro Alves <palves@redhat.com>
2913 * Makefile.in (GNULIB_BUILDDIR): New.
2914 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2915 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2916 (CLEANDIRS). Remove gnulib/import.
2917 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2919 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2920 (gnulib/import/Makefile): Replace gnulib/import with
2921 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2922 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2923 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2924 acx_configure_dir.m4.
2925 * acinclude.m4: Include acx_configure_dir.m4.
2926 * acx_configure_dir.m4: New file.
2927 * aclocal.m4: Regenerate.
2928 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2929 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2930 (GNULIB): New variable.
2931 (GNULIB_STDINT_H): Adjust.
2932 (AC_OUTPUT): Don't output gnulib/Makefile.
2933 * gdb/defs.h: Include build-gnulib/config.h.
2934 * aclocal.m4: Regenerate.
2935 * config.in: Regenerate.
2936 * configure: Regenerate.
2938 * gnulib/Makefile.in: New file.
2939 * gnulib/configure.ac: New file.
2940 * gnulib/aclocal.m4: New file.
2941 * gnulib/config.in: New file.
2942 * gnulib/configure: New file.
2943 * gnulib/: Re-run gnulib-tool to adjust.
2945 2012-04-19 Doug Evans <dje@google.com>
2947 * cleanups.h (struct cleanup): Move to cleanups.c.
2948 (make_cleanup_dtor_ftype): New typedef.
2949 (make_cleanup_dtor): Use it.
2950 (ALL_CLEANUPS): Replace with ...
2951 (all_cleanups): ... this. Declare. All uses updated.
2952 * cleanups.c: #include "gdb_assert.h".
2953 (sentinel_cleanup): New static global.
2954 (SENTINEL_CLEANUP): Define.
2955 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2956 (make_my_cleanup2): Assert result is non-NULL.
2957 (all_cleanups): New function.
2958 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2961 2012-04-19 Pedro Alves <palves@redhat.com>
2963 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2964 Adjust paths to gnulib imported files.
2966 2012-04-19 Pedro Alves <palves@redhat.com>
2968 * gnulib/: Move whole directory ...
2969 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2970 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2971 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2972 (aclocal_m4_deps): Adjust.
2973 * aclocal.m4: Regenerate.
2974 * configure: Regenerate.
2975 * configure.ac: Adjust AC_OUTPUT output.
2977 2012-04-19 Yao Qi <yao@codesourcery.com>
2979 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2981 * vec.c: Move it ...
2982 * common/vec.c: ... here.
2983 * vec.h: Move it ...
2984 * common/vec.h: ... here.
2986 2012-04-19 Yao Qi <yao@codesourcery.com>
2988 * gdb-code-style.el: New.
2990 2012-04-18 Pedro Alves <palves@redhat.com>
2992 Update gnulib from latest git.
2993 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2995 * gnulib/Makefile.am: Update.
2996 * gnulib/dummy.c: Update.
2997 * gnulib/extra/arg-nonnull.h: Update.
2998 * gnulib/extra/c++defs.h: Update.
2999 * gnulib/extra/update-copyright: Update.
3000 * gnulib/extra/warn-on-use.h: Update.
3001 * gnulib/inttypes.in.h: Update.
3002 * gnulib/m4/00gnulib.m4: Update.
3003 * gnulib/m4/extensions.m4: Update.
3004 * gnulib/m4/gnulib-cache.m4: Update.
3005 * gnulib/m4/gnulib-common.m4: Update.
3006 * gnulib/m4/gnulib-comp.m4: Update.
3007 * gnulib/m4/gnulib-tool.m4: Update.
3008 * gnulib/m4/include_next.m4: Update.
3009 * gnulib/m4/inttypes-pri.m4: Update.
3010 * gnulib/m4/inttypes.m4: Update.
3011 * gnulib/m4/longlong.m4: Update.
3012 * gnulib/m4/memchr.m4: Update.
3013 * gnulib/m4/memmem.m4: Update.
3014 * gnulib/m4/mmap-anon.m4: Update.
3015 * gnulib/m4/multiarch.m4: Update.
3016 * gnulib/m4/onceonly.m4: Update.
3017 * gnulib/m4/stddef_h.m4: Update.
3018 * gnulib/m4/stdint.m4: Update.
3019 * gnulib/m4/string_h.m4: Update.
3020 * gnulib/m4/warn-on-use.m4: Update.
3021 * gnulib/m4/wchar_h.m4: Update.
3022 * gnulib/m4/wchar_t.m4: Update.
3023 * gnulib/m4/wint_t.m4: Update.
3024 * gnulib/memchr.c: Update.
3025 * gnulib/memmem.c: Update.
3026 * gnulib/stddef.in.h: Update.
3027 * gnulib/stdint.in.h: Update.
3028 * gnulib/str-two-way.h: Update.
3029 * gnulib/string.in.h: Update.
3030 * gnulib/wchar.in.h: Update.
3032 * gnulib/extra/arg-nonnull.h: Delete.
3033 * gnulib/extra/c++defs.h: Delete.
3034 * gnulib/extra/warn-on-use.h: Delete.
3035 * gnulib/m4/wchar_h.m4: Delete.
3036 * gnulib/m4/wint_t.m4: Delete.
3037 * gnulib/wchar.in.h: Delete.
3039 * gnulib/extra/snippets/arg-nonnull.h: New.
3040 * gnulib/extra/snippets/c++defs.h: New.
3041 * gnulib/extra/snippets/warn-on-use.h: New.
3043 * aclocal.m4: Regenerate.
3044 * config.in: Regenerate.
3045 * configure: Regenerate.
3046 * gnulib/Makefile.in: Regenerate.
3048 2012-04-18 Pedro Alves <palves@redhat.com>
3050 Reimport the update-copyright module from gnulib
3051 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3053 * configure: Regenerate.
3054 * gnulib/Makefile.am: Update.
3055 * gnulib/Makefile.in: Regenerate.
3056 * gnulib/extra/update-copyright: Update.
3057 * gnulib/m4/gnulib-cache.m4: Update.
3058 * gnulib/m4/gnulib-comp.m4: Update.
3060 2012-04-18 Tristan Gingold <gingold@adacore.com>
3062 * configure.ac (aix): Put -lpthread into libs.
3063 * configure: Regenerate.
3065 2012-04-18 Tom Tromey <tromey@redhat.com>
3067 * linespec.c (convert_linespec_to_sals): Don't use
3069 (compare_msymbols): Arguments are minsym_and_objfile, not
3070 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3072 2012-04-18 Pedro Alves <palves@redhat.com>
3074 Revert gnulib/ part of:
3075 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3076 Copyright year update in most files (performed by copyright.sh).
3078 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 Fix 64-bit constants on 32-bit hosts.
3081 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3082 from unsigned long to ULONGEST.
3083 (read_signed_leb128): Change declaration return type from long to
3085 (dwarf2_const_value_attr): Change declaration parameter value from long
3087 (dwarf2_compute_name): Change variable value from long to LONGEST.
3088 (read_unsigned_leb128): Change return type, variable result and some
3089 casts from unsigned long to ULONGEST.
3090 (read_signed_leb128): Change return type, variable result and some
3091 casts from long to LONGEST.
3092 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3093 value from long to LONGEST.
3094 (dwarf2_const_value): Change variable value from long to LONGEST.
3095 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3096 plongest and hex_string.
3097 * symtab.h (struct general_symbol_info): Change ivalue from long to
3098 LONGEST, remove the comment.
3099 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3100 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3102 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3105 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3106 * ada-lang.c (ada_discrete_type_high_bound)
3107 (ada_discrete_type_low_bound): Fix function comment. Use
3108 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3109 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3110 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3111 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3112 Use TYPE_FIELD_ENUMVAL.
3113 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3114 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3115 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3116 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3118 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3119 * dwarf2read.c (process_enumeration_scope): Likewise.
3120 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3122 (class StructMainTypePrettyPrinter): Support also
3123 FIELD_LOC_KIND_ENUMVAL.
3124 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3126 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3127 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3128 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3129 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3131 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3132 accommodate enumval.
3133 (struct call_site): Adjust loc_kind to accommodate enumval.
3134 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3135 (TYPE_FIELD_ENUMVAL): New macros.
3136 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3137 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3139 * p-typeprint.c (pascal_type_print_base): Likewise.
3140 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3142 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3143 * python/py-type.c (convert_field): New variable addrstring. Use
3144 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3145 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3146 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3147 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3149 * valprint.c (generic_val_print): Likewise.
3151 2012-04-17 Doug Evans <dje@google.com>
3153 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3155 * dwarf2read.c: Whitespace fixes.
3156 (lookup_signatured_type): Tweak comment.
3157 (get_die_type_at_offset): Fix comment.
3159 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3161 * xcoffread.c (xcoff_secnum_to_sections): New function.
3162 (secnum_to_section, secnum_to_bfd_section): Reimplement
3163 using xcoff_secnum_to_sections. Rename "secnum" parameter
3165 (RECORD_MINIMAL_SYMBOL): Delete.
3166 (record_minimal_symbol): New function.
3167 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3168 by call to record_minimal_symbol and set misc_func_recorded
3169 to 1. Set last_csect_sec to the XCOFF section index instead
3170 of GDB's section_offset index. Update calls to
3171 prim_record_minimal_symbol_and_info to pass the BFD section
3174 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3176 * xcoffread.c (read_xcoff_symtab): Delete variables
3177 last_csect_val and last_csect_sec and associated code.
3179 2012-04-17 Doug Evans <dje@google.com>
3181 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3182 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3183 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3184 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3186 * cleanups.h: New file.
3187 * cleanups.c: New file.
3188 * Makefile.in (SFILES): Add cleanups.c.
3189 (HFILES_NO_SRCDIR): Add cleanups.h.
3190 (COMMON_OBS): Add cleanups.o.
3191 * defs.h (struct cleanup): Moved to cleanups.h.
3192 (do_cleanups,do_final_cleanups): Ditto.
3193 (discard_cleanups,discard_final_cleanups): Ditto
3194 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3195 (save_cleanups,save_final_cleanups): Ditto.
3196 (restore_cleanups,restore_final_cleanups): Ditto.
3197 (null_cleanup): Ditto.
3198 (make_my_cleanup,make_my_cleanup2): Ditto.
3199 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3200 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3201 (do_cleanups,do_final_cleanups): Ditto.
3202 (discard_cleanups,discard_final_cleanups): Ditto
3203 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3204 (save_cleanups,save_final_cleanups): Ditto.
3205 (restore_cleanups,restore_final_cleanups): Ditto.
3206 (null_cleanup): Ditto.
3207 (make_my_cleanup,make_my_cleanup2): Ditto.
3208 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3210 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3212 (make_cleanup_dyn_string_delete): Ditto.
3213 (make_cleanup_ui_file_delete): Ditto.
3214 (make_cleanup_ui_out_redirect_pop): Ditto.
3215 (make_cleanup_free_section_addr_info): Ditto.
3216 (make_cleanup_restore_integer): Ditto.
3217 (make_cleanup_unpush_target): Ditto.
3218 (make_cleanup_value_free_to_mark): Ditto.
3219 (make_cleanup_value_free): Ditto.
3220 (make_cleanup_free_so): Ditto.
3222 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3224 New option "set debug auto-load".
3225 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3226 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3227 (auto_load_safe_path_vec_update)
3228 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3230 (file_is_auto_load_safe): New parameters debug_fmt and ....
3231 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3232 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3233 caller by explanatory string.
3234 (_initialize_auto_load): Register "set debug auto-load".
3235 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3237 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3238 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3239 by explanatory string.
3240 * main.c (captured_main): Likewise.
3241 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3242 (source_section_scripts): Likewise.
3244 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3246 New option "set auto-load safe-path".
3247 * NEWS: New commands "set auto-load safe-path"
3248 and "show auto-load safe-path".
3249 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3250 (auto_load_safe_path, auto_load_safe_path_vec)
3251 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3252 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3253 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3254 (source_gdb_script_for_objfile): New variable is_safe. Call
3255 file_is_auto_load_safe. Return if it is not.
3256 (struct loaded_script): New field loaded.
3257 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3258 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3259 output "Missing" to "No".
3260 (_initialize_auto_load): New variable cmd. Initialize
3261 auto_load_safe_path. Register "set auto-load safe-path",
3262 "show auto-load safe-path" and "add-auto-load-safe-path".
3263 * auto-load.h (maybe_add_script): Add parameter loaded.
3264 (file_is_auto_load_safe): New declaration.
3265 * config.in: Regenerate.
3266 * configure: Regenerate.
3267 * configure.ac: New parameters --with-auto-load-safe-path
3268 and --without-auto-load-safe-path.
3269 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3270 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3271 * main.c (captured_main): Check file_is_auto_load_safe for
3273 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3274 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3275 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3278 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3280 auto-load: Implementation.
3281 * NEWS: New descriptions for "info auto-load",
3282 "info auto-load gdb-scripts", "info auto-load python-scripts",
3283 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3284 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3285 and "show auto-load-scripts". New description for "set auto-load",
3286 "show auto-load", "set auto-load gdb-scripts",
3287 "show auto-load gdb-scripts", "set auto-load python-scripts",
3288 "show auto-load python-scripts", "set auto-load local-gdbinit",
3289 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3290 "show auto-load libthread-db".
3291 * auto-load.c: Remove include python/python-internal.h. Add includes
3292 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3294 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3295 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3296 (gdbpy_global_auto_load): Rename to ...
3297 (global_auto_load): ... here.
3298 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3299 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3300 (script_language_gdb, source_gdb_script_for_objfile): New.
3301 (struct loaded_script): New field language.
3302 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3304 (maybe_add_script): Add parameter language. Drop redundant
3305 entry.full_path initialization. Initialize entry.language and
3307 (auto_load_objfile_script): Change parameter suffix to language.
3308 Remove the call of maybe_add_script.
3309 Call language->source_script_for_objfile.
3310 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3312 (collect_matching_scripts): Adjust it for
3313 struct collect_matching_scripts_data.
3314 (auto_load_info_scripts_pattern_nl): New variable.
3315 (info_auto_load_scripts): Rename to ...
3316 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3317 for struct collect_matching_scripts_data.
3318 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3319 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3320 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3321 (auto_load_info_cmdlist_get): New.
3322 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3323 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3324 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3325 "info auto-load local-gdbinit".
3326 * auto-load.h (struct script_language): New.
3327 (gdbpy_global_auto_load): Rename to ...
3328 (global_auto_load): ... here.
3329 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3330 (auto_load_local_gdbinit_loaded): New declarations.
3331 (maybe_add_script): New parameter language.
3332 (auto_load_objfile_script): Change parameter suffix to language.
3333 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3334 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3335 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3337 * linux-thread-db.c: Include auto-load.h and ctype.h.
3338 (auto_load_thread_db, show_auto_load_thread_db): New.
3339 (struct thread_db_info): New field filename.
3340 (delete_thread_db_info): Call xfree for FILENAME.
3341 (try_thread_db_load): Initialize FILENAME.
3342 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3343 if !AUTO_LOAD_THREAD_DB.
3344 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3345 (_initialize_thread_db): Install auto_load_thread_db
3346 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3347 as "info auto-load libthread-db".
3348 * main.c (captured_main): Rename gdbpy_global_auto_load to
3349 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3350 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3351 (print_gdb_help): Extend the help for 'local init file'.
3352 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3353 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3354 (auto_load_scripts): Rename to ...
3355 (auto_load_python_scripts): ... here, update the comment.
3356 (gdbpy_load_auto_script_for_objfile): New declaration.
3357 (show_auto_load_python_scripts, script_language_python)
3358 (gdbpy_load_auto_script_for_objfile): New.
3359 (source_section_scripts): Refactor the code.
3360 (load_auto_scripts_for_objfile): Rename to ...
3361 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3362 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3363 (info_auto_load_python_scripts): New.
3364 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3365 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3366 Register "set auto-load-scripts" as its deprecated alias. Register
3367 "info auto-load python-scripts". Register "info auto-load-scripts" as
3368 its deprecated alias.
3369 (load_auto_scripts_for_objfile): Rename to ...
3370 (gdbpy_load_auto_scripts_for_objfile): ... here.
3371 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3372 (gdbpy_load_auto_scripts_for_objfile): ... here.
3374 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3376 auto-load: Move files.
3377 * Makefile.in (SFILES): Add auto-load.c.
3378 (HFILES_NO_SRCDIR): Add auto-load.h.
3379 (COMMON_OBS): Add auto-load.o.
3380 (distclean): Change .gdbinit for gdb-gdb.gdb.
3381 * auto-load.c: New file, with parts from python/py-auto-load.c.
3382 * auto-load.h: New file, with parts from python/python.h.
3383 * configure: Regenerate.
3384 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3385 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3386 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3387 * main.c: Include auto-load.h.
3388 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3389 command.h, observer.h and progspace.h to auto-load.c. Add include
3391 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3392 (struct loaded_script, auto_load_pspace_data)
3393 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3394 (hash_loaded_script_entry, eq_loaded_script_entry)
3395 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3396 (maybe_add_script): Move to auto-load.c.
3397 (source_section_scripts): Change maybe_add_script parameters passing,
3398 use script_not_found_warning_print.
3399 (clear_section_scripts, auto_load_objfile_script)
3400 (auto_load_new_objfile, loaded_script_ptr)
3401 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3402 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3403 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3404 auto_load_new_objfile and info_auto_load_scripts initizations to
3406 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3408 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3411 * charset.c (find_charset_names): Remove variables ix and elt.
3412 Use free_char_ptr_vec.
3413 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3414 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3415 debugdir_end. New variable debugdir_len.
3416 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3417 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3419 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3420 and elt. Use free_char_ptr_vec.
3421 * source.c (add_path): Remove variables argv, arg and argv_index.
3422 New variables dir_vec, back_to, ix and name.
3423 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3424 make_cleanup_freeargv. Remove variable separator. Simplify the code
3425 no longer expecting DIRNAME_SEPARATOR.
3426 (openp): Remove variable p, p1 and len. New variables dir_vec,
3427 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3428 no longer expecting DIRNAME_SEPARATOR.
3429 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3430 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3432 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3433 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3434 (dirnames_to_char_ptr_vec): New functions.
3436 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3439 * source.c (add_path): Remove always true conditional 'p == 0' and
3440 unindent its code block.
3442 2012-04-17 Pedro Alves <palves@redhat.com>
3444 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3445 (FIELD_BITPOS_LVAL): ... this.
3446 (FIELD_BITPOS): New.
3447 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3448 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3449 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3451 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3453 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3454 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3455 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3458 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3461 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3462 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3463 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3464 * jv-lang.c (java_link_class_type): Likewise, once.
3465 * stabsread.c (read_enum_type): Likewise.
3467 2012-04-16 Yao Qi <yao@codesourcery.com>
3469 * common/agent.c (agent_run_command): Add one more parameter `len'.
3471 * common/agent.h: Update declaration.
3472 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3474 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3476 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3479 * value.c (value_actual_type): New function.
3480 * value.h (value_actual_type): New declaration.
3481 * varobj.c (update_type_if_necessary): New function.
3482 (varobj_create): Call value_actual_type instead of
3484 (install_dynamic_child): distinct changed and type changed MI variable
3486 (update_dynamic_varobj_children): Updated for install_dynamic_child
3487 change. All callers updated.
3488 (varobj_update): Support for MI variable object type change if
3489 the value changed and RTTI is used to determine the type.
3490 (create_child_with_value): Call value_actual_type instead of
3492 (adjust_value_for_child_access): Extended with a new parameter which
3493 specify whether the given value should be casted to enclosing type.
3494 All callers updated.
3496 2012-04-14 Yao Qi <yao@codesourcery.com>
3498 Import gnulib module inttypes from git
3499 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3500 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3501 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3502 gnulib/m4/inttypes-pri.m4
3503 * aclocal.m4, config.in, configure: Regenerated.
3504 * gnulib/Makefile.am: Update.
3505 * gnulib/Makefile.in: Update.
3506 * gnulib/m4/gnulib-cache.m4: Update.
3507 * gnulib/m4/gnulib-comp.m4: Update.
3508 * gnulib/inttypes.in.h: New.
3509 * gnulib/m4/inttypes-pri.m4: New.
3510 * gnulib/m4/inttypes.m4: New.
3512 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3514 * infrun.c (resume): Update PC address to the real PC after
3515 preparing to do displaced stepping.
3517 2012-04-12 Doug Evans <dje@google.com>
3519 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3520 All callers updated.
3522 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3524 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3526 2012-04-12 Doug Evans <dje@google.com>
3528 * dwarf2read.c (create_all_type_units): Renamed from
3529 create_debug_types_hash_table. All callers updated.
3531 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3532 local type_sig to sig_type, type_offset to type_offset_in_tu.
3533 (hash_signatured_type): Renamed from hash_type_signature,
3534 all callers updated.
3535 (eq_signatured_type): Renamed from eq_type_signature,
3536 all callers updated.
3537 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3538 (process_enumeration_scope): Ditto.
3539 (lookup_signatured_type_at_offset): Ditto.
3540 (load_full_type_unit, read_signatured_type): Ditto.
3542 2012-04-12 Yao Qi <yao@codesourcery.com>
3544 * remote.c (async_remote_interrupt): Correct function name in
3546 (async_remote_interrupt_twice): Ditto.
3548 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3550 * source.c (find_and_open_source): Consistently pass resulting
3551 full path through xfullpath.
3553 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3555 Provide more specific displaced-stepping memory error message.
3556 * infrun.c (displaced_step_prepare): New variable status. Call
3557 target_read_memory instead of read_memory, provide more specific
3560 2012-04-11 Tristan Gingold <gingold@adacore.com>
3563 * darwin-nat.c (darwin_execvp): Revert previous patch.
3565 2012-04-11 Tristan Gingold <gingold@adacore.com>
3568 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3571 2012-04-11 Tristan Gingold <gingold@adacore.com>
3573 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3576 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3578 New command 'explore' which helps explore values and types in
3580 * NEWS: Add an entry about the new 'explore' command.
3581 * data-directory/Makefile.in: Add gdb/command/explore.py
3582 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3583 command using the GDB Python API.
3585 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3587 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3588 extension in jump target calculation.
3590 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3592 * mips-tdep.c (mips32_next_pc): Handle JALX.
3594 2012-04-10 Yao Qi <yao@codesourcery.com>
3596 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3598 2012-04-10 Yao Qi <yao@codesourcery.com>
3600 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3601 and gnulib/m4/gnulib-tool.m4.
3603 2012-04-10 Doug Evans <dje@google.com>
3605 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3606 (load_partial_dies): Clarify comment.
3607 (find_partial_die): Support rereading type units.
3608 Clarify CU handling, if we know offset is in CU, don't search for the
3609 containing CU. Add comment regarding memory waste.
3611 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3613 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3614 i386/x32-avx and i386/x32-avx-linux.
3615 (i386/x32-expedite): New.
3616 (i386/x32-linux-expedite): Likewise.
3617 (i386/x32-avx-expedite): Likewise.
3618 (i386/x32-avx-linux-expedite): Likewise.
3619 ($(outdir)/i386/x32.dat): Likewise.
3620 ($(outdir)/i386/x32-linux.dat): Likewise.
3621 ($(outdir)/i386/x32-avx.dat): Likewise.
3622 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3624 * features/i386/x32-avx-linux.xml: New file.
3625 * features/i386/x32-avx.xml: Likewise.
3626 * features/i386/x32-core.xml: Likewise.
3627 * features/i386/x32-linux.xml: Likewise.
3628 * features/i386/x32.xml: Likewise.
3630 * features/i386/x32-avx-linux.c: New. Generated.
3631 * features/i386/x32-avx.c: Likewise.
3632 * features/i386/x32-linux.c: Likewise.
3633 * features/i386/x32.c: Likewise.
3634 * regformats/i386/x32-avx-linux.dat: Likewise.
3635 * regformats/i386/x32-avx.dat: Likewise.
3636 * regformats/i386/x32-linux.dat: Likewise.
3637 * regformats/i386/x32.dat: Likewise.
3639 2012-04-10 Tristan Gingold <gingold@adacore.com>
3641 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3642 code to kill the inferior.
3644 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3646 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3648 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3650 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3651 (yyvsp): New defines.
3652 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3654 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3656 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3658 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3660 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3663 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3665 * sparc64-tdep.c (sparc64_store_arguments)
3666 (sparc64_store_arguments): Fix coding style.
3668 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3670 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3671 complex floats, adjust some related comments and tighten a related
3673 (sparc64_extract_return_value): Handle complex floats.
3675 2012-04-07 Doug Evans <dje@google.com>
3677 * dwarf2read.c (load_partial_dies): Change condition to assert.
3679 2012-04-06 Doug Evans <dje@google.com>
3681 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3684 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3686 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3688 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3689 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3692 2012-04-05 Keith Seitz <keiths@redhat.com>
3694 * linespec.c (decode_compound): Remove.
3695 (enum offset_relative_sign): New enum.
3696 (struct line_offset): New struct.
3697 (struct linespec): New struct.
3698 (struct linespec_state): Move file_symtabs,
3699 user_filename, and user_function into struct linespec.
3700 Make result an anonymous struct holding vectors of
3701 symbolp and minsym_and_objfile_d.
3702 Add language member.
3703 (enum ls_token_type): New enum.
3704 (linespec_keywords): New array.
3705 (struct ls_token): New struct.
3706 (struct ls_parser): New struct.
3707 (linespec_lexer_lex_number): New function.
3708 (linespec_lexer_lex_keyword): New function.
3709 (is_ada_operator): New function.
3710 (skip_quote_char): New function.
3711 (copy_token_string): New function.
3712 (is_closing_quote_enclosed): New function.
3713 (find_parameter_list_end): New function.
3714 (linespec_lexer_lex_string): New function.
3715 (linespec_lexer_lex_one): New function.
3716 (linespec_lexer_consume_token): New function.
3717 (linespec_lexer_peek_token): New function.
3718 (cplusplus_error): Remove unused function.
3719 (find_methods): Update comment.
3720 (find_toplevel_char): Return const.
3721 (is_objc_method_format): Remove unused function.
3722 (find_toplevel_string): New function.
3723 (is_linespec_boundary): Remove.
3724 (symbol_not_found_error): New function.
3725 (find_method_overload_end): Remove function.
3726 (unexpected_linespec_error): New function.
3727 (keep_name_info): Remove.
3728 (linespec_parse_line_offset): New function.
3729 (linespec_parse_basic): New function.
3730 (canonicalize_linespec): New function.
3731 (decode_line_internal): Remove.
3732 (create_sals_line_offset): New function adapted from
3734 (convert_linespec_to_sals): New function.
3735 (parse_linespec): New function.
3736 (linespec_parser_new): New function.
3737 (linespec_state_destructor): Change parameter type to
3738 struct linespec_state *.
3739 Add language parameter.
3740 Remove freeing of moved members.
3741 (linespec_parser_delete): New function.
3742 (decode_line_full): Use parse_linespec and linespec_parser_new.
3743 (decode_line_1): Likewise.
3744 (decode_indirect): Rename to ...
3745 (linespec_expression_to_pc): ... this and rewrite
3746 to simply find CORE_ADDR, storing this result for later
3748 (locate_first_half): Remove.
3749 (deocde_objc): Add parameter LS.
3750 Initialize new struct collect_info members.
3751 Handle minimal symbols, too.
3752 (decode_compound): Delete.
3753 (lookup_prefix_sym): Rewrite.
3754 (compare_msymbols): New function.
3755 (find_method): Rewrite.
3756 Do not call cplusplus_error.
3757 (symtabs_from_filename): Rewrite.
3758 (collect_function_symbols): Delete.
3759 (find_function_symbols): Rewrite without ARGPTR-style
3761 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3762 (decode_dollar): Adapted and renamed to ...
3763 (linespec_parse_variable): ... this.
3764 (find_linespec_symbols): New function.
3765 (decode_label): Adapted and renamed to ...
3766 (find_label_symbols): ... this.
3767 (decode_digits_list_mode): Add and use LS argument.
3768 (decode_digits_ordinary): Likewise.
3769 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3770 If in list mode, allow any symbol class. Otherwise, only
3771 permit LOC_BLOCK symbols.
3772 (minsym_found): Update comments.
3773 (search_minsyms_for_name): Do not convert the matching symbol
3774 into a SAL. Simply push the symbol and objfile into the
3776 (decode_variable): Delete. Contents adapted into
3777 find_linespec_symbols.
3779 * cp-support.c (SKIP_SPACE): Remove.
3780 (operator_tokens): Remove unused global.
3781 (cp_validate_operator): Remove.
3782 * cp-support.h (cp_validate_operator): Remove declaration.
3784 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3786 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3787 for TYPE_VPTR_FIELDNO.
3788 * valprint.c (valprint_check_validity): Make it global, move the
3789 function comment ...
3790 * value.h (valprint_check_validity): ... to this new declaration.
3792 2012-04-02 Tristan Gingold <gingold@adacore.com>
3794 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3795 the STATE32 api for i386 state.
3796 (i386_darwin_store_inferior_registers): Likewise.
3798 2012-04-02 Tristan Gingold <gingold@adacore.com>
3800 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3802 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3805 2012-04-02 Tristan Gingold <gingold@adacore.com>
3808 * darwin-nat.c (darwin_execvp): Set binary preference.
3810 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3812 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3814 2012-03-30 Tom Tromey <tromey@redhat.com>
3816 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3817 of TRY_CATCH. Fix error handling.
3818 * python/py-value.c (convert_value_from_python): Move 'old'
3819 declaration to innermost scope.
3821 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3822 Andrey Smirnov <andrew.smirnov@gmail.com>
3824 -Wshadow warning fix.
3825 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3826 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3827 Adjust code accordingly.
3829 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3831 * ada-lang.c (symbol_completion_add): Rename parameter
3832 "encoded" into "encoded_p". Ajust code and documentation
3835 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3836 Andrey Smirnov <andrew.smirnov@gmail.com>
3838 -Wshadow warning fix.
3839 * ada-lang.c (symbol_completion_add): Rename parameter
3840 "wild_match" into wild_match_p. Update code and documentation
3843 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3845 * ada-lang.c (symbol_completion_match): Rename parameter
3846 "encoded" into "encoded_p". Ajust code and documentation
3849 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3850 Andrey Smirnov <andrew.smirnov@gmail.com>
3852 -Wshadow warning fix.
3853 * ada-lang.c (symbol_completion_match): Rename parameter
3854 "wild_match" into "wild_match_p". Adjust code and function
3855 documentation accordingly.
3857 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3858 Andrey Smirnov <andrew.smirnov@gmail.com>
3860 -Wshadow warning fix.
3861 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3862 "symbol_info" into "info". Adjust code accordingly.
3863 (ada_lookup_symbol): Likewise.
3865 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3867 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3868 of this function's documentation.
3870 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3871 Andrey Smirnov <andrew.smirnov@gmail.com>
3873 -Wshadow warning fix.
3874 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3875 variable into "wild_match_p". Adjust code accordingly.
3877 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3878 Andrey Smirnov <andrew.smirnov@gmail.com>
3880 -Wshadow warning fix.
3881 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3882 parameter into "wild_match_p". Adjust code accordingly.
3883 Document this parameter in the function description.
3885 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3886 Andrey Smirnov <andrew.smirnov@gmail.com>
3888 -Wshadow warning fix.
3889 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3890 "wild_match" parameter to "wild_match_p" (-Wshadow).
3892 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3894 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3895 in function documentation.
3897 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3898 Andrey Smirnov <andrew.smirnov@gmail.com>
3900 -Wshadow warning fix.
3901 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3902 variable into wild_match_p. Adjust code accordingly.
3904 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3905 Andrey Smirnov <andrew.smirnov@gmail.com>
3907 * ada-valprint.c (ada_val_print_1): Move the code handling
3908 TYPE_CODE_ENUM inside its own lexical block. Declare
3909 variables len and val there, instead of in the function's
3910 top level block. Avoid declaring deref_val again in a way
3911 that shadows another variable of the same name declared
3912 in one of the up-level blocks. Just re-use the up-level
3915 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3917 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3918 Replace block_found argument by symbol_info. Adjust
3919 implementation accordingly. Add function documentation.
3920 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3922 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3923 * ada-exp.y (write_object_renaming): Adjust to new
3924 ada_lookup_encoded_symbol API.
3926 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3928 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3931 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3933 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3934 (v850_register_name): Add the mpu and fpu register names.
3935 (v850e_register_name): Add the mpu and fpu register names.
3936 (v850e2_register_name): New function.
3937 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3940 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3942 * NEWS: Add entry for Ada varobj support.
3944 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3946 * varobj.c (default_value_is_changeable_p): New function,
3947 extracted from varobj_value_is_changeable_p. Add declaration.
3948 (ada_value_is_changeable_p): New function, extracted from
3949 varobj_value_is_changeable_p. Add declaration.
3950 (struct language_specific): New field "value_is_changeable_p".
3951 (languages): Add entries for new field.
3952 (varobj_create): Set language before calling install_new_value.
3953 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3954 "value_is_changeable_p" language callback.
3956 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3958 * ada-varobj.h, ada-varobj.c: New files.
3959 * Makefile.in (SFILES): Add ada-varobj.c.
3960 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3961 (COMMON_OBS): Add ada-varobj.o.
3963 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3965 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3966 (struct language_specific): New field "value_has_mutated".
3967 (languages): Set field "value_has_mutated" in each entry of array.
3968 (varobj_value_has_mutated): New function.
3969 (varobj_udpdate): Add handling of type mutation.
3970 (value_of_root): Add handling of type mutation.
3971 (ada_value_has_mutated): New function.
3973 2012-03-28 Pedro Alves <palves@redhat.com>
3975 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3976 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3978 2012-03-28 Tom Tromey <tromey@redhat.com>
3980 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3981 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3984 2012-03-28 Tom Tromey <tromey@redhat.com>
3986 * .dir-locals.el: New file.
3988 2012-03-28 Pedro Alves <palves@redhat.com>
3990 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3992 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3994 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3997 2012-03-27 Pedro Alves <palves@redhat.com>
3999 Eliminate struct ui_stream.
4001 * ui-out.h (struct ui_stream): Delete.
4002 (ui_out_field_stream): Adjust prototype.
4003 (ui_out_stream_new, ui_out_stream_delete)
4004 (make_cleanup_ui_out_stream_delete): Delete declarations.
4005 * ui-out.c (ui_out_field_stream): Change prototype to take a
4006 ui_file instead of a ui_stream. Adjust.
4007 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4008 (make_cleanup_ui_out_stream_delete): Delete.
4009 * breakpoint.c (print_breakpoint_location)
4010 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4011 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4012 * disasm.c (dump_insns): Ditto.
4013 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4015 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4016 ui_stream/ui_out_stream_new.
4017 * infcmd.c (print_return_value): Ditto.
4018 * osdata.c (info_osdata_command): Don't allocate a local
4020 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4021 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4022 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4023 allocate a local ui_stream.
4024 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4025 instead of ui_stream/ui_out_stream_new.
4026 (list_args_or_locals): Don't allocate a local ui_stream.
4027 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4028 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4029 ui_stream/ui_out_stream_new.
4030 * cli/cli-setshow.c (do_setshow_command): Ditto.
4032 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
4034 * arm-linux-tdep.c (arm_linux_init_abi): Call
4035 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4036 * arm-tdep.c (arm_process_record): New function.
4037 (deallocate_reg_mem): New function.
4038 (decode_insn): New function.
4039 (thumb_record_branch): New function.
4040 (thumb_record_ldm_stm_swi(): New function.
4041 (thumb_record_misc): New function.
4042 (thumb_record_ld_st_stack): New function.
4043 (thumb_record_ld_st_imm_offset): New function.
4044 (thumb_record_ld_st_reg_offset(): New function.
4045 (thumb_record_add_sub_cmp_mov): New function.
4046 (thumb_record_shift_add_sub): New function.
4047 (arm_record_coproc_data_proc): New function.
4048 (arm_record_coproc): New function.
4049 (arm_record_b_bl): New function.
4050 (arm_record_ld_st_multiple): New function.
4051 (arm_record_ld_st_reg_offset): New function.
4052 (arm_record_ld_st_imm_offset): New function.
4053 (arm_record_data_proc_imm): New function.
4054 (arm_record_data_proc_misc_ld_str): New function.
4055 (arm_record_extension_space): New function.
4056 (arm_record_strx): New function.
4057 (sbo_sbz): New function.
4058 (struct insn_decode_record): New structure for arm insn record.
4059 (REG_ALLOC): New macro for reg allocations.
4060 (MEM_ALLOC): New macro for memory allocations.
4061 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4063 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4065 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4066 (store_register): Likewise.
4068 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
4070 * MAINTAINERS (Write After Approval): Add myself to the list.
4072 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4074 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4075 Describe also the option "auto".
4077 2012-03-22 Richard Henderson <rth@redhat.com>
4079 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4080 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4082 2012-03-22 Richard Henderson <rth@redhat.com>
4084 * jit.c (jit_read_code_entry): Compute alignment and offset of
4085 int64_t member before computing entry_size.
4087 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4089 Python scripting: Add new method Value.referenced_value to
4090 gdb.Value which can dereference pointer as well as reference
4092 * NEWS: Add entry under 'Python scripting' about the new method
4093 Value.referenced_value on gdb.Value objects.
4094 * python/py-value.c (valpy_referenced_value): New function
4095 defining a new method on gdb.Value objects which can dereference
4096 pointer and reference values.
4098 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4100 * MAINTAINERS (Write After Approval): Add myself to the list.
4102 2012-03-21 Kevin Buettner <kevinb@redhat.com>
4104 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4105 in addition to "main".
4107 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4109 * expression.h (op_name): Add declaration.
4110 * expprint.c (op_name): Remove declaration. Make non-static.
4111 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4113 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4115 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4117 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4118 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4119 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4120 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4121 (linux_nat_get_siginfo): Likewise.
4122 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4123 (linux_nat_get_siginfo): Likewise.
4124 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4125 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4126 * procfs.c (gdb_siginfo_t): Likewise.
4128 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4130 * .gitignore: Ignore more files.
4132 2012-03-20 Pedro Alves <palves@redhat.com>
4134 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4137 2012-03-20 Yao Qi <yao@codesourcery.com>
4139 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4142 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4144 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4145 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4146 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4148 * dwarf2expr.h (cu_offset, sect_offset): New types.
4149 (struct dwarf_expr_context_funcs) <dwarf_call>
4150 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4152 (struct dwarf_expr_context) <len>: Improve the comment.
4153 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4154 cu_offset and sect_offset.
4155 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4156 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4157 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4158 * dwarf2loc.h: Include dwarf2expr.h.
4159 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4161 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4162 Improve the comment.
4163 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4164 (struct signatured_type, struct line_header, struct partial_die_info)
4165 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4166 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4167 (get_die_type_at_offset, create_cus_from_index)
4168 (create_signatured_type_table_from_index, dw2_get_file_names)
4169 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4170 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4171 (create_debug_types_hash_table, process_psymtab_comp_unit)
4172 (load_partial_comp_unit, create_all_comp_units)
4173 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4174 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4175 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4176 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4177 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4178 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4179 (find_partial_die, read_attribute_value, lookup_die_type)
4180 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4181 (is_ref_attr): New function comment.
4182 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4183 Use cu_offset and sect_offset.
4184 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4185 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4186 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4187 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4188 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4189 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4190 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4193 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4196 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4197 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4199 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4201 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4203 * NEWS: Describe new options --init-command=FILE, -ix and
4204 --init-eval-command=COMMAND, -iex.
4205 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4206 CMDARG_INIT_COMMAND.
4207 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4208 "init-command", "init-eval-command", "ix" and "iex" to the variable
4209 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4210 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4211 (print_gdb_help): Describe --init-command=FILE, -ix and
4212 --init-eval-command=COMMAND, -iex.
4214 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4217 * main.c (struct cmdarg): Move it here from main. Add more comments.
4218 (cmdarg_s, VEC (cmdarg_s)): New.
4219 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4220 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4221 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4222 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4225 2012-03-19 Tom Tromey <tromey@redhat.com>
4227 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4229 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4232 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4235 2012-03-16 Chris January <chris.january@allinea.com>
4237 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4240 2012-03-16 Chris January <chris.january@allinea.com>
4242 * source.c (add_path): Use memmove instead of strcpy because the
4245 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4247 * value.h (set_value_parent): Add declaration.
4248 * value.c (set_value_parent): New function.
4249 (value_address): If VALUE->PARENT is not NULL, then use it as
4250 the base address instead of VALUE->LOCATION.address.
4251 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4252 the same as OBJ's address. Adjust V's offset accordingly.
4255 2012-03-16 Gary Benson <gbenson@redhat.com>
4257 PR breakpoints/10738
4258 * dwarf2read.c (use_deprecated_index_sections): New global.
4259 (struct partial_die_info): New member may_be_inlined.
4260 (read_partial_die): Set may_be_inlined where appropriate.
4261 (add_partial_subprogram): Add partial symbols for partial
4262 DIEs that may be inlined.
4263 (new_symbol_full): Add inlined subroutines to the current
4265 (write_psymtabs_to_index): Bump version number.
4266 (dwarf2_read_index): Read only version 6 indices unless
4267 use_deprecated_index_sections is set.
4268 * linespec.c (symbol_and_data_callback): New structure.
4269 (iterate_inline_only): New function.
4270 (iterate_over_all_matching_symtabs): New argument
4271 "include_inline". If nonzero, also call the callback for
4272 symbols representing inlined subroutines.
4273 (lookup_prefix_sym): Pass extra argument to the above.
4274 (find_function_symbols): Likewise.
4275 (add_matching_symbols_to_info): Likewise.
4276 * NEWS: Mention that GDB can now set breakpoints on inlined
4279 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4281 * p-typeprint.c (pascal_type_print_method_args):
4282 Fix display of parameter of methods.
4284 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4286 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4287 Add missing prototype.
4289 2012-03-16 Yao Qi <yao@codesourcery.com>
4290 Jan Kratochvil <jan.kratochvil@redhat.com>
4292 Fix false compilation warning.
4293 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4295 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4296 Pedro Alves <pedro@codesourcery.com>
4298 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4299 (arm_register_g_packet_guesses): New function.
4300 (arm_gdbarch_init): Don't force a target description with
4301 registers when the executable is detected as M-profile. Instead
4302 set gdbarch->tdep->is_m. Register `g' packet guesses.
4303 (_initialize_arm_tdep): Initialize the new target description.
4304 * features/arm-with-m-fpa-layout.xml: New description.
4305 * features/arm-with-m-fpa-layout.c: New, generated.
4307 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4309 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4310 Update function description.
4311 (insert_bp_location): Do not wipe bl->target_info out.
4312 * mem-break.c: #include "gdb_string.h".
4313 (default_memory_insert_breakpoint): Do not call target_read_memory
4314 with a pointer to the breakpoint's shadow_contents buffer. Use
4315 a local buffer instead.
4316 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4318 2012-03-15 Tom Tromey <tromey@redhat.com>
4320 * NEWS: Mention "info vtbl", not "info vtable".
4321 * cp-support.c (info_vtbl_command): Fix comment.
4322 (_initialize_cp_support): Fix text.
4324 2012-03-15 Tom Tromey <tromey@redhat.com>
4326 * cp-valprint.c (cp_print_value_fields): Use
4327 print_function_pointer_address for vtable slot.
4329 2012-03-15 Tom Tromey <tromey@redhat.com>
4331 * gnu-v3-abi.c (struct value_and_voffset): New.
4332 (hash_value_and_voffset, eq_value_and_voffset)
4333 (compare_value_and_voffset, compute_vtable_size)
4334 (print_one_vtable, gnuv3_print_vtable): New functions.
4335 (init_gnuv3_ops): Initialize 'print_vtable' field.
4336 * cp-support.c (info_vtbl_command): New function.
4337 (_initialize_cp_support): Add "info vtbl".
4338 * cp-abi.h (cplus_print_vtable): Declare.
4339 (struct cp_abi_ops) <print_vtable>: New field.
4340 * cp-abi.c (cplus_print_vtable): New function.
4343 2012-03-15 Tom Tromey <tromey@redhat.com>
4345 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4346 iterate_over_symbols.
4348 2012-03-14 Doug Evans <dje@google.com>
4350 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4351 DW_OP_GNU_parameter_ref.
4353 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4355 Fix double prompt of 'interpreter-exec mi'.
4356 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4357 (mi_interpreter_resume): use it.
4358 (mi_execute_command_input_handler): New function.
4359 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4360 mi_execute_command_input_handler.
4362 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4364 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4366 (darwin_debug_port_info): Make static.
4367 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4368 * machoread.c (_initialize_machoread): Add prototype.
4369 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4370 (i386_darwin_set_control, i386_darwin_get_control)
4371 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4372 i386_darwin_get_status, i386_darwin_get_control):
4373 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4375 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4377 * ax-gdb.c (gen_usual_unary): Remove special handling of
4378 enum and bool types.
4380 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4382 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4384 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4386 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4388 2012-03-13 Chris January <chris.january@allinea.com>
4390 * aix-thread.c (fill_sprs): Store the floating point registers
4391 at the correct offsets into vals.
4393 2012-03-13 Doug Evans <dje@google.com>
4395 * NEWS: Mention symbol-reloading has been deleted.
4396 * symfile.c (symbol_reloading): Delete.
4397 (show_symbol_reloading): Delete.
4398 (_initialize_symfile): Delete set/show symbol-reloading.
4400 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4401 read_in_chain until we have successfully read it in.
4402 (load_full_comp_unit): Ditto.
4403 (read_signatured_type): Add comment.
4405 2012-03-13 Chris January <chris.january@allinea.com>
4407 * stabsread.c (fix_common_block): Change type of valu argument
4410 2012-03-13 Chris January <chris.january@allinea.com>
4412 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4415 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4417 * common/linux-procfs.c (linux_proc_get_int): New, from
4418 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4420 (linux_proc_get_tgid): Only call linux_proc_get_int.
4421 (linux_proc_get_tracerpid): New.
4422 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4423 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4424 linux_proc_pid_has_state.
4425 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4426 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4427 (linux_ptrace_attach_warnings): New.
4428 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4430 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4431 (linux_nat_attach): New variables ex, buffer, message and message_s.
4432 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4434 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4436 * Makefile.in (linux-ptrace.o): New.
4437 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4439 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4440 * common/linux-ptrace.c: New file.
4441 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4442 * config/arm/linux.mh: Likewise.
4443 * config/i386/linux.mh: Likewise.
4444 * config/i386/linux64.mh: Likewise.
4445 * config/ia64/linux.mh: Likewise.
4446 * config/m32r/linux.mh: Likewise.
4447 * config/m68k/linux.mh: Likewise.
4448 * config/mips/linux.mh: Likewise.
4449 * config/pa/linux.mh: Likewise.
4450 * config/powerpc/linux.mh: Likewise.
4451 * config/powerpc/ppc64-linux.mh: Likewise.
4452 * config/powerpc/spu-linux.mh: Likewise.
4453 * config/s390/s390.mh: Likewise.
4454 * config/sparc/linux.mh: Likewise.
4455 * config/sparc/linux64.mh: Likewise.
4456 * config/xtensa/linux.mh: Likewise.
4457 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4458 common/linux-procfs.c.
4459 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4461 2012-03-13 Hui Zhu <teawater@gmail.com>
4462 Pedro Alves <palves@redhat.com>
4464 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4465 CREATE_BREAKPOINT_FLAGS_INSERTED.
4466 (create_breakpoint_sal, create_breakpoints_sal)
4467 (base_breakpoint_create_breakpoints_sal)
4468 (tracepoint_create_breakpoints_sal)
4469 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4471 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4472 (ftrace_command, strace_command): Adjust.
4473 (create_tracepoint_from_upload): Pass
4474 CREATE_BREAKPOINT_FLAGS_INSERTED.
4475 * breakpoint.h (enum breakpoint_create_flags): New.
4476 (create_breakpoint): New flags parameter.
4477 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4478 * python/py-breakpoint.c (bppy_init): Adjust.
4479 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4480 * spu-tdep.c (spu_catch_start): Adjust.
4482 2012-03-13 Pedro Alves <palves@redhat.com>
4483 Hui Zhu <teawater@gmail.com>
4484 Yao Qi <yao@codesourcery.com>
4486 * remote.c (struct remote_state): New field `starting_up'.
4487 (remote_start_remote): Set and clear it.
4488 (remote_can_download_tracepoint): If starting up, return false.
4490 2012-03-13 Yao Qi <yao@codesourcery.com>
4492 * inferior.h (struct inferior): Remove fields any_syscall_count,
4493 syscalls_counts and total_syscalls_count. Move them to new
4494 struct catch_syscall_inferior_data in breakpoint.c.
4495 * breakpoint.c: Call DEF_VEC_I(int).
4496 (struct catch_syscall_inferior_data): New.
4497 (get_catch_syscall_inferior_data): New.
4498 (catch_syscall_inferior_data_cleanup): New.
4499 (insert_catch_syscall): Update to access data in
4500 struct catch_syscall_inferior_data.
4501 (insert_catch_syscall): Likewise.
4502 (remove_catch_syscall): Likewise.
4503 (remove_catch_syscall): Likewise.
4504 (is_syscall_catchpoint_enabled): Likewise.
4505 (add_catch_command): Likewise.
4506 (_initialize_breakpoint): Register cleanup.
4507 * breakpoint.h: Removed DEF_VEC_I(int).
4508 * dwarf2loc.c: Call DEF_VEC_I(int).
4509 * mi/mi-main.c: Likewise.
4511 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4513 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4515 2012-03-12 Chris January <chris.january@allinea.com>
4517 * aix-thread.c (_initialize_aix_thread): Add prototype.
4518 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4519 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4521 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4523 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4524 include of "amd64-nat.h".
4526 2012-03-12 Tom Tromey <tromey@redhat.com>
4528 * buildsym.c (record_pending_block): Now static.
4529 * buildsym.h: (record_pending_block): Remove.
4531 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4533 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4535 2012-03-09 Tom Tromey <tromey@redhat.com>
4537 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4538 producer_is_gxx_lt_4_6>: New fields.
4539 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4541 2012-03-09 Tom Tromey <tromey@redhat.com>
4543 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4545 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4547 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4550 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4552 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4554 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4556 Fix -Wmissing-prototypes build.
4557 * arm-linux-nat.c (get_thread_id): Make it static.
4558 * xtensa-linux-nat.c (get_thread_id): Likewise.
4560 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4562 * server.c (process_point_options): If a conditional expression
4563 is found, only print a message if remote_debug is nonzero.
4565 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4567 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4568 of internal error for unknown/unsupported types.
4570 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4572 Fix CU relative vs. absolute DIE offsets.
4573 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4574 offset to offset_in_cu.
4575 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4577 (dwarf2_fetch_die_location_block): Rename parameter offset to
4578 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4580 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4582 * libunwind-frame.c: Rename to ...
4583 * ia64-libunwind-tdep.c: ... here.
4584 * libunwind-frame.h: Rename to ...
4585 * ia64-libunwind-tdep.h: ... here.
4586 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4587 ia64-libunwind-tdep.h.
4588 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4589 * README (--with-libunwind): Rename to ...
4590 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4591 * config.in: Regenerate.
4592 * configure: Regenerate.
4593 * configure.ac: New option --with-libunwind-ia64, make the
4594 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4595 Remove AC_DEFINE for HAVE_LIBUNWIND.
4596 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4597 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4598 Rename libunwind-frame in the general comment.
4599 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4600 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4601 Move forward declarations inside #ifndef. Rename libunwind-frame in
4602 the general comment.
4603 * ia64-tdep.c: Rename libunwind-frame.h #include to
4604 ia64-libunwind-tdep.h.
4605 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4606 (ia64_libunwind_descr): Rename libunwind-frame to
4607 ia64-libunwind-tdep in these function comments.
4608 * ia64-tdep.h: Rename libunwind-frame.h #include to
4609 ia64-libunwind-tdep.h.
4610 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4611 ia64-libunwind-tdep in that data comment.
4613 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4615 * libunwind-frame.h (struct frame_unwind): New declaration.
4617 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4619 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4620 "set breakpoint condition-evaluation" command.
4622 2012-03-08 Tristan Gingold <gingold@adacore.com>
4624 * sparc-stub.c: Move to stubs/
4625 * sh-stub.c: Likewise.
4626 * m68k-stub.c: Likewise.
4627 * m32r-stub.c: Likewise.
4628 * i386-stub.c: Likewise.
4630 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4632 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4633 linux_get_siginfo_type.
4635 * m68klinux-nat.c: Include "gdb_proc_service.h".
4636 (PTRACE_GET_THREAD_AREA): Define.
4637 (ps_get_thread_area): New function.
4639 2012-03-08 Yao Qi <yao@codesourcery.com>
4641 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4643 (remote_query_attached): Likewise.
4644 (remote_static_tracepoint_marker_at): Likewise.
4645 (remote_set_permissions): Likewise.
4646 (remote_detach_1, extended_remote_attach_1): Likewise.
4647 (send_g_packet, remote_vkill): Likewise.
4648 (extended_remote_disable_randomization): Likewise.
4649 (remote_add_target_side_condition): Likewise.
4650 (remote_insert_breakpoint): Likewise.
4651 (remote_remove_breakpoint): Likewise.
4652 (remote_insert_watchpoint): Likewise.
4653 (remote_remove_watchpoint): Likewise.
4654 (remote_insert_hw_breakpoint): Likewise.
4655 (remote_insert_hw_breakpoint): Likewise.
4656 (remote_remove_hw_breakpoint): Likewise.
4657 (remote_download_command_source): Likewise.
4658 (remote_download_tracepoint): Likewise.
4659 (remote_download_trace_state_variable): Likewise.
4660 (remote_disable_tracepoint): Likewise.
4661 (remote_trace_set_readonly_regions): Likewise.
4662 (remote_get_tracepoint_status): Likewise.
4663 (remote_trace_find): Likewise.
4664 (remote_get_trace_state_variable_value): Likewise.
4665 (remote_set_disconnected_tracing): Likewise.
4666 (remote_set_circular_trace_buffer): Likewise.
4667 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4668 (remote_use_agent): Likewise.
4669 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4672 2012-03-07 Pedro Alves <palves@redhat.com>
4674 * NEWS: Mention QProgramSignals.
4675 * inferior.h (update_signals_program_target): Declare.
4676 * infrun.c: (update_signals_program_target): New.
4677 (handle_command): Update the target of the new program signals
4679 * remote.c (PACKET_QProgramSignals): New enum.
4680 (last_program_signals_packet): New global.
4681 (remote_program_signals): New.
4682 (remote_start_remote): Update the target with the program signals
4684 (remote_protocol_features): Add entry for QPassSignals.
4685 (remote_open_1): Free anc clear last_program_signals_packet.
4686 (init_remote_ops): Install remote_program_signals.
4687 * target.c (update_current_target): Adjust.
4688 (target_program_signals): New.
4689 * target.h (struct target_ops) <to_program_signals>: New field.
4690 (target_program_signals): Declare.
4692 2012-03-07 Pedro Alves <palves@redhat.com>
4694 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4697 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4699 * m68klinux-nat.c (getregs_supplies): Make static.
4700 (getfpregs_supplies): Likewise.
4701 (have_ptrace_getregs): Likewise.
4703 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4705 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4706 in call to get_die_type_at_offset.
4708 2012-03-06 Stan Shebs <stan@codesourcery.com>
4710 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4711 * mi/mi-cmd-disas.c: Ditto.
4712 * mi/mi-cmd-env.c: Ditto.
4713 * mi/mi-cmd-file.c: Ditto.
4714 * mi/mi-cmd-stack.c: Ditto.
4715 * mi/mi-cmd-target.c: Ditto.
4716 * mi/mi-cmd-var.c: Ditto.
4717 * mi/mi-cmds.c: Ditto.
4718 * mi/mi-cmds.h: Ditto.
4719 * mi/mi-console.c: Ditto.
4720 * mi/mi-getopt.c: Ditto.
4721 * mi/mi-getopt.h: Ditto.
4722 * mi/mi-interp.c: Ditto.
4723 * mi/mi-main.c: Ditto.
4724 * mi/mi-out.c: Ditto.
4725 * mi/mi-parse.c: Ditto.
4726 * mi/mi-parse.h: Ditto.
4727 * mi/mi-symbol-cmds.c: Ditto.
4729 * mi/mi-getopt.h: Move mi_opt struct up.
4730 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4732 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4734 2012-03-06 Tom Tromey <tromey@redhat.com>
4736 * proc-service.c (ps_pglobal_lookup): Set the current program
4739 2012-03-06 Pedro Alves <palves@redhat.com>
4741 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4743 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4745 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4747 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4750 * common/linux-osdata.c (linux_common_core_of_thread): New function
4752 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4753 call by linux_common_core_of_thread.
4754 (linux_nat_core_of_thread_1): Remove.
4755 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4756 * linux-thread-db.c: Include linux-osdata.h.
4757 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4758 linux_common_core_of_thread.
4760 2012-03-05 Tom Tromey <tromey@redhat.com>
4762 * value.c (value_primitive_field): Don't fetch contents for
4765 2012-03-05 Tom Tromey <tromey@redhat.com>
4767 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4769 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4771 * s390-nat.c: Include "gregset.h".
4773 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4775 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4776 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4777 (libunwind_load): New variable so_error, use it for dlerror. Try to
4778 load also LIBUNWIND_SO_7.
4780 2012-03-05 Pedro Alves <palves@redhat.com>
4782 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4783 is not NULL, and remove resulting dead code.
4785 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4787 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4788 prologue to sh_analyze_prologue.
4789 (sh_analyze_prologue): Make better use of such an upper limit, and
4790 generally be more cautious about accessing memory.
4792 2012-03-05 Tom Tromey <tromey@redhat.com>
4794 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4795 _initialize_ia64_hpux_tdep.
4797 2012-03-05 Pedro Alves <palves@redhat.com>
4801 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4802 the register state is clear, supply explicit zero, instead of
4803 marking the register unavailable.
4805 2012-03-05 Tristan Gingold <gingold@adacore.com>
4807 * NEWS: Mention OpenVMS ia64 new target.
4809 2012-03-05 Tristan Gingold <gingold@adacore.com>
4811 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4812 (ia64_unw_accessors, ia64_unw_rse_accessors)
4813 (ia64_libunwind_descr): Declare.
4814 * ia64-vms-tdep.c: New file.
4815 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4816 (ia64_libunwind_descr): Make them public.
4817 * configure.tgt: Add ia64-*-*vms*.
4818 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4819 (ALLDEPFILES): Add ia64-vms-tdep.c
4821 2012-03-05 Tristan Gingold <gingold@adacore.com>
4823 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4824 * remote.c (PACKET_qXfer_uib): New enum value.
4825 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4826 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4827 (_initialize_remote): Call add_packet_config_cmd for
4830 2012-03-05 Tristan Gingold <gingold@adacore.com>
4832 * osabi.c (gdb_osabi_names): Add OpenVMS.
4833 (generic_elf_osabi_sniffer): Likewise.
4834 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4836 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4838 Removed unused code.
4839 * libunwind-frame.c (libunwind_frame_unwind)
4840 (libunwind_frame_base_address): Remove.
4841 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4843 2012-03-04 Yao Qi <yao@codesourcery.com>
4845 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4846 remove trailing new line.
4847 (agent_run_command, agent_run_command): Add _ markup.
4848 (agent_capability_check): Likewise.
4850 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4852 * breakpoint.c (set_condition_evaluation_mode): Set
4853 CONDITION_EVALUATION_MODE unconditionally.
4855 2012-03-03 Yao Qi <yao@codesourcery.com>
4857 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4858 * common/agent.h: Update declaration.
4859 * inf-child.c (inf_child_use_agent): New.
4860 (inf_child_can_use_agent): New.
4861 (inf_child_target): Initialize fields `to_use_agent'
4862 and `to_can_use_agent'.
4863 * agent.c (agent_new_objfile): New.
4864 (_initialize_agent): Add agent_new_objfile to new_objfile
4867 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4869 (linux_target_install_ops): Initialize field
4870 `to_static_tracepoint_markers_by_strid'.
4871 * remote.c (free_current_marker): Move it to ...
4872 * tracepoint.c (free_current_marker): ... here. New.
4873 (cleanup_target_stop): New.
4874 * tracepoint.h: Declare free_current_marker.
4875 * NEWS: Add one entry about `info static-tracepoint-marker'.
4877 2012-03-03 Yao Qi <yao@codesourcery.com>
4879 * common/agent.c (agent_loaded_p): New.
4880 (agent_look_up_symbols): New global.
4881 * common/agent.h: Declare agent_loaded_p.
4883 2012-03-03 Yao Qi <yao@codesourcery.com>
4885 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4886 (agent_capability_check, agent_capability_invalidate): New.
4887 (symbol_list): New array element.
4888 * common/agent.h (enum agent_capa): New.
4889 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4891 2012-03-03 Yao Qi <yao@codesourcery.com>
4893 * target.h (struct target_ops) <to_use_agent>: New field.
4894 (struct target_ops) <to_can_use_agent>: New field.
4895 (target_use_agent, target_can_use_agent): New macro.
4896 * target.c (update_current_target): Update.
4897 * remote.c: New enum `PACKET_QAgent'.
4898 (remote_protocol_features): Add a new element.
4899 (remote_use_agent, remote_can_use_agent): New.
4900 (init_remote_ops): Initialize field `can_use_agent' with
4901 remote_can_use_agent. Intiailize field `use_agent' with
4903 * common/agent.c (use_agent): New global.
4904 * common/agent.h: Declare it.
4905 * tracepoint.c (info_static_tracepoint_markers_command): Add
4907 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4908 (COMMON_OBS): Add common/agent.o and agent.o
4909 (common-agent.o): New rule.
4912 2012-03-03 Yao Qi <yao@codesourcery.com>
4914 * common/agent.c: New.
4915 * common/agent.h: New.
4916 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4918 * configure, configh.in: Regenerated.
4920 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4922 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4923 unless it exists for this architecture.
4925 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4927 * language.h (struct language_defn): New "method" la_read_var_value.
4928 * findvar.c: #include "language.h".
4929 (default_read_var_value): Renames read_var_value. Rewrite
4930 function description.
4931 (read_var_value): New function.
4932 * value.h (default_read_var_value): Add prototype.
4933 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4935 (ada_language_defn): Add entry for la_read_var_value.
4936 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4937 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4938 language_defn structures to add entry for new la_read_var_value
4941 2012-03-02 Tom Tromey <tromey@redhat.com>
4942 Pedro Alves <palves@redhat.com>
4944 PR breakpoints/13776:
4945 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4947 (delete_longjmp_breakpoint_at_next_stop): New.
4948 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4949 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4950 before deleting the inferior. Add comments.
4951 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4952 breakpoints immediately, but only on next stop. Move that code
4953 next to where we mark other breakpoints for deletion.
4955 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4957 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4959 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4962 2012-03-02 Pedro Alves <palves@redhat.com>
4964 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4966 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4968 Fix -Wmissing-prototypes build.
4969 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4970 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4971 (gdbsim_has_memory): Likewise.
4973 2012-03-02 Yao Qi <yao@codesourcery.com>
4975 Fix -Wmissing-prototypes build.
4976 * charset.c (phony_iconv_open): Make static.
4977 (phony_iconv_close, phony_iconv): Likewise.
4978 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4979 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4981 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4982 * ser-mingw.c (create_select_thread): Make static.
4983 * windows-termcap.c (tgetent): New prototype.
4984 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4986 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4988 Fix -Wmissing-prototypes build.
4989 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4990 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4991 (_initialize_loadable): New prototypes.
4993 2012-03-02 Doug Evans <dje@google.com>
4995 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4996 abbrev table, read_comp_unit will do it.
4998 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5000 Fix -Wmissing-prototypes build.
5001 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5002 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5003 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5004 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5005 (_initialize_arm_symbian_tdep): New prototype.
5006 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5007 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5008 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5010 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5011 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5013 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5014 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5015 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5017 * moxie-tdep.c (moxie_process_record): Likewise.
5018 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5019 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5020 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5021 (_initialize_rl78_tdep): New prototype.
5022 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5023 (_initialize_rx_tdep): New prototype.
5024 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5025 (_initialize_darwin_solib): New prototype.
5026 * solib-spu.c: Include solib-spu.h.
5027 (_initialize_spu_solib): New prototype.
5028 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5029 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5030 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5031 (tic6x_software_single_step): Make it static.
5032 (_initialize_tic6x_tdep): New prototype.
5034 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5036 Fix -Wmissing-prototypes build.
5037 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5038 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5040 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5042 Fix -Wmissing-prototypes build.
5043 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5044 (frv_have_stopped_data_address): Remove.
5046 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5048 Fix -Wmissing-prototypes build.
5049 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5050 * sh-tdep.c: Include sh64-tdep.h.
5051 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5052 * sh64-tdep.c: Include sh64-tdep.h.
5053 * sh64-tdep.h: New file.
5055 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5057 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5059 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5061 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5062 sp_regnum once the gdbarch_init_osabi hook has been called.
5064 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5066 * mips-tdep.c (mips32_bc1_pc): New function.
5067 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5068 BPOSGE32 and BPOSGE64 instructions.
5069 (deal_with_atomic_sequence): Likewise.
5070 (mips32_instruction_has_delay_slot): Likewise.
5072 2012-03-01 Maciej W. Rozycki <macro@mips.com>
5073 Chris Dearman <chris@mips.com>
5074 Maciej W. Rozycki <macro@codesourcery.com>
5075 Joseph Myers <joseph@codesourcery.com>
5077 * features/mips-dsp.xml: New file.
5078 * features/mips64-dsp.xml: New file.
5079 * features/mips-dsp-linux.xml: New file.
5080 * features/mips64-dsp-linux.xml: New file.
5081 * features/Makefile (WHICH): Add mips-dsp-linux and
5083 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5084 * features/mips-dsp-linux.c: New file.
5085 * features/mips64-dsp-linux.c: New file.
5086 * regformats/mips-dsp-linux.dat: New file.
5087 * regformats/mips64-dsp-linux.dat: New file.
5088 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5090 (mips64_linux_register_addr): Likewise.
5091 (mips64_linux_regsets_fetch_registers): Likewise.
5092 (mips64_linux_regsets_store_registers): Likewise.
5093 (mips64_linux_fetch_registers): Update call to
5094 mips64_linux_regsets_fetch_registers.
5095 (mips64_linux_store_registers): Update call to
5096 mips64_linux_regsets_store_registers.
5097 (mips_linux_read_description): Probe for DSP registers.
5098 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5099 and initialize_tdesc_mips64_dsp_linux.
5100 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5101 Remove padding of no longer used embedded register slots.
5102 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5103 (MIPS_RESTART_REGNUM): Redefine enum value.
5104 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5106 (mips_tx39_reg_names): Likewise.
5107 (mips_linux_reg_names): New array of register names for Linux
5109 (mips_register_name): Check for a null pointer in
5110 mips_processor_reg_names and return an empty string.
5111 (mips_register_type): Exclude embedded registers for the IRIX
5113 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5114 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5116 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5117 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5118 (mips_gdbarch_init): Likewise. Initialize internal register
5119 indices for the Linux ABI. Use dynamic numbers to refer to
5120 registers, as applicable, while parsing the target description.
5121 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5123 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5125 * frame.h (read_frame_register_unsigned): Fix typo in function
5128 2012-03-01 Pedro Alves <palves@redhat.com>
5130 * jit-reader.in [!__cplusplus]
5131 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5133 2012-03-01 Pedro Alves <palves@redhat.com>
5135 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5136 * configure: Regenerate.
5138 2012-03-01 Pedro Alves <palves@redhat.com>
5140 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5141 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5142 (ftrace_command, strace_command): Make static.
5143 * d-lang.c (_initialize_d_language): Declare.
5144 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5145 * dwarf2loc.c (_initialize_dwarf2loc):
5146 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5147 * exec.c (exec_get_section_table): Make static.
5148 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5149 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5150 * inferior.c (remove_inferior_command, add_inferior_command)
5151 (clone_inferior_command): Make static.
5152 * linux-nat.c (linux_nat_thread_address_space)
5153 (linux_nat_core_of_thread): Make static.
5154 * linux-tdep.c (_initialize_linux_tdep): Declare.
5155 * objc-lang.c (_initialize_objc_lang): Declare.
5156 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5158 (_initialize_opencl_language): Declare.
5159 * record.c (_initialize_record): Declare.
5160 * remote.c (demand_private_info, remote_get_tib_address)
5161 (remote_supports_cond_tracepoints)
5162 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5164 * skip.c (_initialize_step_skip): Declare.
5165 * symtab.c (skip_prologue_using_lineinfo): Make static.
5166 * tracepoint.c (delete_trace_state_variable)
5167 (trace_variable_command, delete_trace_variable_command)
5168 (get_uploaded_tsv, find_matching_tracepoint_location)
5169 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5171 * value.c (pack_unsigned_long): Make static.
5172 * varobj.c (varobj_ensure_python_env): Make static.
5173 * windows-tdep.c (_initialize_windows_tdep): Declare.
5174 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5176 2012-03-01 Pedro Alves <palves@redhat.com>
5178 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5180 (linux_init_abi): Install it as has_shared_address_space gdbarch
5183 2012-03-01 Pedro Alves <palves@redhat.com>
5185 * observer.c (observer_test_first_notification_function)
5186 (observer_test_second_notification_function)
5187 (observer_test_third_notification_function): Add declarations.
5189 2012-03-01 Pedro Alves <palves@redhat.com>
5191 * common/signals.c (default_target_signal_to_host)
5192 (default_target_signal_from_host): Move ...
5193 * arch-utils.c: ... here.
5194 * arch-utils.h (default_target_signal_to_host)
5195 (default_target_signal_from_host): Declare.
5197 * common/signals.c (target_signal_from_command): Move ...
5198 * infrun.c: ... here.
5199 * inferior.h (target_signal_from_command): Declare.
5200 * target.h (target_signal_from_command)
5201 (default_target_signal_from_host, default_target_signal_to_host):
5202 Delete declarations.
5204 * common/signals.c (_initialize_signals): Delete.
5206 2012-03-01 Pedro Alves <palves@redhat.com>
5208 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5209 both __cplusplus and !__cplusplus.
5211 2012-03-01 Pedro Alves <palves@redhat.com>
5213 * psymtab.c (find_and_open_source): Delete declaration.
5214 * source.c (find_and_open_source): Move comment ...
5215 * source.h (find_and_open_source): ... to this new declaration.
5217 2012-03-01 Pedro Alves <palves@redhat.com>
5219 * inline-frame.c: Include inline-frame.h.
5221 2012-03-01 Pedro Alves <palves@redhat.com>
5223 * tui/tui-data.c (set_gen_win_origin): Delete.
5224 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5225 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5227 2012-03-01 Pedro Alves <palves@redhat.com>
5229 * remote.c (encode_actions): Delete declaration.
5230 * tracepoint.c (encode_actions): Make extern.
5231 * tracepoint.h (encode_actions): Declare.
5233 2012-03-01 Pedro Alves <palves@redhat.com>
5235 * python/py-breakpoint.c: Include python.h.
5236 * python/py-continueevent.c (create_continue_event_object): Make
5238 * python/py-lazy-string.c (stpy_get_type): Make static.
5239 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5241 * python/py-utils.c (unicode_to_target_python_string): Make
5243 * python/py-value.c: Include python.h.
5245 2012-03-01 Pedro Alves <palves@redhat.com>
5247 * inferior.c (delete_threads_of_inferior): Delete.
5249 2012-03-01 Pedro Alves <palves@redhat.com>
5251 Import fallback definitions from glibc.
5253 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5254 ps_prochandle): Forward declare.
5255 (ps_err_e): Use glibc's comments.
5256 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5257 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5258 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5259 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5260 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5261 (struct ps_prochandle): Adjust comment.
5263 2012-03-01 Pedro Alves <palves@redhat.com>
5265 * ada-lang.c (ada_modulus_from_name): Delete.
5266 * ada-lex.l (lexer_init): Make static.
5268 2012-03-01 Pedro Alves <palves@redhat.com>
5272 * frame.c (read_frame_register_unsigned): New.
5273 * frame.h (read_frame_register_unsigned): Declare.
5274 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5276 (print_i387_control_word): New parameter `control_p'. Handle it.
5277 (i387_print_float_info): Handle unavailable float registers.
5279 2012-03-01 Keith Seitz <keiths@redhat.com>
5281 * linespec.c (decode_line_2): Sort the list of methods
5282 alphabetically before presenting the user with a selection
5285 2012-03-01 Doug Evans <dje@google.com>
5287 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5289 (dwarf2_read_abbrevs): Remove corresponding initialization.
5291 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5293 * NEWS: Mention new python command class gdb.COMMAND_USER.
5294 * cli/cli-cmds.c (show_user): Print error when used on a python
5296 (init_cli_cmds): Update documentation strings for "show user" and
5297 "set/show max-user-call-depth" to clarify that it does not apply to
5299 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5301 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5303 * top.c (execute_command): Only execute a user-defined command as a
5304 legacy macro if c->user_commands is set.
5306 2012-03-01 Tom Tromey <tromey@redhat.com>
5308 * valprint.h (struct generic_val_print_decorations): New.
5309 (generic_val_print): Declare.
5310 * valprint.c (generic_val_print): New function.
5311 * p-valprint.c (p_decorations): New global.
5312 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5313 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5314 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5315 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5316 * m2-valprint.c (m2_decorations): New global.
5317 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5318 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5319 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5320 TYPE_CODE_ERROR>: Call generic_val_print.
5321 * f-valprint.c (f_decorations): New global.
5322 (f_val_print): Use print_function_pointer_address.
5323 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5324 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5325 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5327 * c-valprint.c (c_decorations): New global.
5328 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5329 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5330 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5331 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5332 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5333 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5336 2012-03-01 Tom Tromey <tromey@redhat.com>
5338 * valprint.c (val_print): Update.
5339 * p-valprint (pascal_val_print): Return void.
5340 * p-lang.h (pascal_val_print): Return void.
5341 * m2-valprint.c (m2_val_print): Return void.
5342 * m2-lang.h (m2_val_print): Return void.
5343 * language.h (struct language_defn) <la_val_print>: Return void.
5344 * language.c (unk_lang_val_print): Return void.
5345 * jv-valprint.c (java_val_print): Return void.
5346 * jv-lang.h (java_val_print): Return void.
5347 * f-valprint.c (f_val_print): Return void.
5348 * f-lang.h (f_val_print): Return void.
5349 * d-valprint.c (d_val_print): Return void.
5350 (dynamic_array_type): Update.
5351 * d-lang.h (d_val_print): Return void.
5352 * c-valprint.c (c_val_print): Return void.
5353 * c-lang.h (c_val_print): Return void.
5354 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5356 * ada-lang.h (ada_val_print): Return void.
5358 2012-03-01 Tom Tromey <tromey@redhat.com>
5360 * value.h (val_print): Return void.
5361 * valprint.c (val_print): Return void.
5363 2012-03-01 Tom Tromey <tromey@redhat.com>
5365 * value.h (common_val_print): Return void.
5366 * valprint.c (common_val_print): Return void.
5368 2012-03-01 Tom Tromey <tromey@redhat.com>
5370 * value.h (value_print): Return void.
5371 * valprint.c (value_print): Return void.
5372 * p-valprint.c (pascal_value_print): Return void.
5373 * p-lang.h (pascal_value_print): Return void.
5374 * language.h (struct language_defn) <la_value_print>: Return
5376 * language.c (unk_lang_value_print): Return void.
5377 * jv-valprint.c (java_value_print): Return void.
5378 * jv-lang.h (java_value_print): Return void.
5379 * f-valprint.c (c_value_print): Don't declare.
5381 * c-valprint.c (c_value_print): Return void.
5382 * c-lang.h (c_value_print): Return void.
5383 * ada-valprint.c (ada_value_print): Return void.
5384 * ada-lang.h (ada_value_print): Return void.
5386 2012-03-01 Tom Tromey <tromey@redhat.com>
5388 * value.c (value_primitive_field): Handle virtual base classes.
5390 2012-03-01 Tom Tromey <tromey@redhat.com>
5392 * gdbtypes.h (struct vbase): Remove.
5394 2012-03-01 Tom Tromey <tromey@redhat.com>
5396 * c-valprint.c (print_function_pointer_address): Move...
5397 * valprint.c: ... here. Make non-static.
5398 * m2-valprint.c (print_function_pointer_address): Remove.
5399 * valprint.h (print_function_pointer_address): Declare.
5401 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5403 * NEWS: Document the fact that one can provide a condition when
5404 creating an Ada exception catchpoint.
5406 2012-03-01 Tom Tromey <tromey@redhat.com>
5408 * valprint.c (val_print_type_code_flags): Fix placement of
5411 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5413 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5414 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5415 environment variable before calling update-copyright.
5417 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5419 * gnulib/extra/update-copyright: Update to the latest from
5420 gnulib's git repository.
5421 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5422 variable to 2 instead of 1.
5424 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5426 * varobj.c (c_value_of_variable): Remove dead code.
5428 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5430 * ada-lex.p (processId): Do not modify already encoded IDs.
5431 Update function documentation.
5433 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5435 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5436 "name" with "struct symbol *name_sym".
5437 * ada-exp.y (write_var_or_type): Update call to
5438 ada_find_renaming_symbol.
5439 "name" with "struct symbol *name_sym". Adjust Implementation
5440 accordingly. Adjust the function documentation.
5442 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5444 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5445 * ada-lang.c (ada_find_any_type): Add advance declaration.
5446 Make static. Replace ada_find_any_symbol by
5447 ada_find_any_type_symbol.
5448 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5449 Improve function description. Make static.
5450 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5451 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5453 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5455 * ada-lang.c (struct tag_args): Delete.
5456 (ada_get_tsd_type): Function body moved up in source file.
5457 (ada_tag_name_1, ada_tag_name_2): Delete.
5458 (ada_get_tsd_from_tag): New function.
5459 (ada_tag_name_from_tsd): New function.
5460 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5461 to determine the tag name.
5463 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5465 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5467 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5470 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5472 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5474 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5476 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5479 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5481 * ada-lang.c (constrained_packed_array_type): If there is a
5482 parallel XA type, use it to determine the array index type.
5484 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5486 * ada-valprint.c (ada_val_print_1): If our value is a reference
5487 to an array descriptor, dereference it before converting it
5490 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5492 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5493 creating fixed value.
5494 (ada_value_ind, ada_coerce_ref, assign_component)
5495 (ada_evaluate_subexp): Remove call to unwrap_value before
5496 call to ada_to_fixed_value.
5498 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5500 * ada-lang.c (to_fixed_array_type): Set result's type name.
5502 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5504 * ada-lang.c (catch_ada_exception_command_split): Add new
5505 argument cond_string. Add support for condition at end of
5506 "catch exception" commands.
5507 (ada_decode_exception_location): Add new argument cond_string.
5508 Update call to catch_ada_exception_command_split.
5509 (create_ada_exception_catchpoint): Add new argument cond_string.
5510 Set the breakpoint condition if needed.
5511 (catch_ada_exception_command): Update call to
5512 ada_decode_exception_location.
5513 (ada_decode_assert_location): Add function documentation.
5514 Add support for condition at end of "catch assert" command.
5515 (catch_assert_command): Update calls to ada_decode_assert_location
5516 and create_ada_exception_catchpoint.
5518 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5520 Fix disp-step-syscall.exp: fork: single step over fork.
5521 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5522 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5523 comment, change parameters gdbarch and ptid to regcache. Remove
5524 parameter regcache, initialize gdbarch from regcache here.
5525 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5527 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5529 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5530 'syscall'. Make the 'int' check more strict.
5532 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5534 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5535 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5536 (i386_linux_intx80_sysenter_syscall_record): ... here.
5537 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5538 Use the renamed function name.
5540 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5542 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5543 * breakpoint.c (until_break_command): Likewise.
5544 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5545 * infcall.c (call_function_by_hand): Likewise.
5546 * infcmd.c (finish_forward): Likewise.
5547 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5549 2012-02-28 Tristan Gingold <gingold@adacore.com>
5551 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5552 avoid variable assignments inside condition.
5554 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5556 Fix static analysis issue found by cppcheck.
5557 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5558 uninitialized BUF for size 2.
5560 2012-02-27 Chris Dearman <chris@mips.com>
5561 Nathan Froyd <froydnj@codesourcery.com>
5562 Maciej W. Rozycki <macro@codesourcery.com>
5564 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5565 (mips16_instruction_has_delay_slot): Likewise.
5566 (mips_segment_boundary): Likewise.
5567 (mips_adjust_breakpoint_address): Likewise.
5568 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5570 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5571 Maciej W. Rozycki <macro@codesourcery.com>
5573 * infrun.c (handle_inferior_event): Don't proceed through
5574 shared library trampolines if stepping at the machine
5577 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5579 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5582 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5584 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5585 (sh_stub_unwind_sniffer): New functions.
5586 (sh_stub_unwind): New variable.
5587 (sh_gdbarch_init): Wire everything.
5589 2012-02-27 Pedro Alves <palves@redhat.com>
5591 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5592 (linux_nat_post_attach_wait): Adjust to use
5593 linux_proc_pid_is_stopped.
5594 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5595 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5596 based on pid_is_stopped from both linux-nat.c and
5597 gdbserver/linux-low.c, and renamed.
5599 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5601 * remote.c (remote_watchpoint_addr_within_range): New function.
5602 (init_remote_ops): Use it.
5604 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5606 * target.h (target_watchpoint_addr_within_range): Document macro.
5608 2012-02-24 Pedro Alves <palves@redhat.com>
5610 * stack.c (set_last_displayed_sal): Issue internal_error instead
5611 of warning, and issue it after clearing the last displayed sal.
5613 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5614 Pedro Alves <palves@redhat.com>
5616 * breakpoint.c (until_break_command): Install breakpoints after
5617 all frame manipulations.
5619 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5621 * remote.c (remote_supports_cond_breakpoints): New forward
5623 (remote_add_target_side_condition): New function.
5624 (remote_insert_breakpoint): Add target-side breakpoint
5625 conditional if supported.
5626 (remote_insert_hw_breakpoint): Likewise.
5627 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5630 * target.c (update_current_target): Inherit
5631 to_supports_evaluation_of_breakpoint_conditions.
5632 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5634 * target.h (struct target_ops)
5635 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5636 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5638 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5639 (condition_evaluation_both, condition_evaluation_auto,
5640 condition_evaluation_host, condition_evaluation_target,
5641 condition_evaluation_enums, condition_evaluation_mode_1,
5642 condition_evaluation_mode): New static globals.
5643 (translate_condition_evaluation_mode): New function.
5644 (breakpoint_condition_evaluation_mode): New function.
5645 (gdb_evaluates_breakpoint_condition_p): New function.
5646 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5647 (mark_breakpoint_modified): New function.
5648 (mark_breakpoint_location_modified): New function.
5649 (set_condition_evaluation_mode): New function.
5650 (show_condition_evaluation_mode): New function.
5651 (bp_location_compare_addrs): New function.
5652 (get_first_location_gte_addr): New helper function.
5653 (set_breakpoint_condition): Free condition bytecode if locations
5654 has become unconditional. Call mark_breakpoint_modified (...).
5655 (condition_command): Call update_global_location_list (1) for
5657 (breakpoint_xfer_memory): Use is_breakpoint (...).
5658 (is_breakpoint): New function.
5659 (parse_cond_to_aexpr): New function.
5660 (build_target_condition_list): New function.
5661 (insert_bp_location): Handle target-side conditional
5662 breakpoints and call build_target_condition_list (...).
5663 (update_inserted_breakpoint_locations): New function.
5664 (insert_breakpoint_locations): Handle target-side conditional
5666 (bpstat_check_breakpoint_conditions): Add comment.
5667 (bp_condition_evaluator): New function.
5668 (bp_location_condition_evaluator): New function.
5669 (print_breakpoint_location): Print information on where the condition
5671 (print_one_breakpoint_location): Likewise.
5672 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5673 breakpoint location.
5674 (force_breakpoint_reinsertion): New functions.
5675 (update_global_location_list): Handle target-side breakpoint
5677 Reinsert locations that are already inserted if conditions have
5679 (bp_location_dtor): Free agent expression bytecode.
5680 (disable_breakpoint): Call mark_breakpoint_modified (...).
5681 Call update_global_location_list (...) with parameter 1 for breakpoints.
5682 (disable_command): Call mark_breakpoint_location_modified (...).
5683 Call update_global_location_list (...) with parameter 1 for breakpoints.
5684 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5685 (enable_command): mark_breakpoint_location_modified (...).
5686 (_initialize_breakpoint): Update documentation and add
5687 condition-evaluation breakpoint subcommand.
5689 * breakpoint.h: Include ax.h.
5690 (condition_list): New data structure.
5691 (condition_status): New enum.
5692 (bp_target_info) <cond_list>: New field.
5693 (bp_location) <condition_changed, cond_bytecode>: New fields.
5694 (is_breakpoint): New prototype.
5696 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5698 * remote.c (remote_state) <cond_breakpoints>: New field.
5699 (PACKET_ConditionalBreakpoints): New enum.
5700 (remote_cond_breakpoint_feature): New function.
5701 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5702 (remote_supports_cond_breakpoints): New function.
5703 (_initialize_remote): Add new packet configuration for
5704 target-side conditional breakpoints.
5706 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5708 * NEWS: Mention target-side conditional breakpoint support,
5709 new condition-evaluation breakpoint subcommand and remote
5712 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5714 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5717 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5719 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5720 (after_prologue): Remove.
5722 2012-02-23 Tom Tromey <tromey@redhat.com>
5724 * jv-valprint.c (java_val_print): Remove dead code.
5726 2012-02-23 Tristan Gingold <gingold@adacore.com>
5728 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5729 known_tasks_element and known_tasks_length fields.
5730 (read_known_tasks_array): Change argument type. Use pointer type
5731 and number of elements from DATA. Adjust.
5732 (read_known_tasks_list): Likewise.
5733 (get_known_tasks_addr): Remove.
5734 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5735 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5736 type and array length. Merge former get_known_tasks_addr code.
5738 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5741 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5742 it after set_momentary_breakpoint.
5744 2012-02-22 Sterling Augustine <saugustine@google.com>
5747 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5749 2012-02-22 Gary Benson <gbenson@redhat.com>
5751 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5752 (find_slot_in_mapped_hash): Likewise.
5754 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5757 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5758 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5759 * configure: Regenerate.
5761 2012-02-21 Tristan Gingold <gingold@adacore.com>
5762 Pedro Alves <palves@redhat.com>
5764 * ia64-tdep.c: Do not include libunwind-ia64.h.
5765 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5766 Include libunwind-ia64.h instead of libunwind.h.
5767 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5768 for libunwind.h existence.
5769 * configure, config.in: Regenerate.
5771 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5773 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5774 instead of value_rtti_target_type.
5775 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5776 instead of value_rtti_target_type.
5777 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5778 value_rtti_target_type.
5779 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5780 (value_rtti_target_type): Rename to ...
5781 (value_rtti_indirect_type): ... here and make it indirect. Update
5783 * value.c (readjust_indirect_value_type): New function.
5784 (coerce_ref): Support for enclosing type setting for references
5785 with readjust_indirect_value_type.
5786 * value.h (readjust_value_type): New declaration.
5787 (value_rtti_target_type): Rename to ...
5788 (value_rtti_indirect_type): ... here.
5790 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5792 * MAINTAINERS (Write After Approval): Add myself to the list.
5794 2012-02-20 Doug Evans <dje@google.com>
5796 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5797 Rename objfile_p_char parameter to objfilep.
5798 (build_objfile_section_table): Result is now void. All callers
5800 * objfiles.h (struct objfile): Tweak comments, whitespace.
5801 (build_objfile_section_table): Update.
5803 * elfread.c (elf_symfile_segments): Fix warning text.
5805 2012-02-20 Tom Tromey <tromey@redhat.com>
5808 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5809 particular set of file names once.
5810 (dw2_map_symbol_filenames): Likewise.
5812 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5815 * main.c (write_files): Remove the declaration.
5816 (external_editor_command): Move the declaration ...
5817 [GDBTK] (external_editor_command): ... here. Fix the comment.
5819 2012-02-20 Tom Tromey <tromey@redhat.com>
5821 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5824 2012-02-20 Tristan Gingold <gingold@adacore.com>
5826 * darwin-nat.h (enum darwin_msg_state): Add comments.
5828 2012-02-20 Tristan Gingold <gingold@adacore.com>
5830 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5833 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5835 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5836 between function description and implementation.
5838 2012-02-17 Tom Tromey <tromey@redhat.com>
5841 * python/py-event.c (event_object_getset): New global.
5842 (event_object_type): Reference it.
5843 * python/py-type.c (field_object_getset): New global.
5844 (field_object_type): Reference it.
5845 * python/python-internal.h (gdb_py_generic_dict): Declare.
5846 * python/py-utils.c (gdb_py_generic_dict): New function.
5848 2012-02-17 Tristan Gingold <gingold@adacore.com>
5850 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5852 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5854 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5855 TYPE_CALLING_CONVENTION annotation.
5857 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5859 * MAINTAINERS: Add rx to target ISA section.
5860 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5861 (ALLDEPFILES): Add rx-tdep.c.
5863 2012-02-16 Tom Tromey <tromey@redhat.com>
5865 * symfile.c (symbol_file_add_main_1): Use inferior's
5867 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5868 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5870 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5872 (follow_exec): Use inferior's symfile_flags.
5873 * inferior.h (struct inferior) <symfile_flags>: New field.
5875 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5878 * remote-sim.c (gdbsim_create_inferior): Call error() when
5879 sim_create_inferior() fails.
5881 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5883 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5885 2012-02-16 Tom Tromey <tromey@redhat.com>
5888 * thread.c (struct current_thread_cleanup) <was_removable>: New
5890 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5891 (make_cleanup_restore_current_thread): Initialize new field.
5893 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5895 * MAINTAINERS: Add rl78 to target ISA section.
5896 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5897 (ALLDEPFILES): Add rl78-tdep.c.
5898 * NEWS: Mention rl78 as a new target.
5900 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5902 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5904 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5906 2012-02-15 Tom Tromey <tromey@redhat.com>
5909 * infcmd.c (registers_info): Print just the current register's
5912 2012-02-15 Tom Tromey <tromey@redhat.com>
5914 * python/py-symbol.c (sympy_value): Use _().
5916 2012-02-15 Pedro Alves <palves@redhat.com>
5918 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5919 output to be like native targets'.
5920 (remote_pid_to_str): Special case the null ptid.
5922 2012-02-14 Stan Shebs <stan@codesourcery.com>
5924 * NEWS: Mention enable count command.
5925 * breakpoint.h (struct breakpoint): New field enable_count.
5926 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5927 (enable_breakpoint): Add arg to call.
5928 (struct disp_data): New struct.
5929 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5930 (do_map_enable_once_breakpoint): Create a struct and pass it.
5931 (do_map_enable_delete_breakpoint): Ditto.
5932 (do_map_enable_count_breakpoint): New function.
5933 (enable_count_command): New function.
5934 (bpstat_stop_status): Decrement enable_count.
5935 (print_one_breakpoint_location): Report enable count.
5936 (_initialize_breakpoint): Add enable count command.
5938 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5940 * rl78-tdep.c (reggroups.h): Include.
5941 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5942 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5943 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5944 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5945 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5946 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5947 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5948 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5949 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5950 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5951 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5952 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5953 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5954 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5955 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5956 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5957 beginning of register list.
5958 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5959 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5960 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5961 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5962 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5963 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5964 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5965 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5966 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5967 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5968 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5969 the pseudo registers. Rearrange other pseudo registers too so
5970 that the bank registers appear at the end.
5971 (rl78_register_type): Account for the fact that the byte sized
5972 bank registers are now pseudo-registers.
5973 (rl78_register_name): Rearrange the register name array. Make
5974 initial set of raw banked registers inaccessible.
5975 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5976 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5977 case for copying bytes back and forth between raw and pseudo
5978 versions of the banked registers. Update other cases to reflect
5980 (rl78_return_value): Update to account for changed names of
5982 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5983 rl78_register_sim_regno().
5985 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5987 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5988 the name parameter being passed to find_pc_partial_function().
5990 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5992 * MAINTAINERS: Step down from being ia64 target maintainer.
5994 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5996 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5997 compilation warning.
5999 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6001 Fix crash on loaded shlibs without loaded exec_bfd.
6002 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6003 (set_section_command): Replace exec_bfd by p->bfd.
6005 2012-02-10 Tom Tromey <tromey@redhat.com>
6007 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6008 when we have a C++ qualified name.
6010 2012-02-10 Pedro Alves <palves@redhat.com>
6012 * inferior.c (inferior_pid_to_str): New.
6013 (print_inferior, inferior_command): Use it.
6015 2012-02-10 Pedro Alves <palves@redhat.com>
6017 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6019 * configure: Regenerate.
6021 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6023 * linespec.c (decode_line_internal): Fix comment correctness.
6025 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
6028 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6029 * amd64bsd-nat.c: Add support for debug registers (adapted from
6031 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6032 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6033 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6034 (amd64bsd_dr_get_control): New functions.
6035 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6036 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6037 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6038 watchpoints initialization.
6039 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6041 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6043 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6045 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6047 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6049 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6051 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6053 * language.h (symbol_name_cmp_ftype): Renames
6054 symbol_name_match_p_ftype.
6055 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6056 la_get_symbol_name_match_p.
6057 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6058 ada_get_symbol_name_match_p. Update comment.
6059 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6060 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6061 Renames symbol_name_match_p. Update field type.
6062 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6063 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6064 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6065 "la_get_symbol_name_cmp" in comments.
6066 * language.c: Likewise.
6068 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6070 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6072 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6073 (amd64_sol2_gregset32_reg_offs): Likewise.
6075 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6077 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6078 of the returned BFD is allocated by GDB.
6080 2012-02-07 Tom Tromey <tromey@redhat.com>
6083 * python/python-internal.h (frame_object_type): Declare.
6084 * python/py-symbol.c (sympy_needs_frame): New function.
6085 (sympy_value): New function.
6086 (symbol_object_getset): Add "needs_frame".
6087 (symbol_object_methods): Add "value".
6088 * python/py-frame.c (frame_object_type): No longer static.
6090 2012-02-07 Tom Tromey <tromey@redhat.com>
6093 * python/py-symbol.c (sympy_line): New function.
6094 (symbol_object_getset): Add "line".
6096 2012-02-07 Tom Tromey <tromey@redhat.com>
6098 * charset.c (find_charset_names): Check 'in' against NULL.
6100 2012-02-06 Doug Evans <dje@google.com>
6102 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6103 and fields.name members from char * to const char *. All uses updated.
6104 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6105 from char * to const char *. All uses updated.
6106 (type_name_no_tag): Update.
6107 (lookup_unsigned_typename, lookup_signed_typename): Update.
6108 * gdbtypes.c (type_name_no_tag): Change result type
6109 from char * to const char *. All callers updated.
6110 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6111 name parameter from char * to const char *.
6112 * symtab.h (struct cplus_specific): Change type of demangled_name
6113 member from char * to const char *. All uses updated.
6114 (struct general_symbol_info): Change type of name and
6115 mangled_lang.demangled_name members from char * to const char *.
6117 (symbol_get_demangled_name, symbol_natural_name): Update.
6118 (symbol_demangled_name, symbol_search_name): Update.
6119 * symtab.c (symbol_get_demangled_name): Change result type
6120 from char * to const char *. All callers updated.
6121 (symbol_natural_name, symbol_demangled_name): Ditto.
6122 (symbol_search_name): Ditto.
6123 (completion_list_add_name): Change type of symname,sym_text,
6124 text,word parameters from char * to const char *.
6125 (completion_list_objc_symbol): Change type of sym_text,
6126 text,word parameters from char * to const char *.
6127 * ada-lang.c (find_struct_field): Change type of name parameter
6128 from char * to const char *.
6129 (encoded_ordered_before): Similarly for N0,N1 parameters.
6130 (old_renaming_is_invisible): Similarly for function_name parameter.
6131 (ada_type_name): Change result type from char * to const char *.
6132 All callers updated.
6133 * ada-lang.h (ada_type_name): Update.
6134 * buildsym.c (hashname): Change type of name parameter
6135 from char * to const char *.
6136 * buildsym.h (hashname): Update.
6137 * dbxread.c (end_psymtab): Change type of include_list parameter
6138 from char ** to const char **.
6139 * dwarf2read.c (determine_prefix): Change result type
6140 from char * to const char *. All callers updated.
6141 * f-lang.c (find_common_for_function): Change type of name, funcname
6142 parameters from char * to const char *.
6143 * f-lang.c (find_common_for_function): Update.
6144 * f-valprint.c (list_all_visible_commons): Change type of funcname
6145 parameters from char * to const char *.
6146 * gdbarch.sh (static_transform_name): Change type of name parameter
6147 and result from char * to const char *.
6148 * gdbarch.c: Regenerate.
6149 * gdbarch.h: Regenerate.
6150 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6151 of name parameter from char * to const char *.
6152 * jv-lang.c (java_primitive_type_from_name): Ditto.
6153 (java_demangled_signature_length): Similarly for signature parameter.
6154 (java_demangled_signature_copy): Ditto.
6155 (java_demangle_type_signature): Ditto.
6156 * jv-lang.h (java_primitive_type_from_name): Update.
6157 (java_demangle_type_signature): Update.
6158 * objc-lang.c (specialcmp): Change type of a,b parameters
6159 from char * to const char *.
6160 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6161 from char * to const char *. All callers updated.
6162 * p-lang.h (is_pascal_string_type): Update.
6163 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6164 of name parameter from char * to const char *.
6165 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6166 * utils.c (fprintf_symbol_filtered): Ditto.
6167 * defs.h (fprintf_symbol_filtered): Update.
6168 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6169 * stabsread.h (end_psymtab): Update.
6170 * stack.c (find_frame_funname): Change type of funname parameter
6171 from char ** to const char **.
6172 * stack.h (find_frame_funname): Update.
6173 * typeprint.c (type_print): Change type of varstring parameter
6174 from char * to const char *.
6175 * value.h (type_print): Update.
6176 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6177 from char * to const char *. All callers updated.
6178 (xcoff_end_psymtab): Change type of include_list parameter
6179 from char ** to const char **. All callers updated.
6180 (swap_sym): Similarly for name parameter. All callers updated.
6181 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6183 (process_coff_symbol): Use xstrdup.
6184 * stabsread.c (stabs_method_name_from_physname): Renamed from
6185 update_method_name_from_physname. Change result type from void
6186 to char *. All callers updated.
6187 (read_member_functions): In has_destructor case, store name in objfile
6188 obstack instead of malloc space. In !has_stub case, fix mem leak.
6190 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6192 * configure: Rebuild.
6193 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6196 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6198 * configure.tgt (rl78-*-elf): New target.
6199 * rl78-tdep.c: New file.
6201 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6203 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6204 and continue the loop. Add QUIT statement.
6206 2012-02-03 Tom Tromey <tromey@redhat.com>
6209 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6210 bfd_lookup_symbol_from_symtab.
6211 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6212 gdb_bfd_lookup_symbol_from_symtab.
6214 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6216 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6217 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6218 symbol. Add assertion that sym2 is never NULL.
6220 2012-02-02 Doug Evans <dje@google.com>
6222 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6223 "name" parameter to const char ** from char **. All callers updated.
6224 (find_pc_partial_function): Ditto.
6225 (cache_pc_function_name): Change type to const char * from char *.
6226 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6227 (find_pc_partial_function): Update.
6228 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6229 type of "name" parameter to const char * from char *.
6231 * arch-utils.c (generic_in_solib_return_trampoline): Change
6232 type of "name" parameter to const char * from char *.
6233 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6234 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6235 type of "name" parameter to const char * from char *.
6236 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6237 * gdbarch.c: Regenerate.
6238 * gdbarch.h: Regenerate.
6239 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6240 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6241 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6242 type of "name" parameter to const char * from char *.
6243 * skip.c (skip_function_pc): Ditto.
6244 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6245 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6246 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6247 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6248 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6249 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6250 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6251 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6252 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6254 2012-02-02 Pedro Alves <palves@redhat.com>
6256 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6257 the current inferior has no execution. Make sure the current
6258 remote process matches gdb's current inferior.
6260 2012-02-02 Tom Tromey <tromey@redhat.com>
6263 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6266 2012-02-02 Tom Tromey <tromey@redhat.com>
6269 * symtab.c (lookup_language_this): Set block_found.
6271 2012-02-01 Tom Tromey <tromey@redhat.com>
6274 * jit.c (struct jit_inferior_data): Rewrite.
6275 (struct jit_objfile_data): New.
6276 (get_jit_objfile_data): New function.
6277 (add_objfile_entry): Update.
6278 (jit_read_descriptor): Return int. Replace descriptor_addr
6279 argument with inf_data. Update. Don't call error.
6280 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6282 (jit_inferior_init): Don't look up descriptor. Don't call error.
6283 (jit_reset_inferior_data_and_breakpoints)
6284 (jit_inferior_created_observer): Remove.
6285 (jit_inferior_exit_hook): Update.
6286 (jit_executable_changed_observer): Remove.
6287 (jit_event_handler): Update.
6288 (free_objfile_data): Reset inferior data if needed.
6289 (_initialize_jit): Update.
6291 2012-02-01 Tom Tromey <tromey@redhat.com>
6293 * jit.c (bfd_open_from_target_memory): Move higher in file.
6295 2012-02-01 Tristan Gingold <gingold@adacore.com>
6297 * libunwind-frame.c (libunwind_load): Display message if dlopen
6300 2012-02-01 Gary Benson <gbenson@redhat.com>
6302 * symtab.h (symbol_found_callback_ftype): New typedef.
6303 (iterate_over_symbols): Use the above.
6304 * symtab.c (iterate_over_symbols): Likewise.
6305 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6306 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6307 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6308 (iterate_name_matcher): Document return values.
6309 (collect_one_symbol): Likewise.
6310 (collect_function_symbols): Likewise.
6311 (collect_symbols): Likewise.
6313 2012-02-01 Tom Tromey <tromey@redhat.com>
6315 * ada-lang.c (resolve_subexp): Update.
6316 (ada_lookup_symbol_list): Add 'full_search' argument.
6317 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6318 ada_lookup_symbol_list.
6319 (ada_lookup_encoded_symbol): Update.
6320 (get_var_value): Update.
6321 * ada-exp.y (block_lookup): Update.
6322 (write_var_or_type): Update.
6323 (write_name_assoc): Update.
6324 * ada-lang.h (ada_lookup_symbol_list): Update.
6326 2012-01-31 Tom Tromey <tromey@redhat.com>
6328 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6331 2012-01-31 Doug Evans <dje@google.com>
6333 * symtab.h: Remove outdated comment.
6334 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6336 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6338 Fix build error in Darwin port.
6339 * i386-darwin-nat.c: Include i386-nat.h.
6341 2012-01-30 Tom Tromey <tromey@redhat.com>
6343 PR breakpoints/13568:
6344 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6345 argument. Check for recursive includes.
6346 (dwarf_decode_macros): Create an include hash.
6348 2012-01-30 Michael Eager <eager@eagercon.com>
6350 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6351 * ppc-linux-tdep.c: Include glibc-tdep.h.
6352 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6353 (powerpc_linux_in_plt_stub): New function.
6354 (powerpc_linux_in_dynsym_resolve_code): New function.
6355 (ppc_skip_trampoline_code): New function.
6356 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6357 Use glibc_skip_solib_resolver.
6359 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6361 Code cleanup: Make 1440 bytes of data segment read-only.
6362 * arch-utils.c (endian_enum): Make it const char *const [].
6363 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6365 * breakpoint.c (always_inserted_enums): Likewise.
6366 * cli/cli-cmds.c (script_ext_enums): Likewise.
6367 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6368 enumlist parameter const char *const *.
6369 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6370 const char *const *.
6371 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6372 parameter const char *const *.
6373 * cris-tdep.c (cris_modes): Make it const char *const [].
6374 * filesystem.c (target_file_system_kinds): Likewise.
6375 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6376 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6377 (can_use_displaced_stepping_enum, scheduler_enums)
6378 (exec_direction_names): Likewise.
6379 * language.c (_initialize_language): Make the type_or_range_names and
6380 case_sensitive_names variables const char *const [].
6381 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6382 * python/python.c (python_excp_enums): Likewise.
6383 * remote.c (interrupt_sequence_modes): Likewise.
6384 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6385 * serial.c (logbase_enums): Likewise.
6386 * sh-tdep.c (sh_cc_enum): Likewise.
6387 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6389 * symtab.c (multiple_symbols_modes): Likewise.
6390 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6392 * utils.c (internal_problem_modes): Likewise.
6394 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6396 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6397 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6400 2012-01-27 Doug Evans <dje@google.com>
6402 * configure.ac (with_python): Fix absolute path handling for win32.
6403 * configure: Regenerate.
6405 2012-01-26 Doug Evans <dje@google.com>
6407 * symtab.c: Whitespace cleanup, no code changes.
6409 * symtab.c (lookup_symbol_in_language): Improve comment.
6410 (lookup_symbol_aux): Fix comment.
6412 * psymtab.c (add_psymbol_to_list): Result is now "void".
6413 * psympriv.h (add_psymbol_to_list): Update.
6415 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6417 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6419 Do not open script filenames twice.
6420 * cli/cli-cmds.c (source_script_from_stream): Pass to
6421 source_python_script also STREAM.
6422 * python/py-auto-load.c (source_section_scripts): Pass to
6423 source_python_script_for_objfile also STREAM.
6424 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6426 * python/python-internal.h (source_python_script_for_objfile): New
6427 parameter file, rename parameter file to filename.
6428 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6429 instead if !_WIN32. Update the function comment.
6430 (source_python_script, source_python_script_for_objfile)
6431 (source_python_script): New parameter file, rename parameter file to
6432 filename. Pass FILENAME to python_run_simple_file.
6433 * python/python.h (source_python_script): New parameter file, rename
6434 parameter file to filename.
6436 2012-01-26 Pedro Alves <palves@redhat.com>
6438 * corelow.c (core_has_fake_pid): Delete.
6439 (core_close): Delete references to `core_has_fake_pid'.
6440 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6441 (core_open): Delete references to `core_has_fake_pid'.
6442 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6445 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6447 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6448 Remove language parameter from name_matcher. Adjust the comment.
6449 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6450 Remove language parameter.
6451 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6452 * linespec.c (iterate_name_matcher): Likewise.
6453 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6454 name_matcher. Adjust call accordingly.
6455 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6456 (maintenance_check_symtabs): Adjust type of parameter "fun".
6457 * psymtab.h (maintenance_check_symtabs): Likewise.
6459 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6461 * language.h (symbol_name_match_p_ftype): New typedef.
6462 (struct language_defn): Replace field la_symbol_name_compare
6463 by la_get_symbol_name_match_p.
6464 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6465 (ada_language_defn): Use it.
6466 * linespec.c (struct symbol_matcher_data): New type.
6467 (iterate_name_matcher): Rewrite.
6468 (iterate_over_all_matching_symtabs): Pass a pointer to
6469 a symbol_matcher_data struct to expand_symtabs_matching
6470 instead of just the lookup name.
6471 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6472 opencl-lang.c, p-lang.c, language.c: Delete field
6473 la_symbol_name_compare, and replace by NULL for new field
6474 la_get_symbol_name_match_p.
6475 * symfile.h (struct quick_symbol_functions): Update comment.
6477 2012-01-25 Tom Tromey <tromey@redhat.com>
6479 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6482 2012-01-24 Tom Tromey <tromey@redhat.com>
6485 * solib.c (update_solib_list): Update the program space's
6486 added_solibs and deleted_solibs fields.
6487 * progspace.h (struct program_space) <added_solibs,
6488 deleted_solibs>: New fields.
6489 (clear_program_space_solib_cache): Declare.
6490 * progspace.c (release_program_space): Call
6491 clear_program_space_solib_cache.
6492 (clear_program_space_solib_cache): New function.
6493 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6494 bpstat_stop_status. Use handle_solib_event.
6495 * breakpoint.c: Include gdb_regex.h.
6496 (print_solib_event): New function.
6497 (bpstat_print): Use print_solib_event.
6498 (bpstat_stop_status): Add special case for bp_shlib_event.
6499 (handle_solib_event): New function.
6500 (bpstat_what): Use handle_solib_event.
6501 (struct solib_catchpoint): New.
6502 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6503 (breakpoint_hit_catch_solib, check_status_catch_solib)
6504 (print_it_catch_solib, print_one_catch_solib)
6505 (print_mention_catch_solib, print_recreate_catch_solib): New
6507 (catch_solib_breakpoint_ops): New global.
6508 (catch_load_or_unload, catch_load_command_1)
6509 (catch_unload_command_1): New functions.
6510 (internal_bkpt_check_status): Add special case for
6512 (internal_bkpt_print_it): Use print_solib_event.
6513 (initialize_breakpoint_ops): Initialize
6514 catch_solib_breakpoint_ops.
6515 (_initialize_breakpoint): Register "catch load" and "catch
6517 * breakpoint.h (handle_solib_event): Declare.
6518 * NEWS: Add entry for "catch load" and "catch unload".
6520 2012-01-24 Tom Tromey <tromey@redhat.com>
6522 * ada-lang.c: Include gdb_vecs.h.
6523 * charset.c: Include gdb_vecs.h.
6524 * tracepoint.h: Include gdb_vecs.h.
6525 * gdb_vecs.h: New file.
6527 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6529 * breakpoint.c (breakpoint_hit_catch_fork)
6530 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6531 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6532 * infrun.c (inferior_has_forked, inferior_has_vforked)
6533 (inferior_has_execd, inferior_has_called_syscall): Delete.
6534 (handle_syscall_event): Get syscall_number from the execution
6535 control state's wait status.
6536 (wait_for_inferior): Don't clear syscall_number.
6538 2012-01-24 Pedro Alves <palves@redhat.com>
6540 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6541 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6542 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6543 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6545 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6546 false for events other than TARGET_SIGNAL_TRAP.
6547 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6549 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6550 events other than TARGET_SIGNAL_TRAP.
6551 (tracepoint_breakpoint_hit): Add `ws' parameter.
6552 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6554 (bpstat_stop_status): Same.
6555 (pc_at_non_inline_function): Same.
6556 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6557 to pass the current event's waitstatus to bpstat_stop_status
6558 and pc_at_non_inline_function.
6560 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6563 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6564 Update the function comment for it.
6565 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6566 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6569 2012-01-24 Pedro Alves <palves@redhat.com>
6571 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6572 outside `bs->stop' block.
6573 (bpstat_what): Rework bp_shlib_event handling.
6574 (internal_bkpt_check_status): If the breakpoint is a
6575 bp_shlib_event, then set bs->stop and bs->print if
6576 stop_on_solib_events is set.
6578 2012-01-24 Gary Benson <gbenson@redhat.com>
6580 Delete #if 0'd out code.
6581 * stack.c (print_frame_label_vars): Remove.
6582 (catch_info): Likewise.
6583 (_initialize_stack): Remove "info catch" command.
6584 * NEWS: Mention the above.
6586 2012-01-24 Pedro Alves <palves@redhat.com>
6588 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6590 (remote_notice_new_inferior): If the remote end doesn't support
6591 the multiprocess extensions, then the PID is fake.
6592 (add_current_inferior_and_thread): New.
6593 (remote_start_remote): Use it.
6594 (extended_remote_attach_1): Adjust.
6595 (extended_remote_create_inferior_1): Use
6596 add_current_inferior_and_thread.
6598 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6600 Fix watchpoints to be specific for each inferior.
6601 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6602 current_program_space.
6603 * i386-nat.c (i386_inferior_data_cleanup): New.
6604 (i386_inferior_data_get): Replace variable inf_data_local by an
6606 (i386_use_watchpoints): Initialize i386_inferior_data.
6607 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6608 specific iterate_over_lwps.
6610 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6612 Fix watchpoints across inferior fork.
6613 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6614 comment for linux_nat_iterate_watchpoint_lwps.
6615 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6616 linux_nat_iterate_watchpoint_lwps.
6617 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6618 * i386-linux-nat.c (update_debug_registers_callback): Update the
6619 comment for linux_nat_iterate_watchpoint_lwps.
6620 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6621 linux_nat_iterate_watchpoint_lwps.
6622 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6623 * i386-nat.c: Include inferior.h.
6624 (dr_mirror): Remove.
6625 (i386_inferior_data, struct i386_inferior_data)
6626 (i386_inferior_data_get): New.
6627 (i386_debug_reg_state): Use i386_inferior_data_get.
6628 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6629 (i386_insert_watchpoint, i386_remove_watchpoint)
6630 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6631 (i386_remove_hw_breakpoint): New variable state, use
6632 i386_debug_reg_state instead of DR_MIRROR.
6633 * linux-nat.c (delete_lwp): New declaration.
6634 (num_lwps): Move here from downwards.
6635 (delete_lwp_cleanup): New.
6636 (linux_child_follow_fork): Create new child_lp, call
6637 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6639 (num_lwps): Move upwards.
6640 (linux_nat_iterate_watchpoint_lwps): New.
6641 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6642 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6644 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6648 2012-01-23 Pedro Alves <palves@redhat.com>
6650 * top.c (caution): Rename to ...
6651 (confirm): ... this.
6652 (show_caution): Rename to ...
6653 (show_confirm): ... this.
6654 (quit_cover): Adjust.
6655 (init_main): Adjust.
6656 * top.h (caution): Rename to ...
6657 (confirm): ... this.
6658 * utils.c (internal_vproblem, defaulted_query): Adjust.
6660 2012-01-23 Pedro Alves <palves@redhat.com>
6662 * top.c (caution): Update comment.
6663 (execute_command): Don't consider the current value of `caution'.
6665 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6667 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6669 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6671 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6672 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6673 * target.c (target_fileio_pwrite): Remove buffer address from
6675 (target_fileio_pread): Likewise.
6677 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6679 * NEWS: Document remote "info proc" and "generate-core-file".
6681 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6683 * gdbarch.sh (find_memory_regions): New callback.
6684 * gdbarch.c, gdbarch.h: Regenerate.
6686 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6687 callback before falling back to target method.
6689 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6690 (linux_target_install_ops): No longer install it.
6692 * linux-tdep.c (linux_find_memory_regions): New function.
6693 (linux_init_abi): Install it.
6695 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6697 * gdbarch.sh (make_corefile_notes): New architecture callback.
6698 * gdbarch.c: Regenerate.
6699 * gdbarch.h: Likewise.
6701 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6702 before target_make_corefile_notes. If NULL is returned, the
6703 target does not support core file generation.
6705 * linux-nat.c: Include "linux-tdep.h".
6706 (find_signalled_thread, find_stop_signal): Remove.
6707 (linux_nat_do_thread_registers): Likewise.
6708 (struct linux_nat_corefile_thread_data): Likewise.
6709 (linux_nat_corefile_thread_callback): Likewise.
6710 (iterate_over_spus): Likewise.
6711 (struct linux_spu_corefile_data): Likewise.
6712 (linux_spu_corefile_callback): Likewise.
6713 (linux_spu_make_corefile_notes): Likewise.
6714 (linux_nat_collect_thread_registers): New function.
6715 (linux_nat_make_corefile_notes): Replace contents by call to
6716 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6717 as native-only callback.
6719 * linux-tdep.h: Include "bfd.h".
6720 (struct regcache): Add forward declaration.
6721 (linux_collect_thread_registers_ftype): New typedef.
6722 (linux_make_corefile_notes): Add prototype.
6723 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6724 "regset.h", and "elf-bfd.h".
6725 (find_signalled_thread, find_stop_signal): New functions.
6726 (linux_spu_make_corefile_notes): Likewise.
6727 (linux_collect_thread_registers): Likewise.
6728 (struct linux_corefile_thread_data): New data structure.
6729 (linux_corefile_thread_callback): New funcion.
6730 (linux_make_corefile_notes): Likewise.
6731 (linux_make_corefile_notes_1): Likewise.
6732 (linux_init_abi): Install it.
6734 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6736 * gdbarch.sh (info_proc): New callback.
6737 * gdbarch.c, gdbarch.h: Regenerate.
6739 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6740 before falling back to the target info_proc callback.
6742 * linux-nat.c: Do not include "cli/cli-utils.h".
6743 (linux_nat_info_proc): Remove.
6744 (linux_target_install_ops): No longer install it.
6746 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6747 (read_mapping): New function.
6748 (linux_info_proc): Likewise.
6749 (linux_init_abi): Install it.
6751 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6753 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6754 * infcmd.c: (info_proc_cmd_1): New function.
6755 (info_proc_cmd): New function, moved here from equivalent routine
6756 orignally in linux-nat.c.
6757 (info_proc_cmd_mappings): Likewise.
6758 (info_proc_cmd_stat): Likewise.
6759 (info_proc_cmd_status): Likewise.
6760 (info_proc_cmd_cwd): Likewise.
6761 (info_proc_cmd_cmdline): Likewise.
6762 (info_proc_cmd_exe): Likewise.
6763 (info_proc_cmd_all): Likewise.
6764 (_initialize_infcmd): Install "info proc" command and subcommands.
6766 * target.h (struct target_ops): Add to_info_proc.
6767 (target_info_proc): Add prototype.
6768 * target.c (target_info_proc): New function.
6770 * procfs.c (procfs_info_proc): Add prototype.
6771 (info_proc_cmd): Rename into ...
6772 (procfs_info_proc): ... this. Update argument types as appropriate
6773 for a to_info_proc implementation. Handle "what" argument.
6774 (procfs_target): Install procfs_info_proc.
6775 (_initialize_procfs): No longer install "info proc" command.
6777 * linux-nat.c: (enum info_proc_what): Remove.
6778 (linux_nat_info_proc_cmd_1): Rename into ...
6779 (linux_nat_info_proc): ... this. Update argument types as appropriate
6780 for a to_info_proc implementation.
6781 (linux_nat_info_proc_cmd): Remove.
6782 (linux_nat_info_proc_cmd_mappings): Likewise.
6783 (linux_nat_info_proc_cmd_stat): Likewise.
6784 (linux_nat_info_proc_cmd_status): Likewise.
6785 (linux_nat_info_proc_cmd_cwd): Likewise.
6786 (linux_nat_info_proc_cmd_cmdline): Likewise.
6787 (linux_nat_info_proc_cmd_exe): Likewise.
6788 (linux_nat_info_proc_cmd_all): Likewise.
6789 (linux_target_install_ops): Install linux_nat_info_proc.
6790 (_initialize_linux_nat): No longer install "info proc" command
6793 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6795 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6796 * config.in, configure: Regenerate.
6798 * target.h (struct target_ops): Add to_fileio_readlink.
6799 (target_fileio_readlink): Add prototype.
6800 * target.c (target_fileio_readlink): New function.
6802 * inf-child.c: Conditionally include <sys/param.h>.
6803 (inf_child_fileio_readlink): New function.
6804 (inf_child_target): Install it.
6806 * remote.c (PACKET_vFile_readlink): New enum value.
6807 (remote_hostio_readlink): New function.
6808 (init_remote_ops): Install it.
6809 (_initialize_remote): Handle vFile:readlink packet type.
6811 2012-01-20 Pedro Alves <palves@redhat.com>
6812 Ulrich Weigand <ulrich.weigand@linaro.org>
6814 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6815 * config.in, configure: Regenerate.
6817 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6818 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6819 (target_fileio_open): Add prototype.
6820 (target_fileio_pwrite): Likewise.
6821 (target_fileio_pread): Likewise.
6822 (target_fileio_close): Likewise.
6823 (target_fileio_unlink): Likewise.
6824 (target_fileio_read_alloc): Likewise.
6825 (target_fileio_read_stralloc): Likewise.
6827 * target.c: Include "gdb/fileio.h".
6828 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6829 (default_fileio_target): New function.
6830 (target_fileio_open): Likewise.
6831 (target_fileio_pwrite): Likewise.
6832 (target_fileio_pread): Likewise.
6833 (target_fileio_close): Likewise.
6834 (target_fileio_unlink): Likewise.
6835 (target_fileio_close_cleanup): Likewise.
6836 (target_fileio_read_alloc_1): Likewise.
6837 (target_fileio_read_alloc): Likewise.
6838 (target_fileio_read_stralloc): Likewise.
6840 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6841 <fcntl.h>, and <unistd.h>.
6842 (inf_child_fileio_open_flags_to_host): New function.
6843 (inf_child_errno_to_fileio_error): Likewise.
6844 (inf_child_fileio_open): Likewise.
6845 (inf_child_fileio_pwrite): Likewise.
6846 (inf_child_fileio_pread): Likewise.
6847 (inf_child_fileio_close): Likewise.
6848 (inf_child_fileio_unlink): Likewise.
6849 (inf_child_target): Install to_fileio routines.
6851 * remote.c (init_remote_ops): Install to_fileio routines.
6853 2012-01-20 Pedro Alves <palves@redhat.com>
6854 Ulrich Weigand <ulrich.weigand@linaro.org>
6856 * remote.c (remote_multi_process_p): Only check for multi-process
6857 protocol feature, do not check for extended protocol.
6858 (remote_supports_multi_process): Check for extended protocol here.
6859 (set_general_process): Likewise.
6860 (extended_remote_kill): Likewise.
6861 (remote_pid_to_str): Likewise.
6862 (remote_query_supported): Always query multiprocess mode.
6864 2012-01-20 Pedro Alves <palves@redhat.com>
6865 Ulrich Weigand <ulrich.weigand@linaro.org>
6867 * inferior.h (struct inferior): Add fake_pid_p.
6868 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6869 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6870 magic_null_ptid since the remote side doesn't provide a real PID.
6872 2012-01-19 Tom Tromey <tromey@redhat.com>
6874 * NEWS: Combine the two Python sections.
6876 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6878 * target.h (target_close): Update comment on the target's unpush state.
6880 2012-01-19 Pedro Alves <palves@redhat.com>
6882 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6883 linux_nat_async directly instead of going through the target
6885 * target.c (unpush_target): Close target after unpushing it, not
6888 2012-01-19 Gary Benson <gbenson@redhat.com>
6890 * mdebugread.c (sort_blocks): Replace integer constants with ones
6891 derived from FIRST_LOCAL_BLOCK.
6893 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6894 Jan Kratochvil <jan.kratochvil@redhat.com>
6897 * symfile.c (find_separate_debug_file): New function.
6898 (terminate_after_last_dir_separator): Likewise.
6899 (find_separate_debug_file_by_debuglink): Also try realpath.
6900 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6901 * configure: Regenerate.
6902 * config.in: Regenerate.
6904 2012-01-18 Doug Evans <dje@google.com>
6906 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6907 (main.o): Remove rule.
6908 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6909 (--with-sysroot): Rewrite.
6910 * configure: Regenerate.
6911 * config.in: Regenerate.
6913 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6915 * parse.c (initialize_expout): New function.
6916 (reallocate_expout): Likewise.
6917 (parse_exp_in_context): Use `initialize_expout' and
6918 `reallocate_expout' when appropriate.
6920 2012-01-18 Pedro Alves <palves@redhat.com>
6922 * record.c (struct record_breakpoint, record_breakpoint_p)
6923 (record_breakpoints): New.
6924 (record_insert_breakpoint, record_remove_breakpoint): Manage
6925 record breakpoints list. Only remove breakpoints from the
6926 inferior if they had been inserted there in the first place.
6928 2012-01-17 Doug Evans <dje@google.com>
6930 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6931 if we know we don't have a file name to look for.
6933 2012-01-17 Pedro Alves <palves@redhat.com>
6935 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6936 the frame's stop reason is UNWIND_UNAVAILABLE.
6938 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6940 Fix compilation error.
6941 * m2-exp.y (yyerror): Use ANSI C prototype.
6943 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6945 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6946 (growbuf_by_size): Likewise.
6947 (yyerror): Likewise.
6948 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6949 (modblock): Remove variable (was #if 0'ed).
6950 (parse_number): Convert prototype from K&R to ANSI C.
6951 (yyerror): Likewise.
6952 * objc-exp.y (parse_number): Likewise.
6953 (yyerror): Likewise.
6954 (yylex): Remove #if 0'ed code.
6955 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6956 (yyerror): Likewise.
6958 2012-01-16 Tom Tromey <tromey@redhat.com>
6961 * symtab.h (compare_filenames_for_search): Declare.
6962 * symtab.c (compare_filenames_for_search): New function.
6963 (iterate_over_some_symtabs): Use it.
6964 * symfile.h (struct quick_symbol_functions)
6965 <map_symtabs_matching_filename>: Change spec.
6966 * psymtab.c (partial_map_symtabs_matching_filename): Use
6967 compare_filenames_for_search. Update for new spec.
6968 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6969 compare_filenames_for_search. Update for new spec.
6970 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6972 2012-01-16 Tom Tromey <tromey@redhat.com>
6975 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6976 (struct main_type) <flag_flag_enum>: New field.
6977 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6978 * NEWS: Add entries.
6979 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6981 * python/lib/gdb/printing.py (_EnumInstance): New class.
6982 (FlagEnumerationPrinter): Likewise.
6984 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6986 * breakpoint.c (create_sals_from_address_default): New function.
6987 (create_breakpoints_sal_default): Likewise.
6988 (decode_linespec_default): Likewise.
6989 (is_marker_spec): Removed.
6990 (strace_marker_p): New function.
6991 (init_breakpoint_sal): Using `strace_marker_p' instead of
6993 (create_breakpoint): Call method `create_sals_from_address' from
6994 breakpoint_ops, replacing code that created SALs conditionally
6995 on the type of the breakpoint. Call method `create_breakpoints_sal',
6996 replacing code that created breakpoints conditionally on the type
6998 (base_breakpoint_create_sals_from_address): New function.
6999 (base_breakpoint_create_breakpoints_sal): Likewise.
7000 (base_breakpoint_decode_linespec): Likewise.
7001 (base_breakpoint_ops): Add methods
7002 `base_breakpoint_create_sals_from_address',
7003 `base_breakpoint_create_breakpoints_sal' and
7004 `base_breakpoint_decode_linespec'.
7005 (bkpt_create_sals_from_address): New function.
7006 (bkpt_create_breakpoints_sal): Likewise.
7007 (bkpt_decode_linespec): Likewise.
7008 (tracepoint_create_sals_from_address): Likewise.
7009 (tracepoint_create_breakpoints_sal): Likewise.
7010 (tracepoint_decode_linespec): Likewise.
7011 (strace_marker_create_sals_from_address): Likewise.
7012 (strace_marker_create_breakpoints_sal): Likewise.
7013 (strace_marker_decode_linespec): Likewise.
7014 (strace_marker_breakpoint_ops): New variable.
7015 (addr_string_to_sals): Remove `marker_spec'. Call method
7016 `decode_linespec' from breakpoint_ops, replacing code that decoded
7017 an address string into a SAL. Use `strace_marker_p' instead of
7019 (strace_command): Decide whether we are dealing with a static
7020 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7021 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7022 * breakpoint.h (linespec_result, linespec_sals): New forward
7024 (breakpoint_ops) <create_sals_from_address>,
7025 <create_breakpoints_sal>, <decode_linespec>: New methods.
7027 2012-01-14 Doug Evans <dje@google.com>
7029 * NEWS: Update text for "maint set python print-stack".
7030 It is deprecated in gdb 7.4 and deleted in 7.5.
7032 2012-01-13 Eli Zaretskii <eliz@gnu.org>
7034 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7037 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7039 * configure: Regenerate.
7040 * config.in: Regenerate.
7042 2012-01-12 Keith Seitz <keiths@redhat.com>
7045 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7046 (ANONYMOUS_UNION_NAME): Define.
7047 (is_path_expr_parent): New function.
7048 (get_path_expr_parent): New function.
7049 (is_anonymous_child): New function.
7050 (create_child_with_value): If the child is anonymous and without
7051 a name, assign an object name to it.
7052 (c_describe_child): Use get_path_expr_parent to determine
7053 the parent expression.
7054 If there field represents an anonymous struct or union and
7055 has no name, set an appropriate display name and expression.
7056 (cplus_describe_child): Likewise.
7058 2012-01-12 Pedro Alves <palves@redhat.com>
7060 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7061 available when %ebp is found to be zero (outermost).
7063 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
7065 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7066 an internal gdb_static_assert.
7067 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7069 2012-01-11 Tom Tromey <tromey@redhat.com>
7072 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7073 catch" and "catch throw".
7075 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7077 * blockframe.c (block_innermost_frame): Start search from selected
7078 frame, if present, or otherwise the current frame.
7080 * c-exp.y (variable): Update innermost_block for
7081 'block COLONCOLON NAME' clause.
7082 * m2-exp.y (variable): Ditto.
7083 * objc-exp.y (variable): Ditto.
7085 2012-01-10 Tom Tromey <tromey@redhat.com>
7088 * python/python.c (finish_python_initialization): Set sys.argv.
7090 2012-01-10 Doug Evans <dje@google.com>
7092 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7093 "want_line_info". All callers updated.
7094 (dwarf_decode_lines_1): New function.
7095 (handle_DW_AT_stmt_list): Add function comment.
7096 New arg "want_line_info". All callers updated.
7097 (read_file_scope,read_type_unit_scope): Move comment from
7098 handle_DW_AT_stmt_list to here.
7100 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7102 Fix regression after libiberty/ update for GCC PR 6057 and others.
7103 * c-exp.y (operator) <OPERATOR DELETE>
7104 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7105 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7106 (make_builtin_type, make_name): New variable i, add gdb_assert.
7107 (operator) <OPERATOR NEW>: Update ARGS to 3.
7108 (operator) <OPERATOR DELETE>: Add trailing space.
7109 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7110 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7111 * cp-support.c (cp_canonicalize_string): Check NULL from
7112 cp_comp_to_string, call warning and return.
7114 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7116 Fix duplicate .o files after omitting libbfd.a.
7117 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7118 (SFILES): Add corelow.c.
7119 (COMMON_OBS): Add corelow.o.
7120 (ALLDEPFILES): Remove corelow.c.
7121 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7122 * config/alpha/alpha-osf3.mh: Likewise.
7123 * config/alpha/fbsd.mh: Likewise.
7124 * config/arm/nbsdaout.mh: Likewise.
7125 * config/arm/nbsdelf.mh: Likewise.
7126 * config/i386/i386gnu.mh: Likewise.
7127 * config/ia64/hpux.mh: Likewise.
7128 * config/ia64/linux.mh: Likewise.
7129 * config/m32r/linux.mh: Likewise.
7130 * config/m68k/linux.mh: Likewise.
7131 * config/mips/irix5.mh: Likewise.
7132 * config/mips/irix6.mh: Likewise.
7133 * config/pa/hpux.mh: Likewise.
7134 * config/pa/linux.mh: Likewise.
7135 * config/powerpc/aix.mh: Likewise.
7136 * config/sparc/linux.mh: Likewise.
7137 * config/sparc/linux64.mh: Likewise.
7138 * config/sparc/sol2.mh: Likewise.
7139 * config/vax/vax.mh: Likewise.
7140 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7141 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7142 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7143 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7144 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7145 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7146 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7147 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7148 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7149 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7150 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7151 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7152 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7153 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7154 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7155 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7156 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7157 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7158 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7159 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7160 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7161 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7162 corelow.o from gdb_target_obs.
7163 * corefile.c (core_target): Update the comment on NULL value.
7164 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7165 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7166 MATCHES. Drop YUMMY set on NULL.
7167 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7168 reclaim CORE_DATA if it is already NULL.
7170 2012-01-09 Doug Evans <dje@google.com>
7172 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7173 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7175 2012-01-09 Keith Seitz <keiths@redhat.com>
7177 * breakpoint.c (wrapper.h): Don't include.
7179 2012-01-09 Keith Seitz <keiths@redhat.com>
7181 * Makefile.in (SFILES): Remove wrapper.c.
7182 (HFILES_NO_SRCDIR): Remove wrapper.h.
7183 (COMMON_OBS): Remove wrapper.o.
7184 * cli/cli-interp.c: Don't inlude wrapper.h.
7185 * corelow.c: Likewise.
7186 (core_open): Replace gdb_target_find_new_threads with
7187 TRY_CATCH around target_find_new_threads.
7188 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7189 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7190 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7191 evaluate_expression.
7192 (varobj_set_value): Likewise for evaluate_expression and
7194 (install_new_variable): Likewise for value_fetch_lazy.
7195 (adjust_value_for_child_access): Likewise for value_ind.
7196 (c_describe_child): Likewise for value_subscript and
7198 (c_value_of_root): Likewise for evaluate_expression.
7199 * wrapper.c: Remove.
7200 * wrapper.h: Remove.
7202 2012-01-09 Doug Evans <dje@google.com>
7204 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7205 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7206 "abfd" args with "section". All callers updated.
7207 Error checking code moved ...
7208 (error_check_comp_unit_head): ... here. New function.
7209 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7210 Delete arg "abfd". New arg "type_offset". All callers updated.
7211 (create_debug_types_hash_table): Simplify by using
7212 read_and_check_type_unit_head.
7214 * parser-defs.h (namecopy): Delete.
7215 * parse.c (namecopy, namecopy_size): Move into copy_name.
7217 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7219 Partially fix duplicate .o files after omitting libbfd.a.
7220 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7221 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7222 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7223 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7224 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7225 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7226 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7228 2012-01-09 Pedro Alves <palves@redhat.com>
7230 * MAINTAINERS: Update my email address.
7232 2012-01-08 Doug Evans <dje@google.com>
7234 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7235 n_type_units. Rename type_comp_units to all_type_units.
7237 (add_signatured_type_cu_to_table): Renamed from
7238 add_signatured_type_cu_to_list. All callers updated.
7240 * gdbtypes.h (struct cplus_struct_type): Delete member
7241 nfn_fields_total. All uses removed.
7243 2012-01-06 Doug Evans <dje@google.com>
7245 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7247 (dwarf2_find_comp_unit): Delete.
7248 (process_psymtab_comp_unit): Make result "void".
7249 Delete args buffer, info_ptr, buffer_size, and replace with
7250 "section". All callers updated.
7251 (dwarf2_build_psymtabs_hard): Simplify.
7253 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7254 Thiago Jung Bauermann <bauerman@br.ibm.com>
7256 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7257 before `struct gdb_exception'.
7258 * breakpoint.c (update_global_location_list_nothrow)
7259 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7260 * cp-abi.c (value_rtti_type): Likewise.
7261 * cp-support.c (cp_validate_operator): Likewise.
7262 * infrun.c (insert_exception_resume_breakpoint)
7263 (check_exception_resume, keep_going): Likewise.
7264 * mi-interp.c (mi_breakpoint_created)
7265 (mi_breakpoint_modified): Likewise.
7266 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7267 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7268 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7270 2012-01-05 Doug Evans <dje@google.com>
7272 * dwarf2read.c (statement_prologue): Delete, unused.
7274 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7275 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7277 * dwarf2read.c (comp_unit_header): Delete, unused.
7279 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7281 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7282 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7284 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7286 * infrun.c (normal_stop): Don't skip calling the normal_stop
7287 observers if the thread was doing a multi-step, but stopped for
7288 some reason other than stepping.
7290 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7292 * cli/cli-decode.h: Add comments.
7293 (CMD_LIST_AMBIGUOUS): Moved to command.h
7294 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7295 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7296 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7297 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7298 (add_com, add_com_alias, add_info, add_info_alias)
7299 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7301 * command.h: Add and adjust comments.
7302 (CMD_LIST_AMBIGUOUS): Moved here.
7303 (help_cmd, help_cmd_list): Delete declarations.
7305 2012-01-04 Doug Evans <dje@google.com>
7307 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7308 All callers updated.
7309 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7310 Replace all arguments with "per_cu". All callers updated.
7312 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7314 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7315 New arg "per_cu". All callers updated.
7317 Delete #if 0'd out code.
7318 * language.c (binop_result_type): Delete.
7319 (simple_type, ordered_type, same_type, integral_type): Delete.
7320 (numeric_type, character_type, string_type, boolean_type): Delete.
7321 (float_type, structured_type): Delete.
7322 * language.h: Update.
7324 2012-01-04 Tom Tromey <tromey@redhat.com>
7326 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7328 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7330 * corefile.c (close_exec_file): Delete.
7331 (reopen_exec_file): Remove commented out code that seems related
7332 to close_exec_file, which is being deleted here.
7333 * inferior.h (close_exec_file): Delete.
7334 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7336 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7338 * ada-lang.c: #include "cli/cli-utils.h".
7339 (get_selections): Use skip_spaces.
7340 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7341 (catch_ada_exception_command_split): Use skip_spaces.
7342 (ada_decode_assert_location): Likewise.
7344 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7346 * linespec.c (decode_line_internal): Check for C++ or Java
7347 compound constructs only if the current language is C, C++
7350 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7353 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7354 Joel Brobecker <brobecker@adacore.com>
7355 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7356 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7358 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7359 fall through into AT_ENTRY_POINT.
7360 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7362 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7363 PPC_INSN_SIZE skip to 3 times.
7365 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7367 * linespec.c (add_minsym): Preserve function descriptors.
7369 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7371 * breakpoint.c (all_locations_are_pending): Consider locations
7372 in program spaces executing during startup pending as well.
7374 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7376 Copyright year update in most files of the GDB Project.
7378 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7380 * copyright.sh: Delete.
7381 * copyright.py: Rewrite.
7383 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7385 * gnulib/extra/update-copyright: New file, imported from gnulib.
7387 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7389 * README (Copyright and License Notices): New section.
7391 2012-01-03 Tom Tromey <tromey@redhat.com>
7394 * python/py-value.c (valpy_dereference, valpy_get_address
7395 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7396 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7397 (valpy_absolute, valpy_richcompare): Free intermediate values.
7399 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7401 * ada-lang.c: Reformat the copyright notice.
7403 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7405 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7406 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7407 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7408 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7409 Revert this part of:
7410 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7411 Build gdb directly from *.o files not using libgdb.a.
7412 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7414 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7416 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7417 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7418 Reformat the copyright header.
7420 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7422 Revert this part of:
7423 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7424 Remove the gdbtui binary.
7425 * gdb.c (main): Remove args.interpreter_p initialization.
7426 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7427 * main.h (struct captured_main_args): Remove interpreter_p.
7429 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7431 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7433 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7435 * top.c (print_gdb_version): Update copyright year.
7437 2012-01-02 Yao Qi <yao@codesourcery.com>
7439 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7441 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7442 Joel Brobecker <brobecker@adacore.com>
7444 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7445 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7447 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7448 fall through into AT_ENTRY_POINT.
7449 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7451 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7452 PPC_INSN_SIZE skip to 3 times.
7454 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7456 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7458 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7460 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7462 Build gdb directly from *.o files not using libgdb.a.
7463 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7464 (COMMON_OBS): Remove solib-target.o.
7465 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7466 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7467 (LIBGDB_OBS, libgdb.a): Move it above.
7468 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7469 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7470 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7471 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7472 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7473 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7474 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7475 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7476 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7477 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7478 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7479 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7480 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7481 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7482 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7483 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7484 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7485 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7486 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7487 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7488 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7489 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7490 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7491 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7492 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7493 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7494 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7496 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7498 Remove the gdbtui binary.
7499 * .gitignore (/gdbtui): Remove.
7500 * Makefile.in (TUI): Remove.
7501 (SUBDIR_TUI_OBS): Remove tui-main.o.
7502 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7503 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7504 (tui-main.o): Remove.
7505 (all_object_files): Remove tui-main.o.
7506 * NEWS: New note for the gdbtui removal.
7507 * configure: Rebuilt.
7508 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7509 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7510 CONFIG_UNINSTALL respectively.
7511 * gdb.c (main): Remove args.interpreter_p initialization.
7512 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7513 * main.h (struct captured_main_args): Remove interpreter_p.
7514 * tui/tui-main.c: Remove.
7516 2012-01-01 Doug Evans <dje@google.com>
7518 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7519 (dwarf2_physname, read_import_statement): Ditto.
7520 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7521 (process_structure_scope read_subroutine_type): Ditto.
7522 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7523 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7524 (dwarf2_fetch_die_location_block): Ditto.
7525 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7527 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7528 All callers updated.
7529 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7530 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7531 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7533 * dwarf2read.c (load_cu): Move assert to more useful location.
7535 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7536 All callers updated.
7538 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7539 (dwarf2_elf_names): Minor reformat.
7540 (dwarf2_per_cu_data): Tweak comment.
7541 (dwarf2_read_section): Fix comment.
7542 (create_all_comp_units): Fix comment.
7543 (load_full_comp_unit): Fix comment.
7544 (process_full_comp_unit): Fix comment.
7545 (read_signatured_type): Fix comment.
7547 For older changes see ChangeLog-2011.
7553 version-control: never