1 2012-06-27 Tom Tromey <tromey@redhat.com>
4 * varobj.c (varobj_create): Update.
5 (varobj_set_value): Update.
6 * tracepoint.c (validate_actionline): Update.
7 (encode_actions_1): Update.
8 * parse.c (parse_exp_1): Add 'pc' argument.
9 (parse_exp_in_context): Add 'pc' argument. Change how
10 expression_context_pc is set.
11 (parse_expression): Update.
12 (parse_field_expression): Update.
13 * expression.h (parse_exp_1): Update.
14 * eval.c (parse_to_comma_and_eval): Update.
15 * breakpoint.c (set_breakpoint_condition): Update.
16 (update_watchpoint): Update.
17 (init_breakpoint_sal): Update
18 (find_condition_and_thread): Update.
19 (watch_command_1): Update.
20 (update_breakpoint_locations): Update.
21 * ada-lang.c (ada_read_renaming_var_value): Update.
22 (create_excep_cond_exprs): Update.
24 2012-06-27 Doug Evans <dje@google.com>
26 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
29 2012-06-26 Doug Evans <dje@google.com>
31 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
33 (error_check_comp_unit_head): New arg abbrev_section. All callers
35 (read_and_check_comp_unit_head): Ditto.
36 (read_and_check_type_unit_head): Ditto.
38 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
40 New attribute 'last' for gdb.Symtab_and_line.
41 * NEWS (Python Scripting): Add entry about the new attribute.
42 * python/py-symtab.c (salpy_get_last): New function which
43 implements the get method for the 'last' attribute of
45 (sal_object_getset): Add entry for the 'last' attribute.
47 2012-06-26 Doug Evans <dje@google.com>
49 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
50 (dwo_sections): Add macinfo, macro.
51 (dwarf2_locate_dwo_sections): Watch for macro sections.
52 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
53 All callers updated. Handle DWO files.
55 * NEWS: Mention new options "set debug dwarf2-read" and
56 "set debug symtab-create".
57 * dwarf2read.c (dwarf2_read_debug): New static global.
58 (dwarf2_build_psymtabs_hard): Add debugging printfs.
59 (process_queue): Ditto.
60 (process_full_comp_unit): Ditto.
61 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
62 * elfread.c (elf_symfile_read): Add debugging printf.
63 * minsyms.c (install_minimal_symbols): Ditto.
64 * psymtab.c (allocate_psymtab): Ditto.
65 * symfile.c (allocate_symtab): Ditto.
66 * symtab.c (symtab_create_debug): New global.
67 (_initialize_symtab): Add new option "set debug symtab-create".
68 * symtab.h (symtab_create_debug): Declare.
70 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
71 (lookup_dwo_type_unit): Ditto.
73 2012-06-26 Roland McGrath <roland@hack.frob.com>
74 H.J. Lu <hongjiu.lu@intel.com>
76 * amd64-linux-nat.c: Include <sys/user.h>.
77 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
78 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
79 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
81 * configure.ac: Check if the fs_base and gs_base members of
82 `struct user_regs_struct' exist.
83 * config.in: Regenerated.
84 * configure: Likewise.
86 2012-06-25 Michael Eager <eager@eagercon.com>
89 * python/python.c (gdbpy_write): Check for interrupted output.
91 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
93 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
94 register as a stack alignment in ARM mode.
96 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
98 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
99 * gnulib/config.in: Regenerate.
100 * gnulib/configure: Likewise.
101 * gnulib/import/m4/extensions.m4: Update it.
102 * gnulib/import/m4/gnulib-common.m4: Likewise.
103 * gnulib/import/m4/memmem.m4: Likewise.
104 * gnulib/import/m4/mmap-anon.m4: Likewise.
105 * gnulib/import/m4/multiarch.m4: Likewise.
106 * gnulib/import/stdint.in.h: Likewise.
108 2012-06-24 Yao Qi <yao@codesourcery.com>
110 * corefile.c (write_memory_with_notification): New.
111 * gdbcore.h: Declare write_memory_with_notification.
112 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
113 'observer_notify_memory_changed' with 'write_memory_with_notification'.
114 * valops.c (value_assign): Likewise.
115 * python/py-inferior.c (infpy_write_memory): Call
116 'write_memory_with_notification'.
118 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
120 * cc-with-index.sh: Use also -ex "set auto-load no".
122 2012-06-23 Doug Evans <dje@google.com>
125 * NEWS: Document additions to .gdb_index.
126 * dwarf2read.c: #include "gdb/gdb-index.h".
127 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
128 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
129 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
130 (dwarf2_read_index): Recognize version 7.
131 (dw2_do_expand_symtabs_matching): New args want_specific_block,
132 block_kind, domain): All callers updated.
133 (dw2_find_symbol_file): Handle new index CU values.
134 (dw2_expand_symtabs_matching): Match symbol kind if requested.
135 (add_index_entry): New args is_static, kind. All callers updated.
136 (offset_type_compare, uniquify_cu_indices): New functions
137 (symbol_kind): New function.
138 (write_psymtabs_to_index): Remove duplicate CU values.
139 (write_psymtabs_to_index): Write .gdb_index version 7.
141 2012-06-22 Joel Brobecker <brobecker@adacore.com>
143 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
144 * configure: Regenerate.
146 2012-06-20 Yao Qi <yao@codesourcery.com>
148 * python/py-inferior.c: Update comments of infpy_read_memory
149 and infpy_write_memory.
151 2012-06-19 Tom Tromey <tromey@redhat.com>
154 * parser-defs.h (insert_type, insert_type_address_space): Declare.
155 (push_type_address_space): Remove.
156 * parse.c (insert_into_type_stack): New function.
157 (insert_type): Likewise.
158 (insert_type_address_space): Rename from push_type_address_space.
159 Insert tp_space_identifier.
160 * c-exp.y (ptr_operator): New production.
161 (abs_decl): Use ptr_operator.
162 (space_identifier): Call insert_type_address_space.
163 (ptype): Don't use const_or_volatile_or_space_identifier.
164 (const_or_volatile_noopt): Call insert_type.
165 (conversion_type_id, conversion_declarator): New productions.
166 (operator): Use conversion_type_id.
168 2012-06-18 Doug Evans <dje@google.com>
170 * symtab.h (minimal_symbol): New member created_by_gdb.
171 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
173 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
174 (search_symbols): Call it instead of lookup_symbol.
175 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
177 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
178 Adjust address for DW_OP_GNU_addr_index.
179 * dwarf2expr.h (dwarf_expr_context): Update comment.
180 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
181 all callers updated. Handle TLS vars described with
182 DW_OP_GNU_const_index.
183 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
184 and DW_OP_GNU_const_index.
185 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
187 * block.c (find_block_in_blockvector): Make explicit the fact that we
190 2012-06-18 Tom Tromey <tromey@redhat.com>
192 * c-exp.y (operator): Remove trailing space after "delete" and
195 2012-06-18 Mark Kettenis <kettenis@gnu.org>
196 Jan Kratochvil <jan.kratochvil@redhat.com>
198 Switch i386 and derived targets to ON_STACK.
199 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
200 (amd64_dicos_init_abi): Remove its installment.
201 * dicos-tdep.c (dicos_init_abi): Remove the
202 set_gdbarch_call_dummy_location call. Update the comment here.
203 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
204 (i386_dicos_init_abi): Remove its installment.
205 * i386-tdep.c (i386_push_dummy_code): New function.
206 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
207 i386_push_dummy_code.
209 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
211 Remove stale dummy frames.
212 * breakpoint.c: Include dummy-frame.h.
213 (longjmp_breakpoint_ops): New variable.
214 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
215 bp_longjmp_call_dummy.
216 (bpstat_what, bptype_string, print_one_breakpoint_location)
217 (init_bp_location): Support bp_longjmp_call_dummy.
218 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
219 (set_longjmp_breakpoint_for_call_dummy)
220 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
222 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
223 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
224 FIXME comment and extend the other comment for bp_call_dummy.
225 (set_longjmp_breakpoint_for_call_dummy)
226 (check_longjmp_breakpoint_for_call_dummy): New declarations.
227 * dummy-frame.c: Include gdbthread.h.
228 (pop_dummy_frame_bpt): New function.
229 (pop_dummy_frame): Call pop_dummy_frame_bpt.
230 (dummy_frame_discard): New function.
231 (cleanup_dummy_frames): Update the comment about longjmps.
232 * dummy-frame.h (dummy_frame_discard): New declaration.
233 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
234 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
235 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
236 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
237 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
238 keep_going if IS_LONGJMP and there is no other reason to stop.
240 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
242 * remote-sim.c (sim_command_completer): Initialize
245 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
247 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
248 * dwarf2loc.c (call_site_parameter_matches): Support
249 CALL_SITE_PARAMETER_PARAM_OFFSET.
250 (needs_dwarf_reg_entry_value): Push stub value.
251 * dwarf2read.c (read_call_site_scope): New variable origin. Support
252 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
253 * gdbtypes.h (enum call_site_parameter_kind): New item
254 CALL_SITE_PARAMETER_PARAM_OFFSET.
255 (struct call_site.parameter.u): New field param_offset.
257 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
259 Code cleanup: Generalize call_site.parameter key.
260 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
261 variable dwarf_reg. New variable kind_u. Update parameters to
262 push_dwarf_reg_entry_value.
263 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
264 * dwarf2expr.h (enum call_site_parameter_kind)
265 (union call_site_parameter_u): Forward declarations.
266 (struct dwarf_expr_context_funcs): Update parameters and their
267 description for push_dwarf_reg_entry_value.
268 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
269 * dwarf2loc.c (call_site_parameter_matches): New function.
270 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
271 description. Use call_site_parameter_matches.
272 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
273 Update parameters and their description.
274 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
275 New variable kind_u. Adjust the caller for updated parameters.
276 (needs_dwarf_reg_entry_value): Update parameters.
277 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
278 instead of attr. Update for the changed fields of struct
280 * gdbtypes.h: Include dwarf2expr.h.
281 (enum call_site_parameter_kind): New.
282 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
283 fb_offset into new union u.
285 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
287 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
288 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
291 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
293 * amd64-linux-nat.c (compat_x32_clock_t): New.
294 (compat_x32_siginfo_t): Likewise.
295 (compat_x32_siginfo_from_siginfo): Likewise.
296 (siginfo_from_compat_x32_siginfo): Likewise.
297 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
298 and siginfo_from_compat_x32_siginfo for x32.
300 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
302 * tracepoint.c (tfile_xfer_partial): Add a lseek.
304 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
306 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
307 instead of gdbarch_ptr_bit.
308 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
309 (amd64_supply_native_gregset): Likewise.
310 (amd64_collect_native_gregset): Likewise.
311 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
312 (amd64_supply_xsave): Likewise.
313 (amd64_collect_fxsave): Likewise.
314 (amd64_collect_xsave): Likewise.
316 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
318 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
319 (amd64_linux_read_description): Check DS segment register for
322 2012-06-15 Tom Tromey <tromey@redhat.com>
324 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
325 init_cutu_and_read_dies.
327 2012-06-15 Iain Sandoe <iain@codesourcery.com>
329 * MAINTAINERS (Write After Approval): Add myself to the list.
331 2012-06-15 Tom Tromey <tromey@redhat.com>
333 * valops.c (value_find_oload_method_list): Now static.
334 * value.h (value_find_oload_method_list): Don't declare.
336 2012-06-15 Tom Tromey <tromey@redhat.com>
338 * valops.c (find_overload_match): Use value_ind.
340 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
342 * infrun.c (handle_inferior_event): Correct indentation.
344 2012-06-14 Doug Evans <dje@google.com>
346 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
347 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
349 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
350 updated. Handle DEBUG_LOC_START_LENGTH.
351 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
352 (loclist_describe_location): Ditto.
354 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
357 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
358 after hiding inline functions.
360 2012-06-13 Joel Brobecker <brobecker@adacore.com>
362 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
363 _initialize_inf_ttrace.
365 2012-06-13 Joel Brobecker <brobecker@adacore.com>
367 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
368 _initialize_hppa_hpux_nat.
370 2012-06-13 Joel Brobecker <brobecker@adacore.com>
372 * remote-sim.c (sim_command_completer): Change type of return
373 value to "VEC (char_ptr) *". Adjust implementation accordingly.
375 2012-06-13 Mark Kettenis <kettenis@gnu.org>
376 Jan Kratochvil <jan.kratochvil@redhat.com>
379 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
380 stack on a 16-byte boundary.
382 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
384 * jit.c (finalize_symtab): Set function's return type to 'void' by
387 2012-06-13 Mark Kettenis <kettenis@gnu.org>
388 H.J. Lu <hongjiu.lu@intel.com>
390 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
391 Move bits common to both the classic LP64 and the new x32 ILP32
393 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
394 (amd64_x32_linux_init_abi): New function.
395 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
398 * i386-tdep.h (i386_pseudo_register_name): New prototype.
399 * i386-tdep.c (i386_pseudo_register_name): Make public.
400 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
401 * amd64-tdep.c (amd64_dword_names): Add "eip".
402 (amd64_x32_pseudo_register_type): New function
403 (amd64_x32_init_abi): New function.
405 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
408 * inferior.h (struct inferior_suspend_state): Comment out.
409 (struct inferior): Comment out the field suspend.
410 * infrun.c (struct infcall_suspend_state): Comment out the field
412 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
415 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
417 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
418 * c-exp.y (classify_inner_name): Remove caller assumptions in the
419 function comment. Return ERROR for unresolved cases. Implement
420 returning proper NAME.
421 (yylex): Accept also NAME from classify_inner_name.
422 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
423 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
425 * cp-support.h (cp_lookup_nested_type): Update its declaration.
427 2012-06-13 Tom Tromey <tromey@redhat.com>
429 * breakpoint.c (condition_completer): New function.
430 (_initialize_breakpoint): Use it.
431 * value.c (complete_internalvar): New function.
432 * value.h (complete_internalvar): Declare.
434 2012-06-13 Tom Tromey <tromey@redhat.com>
436 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
437 * breakpoint.c (catch_syscall_completer): Return a VEC.
438 * cli/cli-cmds.c (complete_command): Update.
439 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
440 (complete_on_enum): Likewise.
441 * command.h: Include gdb_vecs.h.
442 (completer_ftype): Change return type.
443 (complete_on_cmdlist, complete_on_enum): Likewise.
444 * completer.c (noop_completer, filename_completer)
445 (location_completer): Return a VEC.
446 (add_struct_fields): Remove 'nextp' argument. Change 'output'
448 (expression_completer, complete_line_internal, complete_line)
449 (command_completer): Return a VEC.
450 (gdb_completion_word_break_characters, line_completion_function):
452 * completer.h: Include gdb_vecs.h.
453 (complete_line, noop_completer, filename_completer)
454 (expression_completer, location_completer, command_completer):
456 * f-lang.c (f_word_break_characters): Return a VEC.
457 * interps.c (interpreter_completer): Return a VEC.
458 * language.h (struct language_defn)
459 <la_make_symbol_completion_list>: Return a VEC.
460 * python/py-cmd.c (cmdpy_completer): Return a VEC.
461 * symtab.c (free_completion_list): Take a VEC.
462 (return_val_size, return_val_index): Remove.
463 (return_val): Now a VEC.
464 (completion_list_add_name): Update.
465 (default_make_symbol_completion_list_break_on)
466 (default_make_symbol_completion_list, make_symbol_completion_list)
467 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
469 (add_filename_to_list): Update.
470 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
472 (maybe_add_partial_symtab_filename): Update.
473 (make_source_files_completion_list): Return a VEC.
474 * symtab.h (default_make_symbol_completion_list_break_on)
475 (default_make_symbol_completion_list, make_symbol_completion_list)
476 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
477 (make_source_files_completion_list): Update.
479 2012-06-13 Tom Tromey <tromey@redhat.com>
481 * breakpoint.c (add_catch_command): Use completer_ftype.
482 * breakpoint.h: Include command.h.
483 (add_catch_command): Use completer_ftype.
484 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
485 * cli/cli-decode.h (struct cmd_list_element) <completer>:
487 * command.h (completer_ftype): New typedef.
488 (set_cmd_completer): Use it.
489 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
492 2012-06-13 Pedro Alves <palves@redhat.com>
494 Partial revert of previous change.
496 * serial.c (scb_base): New global.
497 (serial_for_fd): New.
498 (serial_open, serial_fdopen_ops): Link new serial in open serials
500 (do_serial_close): Unlink serial from the open serials chain.
502 2012-06-12 Pedro Alves <palves@redhat.com>
504 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
506 (prepare_for_detach): No longer context switch here in non-stop
508 (fetch_inferior_event): Ditto.
509 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
510 to the event thread before removing breakpoints. Switch to the
511 event thread before inserting breakpoints and resuming.
512 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
513 event thread before resuming.
514 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
515 Switch to the event thread before removing breakpoints.
517 2012-06-12 Eli Zaretskii <eliz@gnu.org>
519 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
520 special characters correctly for the Windows shells. See
521 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
523 [!__MINGW32__]: Remove extra double quote character from special
526 2012-06-11 Stan Shebs <stan@codesourcery.com>
528 * ui-out.h: Remove #if 0 declarations.
529 * ui-out.c: Remove #if 0 functions.
531 2012-06-11 Pedro Alves <palves@redhat.com>
533 * ser-base.c (run_async_handler_and_reschedule): New.
534 (fd_event, push_event): Use it.
535 * serial.c (serial_open, serial_fdopen_ops): Set the initial
536 reference count to 1.
537 (do_serial_close): Set the bufp field to NULL. Use serial_unref
539 (serial_is_open, serial_ref, serial_unref): New.
540 * serial.h (serial_open): Adjust comment.
541 (serial_is_open): Declare.
542 (serial_close): Adjust comment.
543 (serial_ref, serial_unref) Declare.
544 (struct serial): New field 'refcnt'.
546 2012-06-11 Pedro Alves <palves@redhat.com>
548 Remove #if 0'd "connect" command, and unnecessary associated
549 refcounting and serial reuse bits.
551 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
552 * serial.c (last_serial_opened): Delete.
554 (serial_open): Adjust.
555 (serial_for_fd): Delete.
556 (serial_fdopen_ops, do_serial_close): Adjust.
557 (serial_fdopen_ops): Adjust.
559 2012-06-11 Pedro Alves <palves@redhat.com>
561 * serial.c (do_serial_close): Remove early return when SCB is
564 2012-06-11 Tom Tromey <tromey@redhat.com>
566 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
568 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
570 Fix regression by the "ambiguous linespec" series.
571 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
572 get_last_displayed_symtab and get_last_displayed_line and depending
575 2012-06-11 Tom Tromey <tromey@redhat.com>
577 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
578 (dw2_find_symbol_file): Use it.
580 2012-06-11 Michael Eager <eager@eagercon.com>
582 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
583 * mips-linux-tdep.h (mips_signals): New
585 2012-06-11 Tom Tromey <tromey@redhat.com>
587 * infrun.c (handle_inferior_event)
588 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
590 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
591 exception logic in all cases. Update comments.
592 (insert_longjmp_resume_breakpoint): Set the exception resume
595 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
597 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
599 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
601 * valarith.c (binop_types_user_defined_p): Fix a typo.
603 2012-06-08 Yao Qi <yao@codesourcery.com>
604 Chung-Lin Tang <cltang@codesourcery.com>
606 * arch-utils.c (default_return_in_first_hidden_param_p): New.
607 * arch-utils.h: Declare.
608 * gdbarch.sh: Add return_in_first_hidden_param_p.
609 * gdbarch.c, gdbarch.h: Regenerated.
610 * infcall.c (call_function_by_hand): Call
611 gdbarch_return_in_first_hidden_param_p instead of
612 language_pass_by_reference.
614 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
615 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
616 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
617 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
618 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
619 `cplus_return_struct_by_reference'.
620 (tic6x_return_value): Handle language cplusplus.
621 (tic6x_return_in_first_hidden_param_p): New.
622 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
624 2012-06-07 Doug Evans <dje@google.com>
626 * dwarf2read.c (dwarf2_cu): Add comment.
628 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
630 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
632 (mips_eabi_push_dummy_call): Likewise.
633 (mips_n32n64_push_dummy_call): Likewise.
634 (mips_o32_push_dummy_call): Likewise.
635 (mips_o64_push_dummy_call): Likewise.
637 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
639 * mips-tdep.c (mips_convert_register_p): Correct coding style.
641 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
643 * mips-tdep.c (mips_pseudo_register_type): Use
644 mips_float_register_p.
646 2012-06-06 Pedro Alves <palves@redhat.com>
648 * infrun.c (handle_inferior_event): Remove calls to
649 reinit_frame_cache that follow a context_switch call.
651 2012-06-06 Pedro Alves <palves@redhat.com>
653 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
654 context_switch and remove stale comment.
656 2012-06-06 Pedro Alves <palves@redhat.com>
658 * infrun.c (struct execution_control_state): Remove
659 `new_thread_event' field.
660 (handle_inferior_event): Simplify new threads handling; don't
661 resume the inferior if we find a new thread.
663 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
665 * NEWS: Document the deprecation of SH's 'regs' command.
666 * inferior.h (all_registers_info): Add function declaration.
667 * sh-tdep.c (sh_show_regs): Remove variable.
668 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
669 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
670 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
671 (sh_show_regs_command): Remove functions.
672 (sh_gdbarch_init): Don't set sh_show_regs.
673 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
674 'info all-registers'.
675 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
676 (sh64_show_regs): Remove functions.
677 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
679 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
681 * configure.ac: Move development=true below AC_INIT.
682 * configure: Regenerate.
684 2012-06-05 Stan Shebs <stan@codesourcery.com>
686 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
689 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
691 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
693 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
694 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
695 * target.c (target_read_stack, target_write_memory)
696 (target_write_raw_memory): Likewise.
697 * target.h (target_read_stack, target_write_memory)
698 (target_write_raw_memory): Likewise.
700 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
702 * symfile-mem.c: Change gdb_static_assert to ssize_t.
703 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
704 * target.c (target_read_memory): Change LEN to ssize_t.
705 * target.h (target_read_memory): Change LEN to ssize_t.
707 2012-06-05 Pedro Alves <palves@redhat.com>
711 * breakpoint.c (until_break_command): Only fetch the selected
712 frame after decode_line_1.
714 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
716 * solib-svr4.c (enable_break): Don't fallback to setting the solib
717 event breakpoint at _start, __start or main if a program
718 interpreter is not found.
720 2012-06-05 Joel Brobecker <brobecker@adacore.com>
722 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
724 * windows-tdep.c: #include "objfiles.h".
725 (windows_iterate_over_objfiles_in_search_order): New function.
726 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
727 iterate_over_objfiles_in_search_order gdbarch method to
728 windows_iterate_over_objfiles_in_search_order.
729 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
731 2012-06-05 Joel Brobecker <brobecker@adacore.com>
733 * gdbarch.sh: Add generation of
734 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
735 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
736 (iterate_over_objfiles_in_search_order): New gdbarch method.
737 * gdbarch.h, gdbarch.c: Regenerate.
738 * objfiles.h (default_iterate_over_objfiles_in_search_order):
740 * objfiles.c (default_iterate_over_objfiles_in_search_order):
742 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
743 out of lookup_symbol_aux_symtabs.
744 (lookup_symbol_aux_symtabs): Replace extracted-out code by
745 call to lookup_symbol_aux_objfile.
746 (struct global_sym_lookup_data): New type.
747 (lookup_symbol_global_iterator_cb): New function.
748 (lookup_symbol_global): Search for symbol using
749 gdbarch_iterate_over_objfiles_in_search_order and
750 lookup_symbol_global_iterator_cb.
751 * findvar.c (struct minsym_lookup_data): New type.
752 (minsym_lookup_iterator_cb): New function.
753 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
754 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
755 and minsym_lookup_iterator_cb.
757 2012-06-05 Joel Brobecker <brobecker@adacore.com>
759 Revert the following patch:
760 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
761 try locating the symbol in the symbol's own objfile first, before
762 extending the search to all objfiles.
763 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
764 out of lookup_symbol_aux_symtabs.
765 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
766 Replace extracted-out code by call to lookup_symbol_aux_objfile.
767 Do not search EXCLUDE_OBJFILE.
768 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
769 (lookup_symbol_global): Search for matches in the block's objfile
770 first, before searching all other objfiles.
772 2012-06-05 Joel Brobecker <brobecker@adacore.com>
774 * breakpoint.c (find_condition_and_thread): Stop parsing
775 as soon as the first invalid keyword is found.
777 2012-06-05 Joel Brobecker <brobecker@adacore.com>
779 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
781 2012-06-05 Joel Brobecker <brobecker@adacore.com>
783 * config/djgpp/djcheck.sh: Add copyright header.
785 2012-06-05 Joel Brobecker <brobecker@adacore.com>
787 * copyright.py (update_files, main): Fix path to update-copyright
790 2012-06-05 Joel Brobecker <brobecker@adacore.com>
792 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
793 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
794 for which a reminder to update by hand is printed.
796 2012-06-04 Doug Evans <dje@google.com>
798 * buildsym.c (make_blockvector): Add comment.
800 2012-06-04 Pedro Alves <palves@redhat.com>
802 * arch-utils.c (default_gdb_signal_from_target): Delete.
803 * arch-utils.h (default_gdb_signal_from_target): Delete.
804 * corelow.c (core_open) <signal mapping>: Extended comment. Check
805 gdbarch_gdb_signal_from_target_p.
806 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
808 * gdbarch.h: Regenerate.
809 * gdbarch.c: Regenerate.
811 2012-06-04 Pedro Alves <palves@redhat.com>
813 * gdbarch.sh (gdb_signal_from_target): Mention that the
814 implementation of the method must be host independent.
815 * gdbarch.h: Regenerate.
817 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
819 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
821 (target_read_memory_bfd): New function.
822 (symbol_file_add_from_memory): Use it.
824 2012-06-03 Doug Evans <dje@google.com>
826 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
828 (basic_lookup_transparent_type): Ditto.
830 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
831 (ALL_PRIMARY_SYMTABS): Use it.
832 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
833 * dwarf2read.c (dw2_find_symbol_file): Ditto.
834 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
835 * symtab.c (lookup_symbol_aux_objfile): Ditto.
836 (basic_lookup_transparent_type): Ditto.
838 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
840 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
841 it to optimize resolution of demangled name.
843 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
845 * configure.ac (development): Define new variable.
846 Call AC_CHECK_LIB for mcheck if $development.
847 (ERROR_ON_WARNING): Enable it by default only if $development.
848 * config.in: Regenerate.
849 * configure: Regenerate.
851 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
853 * target.c (target_read_memory): Make LEN argument as size_t.
854 * target.h (target_read_memory): Likewise.
856 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
858 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
860 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
862 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
863 BookE interface for PowerPC server processors if not available
866 2012-05-31 Keith Seitz <keiths@redhat.com>
868 * linespec.c (decode_objc): Add cleanup to free
870 (find_linespec_symbols): Add cleanup to free CLASSES.
871 * symfile.c (find_separate_debug_file_by_debuglink): Add
872 cleanup to free DEBUGLINK.
873 * ui-out.c (clear_header_list): No need to check if
874 HEADER_NEXT.COLHDR is NULL.
875 Free HEADER_NEXT.COL_NAME.
877 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
879 * ada-lang.c (standard_lookup): Prevent uninitialized variable
882 2012-05-30 Jeff Kenton <jkenton@tilera.com>
884 * configure.host (gdb_host_cpu): Handle tilegx*.
885 (gdb_host): Handle tilegx-*-linux*.
886 * tilegx-linux-nat.c: New file.
887 * config/tilegx/linux.mh: New file.
889 2012-05-30 Jeff Kenton <jkenton@tilera.com>
891 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
893 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
895 * configure.tgt: Handle tilegx-*-linux*.
896 * tilegx-tdep.h: New file.
897 * tilegx-tdep.c: New file.
898 * tilegx-linux-tdep.c: New file.
899 * regformats/reg-tilegx.dat: New file.
901 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
903 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
904 accounting of hw watchpoints on ppc.
906 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
908 * source.c (openp): Expand tilde in path entries.
910 2012-05-29 Doug Evans <dje@google.com>
912 * buildsym.c (block_compar): Fix comment.
913 (end_symtab): Fix and clarify some comments.
915 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
916 cleanup_undefined_types.
917 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
920 2012-05-29 Tom Tromey <tromey@redhat.com>
922 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
924 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
925 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
927 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
930 2012-05-29 Tristan Gingold <gingold@adacore.com>
932 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
933 (struct darwin_info): ... New struct.
934 (solib_darwin_pspace_data): New variable.
935 (darwin_pspace_data_cleanup): New function.
936 (get_darwin_info): Likewise.
937 (darwin_dyld_version_ok, darwin_load_image_infos)
938 (darwin_solib_get_all_image_info_addr_at_init)
939 (darwin_solib_read_all_image_info_addr): Add info argument.
941 (darwin_current_sos): Use per pspace structure.
942 (darwin_solib_create_inferior_hook): Likewise.
943 (darwin_clear_solib): Likewise.
944 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
946 2012-05-28 Pedro Alves <palves@redhat.com>
948 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
949 block that uses them. Clear ecss before handling each event.
951 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
953 * solib-svr4.c (svr4_current_sos): New comment on
954 svr4_current_sos_via_xfer_libraries fall back.
956 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
958 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
959 it as a fallback for TYPE_IS_OPAQUE.
960 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
961 symbols for lookup_symbol.
963 2012-05-24 John Steele Scott <toojays@toojays.net>
965 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
966 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
967 (producer_is_gxx_lt_4_6): Move the checking and caching to...
968 (check_producer): ... this new function, which also checks for ICC
969 and caches the result.
970 (producer_is_icc): New function.
971 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
974 2012-05-24 Pedro Alves <palves@redhat.com>
978 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
979 (default_gdb_signal_to_target): ... this. Add comment.
980 (default_gdb_signal_from_host): Rename to ...
981 (default_gdb_signal_from_target): ... this. Add comment.
982 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
983 (default_gdb_signal_to_target): ... this.
984 (default_gdb_signal_from_host): Rename to ...
985 (default_gdb_signal_from_target): ... this.
986 * corelow.c (core_open): Adjust to naming change. Replace comment.
987 * gdbarch.sh (gdb_signal_from_host): Rename to ...
988 (gdb_signal_from_target): ... this. Adjust to
989 default_gdb_signal_from_host naming change. Extend comment.
990 (gdb_signal_to_host): Rename to ...
991 (gdb_signal_to_target): ... this. Adjust to
992 default_gdb_signal_to_host naming change.
993 * gdbarch.h, gdbarch.c: Renegerate.
995 2012-05-24 Pedro Alves <palves@redhat.com>
999 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1001 2012-05-24 Pedro Alves <palves@redhat.com>
1005 Replace target_signal with gdb_signal throughout.
1007 2012-05-24 Pedro Alves <palves@redhat.com>
1011 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1012 string, instead of reusing the va_list argument.
1014 2012-05-24 Tom Tromey <tromey@redhat.com>
1016 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1019 2012-05-23 Doug Evans <dje@google.com>
1021 * symtab.c (search_symbols): Formatting fixes.
1022 (print_symbol_info): Formatting fixes.
1024 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1025 int64_t change to leb128 API.
1026 (read_encoded_value, decode_frame_entry_1): Ditto.
1027 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1028 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1029 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1030 (execute_stack_op): Ditto.
1031 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1032 (safe_read_uleb128, safe_read_sleb128): Ditto.
1033 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1034 (dwarf2_compile_expr_to_ax): Ditto.
1035 (locexpr_describe_location_piece): Ditto.
1036 (disassemble_dwarf_expression): Ditto.
1037 (locexpr_describe_location_1): Ditto.
1039 2012-05-23 Stan Shebs <stan@codesourcery.com>
1040 Kwok Cheung Yeung <kcy@codesourcery.com>
1042 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1043 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1044 (mi-cmd-info.o): New rule.
1045 * osdata.h (info_osdata_command): New declaration.
1046 * osdata.c (info_osdata_command): Change to non-static.
1047 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1048 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1049 * mi/mi-cmd-info.c: New file.
1051 2012-05-23 Doug Evans <dje@google.com>
1053 * symtab.c (search_symbols): Pass NULL for file_matcher to
1054 expand_symtabs_matching if there are no files to match.
1056 * gdbtypes.c (lookup_typename): Simplify.
1058 2012-05-23 Pedro Alves <palves@redhat.com>
1060 * arch-utils.h (default_target_signal_to_host): Delete.
1061 * arch-utils.c (default_target_signal_to_host): Delete.
1062 * gdbarch.sh (target_signal_to_host): Remove.
1063 * gdbarch.h, gdbarch.c: Regenerate.
1065 2012-05-22 Doug Evans <dje@google.com>
1067 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1069 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1070 (execute_cfa_program): Update to match API of leb128 functions.
1071 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1073 (read_unsigned_leb128, read_signed_leb128): Delete.
1074 (read_initial_length): Change type of buf argument to
1076 (read_encoded_value): Update to match API of leb128 functions.
1077 (decode_frame_entry): Change result to "const gdb_byte *", and
1078 similarly for "start" parameter.
1079 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1080 (dwarf2_build_frame_info): Change local frame_ptr to
1082 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1083 read_uleb128, read_sleb128. All callers updated.
1084 (safe_skip_leb128): New function.
1085 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1086 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1087 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1088 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1089 read_uleb128, read_sleb128.
1090 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1091 (execute_stack_op): Update to match API of leb128 functions.
1092 * dwarf2expr.h: #include "leb128.h".
1093 (read_uleb128, read_sleb128): Delete.
1094 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1095 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1096 * dwarf2loc.c (debug_loc_kind): New enum.
1097 (decode_debug_loc_addresses): New function.
1098 (decode_debug_loc_dwo_addresses): New function.
1099 (dwarf2_find_location_expression): Rewrite.
1100 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1101 (locexpr_describe_location_piece): Ditto.
1102 (disassemble_dwarf_expression): Ditto.
1103 (locexpr_describe_location_1): Ditto.
1104 (loclist_describe_location): Rewrite.
1105 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1106 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1107 (dwarf2_section_buffer_overflow_complaint): Renamed from
1108 dwarf2_macros_too_long_complaint. All callers updated.
1109 (skip_leb128): Delete.
1110 (init_cu_die_reader): Initialize reader->buffer_end.
1111 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1112 (skip_form_bytes): New arg buffer_end. All callers updated.
1113 Replace call to skip_leb128 with gdb_skip_leb128.
1114 (skip_unknown_opcode): New arg mac_end. All callers updated.
1115 (fill_in_loclist_baton): Initialize baton->from_dwo.
1117 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1119 * mips-linux-nat.c (mips_linux_read_description): Use a more
1120 verbose error message.
1122 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1124 * NEWS: Add MIPS/Linux DSP support.
1125 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1126 (SIGCONTEXT_DSPCTL): New macro.
1127 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1128 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1129 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1130 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1131 (N64_SIGCONTEXT_HI3): Likewise.
1132 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1133 (N64_SIGCONTEXT_LO3): Likewise.
1134 (N64_SIGCONTEXT_DSPCTL): Likewise.
1135 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1136 (mips_linux_o32_sigframe_init): Handle DSP registers.
1137 (mips_linux_n32n64_sigframe_init): Likewise.
1139 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1141 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1144 2012-05-22 Pedro Alves <palves@redhat.com>
1146 * target.h (store_waitstatus): Move declaration ...
1147 * inf-child.h (store_waitstatus): ... here.
1148 * target.c: Move inclusion of gdb_wait.h, and ...
1149 (store_waitstatus): ... this ...
1150 * inf-child.c: ... here.
1151 * linux-nat.c: Include inf-child.h.
1152 * rs6000-nat.c: Include inf-child.h.
1153 * spu-linux-nat.c: Include inf-child.h.
1155 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1157 * tracepoint.c (start_tracing): Add missing i18n markup.
1158 (stop_tracing, set_trace_user): Ditto.
1159 (set_trace_notes, set_trace_stop_notes): Ditto.
1161 2012-05-21 Tom Tromey <tromey@redhat.com>
1164 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1166 * value.h (value_cast_pointers): Update.
1167 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1168 (value_cast): Update.
1169 (update_search_result): New function.
1170 (do_search_struct_field): New, from search_struct_field. Check
1171 for ambiguous results.
1172 (search_struct_field): Rewrite.
1173 * infcall.c (value_arg_coerce): Update.
1174 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1175 value_cast_pointers.
1176 * ada-lang.c (ada_convert_actual): Update.
1178 2012-05-21 Tom Tromey <tromey@redhat.com>
1180 * macroexp.c (macro_stringify): Terminate the string.
1182 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1184 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1186 * auto-load.c (auto_load_expand_dir_vars): New function.
1187 (auto_load_safe_path_vec_update): Use it, remove the
1188 substitute_path_component call thanks to it.
1189 (auto_load_objfile_script): Remove the debug_file_directory processing.
1190 Use auto_load_expand_dir_vars, remove the substitute_path_component
1192 * configure: Regenerate.
1193 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1194 path. Escape $ also for $debugdir.
1195 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1196 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1198 2012-05-20 Doug Evans <dje@google.com>
1200 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1201 before use. Check for symtab->includes == NULL before scanning it.
1203 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1205 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1207 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1209 * NEWS: Add microMIPS support and "set mips compression",
1210 "show mips compression" commands.
1211 * mips-tdep.h (mips_isa): New enum.
1212 (gdbarch_tdep): Add mips_isa.
1213 (mips_pc_is_mips16): Update prototype.
1214 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1215 * mips-tdep.c (mips_compression_mips16): New variable.
1216 (mips_compression_micromips): Likewise.
1217 (mips_compression_strings): Likewise.
1218 (mips_compression_string): Likewise.
1219 (is_mips16_isa, is_micromips_isa): New functions.
1220 (is_mips16_addr): Rename to...
1221 (is_compact_addr): ... this.
1222 (unmake_mips16_addr): Likewise to...
1223 (unmake_compact_addr): ... this.
1224 (make_mips16_addr): Likewise to...
1225 (make_compact_addr): ... this.
1226 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1228 (mips_elf_make_msymbol_special): Handle microMIPS code.
1229 (msymbol_is_special): Rename to...
1230 (msymbol_is_mips16): ... this.
1231 (mips_make_symbol_special, mips_pc_is_mips16): Update
1233 (msymbol_is_mips, msymbol_is_micromips): New functions.
1234 (mips16_to_32_reg): Rename to...
1235 (mips_reg3_to_reg): ... this.
1236 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1237 (mips_pc_isa): Likewise.
1238 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1240 (mips_fetch_instruction): Pass return status instead of printing
1241 an error message if requested. Handle microMIPS code. Bail out
1243 (micromips_op): New macro.
1244 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1245 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1246 (b6s4_op, b7s3_reg): Likewise.
1247 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1248 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1249 (mips_insn_size): New function.
1250 (mips32_next_pc): Update mips_fetch_instruction call.
1251 (micromips_relative_offset7): New function.
1252 (micromips_relative_offset10): Likewise.
1253 (micromips_relative_offset16): Likewise.
1254 (micromips_pc_insn_size): Likewise.
1255 (micromips_bc1_pc): Likewise.
1256 (micromips_next_pc): Likewise.
1257 (unpack_mips16): Update mips_fetch_instruction call.
1258 (extended_mips16_next_pc): Update according to change to
1260 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1262 (mips16_scan_prologue): Update mips_fetch_instruction call.
1263 Update according to change to mips16_to_32_reg.
1264 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1265 (mips_insn16_frame_base_sniffer): Likewise.
1266 (micromips_decode_imm9): New function.
1267 (micromips_scan_prologue): Likewise.
1268 (mips_micro_frame_cache): Likewise.
1269 (mips_micro_frame_this_id): Likewise.
1270 (mips_micro_frame_prev_register): Likewise.
1271 (mips_micro_frame_sniffer): Likewise.
1272 (mips_micro_frame_unwind): New variable.
1273 (mips_micro_frame_base_address): New function.
1274 (mips_micro_frame_base): New variable.
1275 (mips_micro_frame_base_sniffer): New function.
1276 (mips32_scan_prologue): Update mips_fetch_instruction call.
1277 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1278 rather than for MIPS16.
1279 (mips_insn32_frame_base_sniffer): Likewise.
1280 (mips_addr_bits_remove): Handle microMIPS code.
1281 (deal_with_atomic_sequence): Rename to...
1282 (mips_deal_with_atomic_sequence): ... this. Update the type
1283 of the variable used to hold an instruction. Remove the ISA bit
1284 check. Update mips_fetch_instruction call.
1285 (micromips_deal_with_atomic_sequence): New function.
1286 (deal_with_atomic_sequence): Likewise.
1287 (mips_about_to_return): Handle microMIPS code. Update
1288 mips_fetch_instruction call.
1289 (heuristic_proc_start): Check for the standard MIPS ISA rather
1290 than for MIPS16. Update mips_pc_is_mips16 and
1291 mips_fetch_instruction calls. Handle microMIPS code.
1292 (mips_push_dummy_code): Handle microMIPS code.
1293 (mips_eabi_push_dummy_call): Likewise.
1294 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1295 (mips_o64_push_dummy_call): Handle microMIPS code.
1296 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1297 (is_delayed): Remove function.
1298 (mips_single_step_through_delay): Replace the call to is_delayed
1299 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1300 Handle microMIPS code.
1301 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1303 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1305 (micromips_in_function_epilogue_p): New function.
1306 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1308 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1310 (gdb_print_insn_mips): Likewise.
1311 (mips_breakpoint_from_pc): Likewise.
1312 (mips_remote_breakpoint_from_pc): New function.
1313 (mips32_instruction_has_delay_slot): Simplify making use of the
1314 updated mips_fetch_instruction interface.
1315 (micromips_instruction_has_delay_slot): New function.
1316 (mips16_instruction_has_delay_slot): Simplify making use of the
1317 updated mips_fetch_instruction interface.
1318 (mips_adjust_breakpoint_address): Check for the standard MIPS
1319 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1320 calls. Handle microMIPS code.
1321 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1322 (mips_skip_trampoline_code): Handle microMIPS code.
1323 (global_mips_compression): New function.
1324 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1325 file flags. Register the microMIPS remote breakpoint handler
1326 and heuristic frame unwinder.
1327 (show_mips_compression): New function.
1328 (_initialize_mips_tdep): Add the "set mips compression" and
1329 "show mips compression" commands.
1331 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1336 * amd64-darwin-tdep.c:
1337 * arm-symbian-tdep.c:
1341 * bfin-linux-tdep.c:
1348 * dwarf2-frame-tailcall.c:
1377 * microblaze-tdep.c:
1378 * mips-linux-tdep.c:
1386 * python/py-finishbreakpoint.c:
1387 * python/py-inferior.c:
1388 * python/py-infthread.c:
1392 * remote-m32r-sdi.c:
1396 * rs6000-aix-tdep.c:
1422 * amd64-darwin-tdep.c:
1423 * arm-symbian-tdep.c:
1424 * arm-tdep.c: Delete unused variables.
1426 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1428 Rename $ddir to $datadir.
1429 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1430 * auto-load.c (auto_load_safe_path_vec_update)
1431 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1432 * configure: Regenerate.
1433 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1434 Likewise. Remove the 'use $ddir' help string.
1436 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1438 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1439 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1441 2012-05-18 Tom Tromey <tromey@redhat.com>
1444 * valprint.h (struct value_print_options) <symbol_print>: New
1446 * valprint.c (user_print_options): Add default for symbol_print.
1447 (show_symbol_print): New function.
1448 (generic_val_print): Respect symbol_print.
1449 (_initialize_valprint): Add "print symbol" setting.
1450 * f-valprint.c (f_val_print): Respect symbol_print.
1451 * c-valprint.c (c_val_print): Respect symbol_print.
1453 * printcmd.c (print_address_symbolic): Return int. Ignore some
1455 (print_address_demangle): Return int.
1456 * defs.h: (print_address_symbolic): Return int.
1457 * value.h (print_address_demangle): Return int.
1459 2012-05-18 Tom Tromey <tromey@redhat.com>
1461 * valprint.c (val_print_string): Don't print leading space.
1462 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1463 print space before string or vtbl.
1464 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1466 * jv-valprint.c (java_value_print): Print space before string.
1467 * go-valprint.c (print_go_string): Print space before string.
1468 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1469 space before string.
1470 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1471 space before string or vtbl.
1472 * auxv.c (fprint_target_auxv): Print space after address.
1474 2012-05-18 Tom Tromey <tromey@redhat.com>
1476 * printcmd.c (print_address_demangle): Remove special case for 0.
1478 2012-05-18 Tom Tromey <tromey@redhat.com>
1480 * printcmd.c (print_address_demangle): Add 'opts' argument.
1481 * p-valprint.c (pascal_val_print): Update.
1482 * jv-valprint.c (java_val_print): Update.
1484 * valprint.c (generic_val_print): Update.
1485 (print_function_pointer_address): Add 'options' argument. Remove
1486 'addressprint' argument. Update.
1487 * m2-valprint.c (print_unpacked_pointer): Update.
1488 * gnu-v3-abi.c (print_one_vtable): Update.
1489 (gnuv3_print_method_ptr): Update.
1490 * f-valprint.c (f_val_print): Update.
1491 * cp-valprint.c (cp_print_value_fields): Update.
1492 * valprint.h (print_function_pointer_address): Update.
1493 * c-valprint.c (c_val_print): Update.
1495 2012-05-18 Tom Tromey <tromey@redhat.com>
1497 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1498 directly corresponding to the found psymtab.
1499 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1500 (dw2_find_pc_sect_symtab): Use it.
1501 * block.h (blockvector_contains_pc): Declare.
1502 * block.c (find_block_in_blockvector): New function.
1503 (blockvector_for_pc_sect): Use it.
1504 (blockvector_contains_pc): New function.
1506 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1508 * mips-tdep.h (mips_write_pc): New prototype.
1509 * mips-tdep.c (mips_write_pc): Make external, add description.
1510 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1513 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1515 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1517 (mips_unwind_pc, mips_write_pc): Likewise.
1518 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1521 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1523 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1524 proc_warn, proc_error, proc_get_status, proc_flags,
1525 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1526 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1527 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1528 proc_stop_process, proc_wait_for_stop, proc_run_process,
1529 proc_set_traced_signals, proc_set_traced_faults,
1530 proc_set_traced_sysentry, proc_set_traced_sysexit,
1531 proc_set_held_signals, proc_get_held_signals,
1532 proc_get_traced_signals, proc_get_traced_faults,
1533 proc_get_traced_sysentry, proc_get_traced_sysexit,
1534 proc_clear_current_fault, proc_set_current_signal,
1535 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1536 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1537 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1538 proc_get_current_thread, proc_get_current_thread,
1539 proc_get_current_thread, proc_update_threads,
1540 proc_update_threads, proc_update_threads, proc_update_threads,
1541 proc_iterate_over_threads, procfs_find_new_threads,
1542 procfs_pid_to_str): Make static. Remove advance declaration.
1543 (proc_cursig): Make static. Conditionalized defintion on
1544 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1545 (proc_syscall, proc_set_kill_on_last_close,
1546 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1547 proc_get_pending_signals, proc_get_signal_actions,
1548 proc_trace_signal, proc_ignore_signal): Delete.
1550 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1552 * coffread.c (cs_section_address): Passing proper argument for
1553 `bfd_get_section_vma'.
1554 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1555 `bfd_get_section_flags'.
1556 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1557 `bfd_get_section_vma'.
1559 2012-05-16 Tom Tromey <tromey@redhat.com>
1562 * macrotab.h: (macro_define_special): Declare.
1563 (enum macro_special_kind): New.
1564 (struct macro_definition) <argc, replacement>: Update comments.
1565 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1566 (macro_define_object_internal): New function.
1567 (macro_define_object): Use it.
1568 (macro_define_special): New function.
1569 (fixup_definition): New function.
1570 (macro_lookup_definition, foreach_macro_in_scope)
1571 (foreach_macro): Use fixup_definition.
1572 * macroexp.h (macro_stringify): Declare.
1573 * macroexp.c (free_buffer_return_text): New function.
1574 (stringify): Constify "arg".
1575 (macro_stringify): New function.
1576 * dwarf2read.c (macro_start_file): Call macro_define_special.
1578 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1579 Maciej W. Rozycki <macro@mips.com>
1581 * breakpoint.h (bp_location): Add related_address member.
1582 * inferior.h (get_return_value): Take a pointer to struct value
1583 instead of struct type for the function requested.
1584 * value.h (using_struct_return): Likewise.
1585 * gdbarch.sh (return_value): Take a pointer to struct value
1586 instead of struct type for the function requested.
1587 * breakpoint.c (set_breakpoint_location_function): Initialize
1588 related_address for bp_gnu_ifunc_resolver breakpoints.
1589 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1590 requested function's address to gdbarch_return_value.
1591 * eval.c (evaluate_subexp_standard): Pass the requested
1592 function's address to using_struct_return.
1593 * infcall.c (call_function_by_hand): Pass the requested
1594 function's address to using_struct_return and
1595 gdbarch_return_value.
1596 * infcmd.c (get_return_value): Take a pointer to struct value
1597 instead of struct type for the function requested.
1598 (print_return_value): Update accordingly.
1599 (finish_command_continuation): Likewise.
1600 * stack.c (return_command): Pass the requested function's
1601 address to using_struct_return and gdbarch_return_value.
1602 * value.c (using_struct_return): Take a pointer to struct value
1603 instead of struct type for the function requested. Pass the
1604 requested function's address to gdbarch_return_value.
1605 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1606 New function_value member, replacing function_type.
1607 (bpfinishpy_dealloc): Update accordingly.
1608 (bpfinishpy_pre_stop_hook): Likewise.
1609 (bpfinishpy_init): Likewise. Record the requested function's
1611 * mips-tdep.c (mips_fval_reg): New enum.
1612 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1613 words put in GP registers.
1614 (mips_o64_push_dummy_call): Update a comment.
1615 (mips_o32_return_value): Take a pointer to struct value instead
1616 of struct type for the function requested and use it to check if
1617 using the MIPS16 calling convention. Return the designated
1618 general purpose registers for floating-point values returned in
1620 (mips_o64_return_value): Likewise.
1621 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1622 (ppc_sysv_abi_broken_return_value): Likewise.
1623 (ppc64_sysv_abi_return_value): Likewise.
1624 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1625 value instead of struct type for the function requested.
1626 * amd64-tdep.c (amd64_return_value): Likewise.
1627 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1628 * arm-tdep.c (arm_return_value): Likewise.
1629 * avr-tdep.c (avr_return_value): Likewise.
1630 * bfin-tdep.c (bfin_return_value): Likewise.
1631 * cris-tdep.c (cris_return_value): Likewise.
1632 * frv-tdep.c (frv_return_value): Likewise.
1633 * h8300-tdep.c (h8300_return_value): Likewise.
1634 (h8300h_return_value): Likewise.
1635 * hppa-tdep.c (hppa32_return_value): Likewise.
1636 (hppa64_return_value): Likewise.
1637 * i386-tdep.c (i386_return_value): Likewise.
1638 * ia64-tdep.c (ia64_return_value): Likewise.
1639 * iq2000-tdep.c (iq2000_return_value): Likewise.
1640 * lm32-tdep.c (lm32_return_value): Likewise.
1641 * m32c-tdep.c (m32c_return_value): Likewise.
1642 * m32r-tdep.c (m32r_return_value): Likewise.
1643 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1644 * m68k-tdep.c (m68k_return_value): Likewise.
1645 (m68k_svr4_return_value): Likewise.
1646 * m88k-tdep.c (m88k_return_value): Likewise.
1647 * mep-tdep.c (mep_return_value): Likewise.
1648 * microblaze-tdep.c (microblaze_return_value): Likewise.
1649 * mn10300-tdep.c (mn10300_return_value): Likewise.
1650 * moxie-tdep.c (moxie_return_value): Likewise.
1651 * mt-tdep.c (mt_return_value): Likewise.
1652 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1653 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1654 (ppc_sysv_abi_broken_return_value): Likewise.
1655 (ppc64_sysv_abi_return_value): Likewise.
1656 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1657 * rl78-tdep.c (rl78_return_value): Likewise.
1658 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1659 * rx-tdep.c (rx_return_value): Likewise.
1660 * s390-tdep.c (s390_return_value): Likewise.
1661 * score-tdep.c (score_return_value): Likewise.
1662 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1663 (sh_return_value_fpu): Likewise.
1664 * sh64-tdep.c (sh64_return_value): Likewise.
1665 * sparc-tdep.c (sparc32_return_value): Likewise.
1666 * sparc64-tdep.c (sparc64_return_value): Likewise.
1667 * spu-tdep.c (spu_return_value): Likewise.
1668 * tic6x-tdep.c (tic6x_return_value): Likewise.
1669 * v850-tdep.c (v850_return_value): Likewise.
1670 * vax-tdep.c (vax_return_value): Likewise.
1671 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1672 * xtensa-tdep.c (xtensa_return_value): Likewise.
1673 * gdbarch.c: Regenerate.
1674 * gdbarch.h: Regenerate.
1676 2012-05-15 Tom Tromey <tromey@redhat.com>
1678 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1680 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1682 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1683 of command in two error message.
1685 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1687 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1689 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1691 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1693 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1695 * NEWS (show auto-load scripts-directory): Add forgotten command.
1697 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1699 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1702 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1704 * amd64-tdep.c: Include features/i386/x32.c and
1705 features/i386/x32-avx.c.
1706 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1707 initialize_tdesc_x32_avx.
1709 2012-05-14 Stan Shebs <stan@codesourcery.com>
1712 * breakpoint.h (enum bptype): New type bp_dprintf.
1713 (struct breakpoint): New field extra_string.
1714 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1715 (create_breakpoint): Add extra_string arg.
1716 * breakpoint.c (dprintf_breakpoint_ops): New.
1717 (is_breakpoint): Add bp_dprintf.
1718 (bpstat_what): Add dprintf case.
1719 (bptype_string): Ditto.
1720 (print_one_breakpoint_location): Ditto.
1721 (init_bp_location): Ditto.
1722 (bkpt_print_mention): Ditto.
1723 (dprintf_style_enums): New array.
1724 (dprintf_style): New global.
1725 (dprintf_function): New global.
1726 (dprintf_channel): New global.
1727 (update_dprintf_command_list): New function.
1728 (update_dprintf_commands): New function.
1729 (init_breakpoint_sal): Add extra_string argument, handle it.
1730 (create_breakpoint_sal): Add extra_string argument.
1731 (create_breakpoints_sal): Add extra_string argument, update callers.
1732 (find_condition_and_thread): Add extra argument.
1733 (create_breakpoint): Add extra_string argument, record it.
1734 (dprintf_command): New function.
1735 (break_command_1): Add arg to create_breakpoint call.
1736 (handle_gnu_v3_exceptions): Ditto.
1737 (trace_command): Ditto.
1738 (ftrace_command): Ditto.
1739 (strace_command): Ditto.
1740 (bkpt_print_mention): Add dprintf case.
1741 (create_breakpoint_sal_default): Add extra_string argument.
1742 (_initialize_breakpoint): Add new commands.
1743 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1744 * python/py-breakpoint.c (bppy_init): Ditto.
1745 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1747 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1749 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1751 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1753 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1756 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1758 Add a new function gdb.find_pc_line to the Python API.
1759 * NEWS (Python Scripting): Add entry about the new function.
1760 * python/python.c (gdbpy_find_pc_line): New function which
1761 implements gdb.find_pc_line.
1762 (GdbMethods): Add entry for the new function.
1764 2012-05-12 Pedro Alves <palves@redhat.com>
1766 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1767 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1769 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1771 * inferior.c: Include completer.h
1772 (initialize_inferiors): Set completer of add-inferior to
1775 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1777 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1778 gdbarch_ptr_bit for x32 core dump.
1780 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1782 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1783 and features/i386/x32-avx-linux.c.
1785 2012-05-11 Stan Shebs <stan@codesourcery.com>
1786 Kwok Cheung Yeung <kcy@codesourcery.com>
1788 * NEWS: Describe new info os commands.
1789 * common/linux-osdata.c (PID_T, TIME_T): Define.
1790 (MAX_PID_T_STRLEN): New.
1791 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1793 (command_from_pid): Add comment. Change to use PID_T.
1794 (commandline_from_pid): Change to use PID_T.
1795 (user_from_pid): Add comment.
1796 (get_process_owner): Add comment. Change to use PID_T and
1798 (get_number_of_cpu_cores): Add comment.
1799 (get_cores_used_by_process): Add comment. Change to use PID_T and
1801 (linux_xfer_osdata_processes): Change to use PID_T and
1803 (compare_processes): New function.
1804 (linux_xfer_osdata_processgroups): New function.
1805 (linux_xfer_osdata_threads): Change to use PID_T.
1806 (linux_xfer_osdata_fds): New function.
1807 (format_socket_state, print_sockets): New functions.
1808 (union socket_addr): New union.
1809 (linux_xfer_osdata_isockets): New function.
1810 (time_from_time_t, group_from_gid): New functions.
1811 (linux_xfer_osdata_shm): New function.
1812 (linux_xfer_osdata_sem): New function.
1813 (linux_xfer_osdata_msg): New function.
1814 (linux_xfer_osdata_modules): New function.
1815 (osdata_table): Add new entries.
1816 * common/buffer.c (buffer_xml_printf): Add support for long and
1817 long long format specifiers.
1819 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1821 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1822 (tdesc_x32_avx_linux): Likewise.
1824 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1826 Implement multi-component --with-auto-load-dir.
1827 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1829 (--with-auto-load-safe-path): Update the default value description.
1830 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1832 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1833 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1834 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1835 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1836 "set auto-load scripts-directory".
1837 * config.in: Regenerate.
1838 * configure: Regenerate.
1839 * configure.ac (--with-auto-load-dir): New configure option.
1840 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1842 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1844 Provide $ddir substitution for --with-auto-load-safe-path.
1845 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1847 * auto-load.c: Include observer.h.
1848 (auto_load_safe_path_vec_update): Call substitute_path_component for
1849 each component. New variable ddir_subst.
1850 (auto_load_gdb_datadir_changed): New function.
1851 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1852 AUTO_LOAD_SAFE_PATH. New comment.
1853 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1854 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1855 * config.in: Regenerate.
1856 * configure: Regenerate.
1857 * configure.ac (--auto-load-safe-path): Rename
1858 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1859 GDB_DATADIR/auto-load.
1860 * defs.h (substitute_path_component): New declaration.
1861 * top.c: Include observer.h.
1862 (set_gdb_datadir): New function.
1863 (init_main): Install it for "set data-directory".
1864 * utils.c (substitute_path_component): New function.
1866 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1868 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1869 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1870 DEBUG_FILE_DIRECTORY. Handle multiple components of
1871 DEBUG_FILE_DIRECTORY.
1873 2012-05-10 Tom Tromey <tromey@redhat.com>
1875 * dwarf2read.c (recursively_write_psymbols): New function.
1876 (write_psymtabs_to_index): Use it.
1878 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1880 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1881 (load_partial_comp_unit): Update.
1882 (queue_comp_unit): Add argument 'pretend_language'.
1883 (process_queue): Update.
1884 (psymtab_to_symtab_1): Skip dependencies that have a user.
1885 (load_partial_comp_unit_reader): Give meaning to the 'data'
1887 (load_full_comp_unit): Add 'pretend_language' argument.
1888 (process_full_comp_unit): Add 'pretend_language' argument. Set
1890 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1892 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1893 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1895 (prepare_one_comp_unit): Add 'pretend_language' argument.
1897 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1898 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1899 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1900 (dw2_do_instantiate_symtab): Check whether symtab was read in
1902 (dw2_instantiate_symtab): Add assertion. Call
1903 process_cu_includes.
1904 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1905 (partial_symtab_p): New typedef.
1906 (set_partial_user): New function.
1907 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1908 (scan_partial_symbols): Add imported CU to imported_symtabs.
1909 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1910 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1911 (get_symtab, recursively_compute_inclusions)
1912 (compute_symtab_includes, process_cu_includes)
1913 (process_imported_unit_die): New functions.
1914 (process_die) <DW_TAG_imported_unit>: New case.
1915 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1917 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1919 (struct partial_die_info) <locdesc>: Remove.
1921 (process_psymtab_comp_unit): Add 'read_partial' argument.
1923 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1924 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1925 (add_partial_symbol): Update.
1926 (process_die): Handle DW_TAG_partial_unit.
1927 (read_file_scope): Update comment.
1928 (load_partial_dies): Handle DW_TAG_imported_unit.
1929 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1930 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1932 2012-05-10 Tom Tromey <tromey@redhat.com>
1934 * cc-with-dwz.sh: New file.
1936 2012-05-10 Tom Tromey <tromey@redhat.com>
1938 * symtab.h (struct symtab) <includes, user>: New fields.
1939 * block.h (struct block_iterator) <d, idx, which>: New fields.
1940 * block.c (initialize_block_iterator, find_iterator_symtab)
1941 (block_iterator_step, block_iter_name_step)
1942 (block_iter_match_step): New functions.
1943 (block_iterator_first, block_iterator_next)
1944 (block_iter_name_first, block_iter_name_next)
1945 (block_iter_match_first, block_iter_match_next): Rewrite.
1946 (get_block_symtab): New function.
1948 2012-05-10 Tom Tromey <tromey@redhat.com>
1950 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1952 * jit.c (finalize_symtab): Use allocate_global_block,
1954 * buildsym.c (finish_block_internal): New function, from old
1956 (finish_block): Rewrite.
1957 (end_symtab): Use finish_block_internal, set_block_symtab.
1958 * block.h (struct global_block): New.
1959 (allocate_global_block, set_block_symtab): Declare.
1960 * block.c (allocate_global_block, set_block_symtab): New
1963 2012-05-10 Tom Tromey <tromey@redhat.com>
1965 * psymtab.c (partial_map_expand_apply): Add assertion.
1966 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1967 (psymtab_to_symtab): Find unshared psymtab.
1968 (dump_psymtab): Print including psymtabs.
1969 (recursively_search_psymtabs): New function.
1970 (expand_symtabs_matching_via_partial): Use it.
1971 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1973 (enum psymtab_search_status): New.
1975 2012-05-10 Tom Tromey <tromey@redhat.com>
1977 * tracepoint.c (scope_info): Update.
1978 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1979 (find_pc_sect_symtab, search_symbols)
1980 (default_make_symbol_completion_list_break_on)
1981 (make_file_symbol_completion_list): Update.
1982 * symmisc.c (dump_symtab_1): Update.
1983 * stack.c (print_frame_args, iterate_over_block_locals)
1984 (print_frame_labels, iterate_over_block_arg_vars): Update.
1985 * python/py-block.c (block_object) <dict>: Remove.
1987 <iter>: Change type.
1988 (blpy_iter): Update.
1989 (blpy_block_syms_iternext): Update.
1990 * psymtab.c (map_block): Use block iterators.
1991 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1992 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1993 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1994 * infrun.c (check_exception_resume): Update.
1995 * cp-support.c (make_symbol_overload_list_block): Update.
1996 * coffread.c (patch_opaque_types): Update.
1997 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1998 * block.h (struct block_iterator): New.
1999 (block_iterator_first, block_iterator_next, block_iter_name_first)
2000 (block_iter_name_next, block_iter_match_first)
2001 (block_iter_match_next): Declare.
2002 (ALL_BLOCK_SYMBOLS): Redefine.
2003 * block.c (block_iterator_first, block_iterator_next)
2004 (block_iter_name_first, block_iter_name_next)
2005 (block_iter_match_first, block_iter_match_next): New functions.
2006 * ada-lang.c (ada_add_block_symbols)
2007 (ada_make_symbol_completion_list): Use block iterator.
2009 2012-05-10 Tom Tromey <tromey@redhat.com>
2011 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2012 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2013 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2014 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2015 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2018 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2020 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2021 print-file-var-lib2.c, print-file-var-main.c and
2022 print-file-var.exp (located in gdb/testsuite/gdb.base).
2024 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2026 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2027 try locating the symbol in the symbol's own objfile first, before
2028 extending the search to all objfiles.
2029 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2030 out of lookup_symbol_aux_symtabs.
2031 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2032 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2033 Do not search EXCLUDE_OBJFILE.
2034 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2035 (lookup_symbol_global): Search for matches in the block's objfile
2036 first, before searching all other objfiles.
2038 2012-05-10 Tristan Gingold <gingold@adacore.com>
2040 * printcmd.c (set_command): Add pre/post inc/dec.
2042 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
2044 * gdb.1: Document -ex option.
2046 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2048 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2049 * inferior.h (AT_SYMBOL): Delete.
2051 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2053 * mips-tdep.c (mips_push_dummy_code): New function.
2054 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2055 ON_STACK and install mips_push_dummy_code as our gdbarch
2056 push_dummy_code routine.
2058 2012-05-09 Pedro Alves <palves@redhat.com>
2060 * target.c (set_maintenance_target_async_permitted): Rename to ...
2061 (set_target_async_command): ... this.
2062 (show_maintenance_target_async_permitted): Rename to ...
2063 (show_target_async_command): ... this.
2064 (initialize_targets): Adjust.
2066 2012-05-08 Doug Evans <dje@google.com>
2068 * go-exp.y (classify_name): Add missing assignment of fields of
2071 2012-05-08 Eli Zaretskii <eliz@gnu.org>
2073 Display the ">" prompt in interactive mode while reading canned
2074 commands, even when the current interpreter is MI.
2076 * interps.c (interp_set_temp): New function.
2078 * interps.h (interp_set_temp): Add prototype.
2080 * cli/cli-script.c (restore_interp): New cleanup function.
2081 (read_command_lines): Temporarily override the current interpreter
2082 with CLI and arrange for restoring the original one.
2084 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2086 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2088 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2090 * probe.c (parse_probes): Move conditional to check for
2091 debuginfo files from here...
2092 * stap-probe.c (stap_get_probes): ... to here.
2094 2012-05-07 Mark Kettenis <kettenis@gnu.org>
2095 H.J. Lu <hongjiu.lu@intel.com>
2097 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2098 `movl %esp, %ebp' for the X32 ABI.
2100 2012-05-07 Tom Tromey <tromey@redhat.com>
2102 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2104 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2105 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2106 (dwarf_stack_op_name): Remove.
2107 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2108 (decode_locdesc): Use get_DW_OP_name.
2109 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2110 (dwarf2_compile_expr_to_ax): Likewise.
2111 (disassemble_dwarf_expression): Likewise.
2112 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2114 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2116 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2117 (sh_linux_sigtramp_cache): New function.
2118 (sh_linux_sigreturn_init): New function.
2119 (sh_linux_rt_sigreturn_init): New function.
2120 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2122 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2124 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2125 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2126 (sh_linux_init_abi): Add init calls to register new tramp_frame
2127 definitions under 32-bit SH, update comments.
2129 2012-05-07 Pedro Alves <palves@redhat.com>
2133 * amd64-linux-tdep.c: Include glibc-tdep.h.
2134 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2135 gdbarch_skip_solib_resolver callback.
2137 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2139 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2140 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2141 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2142 (add_auto_load_safe_path): Change the error message.
2143 (_initialize_auto_load): Change the "safe-path" help text.
2144 * configure: Regenerate
2145 * configure.ac (--without-auto-load-safe-path): Set
2146 WITH_AUTO_LOAD_SAFE_PATH to /.
2148 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2150 * stap-probe.h: Do not include unecessary `probe.h'.
2152 2012-05-05 Alan Modra <amodra@gmail.com>
2154 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2155 bfd_und_section_ptr.
2156 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2157 and bfd_com_section_ptr.
2159 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2161 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2163 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2165 * windows-nat.h (segment_register_p_ftype): New typedef.
2166 (windows_set_segment_register_p): Add declaration.
2167 * windows-nat.c (segment_register_p): New static global.
2168 (windows_set_segment_register_p): New function.
2169 (do_windows_fetch_inferior_registers): Add special handling
2170 for segment registers.
2171 * amd64-windows-nat.c: #include "amd64-tdep.h".
2172 (amd64_windows_segment_register_p): New function.
2173 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2174 * i386-windows-nat.c: #include "i386-tdep.h".
2175 (i386_windows_segment_register_p): New function.
2176 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2178 2012-05-04 Tristan Gingold <gingold@adacore.com>
2180 * printcmd.c (set_command): Emit a warning if the expression is not
2183 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2185 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2188 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2190 * stap-probe.c (stap_is_operator): Change declaration.
2191 (stap_get_opcode): Change return value.
2192 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2193 `stap_parse_argument_1'.
2195 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2197 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2200 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2202 Add two new methods global_block and static_block to gdb.Symtab
2204 * NEWS (Python scripting): Add entry about the new methods.
2205 * python/py-symtab.c (stpy_global_block): New function which
2206 implements the gdb.Symtab.global_block() method.
2207 (stpy_static_block): New function which implements the
2208 gdb.Symtab.static_block() method.
2209 (symtab_object_methods): Add entries for the two new methods.
2211 2012-05-03 Doug Evans <dje@google.com>
2213 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2216 2012-05-03 Yao Qi <yao@codesourcery.com>
2218 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2220 (i386_process_record): Ditto.
2222 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2224 * infcall.c (unwind_on_signal_p): Make static.
2226 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2228 * sol-thread.c (solaris_pid_to_str): Make static.
2229 (_initialize_sol_thread): Add prototype.
2231 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2233 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2235 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2237 * MAINTAINERS: Remove myself.
2239 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2241 Fix --without-auto-load-safe-path for MS-Windows host platform.
2242 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2244 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2246 * gdb_curses.h: Undefine KEY_EVENT before including curses
2247 headers. Move "#undef MOUSE_MOVED" before any curses header
2250 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2252 * features/i386/i386-mmx-linux.c: Regenerate.
2253 * features/rs6000/powerpc-32.c: Likewise.
2254 * features/rs6000/powerpc-32l.c: Likewise.
2255 * features/rs6000/powerpc-403.c: Likewise.
2256 * features/rs6000/powerpc-403gc.c: Likewise.
2257 * features/rs6000/powerpc-405.c: Likewise.
2258 * features/rs6000/powerpc-505.c: Likewise.
2259 * features/rs6000/powerpc-601.c: Likewise.
2260 * features/rs6000/powerpc-602.c: Likewise.
2261 * features/rs6000/powerpc-603.c: Likewise.
2262 * features/rs6000/powerpc-604.c: Likewise.
2263 * features/rs6000/powerpc-64.c: Likewise.
2264 * features/rs6000/powerpc-64l.c: Likewise.
2265 * features/rs6000/powerpc-750.c: Likewise.
2266 * features/rs6000/powerpc-860.c: Likewise.
2267 * features/rs6000/powerpc-e500.c: Likewise.
2268 * features/rs6000/powerpc-e500l.c: Likewise.
2269 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2270 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2271 * features/rs6000/rs6000.c: Likewise.
2273 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2275 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2277 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2278 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2279 (stap_parse_argument) <e>: Likewise.
2280 (handle_stap_probe) <byte_order>: Likewise.
2282 2012-04-30 Doug Evans <dje@google.com>
2284 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2285 init_and_read_dies_worker. All callers updated.
2286 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2287 replaced with init_cutu_and_read_dies.
2288 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2289 (find_partial_die): Remove FIXME. Don't free current CU.
2291 2012-04-30 Sterling Augustine <saugustine@google.com>
2293 * contrib: New directory.
2294 * contrib/test_pubnames_and_indexes.py: New file.
2296 2012-04-30 Doug Evans <dje@google.com>
2298 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2299 All callers updated.
2300 (init_cu_die_reader): Verify the section is non-empty.
2301 (dwarf_decode_line_header): Don't dereference section->asection
2302 until we know the section is present.
2304 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2306 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2309 2012-04-29 Yao Qi <yao@codesourcery.com>
2311 * gdb-code-style.el: New hook gdb-markup-hook
2312 and gdb-comment-hook.
2314 2012-04-28 Doug Evans <dje@google.com>
2316 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2317 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2319 * symfile.h (dwarf2_debug_sections): New member addr.
2320 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2321 (ctx_no_get_addr_index): New function.
2322 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2323 (ctx_no_get_addr_index): Declare.
2324 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2325 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2326 (dwarf_expr_ctx_funcs): Update.
2327 (needs_get_addr_index): New function.
2328 (needs_frame_ctx_funcs): Update.
2329 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2330 * dwarf2read.c: #include "gdbcore.h".
2331 (dwarf2_per_objfile): New members addr, dwo_files.
2332 (dwarf2_elf_names): Add entry for addr.
2333 (struct dwo_section_names): New type.
2334 (dwo_section_names): New static global.
2335 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2336 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2337 old debug_types_section member updated to use this.
2338 Rename member debug_types_section to info_or_types_section,
2340 (signatured_type): Rename member type_offset to type_offset_in_tu,
2341 all uses updated. New member type_offset_in_section.
2342 (struct dwo_sections): New type.
2343 (struct dwo_unit): New type.
2344 (struct dwo_file): New type.
2345 (die_reader_specs): New member dwo_file.
2346 (dwarf2_locate_sections): Watch for .debug_addr.
2347 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2348 (dwarf2_read_section): Get bfd of section from bfd's asection,
2350 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2351 (create_signatured_type_table_from_index): Initialize
2352 sig_type->info_or_types_section.
2353 (dw2_get_file_names): Statement lists for type units with DWO files
2354 live in the DWO file.
2355 (create_debug_types_hash_table): New function.
2356 (create_all_type_units): Rewrite.
2357 (init_cu_die_reader): New arg dwo_file, all callers updated.
2358 (init_and_read_dies_worker): Get section from
2359 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2360 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2361 continue reading the CU/TU from there.
2362 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2363 updated. Get section from this_cu->info_or_types_section.
2364 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2365 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2366 DW_FORM_GNU_str_index.
2367 (hash_dwo_file, eq_dwo_file): New functions.
2368 (allocate_dwo_file_hash_table): New function.
2369 (hash_dwo_unit, eq_dwo_unit): New functions.
2370 (allocate_dwo_unit_table): New function.
2371 (dwarf2_locate_dwo_sections): New function.
2372 (struct create_dwo_info_table_data): New type.
2373 (create_debug_info_hash_table_reader): New function.
2374 (create_debug_info_hash_table): New function.
2375 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2376 (lookup_dwo_file): New function.
2377 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2378 (free_dwo_file, free_dwo_file_cleanup): New functions.
2379 (free_dwo_file_from_slot, free_dwo_files): New functions.
2380 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2381 (dwarf2_record_block_ranges): Ditto.
2382 (read_partial_die): Ditto.
2383 (process_enumeration_scope): Update to use type_offset_in_section.
2384 (read_full_die_1): New function.
2385 (read_full_die): Rewrite.
2386 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2387 DW_FORM_GNU_str_index.
2388 (read_addr_index_1, read_addr_index): New functions.
2389 (read_addr_index_from_leb128): New function.
2390 (struct dwarf2_read_addr_index_data): New type.
2391 (dwarf2_read_addr_index_reader): New function.
2392 (dwarf2_read_addr_index): New function.
2393 (read_str_index): New function.
2394 (leb128_size): New function.
2395 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2396 If processing a type unit from a DWO file, get the line section
2398 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2399 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2400 DW_FORM_GNU_str_index.
2401 (lookup_die_type): Check whether section offset of type's die is
2402 known before looking it up. Remove assert. Condition can
2403 legimately happen for inter-cu type references.
2404 (dwarf_attr_name): Handle Fission attributes.
2405 (dwarf_form_name): Handle Fission forms.
2406 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2407 DW_FORM_GNU_str_index.
2408 (follow_die_sig): Update to use type_offset_in_section.
2409 (decode_locdesc): New case DW_OP_GNU_addr_index.
2410 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2411 DW_FORM_GNU_str_index.
2412 (cu_debug_loc_section): New function.
2413 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2414 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2415 Free DWO files if present.
2416 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2418 Refactor DIE reading.
2419 * dwarf2read.c (dwarf2_per_objfile): Replace members
2420 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2421 (die_reader_specs): New member "die_section". Temporarily make
2422 member "buffer" non-const, pending constifying all info_ptr uses.
2423 (die_reader_func_ftype): New typedef.
2424 (dw2_get_file_names_reader): New function.
2425 (dw2_get_file_names): Rewrite.
2426 (read_and_check_type_unit_head): Rename arg type_offset to
2428 (create_all_type_units): Improve debugging message.
2429 Improve dummy type unit check.
2430 (init_cu_die_reader): New arg "section". All callers updated.
2431 (init_and_read_dies_worker): New function.
2432 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2433 (init_cutu_and_read_dies_no_follow): New function.
2434 (init_cutu_and_read_dies_simple): New function.
2435 (process_psymtab_comp_unit_reader): New function.
2436 (process_psymtab_comp_unit): Delete args section,
2437 is_debug_types_section. Rewrite. All callers updated.
2438 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2439 All callers updated. Rewrite.
2440 (load_partial_comp_unit_reader): New function.
2441 (load_partial_comp_unit): Rewrite.
2442 (skip_children): New arg reader. Delete args buffer, cu.
2443 All callers updated.
2444 (skip_one_die): New arg reader. Delete args buffer, cu.
2445 All callers updated.
2446 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2447 All callers updated.
2448 (load_full_comp_unit_reader): New function.
2449 (load_full_comp_unit): Rewrite.
2450 (read_comp_unit): Delete.
2451 (read_die_and_children_1): Delete, contents moved ...
2452 (read_die_and_children): ... here.
2453 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2454 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2455 All callers updated.
2456 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2457 All callers updated.
2458 (find_partial_die): Rewrite load_all_dies support.
2459 (read_attribute_value): New arg reader. Delete args abfd, cu.
2460 All callers updated.
2461 (read_attribute): New arg reader. Delete args abfd, cu.
2462 All callers updated.
2463 (load_full_type_unit): Add assert.
2464 (read_signatured_type_reader): New function.
2465 (read_signatured_type): Rewrite.
2466 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2467 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2468 All callers updated. Set per_cu->cu = NULL after freeing it.
2469 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2470 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2471 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2472 (set_die_type): Update.
2473 (get_die_type_at_offset): Update.
2474 (read_file_scope): Call prepare_one_comp_unit.
2475 (read_type_unit_scope): Ditto.
2476 (prepare_one_comp_unit): Set producer if present.
2478 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2480 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2481 gettext function on `error'.
2483 2012-04-27 Doug Evans <dje@google.com>
2485 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2488 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2489 Tom Tromey <tromey@redhat.com>
2491 * breakpoint.c (struct breakpoint_objfile_data)
2492 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2493 <exception_probes>: New fields.
2494 (free_breakpoint_probes): New function.
2495 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2496 `_Unwind_DebugHook'.
2497 (create_exception_master_breakpoint): Likewise.
2498 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2499 * infrun.c: Including necessary header files for handling SystemTap
2501 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2502 via SystemTap probes.
2503 (check_exception_resume): Remove `func' argument. Handle exception
2504 unwinding breakpoint set via a SystemTap probe.
2505 (insert_exception_resume_from_probe): New function.
2507 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2508 Tom Tromey <tromey@redhat.com>
2509 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2512 (COMMON_OBS): Likewise.
2513 (HFILES_NO_SRCDIR): Add `probe'.
2514 * NEWS: Mention support for static and SystemTap probes.
2515 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2516 SystemTap probes' arguments parser.
2517 * arm-linux-tdep.c: Including headers needed to perform the parsing
2518 of SystemTap probes' arguments.
2519 (arm_stap_is_single_operand): New function.
2520 (arm_stap_parse_special_token): Likewise.
2521 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2522 probes' arguments parser.
2523 * ax-gdb.c (require_rvalue): Removing static declaration.
2524 (gen_expr): Likewise.
2525 * ax-gdb.h (gen_expr): Declaring function.
2526 (require_rvalue): Likewise.
2527 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2528 (bkpt_probe_breakpoint_ops): New variable.
2529 (momentary_breakpoint_from_master): Set the `probe' value.
2530 (add_location_to_breakpoint): Likewise.
2531 (break_command_1): Using proper breakpoint_ops according to the
2532 argument passed by the user in the command line.
2533 (bkpt_probe_insert_location): New function.
2534 (bkpt_probe_remove_location): Likewise.
2535 (bkpt_probe_create_sals_from_address): Likewise.
2536 (bkpt_probe_decode_linespec): Likewise.
2537 (tracepoint_probe_create_sals_from_address): Likewise.
2538 (tracepoint_probe_decode_linespec): Likewise.
2539 (tracepoint_probe_breakpoint_ops): New variable.
2540 (trace_command): Using proper breakpoint_ops according to the
2541 argument passed by the user in the command line.
2542 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2543 static probes on breakpoints and tracepoints.
2544 * breakpoint.h (struct bp_location) <probe>: New field.
2545 * cli-utils.c (skip_spaces_const): New function.
2546 (extract_arg): Likewise.
2547 * cli-utils.h (skip_spaces_const): Likewise.
2548 (extract_arg): Likewise.
2549 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2550 * configure.ac: Append `stap-probe.o' to be generated when ELF
2552 * configure: Regenerate.
2553 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2554 * elfread.c: Include `probe.h' and `arch-utils.h'.
2555 (probe_key): New variable.
2556 (elf_get_probes): New function.
2557 (elf_get_probe_argument_count): Likewise.
2558 (elf_evaluate_probe_argument): Likewise.
2559 (elf_compile_to_ax): Likewise.
2560 (elf_symfile_relocate_probe): Likewise.
2561 (stap_probe_key_free): Likewise.
2562 (elf_probe_fns): New variable.
2563 (elf_sym_fns): Add `sym_probe_fns' value.
2564 (elf_sym_fns_lazy_psyms): Likewise.
2565 (elf_sym_fns_gdb_index): Likewise.
2566 (_initialize_elfread): Initialize objfile cache for static
2568 * gdb_vecs.h (struct probe): New forward declaration.
2569 (probe_p): New VEC declaration.
2570 * gdbarch.c: Regenerate.
2571 * gdbarch.h: Regenerate.
2572 * gdbarch.sh (stap_integer_prefix): New variable.
2573 (stap_integer_suffix): Likewise.
2574 (stap_register_prefix): Likewise.
2575 (stap_register_suffix): Likewise.
2576 (stap_register_indirection_prefix): Likewise.
2577 (stap_register_indirection_suffix): Likewise.
2578 (stap_gdb_register_prefix): Likewise.
2579 (stap_gdb_register_suffix): Likewise.
2580 (stap_is_single_operand): New function.
2581 (stap_parse_special_token): Likewise.
2582 (struct stap_parse_info): Forward declaration.
2583 * i386-tdep.c: Including headers needed to perform the parsing
2584 of SystemTap probes' arguments.
2585 (i386_stap_is_single_operand): New function.
2586 (i386_stap_parse_special_token): Likewise.
2587 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2588 probes' arguments parser.
2589 * i386-tdep.h (i386_stap_is_single_operand): New function.
2590 (i386_stap_parse_special_token): Likewise.
2591 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2592 * mipsread.c (ecoff_sym_fns): Likewise.
2593 * objfiles.c (objfile_relocate1): Support relocation for static
2595 * parse.c (prefixify_expression): Remove static declaration.
2596 (initialize_expout): Likewise.
2597 (reallocate_expout): Likewise.
2598 * parser-defs.h (initialize_expout): Declare function.
2599 (reallocate_expout): Likewise.
2600 (prefixify_expression): Likewise.
2601 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2602 of SystemTap probes' arguments.
2603 (ppc_stap_is_single_operand): New function.
2604 (ppc_stap_parse_special_token): Likewise.
2605 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2606 probes' arguments parser.
2607 * probe.c: New file, for generic statically defined probe support.
2608 * probe.h: Likewise.
2609 * s390-tdep.c: Including headers needed to perform the parsing of
2610 SystemTap probes' arguments.
2611 (s390_stap_is_single_operand): New function.
2612 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2613 probes' arguments parser.
2614 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2615 * stap-probe.c: New file, for SystemTap probe support.
2616 * stap-probe.h: Likewise.
2617 * symfile.h: Include `gdb_vecs.h'.
2618 (struct sym_probe_fns): New struct.
2619 (struct sym_fns) <sym_probe_fns>: New field.
2620 * symtab.c (init_sal): Initialize `probe' field.
2621 * symtab.h (struct probe): Forward declaration.
2622 (struct symtab_and_line) <probe>: New field.
2623 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2625 (stop_tracing): Likewise.
2626 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2628 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2629 Tom Tromey <tromey@redhat.com>
2631 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2632 and to compile agent expressions.
2633 * infrun.c (siginfo_make_value): New argument `ignore'.
2634 (siginfo_funcs): New struct.
2635 (_initialize_infrun): New argument when calling
2636 `create_internalvar_type_lazy'.
2637 * thread.c (thread_id_make_value): New argument `ignore'.
2638 (thread_funcs): New struct.
2639 (_initialize_thread): New argument when calling
2640 `create_internalvar_type_lazy'.
2641 * tracepoint.c (sdata_make_value): New argument `ignore'.
2642 (sdata_funcs): New struct.
2643 (_initialize_tracepoint): New argument when calling
2644 `create_internalvar_type_lazy'.
2645 * value.c (make_value): New struct.
2646 (create_internalvar_type_lazy): New argument `data'.
2647 (compile_internalvar_to_ax): New function.
2648 (value_of_internalvar): Properly handling `make_value' case.
2649 (clear_internalvar): Likewise.
2650 (show_convenience): Adding `TRY_CATCH' block.
2651 * value.h (internalvar_make_value): Delete, replace by...
2652 (struct internalvar_funcs): ... this.
2653 (create_internalvar_type_lazy) <fun>: Delete argument.
2654 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2655 (compile_internalvar_to_ax): New function.
2656 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2657 (tlb_funcs): New struct.
2658 (_initialize_windows_tdep): New argument when calling
2659 `create_internalvar_type_lazy'.
2661 2012-04-27 Mark Wielaard <mjw@redhat.com>
2663 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2664 see whether it is an address or a constant offset from DW_AT_low_pc.
2665 (dwarf2_record_block_ranges): Likewise.
2666 (read_partial_die): Likewise.
2668 2012-04-26 Mark Wielaard <mjw@redhat.com>
2670 * MAINTAINERS (Write After Approval): Add myself to the list.
2672 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2674 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2675 (proc_prettyprint_signal): Likewise.
2676 (proc_prettyprint_faultset): Likewise.
2677 (proc_prettyprint_fault): Likewise.
2678 (proc_prettyprint_actionset): Likewise.
2679 (proc_prettyprint_flags): Move to new proc-flags.c section.
2680 (proc_prettyfprint_flags): New prototype.
2681 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2682 (proc_syscall, proc_cursig): Likewise.
2683 (proc_set_kill_on_last_close): Likewise.
2684 (proc_unset_kill_on_last_close): Likewise.
2685 (proc_set_watchpoint): Make static.
2686 (proc_delete_dead_threads): Likewise.
2687 (procfs_set_watchpoint): Likewise.
2688 (_initialize_procfs): Add prototype.
2689 * proc-events.c: Include proc-utils.h.
2690 (init_syscall_table): Make static.
2691 * proc-api.c (_initialize_proc_api): Add prototype.
2692 * proc-flags.c: Include proc-utils.h.
2694 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2696 * configure.ac: Add AC_ARG_PROGRAM.
2697 * configure: Regenerate.
2699 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2701 Fix DW_AT_lower_bound defaults for DWARF-4+.
2702 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2703 high. New variable low_default_is_valid. Implement DWARF-4+
2704 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2705 no default by the DWARF standard.
2707 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2708 Maciej W. Rozycki <macro@codesourcery.com>
2710 * infrun.c (handle_inferior_event): Move the check for return
2711 trampolines ahead of the check for function trampolines.
2712 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2713 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2714 (mips_str_mips16_ret_stub): Likewise.
2715 (mips_str_call_fp_stub): Likewise.
2716 (mips_str_call_stub): Likewise.
2717 (mips_str_fn_stub): Likewise.
2718 (mips_str_pic): Likewise.
2719 (mips_in_frame_stub): New function.
2720 (mips_unwind_pc): Return the return address rather than the PC
2721 if the PC of an intermediate frame is inside a call thunk.
2722 (mips_is_stub_suffix): New function.
2723 (mips_is_stub_mode): Likewise.
2724 (mips_get_mips16_fn_stub_pc): Likewise.
2725 (mips_skip_mips16_trampoline_code): Update to handle all the
2726 currently generated stub types. Don't recurse into __fn_stub
2727 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2728 Use cooked register accesses.
2729 (mips_in_return_stub): Reintroduce function.
2730 (mips_skip_trampoline_code): Traverse trampolines recursively.
2731 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2733 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2737 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2739 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2740 * features/arm-with-m-vfp-d16.xml: New file. Describes
2741 Cortex-M with VFPv4-sp-d16 FPU register layout.
2742 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2743 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2744 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2745 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2746 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2748 2012-04-25 Doug Evans <dje@google.com>
2750 * cli/cli-decode.c (print_doc_line): Use stream instead of
2753 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2755 * features/arm-with-iwmmxt.c: Regenerate.
2756 * features/arm-with-m-fpa-layout.c: Likewise.
2757 * features/arm-with-m.c: Likewise.
2758 * features/arm-with-neon.c: Likewise.
2759 * features/arm-with-vfpv2.c: Likewise.
2760 * features/arm-with-vfpv3.c: Likewise.
2761 * features/mips-dsp-linux.c: Likewise.
2762 * features/mips-linux.c: Likewise.
2763 * features/mips64-dsp-linux.c: Likewise.
2764 * features/mips64-linux.c: Likewise.
2765 * features/s390-linux32.c: Likewise.
2766 * features/s390-linux32v1.c: Likewise.
2767 * features/s390-linux32v2.c: Likewise.
2768 * features/s390-linux64.c: Likewise.
2769 * features/s390-linux64v1.c: Likewise.
2770 * features/s390-linux64v2.c: Likewise.
2771 * features/s390x-linux64.c: Likewise.
2772 * features/s390x-linux64v1.c: Likewise.
2773 * features/s390x-linux64v2.c: Likewise.
2774 * features/tic6x-c62x-linux.c: Likewise.
2775 * features/tic6x-c62x.c: Likewise.
2776 * features/tic6x-c64x-linux.c: Likewise.
2777 * features/tic6x-c64x.c: Likewise.
2778 * features/tic6x-c64xp-linux.c: Likewise.
2779 * features/tic6x-c64xp.c: Likewise.
2780 * target-descriptions.c: Only generate `field_type' and `type'
2781 variables when needed.
2783 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2785 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2787 2012-04-25 Doug Evans <dje@google.com>
2789 Initial pass at Go language support.
2791 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2793 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2794 (YYFILES): Add go-exp.c.
2795 (YYOBJ): Add go-exp.o.
2796 (local-maintainer-clean): Delete go-exp.c.
2797 * defs.h (enum language): Add language_go.
2798 * dwarf2read.c: #include "go-lang.h".
2799 (fixup_go_packaging): New function.
2800 (process_full_comp_unit): Call it when processing Go CUs.
2801 (dwarf2_physname): Add Go support.
2802 (read_file_scope): Handle missing language spec for GNU Go.
2803 (set_cu_language): Handle DW_LANG_Go.
2804 * go-exp.y: New file.
2805 * go-lang.h: New file.
2806 * go-lang.c: New file.
2807 * go-typeprint.c: New file.
2808 * go-valprint.c: New file.
2809 * symtab.c: #include "go-lang.h".
2810 (symbol_set_language): Handle language_go.
2811 (symbol_find_demangled_name, symbol_set_names): Ditto.
2812 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2814 2012-04-24 Jim Meyering <meyering@redhat.com>
2816 avoid a few strncpy-induced buffer overruns
2817 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2818 fname and psargs before trying to concatenate.
2819 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2820 "name" before applying strchr.
2822 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2824 * CONTRIBUTE: Use unified diff instead of context diff when
2827 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2829 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2830 code. Handle JR.HB correctly.
2832 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2835 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2836 with the other MIPS16 helpers.
2838 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2840 * observer.sh: Conditionally declare `args', thus cleaning up
2841 unused instances of this variable.
2843 2012-04-24 Yao Qi <yao@codesourcery.com>
2845 Revert this patch to allow breakpoint always-inserted
2847 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2848 * breakpoint.c: Include record.h.
2849 (breakpoints_always_inserted_mode): Return false when the record
2852 * breakpoint.c (iterate_over_bp_locations): New.
2853 * breakpoint.h: Declare.
2854 New typedef walk_bp_location_callback.
2855 * record.c (record_open): Call record_init_record_breakpoints.
2856 (record_sync_record_breakpoints): New.
2857 (record_init_record_breakpoints): New.
2858 * NEWS: Mention supporting breakpoint always-inserted mode in
2861 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2863 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2866 2012-04-24 Yao Qi <yao@codesourcery.com>
2868 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2869 (is_catchpoint): ... it.
2870 (print_one_breakpoint_location): Caller update.
2871 * breakpoint.h: Update declaration.
2873 2012-04-23 David S. Miller <davem@davemloft.net>
2875 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2877 2012-04-23 Tom Tromey <tromey@redhat.com>
2879 * buildsym.c (add_free_pendings): Remove.
2880 * buildsym.h (add_free_pendings): Remove.
2882 2012-04-23 Doug Evans <dje@google.com>
2884 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2885 attr.u.unsnd instead of attr.u.addr.
2886 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2887 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2889 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2890 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2892 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2894 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2896 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2897 (mips_o32_return_value): Likewise.
2898 (mips_o64_return_value): Likewise.
2900 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2902 * ada-lang.c (ada_evaluate_subexp): Add cases for
2903 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2904 their treatment in eval.c.
2906 2012-04-21 David S. Miller <davem@davemloft.net>
2908 * sparc-tdep.c (X_DISP10): Define.
2909 (sparc_analyze_control_transfer): Handle compare-and-branch.
2911 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2913 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2914 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2916 2012-04-20 Nigel Stephens <nigel@mips.com>
2917 Maciej W. Rozycki <macro@codesourcery.com>
2919 * mips-tdep.c (mips_float_register_p): New function.
2920 (mips_convert_register_float_case_p): Use mips_float_register_p.
2921 (mips_register_type): Likewise.
2922 (mips_print_register): Likewise.
2923 (print_gp_register_row): Likewise.
2924 (mips_print_registers_info): Likewise.
2926 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2928 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2931 2012-04-20 Andrew Pinski <apinski@cavium.com>
2933 * MAINTAINERS (Write After Approval): Add myself to the list.
2935 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2937 * MAINTAINERS: Update my e-mail address.
2939 2012-04-20 Pedro Alves <palves@redhat.com>
2941 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2943 * configure: Regenerate.
2945 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2947 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2949 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2951 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2953 Fix compilation compatibility with python-2.4
2954 * python/py-type.c (convert_field): Cast ADDRSTRING for
2955 PyObject_SetAttrString as non-const. New comment.
2957 2012-04-19 Tom Tromey <tromey@redhat.com>
2959 * top.c (quit_target): Use all_cleanups.
2960 * main.c (captured_command_loop): Use all_cleanups.
2961 * exceptions.c (throw_exception): Use all_cleanups.
2963 2012-04-19 Pedro Alves <palves@redhat.com>
2965 * Makefile.in (GNULIB_BUILDDIR): New.
2966 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2967 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2968 (CLEANDIRS). Remove gnulib/import.
2969 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2971 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2972 (gnulib/import/Makefile): Replace gnulib/import with
2973 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2974 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2975 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2976 acx_configure_dir.m4.
2977 * acinclude.m4: Include acx_configure_dir.m4.
2978 * acx_configure_dir.m4: New file.
2979 * aclocal.m4: Regenerate.
2980 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2981 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2982 (GNULIB): New variable.
2983 (GNULIB_STDINT_H): Adjust.
2984 (AC_OUTPUT): Don't output gnulib/Makefile.
2985 * gdb/defs.h: Include build-gnulib/config.h.
2986 * aclocal.m4: Regenerate.
2987 * config.in: Regenerate.
2988 * configure: Regenerate.
2990 * gnulib/Makefile.in: New file.
2991 * gnulib/configure.ac: New file.
2992 * gnulib/aclocal.m4: New file.
2993 * gnulib/config.in: New file.
2994 * gnulib/configure: New file.
2995 * gnulib/: Re-run gnulib-tool to adjust.
2997 2012-04-19 Doug Evans <dje@google.com>
2999 * cleanups.h (struct cleanup): Move to cleanups.c.
3000 (make_cleanup_dtor_ftype): New typedef.
3001 (make_cleanup_dtor): Use it.
3002 (ALL_CLEANUPS): Replace with ...
3003 (all_cleanups): ... this. Declare. All uses updated.
3004 * cleanups.c: #include "gdb_assert.h".
3005 (sentinel_cleanup): New static global.
3006 (SENTINEL_CLEANUP): Define.
3007 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3008 (make_my_cleanup2): Assert result is non-NULL.
3009 (all_cleanups): New function.
3010 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3013 2012-04-19 Pedro Alves <palves@redhat.com>
3015 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3016 Adjust paths to gnulib imported files.
3018 2012-04-19 Pedro Alves <palves@redhat.com>
3020 * gnulib/: Move whole directory ...
3021 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3022 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3023 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3024 (aclocal_m4_deps): Adjust.
3025 * aclocal.m4: Regenerate.
3026 * configure: Regenerate.
3027 * configure.ac: Adjust AC_OUTPUT output.
3029 2012-04-19 Yao Qi <yao@codesourcery.com>
3031 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3033 * vec.c: Move it ...
3034 * common/vec.c: ... here.
3035 * vec.h: Move it ...
3036 * common/vec.h: ... here.
3038 2012-04-19 Yao Qi <yao@codesourcery.com>
3040 * gdb-code-style.el: New.
3042 2012-04-18 Pedro Alves <palves@redhat.com>
3044 Update gnulib from latest git.
3045 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3047 * gnulib/Makefile.am: Update.
3048 * gnulib/dummy.c: Update.
3049 * gnulib/extra/arg-nonnull.h: Update.
3050 * gnulib/extra/c++defs.h: Update.
3051 * gnulib/extra/update-copyright: Update.
3052 * gnulib/extra/warn-on-use.h: Update.
3053 * gnulib/inttypes.in.h: Update.
3054 * gnulib/m4/00gnulib.m4: Update.
3055 * gnulib/m4/extensions.m4: Update.
3056 * gnulib/m4/gnulib-cache.m4: Update.
3057 * gnulib/m4/gnulib-common.m4: Update.
3058 * gnulib/m4/gnulib-comp.m4: Update.
3059 * gnulib/m4/gnulib-tool.m4: Update.
3060 * gnulib/m4/include_next.m4: Update.
3061 * gnulib/m4/inttypes-pri.m4: Update.
3062 * gnulib/m4/inttypes.m4: Update.
3063 * gnulib/m4/longlong.m4: Update.
3064 * gnulib/m4/memchr.m4: Update.
3065 * gnulib/m4/memmem.m4: Update.
3066 * gnulib/m4/mmap-anon.m4: Update.
3067 * gnulib/m4/multiarch.m4: Update.
3068 * gnulib/m4/onceonly.m4: Update.
3069 * gnulib/m4/stddef_h.m4: Update.
3070 * gnulib/m4/stdint.m4: Update.
3071 * gnulib/m4/string_h.m4: Update.
3072 * gnulib/m4/warn-on-use.m4: Update.
3073 * gnulib/m4/wchar_h.m4: Update.
3074 * gnulib/m4/wchar_t.m4: Update.
3075 * gnulib/m4/wint_t.m4: Update.
3076 * gnulib/memchr.c: Update.
3077 * gnulib/memmem.c: Update.
3078 * gnulib/stddef.in.h: Update.
3079 * gnulib/stdint.in.h: Update.
3080 * gnulib/str-two-way.h: Update.
3081 * gnulib/string.in.h: Update.
3082 * gnulib/wchar.in.h: Update.
3084 * gnulib/extra/arg-nonnull.h: Delete.
3085 * gnulib/extra/c++defs.h: Delete.
3086 * gnulib/extra/warn-on-use.h: Delete.
3087 * gnulib/m4/wchar_h.m4: Delete.
3088 * gnulib/m4/wint_t.m4: Delete.
3089 * gnulib/wchar.in.h: Delete.
3091 * gnulib/extra/snippets/arg-nonnull.h: New.
3092 * gnulib/extra/snippets/c++defs.h: New.
3093 * gnulib/extra/snippets/warn-on-use.h: New.
3095 * aclocal.m4: Regenerate.
3096 * config.in: Regenerate.
3097 * configure: Regenerate.
3098 * gnulib/Makefile.in: Regenerate.
3100 2012-04-18 Pedro Alves <palves@redhat.com>
3102 Reimport the update-copyright module from gnulib
3103 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3105 * configure: Regenerate.
3106 * gnulib/Makefile.am: Update.
3107 * gnulib/Makefile.in: Regenerate.
3108 * gnulib/extra/update-copyright: Update.
3109 * gnulib/m4/gnulib-cache.m4: Update.
3110 * gnulib/m4/gnulib-comp.m4: Update.
3112 2012-04-18 Tristan Gingold <gingold@adacore.com>
3114 * configure.ac (aix): Put -lpthread into libs.
3115 * configure: Regenerate.
3117 2012-04-18 Tom Tromey <tromey@redhat.com>
3119 * linespec.c (convert_linespec_to_sals): Don't use
3121 (compare_msymbols): Arguments are minsym_and_objfile, not
3122 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3124 2012-04-18 Pedro Alves <palves@redhat.com>
3126 Revert gnulib/ part of:
3127 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3128 Copyright year update in most files (performed by copyright.sh).
3130 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3132 Fix 64-bit constants on 32-bit hosts.
3133 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3134 from unsigned long to ULONGEST.
3135 (read_signed_leb128): Change declaration return type from long to
3137 (dwarf2_const_value_attr): Change declaration parameter value from long
3139 (dwarf2_compute_name): Change variable value from long to LONGEST.
3140 (read_unsigned_leb128): Change return type, variable result and some
3141 casts from unsigned long to ULONGEST.
3142 (read_signed_leb128): Change return type, variable result and some
3143 casts from long to LONGEST.
3144 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3145 value from long to LONGEST.
3146 (dwarf2_const_value): Change variable value from long to LONGEST.
3147 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3148 plongest and hex_string.
3149 * symtab.h (struct general_symbol_info): Change ivalue from long to
3150 LONGEST, remove the comment.
3151 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3152 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3154 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3157 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3158 * ada-lang.c (ada_discrete_type_high_bound)
3159 (ada_discrete_type_low_bound): Fix function comment. Use
3160 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3161 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3162 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3163 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3164 Use TYPE_FIELD_ENUMVAL.
3165 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3166 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3167 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3168 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3170 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3171 * dwarf2read.c (process_enumeration_scope): Likewise.
3172 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3174 (class StructMainTypePrettyPrinter): Support also
3175 FIELD_LOC_KIND_ENUMVAL.
3176 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3178 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3179 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3180 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3181 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3183 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3184 accommodate enumval.
3185 (struct call_site): Adjust loc_kind to accommodate enumval.
3186 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3187 (TYPE_FIELD_ENUMVAL): New macros.
3188 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3189 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3191 * p-typeprint.c (pascal_type_print_base): Likewise.
3192 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3194 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3195 * python/py-type.c (convert_field): New variable addrstring. Use
3196 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3197 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3198 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3199 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3201 * valprint.c (generic_val_print): Likewise.
3203 2012-04-17 Doug Evans <dje@google.com>
3205 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3207 * dwarf2read.c: Whitespace fixes.
3208 (lookup_signatured_type): Tweak comment.
3209 (get_die_type_at_offset): Fix comment.
3211 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3213 * xcoffread.c (xcoff_secnum_to_sections): New function.
3214 (secnum_to_section, secnum_to_bfd_section): Reimplement
3215 using xcoff_secnum_to_sections. Rename "secnum" parameter
3217 (RECORD_MINIMAL_SYMBOL): Delete.
3218 (record_minimal_symbol): New function.
3219 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3220 by call to record_minimal_symbol and set misc_func_recorded
3221 to 1. Set last_csect_sec to the XCOFF section index instead
3222 of GDB's section_offset index. Update calls to
3223 prim_record_minimal_symbol_and_info to pass the BFD section
3226 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3228 * xcoffread.c (read_xcoff_symtab): Delete variables
3229 last_csect_val and last_csect_sec and associated code.
3231 2012-04-17 Doug Evans <dje@google.com>
3233 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3234 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3235 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3236 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3238 * cleanups.h: New file.
3239 * cleanups.c: New file.
3240 * Makefile.in (SFILES): Add cleanups.c.
3241 (HFILES_NO_SRCDIR): Add cleanups.h.
3242 (COMMON_OBS): Add cleanups.o.
3243 * defs.h (struct cleanup): Moved to cleanups.h.
3244 (do_cleanups,do_final_cleanups): Ditto.
3245 (discard_cleanups,discard_final_cleanups): Ditto
3246 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3247 (save_cleanups,save_final_cleanups): Ditto.
3248 (restore_cleanups,restore_final_cleanups): Ditto.
3249 (null_cleanup): Ditto.
3250 (make_my_cleanup,make_my_cleanup2): Ditto.
3251 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3252 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3253 (do_cleanups,do_final_cleanups): Ditto.
3254 (discard_cleanups,discard_final_cleanups): Ditto
3255 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3256 (save_cleanups,save_final_cleanups): Ditto.
3257 (restore_cleanups,restore_final_cleanups): Ditto.
3258 (null_cleanup): Ditto.
3259 (make_my_cleanup,make_my_cleanup2): Ditto.
3260 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3262 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3264 (make_cleanup_dyn_string_delete): Ditto.
3265 (make_cleanup_ui_file_delete): Ditto.
3266 (make_cleanup_ui_out_redirect_pop): Ditto.
3267 (make_cleanup_free_section_addr_info): Ditto.
3268 (make_cleanup_restore_integer): Ditto.
3269 (make_cleanup_unpush_target): Ditto.
3270 (make_cleanup_value_free_to_mark): Ditto.
3271 (make_cleanup_value_free): Ditto.
3272 (make_cleanup_free_so): Ditto.
3274 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3276 New option "set debug auto-load".
3277 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3278 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3279 (auto_load_safe_path_vec_update)
3280 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3282 (file_is_auto_load_safe): New parameters debug_fmt and ....
3283 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3284 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3285 caller by explanatory string.
3286 (_initialize_auto_load): Register "set debug auto-load".
3287 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3289 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3290 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3291 by explanatory string.
3292 * main.c (captured_main): Likewise.
3293 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3294 (source_section_scripts): Likewise.
3296 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3298 New option "set auto-load safe-path".
3299 * NEWS: New commands "set auto-load safe-path"
3300 and "show auto-load safe-path".
3301 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3302 (auto_load_safe_path, auto_load_safe_path_vec)
3303 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3304 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3305 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3306 (source_gdb_script_for_objfile): New variable is_safe. Call
3307 file_is_auto_load_safe. Return if it is not.
3308 (struct loaded_script): New field loaded.
3309 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3310 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3311 output "Missing" to "No".
3312 (_initialize_auto_load): New variable cmd. Initialize
3313 auto_load_safe_path. Register "set auto-load safe-path",
3314 "show auto-load safe-path" and "add-auto-load-safe-path".
3315 * auto-load.h (maybe_add_script): Add parameter loaded.
3316 (file_is_auto_load_safe): New declaration.
3317 * config.in: Regenerate.
3318 * configure: Regenerate.
3319 * configure.ac: New parameters --with-auto-load-safe-path
3320 and --without-auto-load-safe-path.
3321 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3322 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3323 * main.c (captured_main): Check file_is_auto_load_safe for
3325 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3326 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3327 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3330 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3332 auto-load: Implementation.
3333 * NEWS: New descriptions for "info auto-load",
3334 "info auto-load gdb-scripts", "info auto-load python-scripts",
3335 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3336 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3337 and "show auto-load-scripts". New description for "set auto-load",
3338 "show auto-load", "set auto-load gdb-scripts",
3339 "show auto-load gdb-scripts", "set auto-load python-scripts",
3340 "show auto-load python-scripts", "set auto-load local-gdbinit",
3341 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3342 "show auto-load libthread-db".
3343 * auto-load.c: Remove include python/python-internal.h. Add includes
3344 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3346 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3347 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3348 (gdbpy_global_auto_load): Rename to ...
3349 (global_auto_load): ... here.
3350 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3351 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3352 (script_language_gdb, source_gdb_script_for_objfile): New.
3353 (struct loaded_script): New field language.
3354 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3356 (maybe_add_script): Add parameter language. Drop redundant
3357 entry.full_path initialization. Initialize entry.language and
3359 (auto_load_objfile_script): Change parameter suffix to language.
3360 Remove the call of maybe_add_script.
3361 Call language->source_script_for_objfile.
3362 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3364 (collect_matching_scripts): Adjust it for
3365 struct collect_matching_scripts_data.
3366 (auto_load_info_scripts_pattern_nl): New variable.
3367 (info_auto_load_scripts): Rename to ...
3368 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3369 for struct collect_matching_scripts_data.
3370 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3371 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3372 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3373 (auto_load_info_cmdlist_get): New.
3374 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3375 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3376 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3377 "info auto-load local-gdbinit".
3378 * auto-load.h (struct script_language): New.
3379 (gdbpy_global_auto_load): Rename to ...
3380 (global_auto_load): ... here.
3381 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3382 (auto_load_local_gdbinit_loaded): New declarations.
3383 (maybe_add_script): New parameter language.
3384 (auto_load_objfile_script): Change parameter suffix to language.
3385 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3386 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3387 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3389 * linux-thread-db.c: Include auto-load.h and ctype.h.
3390 (auto_load_thread_db, show_auto_load_thread_db): New.
3391 (struct thread_db_info): New field filename.
3392 (delete_thread_db_info): Call xfree for FILENAME.
3393 (try_thread_db_load): Initialize FILENAME.
3394 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3395 if !AUTO_LOAD_THREAD_DB.
3396 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3397 (_initialize_thread_db): Install auto_load_thread_db
3398 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3399 as "info auto-load libthread-db".
3400 * main.c (captured_main): Rename gdbpy_global_auto_load to
3401 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3402 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3403 (print_gdb_help): Extend the help for 'local init file'.
3404 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3405 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3406 (auto_load_scripts): Rename to ...
3407 (auto_load_python_scripts): ... here, update the comment.
3408 (gdbpy_load_auto_script_for_objfile): New declaration.
3409 (show_auto_load_python_scripts, script_language_python)
3410 (gdbpy_load_auto_script_for_objfile): New.
3411 (source_section_scripts): Refactor the code.
3412 (load_auto_scripts_for_objfile): Rename to ...
3413 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3414 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3415 (info_auto_load_python_scripts): New.
3416 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3417 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3418 Register "set auto-load-scripts" as its deprecated alias. Register
3419 "info auto-load python-scripts". Register "info auto-load-scripts" as
3420 its deprecated alias.
3421 (load_auto_scripts_for_objfile): Rename to ...
3422 (gdbpy_load_auto_scripts_for_objfile): ... here.
3423 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3424 (gdbpy_load_auto_scripts_for_objfile): ... here.
3426 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3428 auto-load: Move files.
3429 * Makefile.in (SFILES): Add auto-load.c.
3430 (HFILES_NO_SRCDIR): Add auto-load.h.
3431 (COMMON_OBS): Add auto-load.o.
3432 (distclean): Change .gdbinit for gdb-gdb.gdb.
3433 * auto-load.c: New file, with parts from python/py-auto-load.c.
3434 * auto-load.h: New file, with parts from python/python.h.
3435 * configure: Regenerate.
3436 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3437 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3438 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3439 * main.c: Include auto-load.h.
3440 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3441 command.h, observer.h and progspace.h to auto-load.c. Add include
3443 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3444 (struct loaded_script, auto_load_pspace_data)
3445 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3446 (hash_loaded_script_entry, eq_loaded_script_entry)
3447 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3448 (maybe_add_script): Move to auto-load.c.
3449 (source_section_scripts): Change maybe_add_script parameters passing,
3450 use script_not_found_warning_print.
3451 (clear_section_scripts, auto_load_objfile_script)
3452 (auto_load_new_objfile, loaded_script_ptr)
3453 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3454 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3455 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3456 auto_load_new_objfile and info_auto_load_scripts initizations to
3458 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3460 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 * charset.c (find_charset_names): Remove variables ix and elt.
3464 Use free_char_ptr_vec.
3465 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3466 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3467 debugdir_end. New variable debugdir_len.
3468 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3469 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3471 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3472 and elt. Use free_char_ptr_vec.
3473 * source.c (add_path): Remove variables argv, arg and argv_index.
3474 New variables dir_vec, back_to, ix and name.
3475 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3476 make_cleanup_freeargv. Remove variable separator. Simplify the code
3477 no longer expecting DIRNAME_SEPARATOR.
3478 (openp): Remove variable p, p1 and len. New variables dir_vec,
3479 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3480 no longer expecting DIRNAME_SEPARATOR.
3481 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3482 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3484 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3485 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3486 (dirnames_to_char_ptr_vec): New functions.
3488 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3491 * source.c (add_path): Remove always true conditional 'p == 0' and
3492 unindent its code block.
3494 2012-04-17 Pedro Alves <palves@redhat.com>
3496 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3497 (FIELD_BITPOS_LVAL): ... this.
3498 (FIELD_BITPOS): New.
3499 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3500 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3501 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3503 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3505 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3506 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3507 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3510 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3512 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3513 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3514 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3515 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3516 * jv-lang.c (java_link_class_type): Likewise, once.
3517 * stabsread.c (read_enum_type): Likewise.
3519 2012-04-16 Yao Qi <yao@codesourcery.com>
3521 * common/agent.c (agent_run_command): Add one more parameter `len'.
3523 * common/agent.h: Update declaration.
3524 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3526 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3528 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3531 * value.c (value_actual_type): New function.
3532 * value.h (value_actual_type): New declaration.
3533 * varobj.c (update_type_if_necessary): New function.
3534 (varobj_create): Call value_actual_type instead of
3536 (install_dynamic_child): distinct changed and type changed MI variable
3538 (update_dynamic_varobj_children): Updated for install_dynamic_child
3539 change. All callers updated.
3540 (varobj_update): Support for MI variable object type change if
3541 the value changed and RTTI is used to determine the type.
3542 (create_child_with_value): Call value_actual_type instead of
3544 (adjust_value_for_child_access): Extended with a new parameter which
3545 specify whether the given value should be casted to enclosing type.
3546 All callers updated.
3548 2012-04-14 Yao Qi <yao@codesourcery.com>
3550 Import gnulib module inttypes from git
3551 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3552 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3553 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3554 gnulib/m4/inttypes-pri.m4
3555 * aclocal.m4, config.in, configure: Regenerated.
3556 * gnulib/Makefile.am: Update.
3557 * gnulib/Makefile.in: Update.
3558 * gnulib/m4/gnulib-cache.m4: Update.
3559 * gnulib/m4/gnulib-comp.m4: Update.
3560 * gnulib/inttypes.in.h: New.
3561 * gnulib/m4/inttypes-pri.m4: New.
3562 * gnulib/m4/inttypes.m4: New.
3564 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3566 * infrun.c (resume): Update PC address to the real PC after
3567 preparing to do displaced stepping.
3569 2012-04-12 Doug Evans <dje@google.com>
3571 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3572 All callers updated.
3574 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3576 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3578 2012-04-12 Doug Evans <dje@google.com>
3580 * dwarf2read.c (create_all_type_units): Renamed from
3581 create_debug_types_hash_table. All callers updated.
3583 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3584 local type_sig to sig_type, type_offset to type_offset_in_tu.
3585 (hash_signatured_type): Renamed from hash_type_signature,
3586 all callers updated.
3587 (eq_signatured_type): Renamed from eq_type_signature,
3588 all callers updated.
3589 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3590 (process_enumeration_scope): Ditto.
3591 (lookup_signatured_type_at_offset): Ditto.
3592 (load_full_type_unit, read_signatured_type): Ditto.
3594 2012-04-12 Yao Qi <yao@codesourcery.com>
3596 * remote.c (async_remote_interrupt): Correct function name in
3598 (async_remote_interrupt_twice): Ditto.
3600 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3602 * source.c (find_and_open_source): Consistently pass resulting
3603 full path through xfullpath.
3605 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3607 Provide more specific displaced-stepping memory error message.
3608 * infrun.c (displaced_step_prepare): New variable status. Call
3609 target_read_memory instead of read_memory, provide more specific
3612 2012-04-11 Tristan Gingold <gingold@adacore.com>
3615 * darwin-nat.c (darwin_execvp): Revert previous patch.
3617 2012-04-11 Tristan Gingold <gingold@adacore.com>
3620 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3623 2012-04-11 Tristan Gingold <gingold@adacore.com>
3625 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3628 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3630 New command 'explore' which helps explore values and types in
3632 * NEWS: Add an entry about the new 'explore' command.
3633 * data-directory/Makefile.in: Add gdb/command/explore.py
3634 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3635 command using the GDB Python API.
3637 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3639 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3640 extension in jump target calculation.
3642 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3644 * mips-tdep.c (mips32_next_pc): Handle JALX.
3646 2012-04-10 Yao Qi <yao@codesourcery.com>
3648 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3650 2012-04-10 Yao Qi <yao@codesourcery.com>
3652 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3653 and gnulib/m4/gnulib-tool.m4.
3655 2012-04-10 Doug Evans <dje@google.com>
3657 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3658 (load_partial_dies): Clarify comment.
3659 (find_partial_die): Support rereading type units.
3660 Clarify CU handling, if we know offset is in CU, don't search for the
3661 containing CU. Add comment regarding memory waste.
3663 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3665 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3666 i386/x32-avx and i386/x32-avx-linux.
3667 (i386/x32-expedite): New.
3668 (i386/x32-linux-expedite): Likewise.
3669 (i386/x32-avx-expedite): Likewise.
3670 (i386/x32-avx-linux-expedite): Likewise.
3671 ($(outdir)/i386/x32.dat): Likewise.
3672 ($(outdir)/i386/x32-linux.dat): Likewise.
3673 ($(outdir)/i386/x32-avx.dat): Likewise.
3674 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3676 * features/i386/x32-avx-linux.xml: New file.
3677 * features/i386/x32-avx.xml: Likewise.
3678 * features/i386/x32-core.xml: Likewise.
3679 * features/i386/x32-linux.xml: Likewise.
3680 * features/i386/x32.xml: Likewise.
3682 * features/i386/x32-avx-linux.c: New. Generated.
3683 * features/i386/x32-avx.c: Likewise.
3684 * features/i386/x32-linux.c: Likewise.
3685 * features/i386/x32.c: Likewise.
3686 * regformats/i386/x32-avx-linux.dat: Likewise.
3687 * regformats/i386/x32-avx.dat: Likewise.
3688 * regformats/i386/x32-linux.dat: Likewise.
3689 * regformats/i386/x32.dat: Likewise.
3691 2012-04-10 Tristan Gingold <gingold@adacore.com>
3693 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3694 code to kill the inferior.
3696 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3698 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3700 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3702 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3703 (yyvsp): New defines.
3704 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3706 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3708 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3710 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3712 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3715 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3717 * sparc64-tdep.c (sparc64_store_arguments)
3718 (sparc64_store_arguments): Fix coding style.
3720 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3722 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3723 complex floats, adjust some related comments and tighten a related
3725 (sparc64_extract_return_value): Handle complex floats.
3727 2012-04-07 Doug Evans <dje@google.com>
3729 * dwarf2read.c (load_partial_dies): Change condition to assert.
3731 2012-04-06 Doug Evans <dje@google.com>
3733 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3736 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3738 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3740 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3741 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3744 2012-04-05 Keith Seitz <keiths@redhat.com>
3746 * linespec.c (decode_compound): Remove.
3747 (enum offset_relative_sign): New enum.
3748 (struct line_offset): New struct.
3749 (struct linespec): New struct.
3750 (struct linespec_state): Move file_symtabs,
3751 user_filename, and user_function into struct linespec.
3752 Make result an anonymous struct holding vectors of
3753 symbolp and minsym_and_objfile_d.
3754 Add language member.
3755 (enum ls_token_type): New enum.
3756 (linespec_keywords): New array.
3757 (struct ls_token): New struct.
3758 (struct ls_parser): New struct.
3759 (linespec_lexer_lex_number): New function.
3760 (linespec_lexer_lex_keyword): New function.
3761 (is_ada_operator): New function.
3762 (skip_quote_char): New function.
3763 (copy_token_string): New function.
3764 (is_closing_quote_enclosed): New function.
3765 (find_parameter_list_end): New function.
3766 (linespec_lexer_lex_string): New function.
3767 (linespec_lexer_lex_one): New function.
3768 (linespec_lexer_consume_token): New function.
3769 (linespec_lexer_peek_token): New function.
3770 (cplusplus_error): Remove unused function.
3771 (find_methods): Update comment.
3772 (find_toplevel_char): Return const.
3773 (is_objc_method_format): Remove unused function.
3774 (find_toplevel_string): New function.
3775 (is_linespec_boundary): Remove.
3776 (symbol_not_found_error): New function.
3777 (find_method_overload_end): Remove function.
3778 (unexpected_linespec_error): New function.
3779 (keep_name_info): Remove.
3780 (linespec_parse_line_offset): New function.
3781 (linespec_parse_basic): New function.
3782 (canonicalize_linespec): New function.
3783 (decode_line_internal): Remove.
3784 (create_sals_line_offset): New function adapted from
3786 (convert_linespec_to_sals): New function.
3787 (parse_linespec): New function.
3788 (linespec_parser_new): New function.
3789 (linespec_state_destructor): Change parameter type to
3790 struct linespec_state *.
3791 Add language parameter.
3792 Remove freeing of moved members.
3793 (linespec_parser_delete): New function.
3794 (decode_line_full): Use parse_linespec and linespec_parser_new.
3795 (decode_line_1): Likewise.
3796 (decode_indirect): Rename to ...
3797 (linespec_expression_to_pc): ... this and rewrite
3798 to simply find CORE_ADDR, storing this result for later
3800 (locate_first_half): Remove.
3801 (deocde_objc): Add parameter LS.
3802 Initialize new struct collect_info members.
3803 Handle minimal symbols, too.
3804 (decode_compound): Delete.
3805 (lookup_prefix_sym): Rewrite.
3806 (compare_msymbols): New function.
3807 (find_method): Rewrite.
3808 Do not call cplusplus_error.
3809 (symtabs_from_filename): Rewrite.
3810 (collect_function_symbols): Delete.
3811 (find_function_symbols): Rewrite without ARGPTR-style
3813 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3814 (decode_dollar): Adapted and renamed to ...
3815 (linespec_parse_variable): ... this.
3816 (find_linespec_symbols): New function.
3817 (decode_label): Adapted and renamed to ...
3818 (find_label_symbols): ... this.
3819 (decode_digits_list_mode): Add and use LS argument.
3820 (decode_digits_ordinary): Likewise.
3821 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3822 If in list mode, allow any symbol class. Otherwise, only
3823 permit LOC_BLOCK symbols.
3824 (minsym_found): Update comments.
3825 (search_minsyms_for_name): Do not convert the matching symbol
3826 into a SAL. Simply push the symbol and objfile into the
3828 (decode_variable): Delete. Contents adapted into
3829 find_linespec_symbols.
3831 * cp-support.c (SKIP_SPACE): Remove.
3832 (operator_tokens): Remove unused global.
3833 (cp_validate_operator): Remove.
3834 * cp-support.h (cp_validate_operator): Remove declaration.
3836 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3838 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3839 for TYPE_VPTR_FIELDNO.
3840 * valprint.c (valprint_check_validity): Make it global, move the
3841 function comment ...
3842 * value.h (valprint_check_validity): ... to this new declaration.
3844 2012-04-02 Tristan Gingold <gingold@adacore.com>
3846 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3847 the STATE32 api for i386 state.
3848 (i386_darwin_store_inferior_registers): Likewise.
3850 2012-04-02 Tristan Gingold <gingold@adacore.com>
3852 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3854 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3857 2012-04-02 Tristan Gingold <gingold@adacore.com>
3860 * darwin-nat.c (darwin_execvp): Set binary preference.
3862 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3864 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3866 2012-03-30 Tom Tromey <tromey@redhat.com>
3868 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3869 of TRY_CATCH. Fix error handling.
3870 * python/py-value.c (convert_value_from_python): Move 'old'
3871 declaration to innermost scope.
3873 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3874 Andrey Smirnov <andrew.smirnov@gmail.com>
3876 -Wshadow warning fix.
3877 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3878 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3879 Adjust code accordingly.
3881 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3883 * ada-lang.c (symbol_completion_add): Rename parameter
3884 "encoded" into "encoded_p". Ajust code and documentation
3887 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3888 Andrey Smirnov <andrew.smirnov@gmail.com>
3890 -Wshadow warning fix.
3891 * ada-lang.c (symbol_completion_add): Rename parameter
3892 "wild_match" into wild_match_p. Update code and documentation
3895 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3897 * ada-lang.c (symbol_completion_match): Rename parameter
3898 "encoded" into "encoded_p". Ajust code and documentation
3901 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3902 Andrey Smirnov <andrew.smirnov@gmail.com>
3904 -Wshadow warning fix.
3905 * ada-lang.c (symbol_completion_match): Rename parameter
3906 "wild_match" into "wild_match_p". Adjust code and function
3907 documentation accordingly.
3909 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3910 Andrey Smirnov <andrew.smirnov@gmail.com>
3912 -Wshadow warning fix.
3913 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3914 "symbol_info" into "info". Adjust code accordingly.
3915 (ada_lookup_symbol): Likewise.
3917 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3919 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3920 of this function's documentation.
3922 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3923 Andrey Smirnov <andrew.smirnov@gmail.com>
3925 -Wshadow warning fix.
3926 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3927 variable into "wild_match_p". Adjust code accordingly.
3929 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3930 Andrey Smirnov <andrew.smirnov@gmail.com>
3932 -Wshadow warning fix.
3933 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3934 parameter into "wild_match_p". Adjust code accordingly.
3935 Document this parameter in the function description.
3937 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3938 Andrey Smirnov <andrew.smirnov@gmail.com>
3940 -Wshadow warning fix.
3941 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3942 "wild_match" parameter to "wild_match_p" (-Wshadow).
3944 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3946 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3947 in function documentation.
3949 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3950 Andrey Smirnov <andrew.smirnov@gmail.com>
3952 -Wshadow warning fix.
3953 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3954 variable into wild_match_p. Adjust code accordingly.
3956 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3957 Andrey Smirnov <andrew.smirnov@gmail.com>
3959 * ada-valprint.c (ada_val_print_1): Move the code handling
3960 TYPE_CODE_ENUM inside its own lexical block. Declare
3961 variables len and val there, instead of in the function's
3962 top level block. Avoid declaring deref_val again in a way
3963 that shadows another variable of the same name declared
3964 in one of the up-level blocks. Just re-use the up-level
3967 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3969 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3970 Replace block_found argument by symbol_info. Adjust
3971 implementation accordingly. Add function documentation.
3972 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3974 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3975 * ada-exp.y (write_object_renaming): Adjust to new
3976 ada_lookup_encoded_symbol API.
3978 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3980 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3983 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3985 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3986 (v850_register_name): Add the mpu and fpu register names.
3987 (v850e_register_name): Add the mpu and fpu register names.
3988 (v850e2_register_name): New function.
3989 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3992 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3994 * NEWS: Add entry for Ada varobj support.
3996 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3998 * varobj.c (default_value_is_changeable_p): New function,
3999 extracted from varobj_value_is_changeable_p. Add declaration.
4000 (ada_value_is_changeable_p): New function, extracted from
4001 varobj_value_is_changeable_p. Add declaration.
4002 (struct language_specific): New field "value_is_changeable_p".
4003 (languages): Add entries for new field.
4004 (varobj_create): Set language before calling install_new_value.
4005 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4006 "value_is_changeable_p" language callback.
4008 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4010 * ada-varobj.h, ada-varobj.c: New files.
4011 * Makefile.in (SFILES): Add ada-varobj.c.
4012 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4013 (COMMON_OBS): Add ada-varobj.o.
4015 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4017 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4018 (struct language_specific): New field "value_has_mutated".
4019 (languages): Set field "value_has_mutated" in each entry of array.
4020 (varobj_value_has_mutated): New function.
4021 (varobj_udpdate): Add handling of type mutation.
4022 (value_of_root): Add handling of type mutation.
4023 (ada_value_has_mutated): New function.
4025 2012-03-28 Pedro Alves <palves@redhat.com>
4027 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4028 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4030 2012-03-28 Tom Tromey <tromey@redhat.com>
4032 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4033 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4036 2012-03-28 Tom Tromey <tromey@redhat.com>
4038 * .dir-locals.el: New file.
4040 2012-03-28 Pedro Alves <palves@redhat.com>
4042 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4044 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4046 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4049 2012-03-27 Pedro Alves <palves@redhat.com>
4051 Eliminate struct ui_stream.
4053 * ui-out.h (struct ui_stream): Delete.
4054 (ui_out_field_stream): Adjust prototype.
4055 (ui_out_stream_new, ui_out_stream_delete)
4056 (make_cleanup_ui_out_stream_delete): Delete declarations.
4057 * ui-out.c (ui_out_field_stream): Change prototype to take a
4058 ui_file instead of a ui_stream. Adjust.
4059 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4060 (make_cleanup_ui_out_stream_delete): Delete.
4061 * breakpoint.c (print_breakpoint_location)
4062 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4063 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4064 * disasm.c (dump_insns): Ditto.
4065 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4067 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4068 ui_stream/ui_out_stream_new.
4069 * infcmd.c (print_return_value): Ditto.
4070 * osdata.c (info_osdata_command): Don't allocate a local
4072 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4073 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4074 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4075 allocate a local ui_stream.
4076 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4077 instead of ui_stream/ui_out_stream_new.
4078 (list_args_or_locals): Don't allocate a local ui_stream.
4079 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4080 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4081 ui_stream/ui_out_stream_new.
4082 * cli/cli-setshow.c (do_setshow_command): Ditto.
4084 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
4086 * arm-linux-tdep.c (arm_linux_init_abi): Call
4087 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4088 * arm-tdep.c (arm_process_record): New function.
4089 (deallocate_reg_mem): New function.
4090 (decode_insn): New function.
4091 (thumb_record_branch): New function.
4092 (thumb_record_ldm_stm_swi(): New function.
4093 (thumb_record_misc): New function.
4094 (thumb_record_ld_st_stack): New function.
4095 (thumb_record_ld_st_imm_offset): New function.
4096 (thumb_record_ld_st_reg_offset(): New function.
4097 (thumb_record_add_sub_cmp_mov): New function.
4098 (thumb_record_shift_add_sub): New function.
4099 (arm_record_coproc_data_proc): New function.
4100 (arm_record_coproc): New function.
4101 (arm_record_b_bl): New function.
4102 (arm_record_ld_st_multiple): New function.
4103 (arm_record_ld_st_reg_offset): New function.
4104 (arm_record_ld_st_imm_offset): New function.
4105 (arm_record_data_proc_imm): New function.
4106 (arm_record_data_proc_misc_ld_str): New function.
4107 (arm_record_extension_space): New function.
4108 (arm_record_strx): New function.
4109 (sbo_sbz): New function.
4110 (struct insn_decode_record): New structure for arm insn record.
4111 (REG_ALLOC): New macro for reg allocations.
4112 (MEM_ALLOC): New macro for memory allocations.
4113 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4115 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4117 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4118 (store_register): Likewise.
4120 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
4122 * MAINTAINERS (Write After Approval): Add myself to the list.
4124 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4126 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4127 Describe also the option "auto".
4129 2012-03-22 Richard Henderson <rth@redhat.com>
4131 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4132 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4134 2012-03-22 Richard Henderson <rth@redhat.com>
4136 * jit.c (jit_read_code_entry): Compute alignment and offset of
4137 int64_t member before computing entry_size.
4139 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4141 Python scripting: Add new method Value.referenced_value to
4142 gdb.Value which can dereference pointer as well as reference
4144 * NEWS: Add entry under 'Python scripting' about the new method
4145 Value.referenced_value on gdb.Value objects.
4146 * python/py-value.c (valpy_referenced_value): New function
4147 defining a new method on gdb.Value objects which can dereference
4148 pointer and reference values.
4150 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4152 * MAINTAINERS (Write After Approval): Add myself to the list.
4154 2012-03-21 Kevin Buettner <kevinb@redhat.com>
4156 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4157 in addition to "main".
4159 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4161 * expression.h (op_name): Add declaration.
4162 * expprint.c (op_name): Remove declaration. Make non-static.
4163 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4165 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4167 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4169 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4170 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4171 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4172 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4173 (linux_nat_get_siginfo): Likewise.
4174 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4175 (linux_nat_get_siginfo): Likewise.
4176 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4177 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4178 * procfs.c (gdb_siginfo_t): Likewise.
4180 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4182 * .gitignore: Ignore more files.
4184 2012-03-20 Pedro Alves <palves@redhat.com>
4186 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4189 2012-03-20 Yao Qi <yao@codesourcery.com>
4191 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4194 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4196 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4197 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4198 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4200 * dwarf2expr.h (cu_offset, sect_offset): New types.
4201 (struct dwarf_expr_context_funcs) <dwarf_call>
4202 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4204 (struct dwarf_expr_context) <len>: Improve the comment.
4205 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4206 cu_offset and sect_offset.
4207 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4208 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4209 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4210 * dwarf2loc.h: Include dwarf2expr.h.
4211 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4213 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4214 Improve the comment.
4215 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4216 (struct signatured_type, struct line_header, struct partial_die_info)
4217 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4218 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4219 (get_die_type_at_offset, create_cus_from_index)
4220 (create_signatured_type_table_from_index, dw2_get_file_names)
4221 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4222 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4223 (create_debug_types_hash_table, process_psymtab_comp_unit)
4224 (load_partial_comp_unit, create_all_comp_units)
4225 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4226 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4227 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4228 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4229 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4230 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4231 (find_partial_die, read_attribute_value, lookup_die_type)
4232 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4233 (is_ref_attr): New function comment.
4234 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4235 Use cu_offset and sect_offset.
4236 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4237 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4238 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4239 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4240 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4241 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4242 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4245 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4248 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4249 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4251 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4253 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4255 * NEWS: Describe new options --init-command=FILE, -ix and
4256 --init-eval-command=COMMAND, -iex.
4257 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4258 CMDARG_INIT_COMMAND.
4259 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4260 "init-command", "init-eval-command", "ix" and "iex" to the variable
4261 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4262 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4263 (print_gdb_help): Describe --init-command=FILE, -ix and
4264 --init-eval-command=COMMAND, -iex.
4266 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4269 * main.c (struct cmdarg): Move it here from main. Add more comments.
4270 (cmdarg_s, VEC (cmdarg_s)): New.
4271 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4272 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4273 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4274 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4277 2012-03-19 Tom Tromey <tromey@redhat.com>
4279 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4281 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4284 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4287 2012-03-16 Chris January <chris.january@allinea.com>
4289 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4292 2012-03-16 Chris January <chris.january@allinea.com>
4294 * source.c (add_path): Use memmove instead of strcpy because the
4297 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4299 * value.h (set_value_parent): Add declaration.
4300 * value.c (set_value_parent): New function.
4301 (value_address): If VALUE->PARENT is not NULL, then use it as
4302 the base address instead of VALUE->LOCATION.address.
4303 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4304 the same as OBJ's address. Adjust V's offset accordingly.
4307 2012-03-16 Gary Benson <gbenson@redhat.com>
4309 PR breakpoints/10738
4310 * dwarf2read.c (use_deprecated_index_sections): New global.
4311 (struct partial_die_info): New member may_be_inlined.
4312 (read_partial_die): Set may_be_inlined where appropriate.
4313 (add_partial_subprogram): Add partial symbols for partial
4314 DIEs that may be inlined.
4315 (new_symbol_full): Add inlined subroutines to the current
4317 (write_psymtabs_to_index): Bump version number.
4318 (dwarf2_read_index): Read only version 6 indices unless
4319 use_deprecated_index_sections is set.
4320 * linespec.c (symbol_and_data_callback): New structure.
4321 (iterate_inline_only): New function.
4322 (iterate_over_all_matching_symtabs): New argument
4323 "include_inline". If nonzero, also call the callback for
4324 symbols representing inlined subroutines.
4325 (lookup_prefix_sym): Pass extra argument to the above.
4326 (find_function_symbols): Likewise.
4327 (add_matching_symbols_to_info): Likewise.
4328 * NEWS: Mention that GDB can now set breakpoints on inlined
4331 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4333 * p-typeprint.c (pascal_type_print_method_args):
4334 Fix display of parameter of methods.
4336 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4338 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4339 Add missing prototype.
4341 2012-03-16 Yao Qi <yao@codesourcery.com>
4342 Jan Kratochvil <jan.kratochvil@redhat.com>
4344 Fix false compilation warning.
4345 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4347 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4348 Pedro Alves <pedro@codesourcery.com>
4350 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4351 (arm_register_g_packet_guesses): New function.
4352 (arm_gdbarch_init): Don't force a target description with
4353 registers when the executable is detected as M-profile. Instead
4354 set gdbarch->tdep->is_m. Register `g' packet guesses.
4355 (_initialize_arm_tdep): Initialize the new target description.
4356 * features/arm-with-m-fpa-layout.xml: New description.
4357 * features/arm-with-m-fpa-layout.c: New, generated.
4359 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4361 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4362 Update function description.
4363 (insert_bp_location): Do not wipe bl->target_info out.
4364 * mem-break.c: #include "gdb_string.h".
4365 (default_memory_insert_breakpoint): Do not call target_read_memory
4366 with a pointer to the breakpoint's shadow_contents buffer. Use
4367 a local buffer instead.
4368 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4370 2012-03-15 Tom Tromey <tromey@redhat.com>
4372 * NEWS: Mention "info vtbl", not "info vtable".
4373 * cp-support.c (info_vtbl_command): Fix comment.
4374 (_initialize_cp_support): Fix text.
4376 2012-03-15 Tom Tromey <tromey@redhat.com>
4378 * cp-valprint.c (cp_print_value_fields): Use
4379 print_function_pointer_address for vtable slot.
4381 2012-03-15 Tom Tromey <tromey@redhat.com>
4383 * gnu-v3-abi.c (struct value_and_voffset): New.
4384 (hash_value_and_voffset, eq_value_and_voffset)
4385 (compare_value_and_voffset, compute_vtable_size)
4386 (print_one_vtable, gnuv3_print_vtable): New functions.
4387 (init_gnuv3_ops): Initialize 'print_vtable' field.
4388 * cp-support.c (info_vtbl_command): New function.
4389 (_initialize_cp_support): Add "info vtbl".
4390 * cp-abi.h (cplus_print_vtable): Declare.
4391 (struct cp_abi_ops) <print_vtable>: New field.
4392 * cp-abi.c (cplus_print_vtable): New function.
4395 2012-03-15 Tom Tromey <tromey@redhat.com>
4397 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4398 iterate_over_symbols.
4400 2012-03-14 Doug Evans <dje@google.com>
4402 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4403 DW_OP_GNU_parameter_ref.
4405 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4407 Fix double prompt of 'interpreter-exec mi'.
4408 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4409 (mi_interpreter_resume): use it.
4410 (mi_execute_command_input_handler): New function.
4411 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4412 mi_execute_command_input_handler.
4414 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4416 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4418 (darwin_debug_port_info): Make static.
4419 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4420 * machoread.c (_initialize_machoread): Add prototype.
4421 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4422 (i386_darwin_set_control, i386_darwin_get_control)
4423 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4424 i386_darwin_get_status, i386_darwin_get_control):
4425 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4427 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4429 * ax-gdb.c (gen_usual_unary): Remove special handling of
4430 enum and bool types.
4432 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4434 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4436 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4438 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4440 2012-03-13 Chris January <chris.january@allinea.com>
4442 * aix-thread.c (fill_sprs): Store the floating point registers
4443 at the correct offsets into vals.
4445 2012-03-13 Doug Evans <dje@google.com>
4447 * NEWS: Mention symbol-reloading has been deleted.
4448 * symfile.c (symbol_reloading): Delete.
4449 (show_symbol_reloading): Delete.
4450 (_initialize_symfile): Delete set/show symbol-reloading.
4452 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4453 read_in_chain until we have successfully read it in.
4454 (load_full_comp_unit): Ditto.
4455 (read_signatured_type): Add comment.
4457 2012-03-13 Chris January <chris.january@allinea.com>
4459 * stabsread.c (fix_common_block): Change type of valu argument
4462 2012-03-13 Chris January <chris.january@allinea.com>
4464 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4467 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4469 * common/linux-procfs.c (linux_proc_get_int): New, from
4470 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4472 (linux_proc_get_tgid): Only call linux_proc_get_int.
4473 (linux_proc_get_tracerpid): New.
4474 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4475 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4476 linux_proc_pid_has_state.
4477 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4478 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4479 (linux_ptrace_attach_warnings): New.
4480 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4482 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4483 (linux_nat_attach): New variables ex, buffer, message and message_s.
4484 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4486 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4488 * Makefile.in (linux-ptrace.o): New.
4489 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4491 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4492 * common/linux-ptrace.c: New file.
4493 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4494 * config/arm/linux.mh: Likewise.
4495 * config/i386/linux.mh: Likewise.
4496 * config/i386/linux64.mh: Likewise.
4497 * config/ia64/linux.mh: Likewise.
4498 * config/m32r/linux.mh: Likewise.
4499 * config/m68k/linux.mh: Likewise.
4500 * config/mips/linux.mh: Likewise.
4501 * config/pa/linux.mh: Likewise.
4502 * config/powerpc/linux.mh: Likewise.
4503 * config/powerpc/ppc64-linux.mh: Likewise.
4504 * config/powerpc/spu-linux.mh: Likewise.
4505 * config/s390/s390.mh: Likewise.
4506 * config/sparc/linux.mh: Likewise.
4507 * config/sparc/linux64.mh: Likewise.
4508 * config/xtensa/linux.mh: Likewise.
4509 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4510 common/linux-procfs.c.
4511 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4513 2012-03-13 Hui Zhu <teawater@gmail.com>
4514 Pedro Alves <palves@redhat.com>
4516 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4517 CREATE_BREAKPOINT_FLAGS_INSERTED.
4518 (create_breakpoint_sal, create_breakpoints_sal)
4519 (base_breakpoint_create_breakpoints_sal)
4520 (tracepoint_create_breakpoints_sal)
4521 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4523 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4524 (ftrace_command, strace_command): Adjust.
4525 (create_tracepoint_from_upload): Pass
4526 CREATE_BREAKPOINT_FLAGS_INSERTED.
4527 * breakpoint.h (enum breakpoint_create_flags): New.
4528 (create_breakpoint): New flags parameter.
4529 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4530 * python/py-breakpoint.c (bppy_init): Adjust.
4531 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4532 * spu-tdep.c (spu_catch_start): Adjust.
4534 2012-03-13 Pedro Alves <palves@redhat.com>
4535 Hui Zhu <teawater@gmail.com>
4536 Yao Qi <yao@codesourcery.com>
4538 * remote.c (struct remote_state): New field `starting_up'.
4539 (remote_start_remote): Set and clear it.
4540 (remote_can_download_tracepoint): If starting up, return false.
4542 2012-03-13 Yao Qi <yao@codesourcery.com>
4544 * inferior.h (struct inferior): Remove fields any_syscall_count,
4545 syscalls_counts and total_syscalls_count. Move them to new
4546 struct catch_syscall_inferior_data in breakpoint.c.
4547 * breakpoint.c: Call DEF_VEC_I(int).
4548 (struct catch_syscall_inferior_data): New.
4549 (get_catch_syscall_inferior_data): New.
4550 (catch_syscall_inferior_data_cleanup): New.
4551 (insert_catch_syscall): Update to access data in
4552 struct catch_syscall_inferior_data.
4553 (insert_catch_syscall): Likewise.
4554 (remove_catch_syscall): Likewise.
4555 (remove_catch_syscall): Likewise.
4556 (is_syscall_catchpoint_enabled): Likewise.
4557 (add_catch_command): Likewise.
4558 (_initialize_breakpoint): Register cleanup.
4559 * breakpoint.h: Removed DEF_VEC_I(int).
4560 * dwarf2loc.c: Call DEF_VEC_I(int).
4561 * mi/mi-main.c: Likewise.
4563 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4565 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4567 2012-03-12 Chris January <chris.january@allinea.com>
4569 * aix-thread.c (_initialize_aix_thread): Add prototype.
4570 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4571 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4573 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4575 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4576 include of "amd64-nat.h".
4578 2012-03-12 Tom Tromey <tromey@redhat.com>
4580 * buildsym.c (record_pending_block): Now static.
4581 * buildsym.h: (record_pending_block): Remove.
4583 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4585 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4587 2012-03-09 Tom Tromey <tromey@redhat.com>
4589 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4590 producer_is_gxx_lt_4_6>: New fields.
4591 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4593 2012-03-09 Tom Tromey <tromey@redhat.com>
4595 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4597 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4599 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4602 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4604 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4606 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4608 Fix -Wmissing-prototypes build.
4609 * arm-linux-nat.c (get_thread_id): Make it static.
4610 * xtensa-linux-nat.c (get_thread_id): Likewise.
4612 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4614 * server.c (process_point_options): If a conditional expression
4615 is found, only print a message if remote_debug is nonzero.
4617 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4619 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4620 of internal error for unknown/unsupported types.
4622 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4624 Fix CU relative vs. absolute DIE offsets.
4625 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4626 offset to offset_in_cu.
4627 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4629 (dwarf2_fetch_die_location_block): Rename parameter offset to
4630 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4632 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4634 * libunwind-frame.c: Rename to ...
4635 * ia64-libunwind-tdep.c: ... here.
4636 * libunwind-frame.h: Rename to ...
4637 * ia64-libunwind-tdep.h: ... here.
4638 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4639 ia64-libunwind-tdep.h.
4640 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4641 * README (--with-libunwind): Rename to ...
4642 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4643 * config.in: Regenerate.
4644 * configure: Regenerate.
4645 * configure.ac: New option --with-libunwind-ia64, make the
4646 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4647 Remove AC_DEFINE for HAVE_LIBUNWIND.
4648 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4649 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4650 Rename libunwind-frame in the general comment.
4651 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4652 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4653 Move forward declarations inside #ifndef. Rename libunwind-frame in
4654 the general comment.
4655 * ia64-tdep.c: Rename libunwind-frame.h #include to
4656 ia64-libunwind-tdep.h.
4657 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4658 (ia64_libunwind_descr): Rename libunwind-frame to
4659 ia64-libunwind-tdep in these function comments.
4660 * ia64-tdep.h: Rename libunwind-frame.h #include to
4661 ia64-libunwind-tdep.h.
4662 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4663 ia64-libunwind-tdep in that data comment.
4665 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4667 * libunwind-frame.h (struct frame_unwind): New declaration.
4669 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4671 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4672 "set breakpoint condition-evaluation" command.
4674 2012-03-08 Tristan Gingold <gingold@adacore.com>
4676 * sparc-stub.c: Move to stubs/
4677 * sh-stub.c: Likewise.
4678 * m68k-stub.c: Likewise.
4679 * m32r-stub.c: Likewise.
4680 * i386-stub.c: Likewise.
4682 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4684 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4685 linux_get_siginfo_type.
4687 * m68klinux-nat.c: Include "gdb_proc_service.h".
4688 (PTRACE_GET_THREAD_AREA): Define.
4689 (ps_get_thread_area): New function.
4691 2012-03-08 Yao Qi <yao@codesourcery.com>
4693 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4695 (remote_query_attached): Likewise.
4696 (remote_static_tracepoint_marker_at): Likewise.
4697 (remote_set_permissions): Likewise.
4698 (remote_detach_1, extended_remote_attach_1): Likewise.
4699 (send_g_packet, remote_vkill): Likewise.
4700 (extended_remote_disable_randomization): Likewise.
4701 (remote_add_target_side_condition): Likewise.
4702 (remote_insert_breakpoint): Likewise.
4703 (remote_remove_breakpoint): Likewise.
4704 (remote_insert_watchpoint): Likewise.
4705 (remote_remove_watchpoint): Likewise.
4706 (remote_insert_hw_breakpoint): Likewise.
4707 (remote_insert_hw_breakpoint): Likewise.
4708 (remote_remove_hw_breakpoint): Likewise.
4709 (remote_download_command_source): Likewise.
4710 (remote_download_tracepoint): Likewise.
4711 (remote_download_trace_state_variable): Likewise.
4712 (remote_disable_tracepoint): Likewise.
4713 (remote_trace_set_readonly_regions): Likewise.
4714 (remote_get_tracepoint_status): Likewise.
4715 (remote_trace_find): Likewise.
4716 (remote_get_trace_state_variable_value): Likewise.
4717 (remote_set_disconnected_tracing): Likewise.
4718 (remote_set_circular_trace_buffer): Likewise.
4719 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4720 (remote_use_agent): Likewise.
4721 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4724 2012-03-07 Pedro Alves <palves@redhat.com>
4726 * NEWS: Mention QProgramSignals.
4727 * inferior.h (update_signals_program_target): Declare.
4728 * infrun.c: (update_signals_program_target): New.
4729 (handle_command): Update the target of the new program signals
4731 * remote.c (PACKET_QProgramSignals): New enum.
4732 (last_program_signals_packet): New global.
4733 (remote_program_signals): New.
4734 (remote_start_remote): Update the target with the program signals
4736 (remote_protocol_features): Add entry for QPassSignals.
4737 (remote_open_1): Free anc clear last_program_signals_packet.
4738 (init_remote_ops): Install remote_program_signals.
4739 * target.c (update_current_target): Adjust.
4740 (target_program_signals): New.
4741 * target.h (struct target_ops) <to_program_signals>: New field.
4742 (target_program_signals): Declare.
4744 2012-03-07 Pedro Alves <palves@redhat.com>
4746 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4749 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4751 * m68klinux-nat.c (getregs_supplies): Make static.
4752 (getfpregs_supplies): Likewise.
4753 (have_ptrace_getregs): Likewise.
4755 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4757 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4758 in call to get_die_type_at_offset.
4760 2012-03-06 Stan Shebs <stan@codesourcery.com>
4762 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4763 * mi/mi-cmd-disas.c: Ditto.
4764 * mi/mi-cmd-env.c: Ditto.
4765 * mi/mi-cmd-file.c: Ditto.
4766 * mi/mi-cmd-stack.c: Ditto.
4767 * mi/mi-cmd-target.c: Ditto.
4768 * mi/mi-cmd-var.c: Ditto.
4769 * mi/mi-cmds.c: Ditto.
4770 * mi/mi-cmds.h: Ditto.
4771 * mi/mi-console.c: Ditto.
4772 * mi/mi-getopt.c: Ditto.
4773 * mi/mi-getopt.h: Ditto.
4774 * mi/mi-interp.c: Ditto.
4775 * mi/mi-main.c: Ditto.
4776 * mi/mi-out.c: Ditto.
4777 * mi/mi-parse.c: Ditto.
4778 * mi/mi-parse.h: Ditto.
4779 * mi/mi-symbol-cmds.c: Ditto.
4781 * mi/mi-getopt.h: Move mi_opt struct up.
4782 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4784 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4786 2012-03-06 Tom Tromey <tromey@redhat.com>
4788 * proc-service.c (ps_pglobal_lookup): Set the current program
4791 2012-03-06 Pedro Alves <palves@redhat.com>
4793 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4795 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4797 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4799 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4802 * common/linux-osdata.c (linux_common_core_of_thread): New function
4804 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4805 call by linux_common_core_of_thread.
4806 (linux_nat_core_of_thread_1): Remove.
4807 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4808 * linux-thread-db.c: Include linux-osdata.h.
4809 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4810 linux_common_core_of_thread.
4812 2012-03-05 Tom Tromey <tromey@redhat.com>
4814 * value.c (value_primitive_field): Don't fetch contents for
4817 2012-03-05 Tom Tromey <tromey@redhat.com>
4819 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4821 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4823 * s390-nat.c: Include "gregset.h".
4825 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4827 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4828 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4829 (libunwind_load): New variable so_error, use it for dlerror. Try to
4830 load also LIBUNWIND_SO_7.
4832 2012-03-05 Pedro Alves <palves@redhat.com>
4834 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4835 is not NULL, and remove resulting dead code.
4837 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4839 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4840 prologue to sh_analyze_prologue.
4841 (sh_analyze_prologue): Make better use of such an upper limit, and
4842 generally be more cautious about accessing memory.
4844 2012-03-05 Tom Tromey <tromey@redhat.com>
4846 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4847 _initialize_ia64_hpux_tdep.
4849 2012-03-05 Pedro Alves <palves@redhat.com>
4853 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4854 the register state is clear, supply explicit zero, instead of
4855 marking the register unavailable.
4857 2012-03-05 Tristan Gingold <gingold@adacore.com>
4859 * NEWS: Mention OpenVMS ia64 new target.
4861 2012-03-05 Tristan Gingold <gingold@adacore.com>
4863 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4864 (ia64_unw_accessors, ia64_unw_rse_accessors)
4865 (ia64_libunwind_descr): Declare.
4866 * ia64-vms-tdep.c: New file.
4867 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4868 (ia64_libunwind_descr): Make them public.
4869 * configure.tgt: Add ia64-*-*vms*.
4870 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4871 (ALLDEPFILES): Add ia64-vms-tdep.c
4873 2012-03-05 Tristan Gingold <gingold@adacore.com>
4875 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4876 * remote.c (PACKET_qXfer_uib): New enum value.
4877 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4878 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4879 (_initialize_remote): Call add_packet_config_cmd for
4882 2012-03-05 Tristan Gingold <gingold@adacore.com>
4884 * osabi.c (gdb_osabi_names): Add OpenVMS.
4885 (generic_elf_osabi_sniffer): Likewise.
4886 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4888 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4890 Removed unused code.
4891 * libunwind-frame.c (libunwind_frame_unwind)
4892 (libunwind_frame_base_address): Remove.
4893 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4895 2012-03-04 Yao Qi <yao@codesourcery.com>
4897 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4898 remove trailing new line.
4899 (agent_run_command, agent_run_command): Add _ markup.
4900 (agent_capability_check): Likewise.
4902 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4904 * breakpoint.c (set_condition_evaluation_mode): Set
4905 CONDITION_EVALUATION_MODE unconditionally.
4907 2012-03-03 Yao Qi <yao@codesourcery.com>
4909 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4910 * common/agent.h: Update declaration.
4911 * inf-child.c (inf_child_use_agent): New.
4912 (inf_child_can_use_agent): New.
4913 (inf_child_target): Initialize fields `to_use_agent'
4914 and `to_can_use_agent'.
4915 * agent.c (agent_new_objfile): New.
4916 (_initialize_agent): Add agent_new_objfile to new_objfile
4919 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4921 (linux_target_install_ops): Initialize field
4922 `to_static_tracepoint_markers_by_strid'.
4923 * remote.c (free_current_marker): Move it to ...
4924 * tracepoint.c (free_current_marker): ... here. New.
4925 (cleanup_target_stop): New.
4926 * tracepoint.h: Declare free_current_marker.
4927 * NEWS: Add one entry about `info static-tracepoint-marker'.
4929 2012-03-03 Yao Qi <yao@codesourcery.com>
4931 * common/agent.c (agent_loaded_p): New.
4932 (agent_look_up_symbols): New global.
4933 * common/agent.h: Declare agent_loaded_p.
4935 2012-03-03 Yao Qi <yao@codesourcery.com>
4937 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4938 (agent_capability_check, agent_capability_invalidate): New.
4939 (symbol_list): New array element.
4940 * common/agent.h (enum agent_capa): New.
4941 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4943 2012-03-03 Yao Qi <yao@codesourcery.com>
4945 * target.h (struct target_ops) <to_use_agent>: New field.
4946 (struct target_ops) <to_can_use_agent>: New field.
4947 (target_use_agent, target_can_use_agent): New macro.
4948 * target.c (update_current_target): Update.
4949 * remote.c: New enum `PACKET_QAgent'.
4950 (remote_protocol_features): Add a new element.
4951 (remote_use_agent, remote_can_use_agent): New.
4952 (init_remote_ops): Initialize field `can_use_agent' with
4953 remote_can_use_agent. Intiailize field `use_agent' with
4955 * common/agent.c (use_agent): New global.
4956 * common/agent.h: Declare it.
4957 * tracepoint.c (info_static_tracepoint_markers_command): Add
4959 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4960 (COMMON_OBS): Add common/agent.o and agent.o
4961 (common-agent.o): New rule.
4964 2012-03-03 Yao Qi <yao@codesourcery.com>
4966 * common/agent.c: New.
4967 * common/agent.h: New.
4968 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4970 * configure, configh.in: Regenerated.
4972 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4974 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4975 unless it exists for this architecture.
4977 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4979 * language.h (struct language_defn): New "method" la_read_var_value.
4980 * findvar.c: #include "language.h".
4981 (default_read_var_value): Renames read_var_value. Rewrite
4982 function description.
4983 (read_var_value): New function.
4984 * value.h (default_read_var_value): Add prototype.
4985 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4987 (ada_language_defn): Add entry for la_read_var_value.
4988 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4989 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4990 language_defn structures to add entry for new la_read_var_value
4993 2012-03-02 Tom Tromey <tromey@redhat.com>
4994 Pedro Alves <palves@redhat.com>
4996 PR breakpoints/13776:
4997 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4999 (delete_longjmp_breakpoint_at_next_stop): New.
5000 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5001 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5002 before deleting the inferior. Add comments.
5003 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5004 breakpoints immediately, but only on next stop. Move that code
5005 next to where we mark other breakpoints for deletion.
5007 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5009 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5011 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5014 2012-03-02 Pedro Alves <palves@redhat.com>
5016 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5018 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5020 Fix -Wmissing-prototypes build.
5021 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5022 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5023 (gdbsim_has_memory): Likewise.
5025 2012-03-02 Yao Qi <yao@codesourcery.com>
5027 Fix -Wmissing-prototypes build.
5028 * charset.c (phony_iconv_open): Make static.
5029 (phony_iconv_close, phony_iconv): Likewise.
5030 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5031 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5033 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5034 * ser-mingw.c (create_select_thread): Make static.
5035 * windows-termcap.c (tgetent): New prototype.
5036 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5038 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5040 Fix -Wmissing-prototypes build.
5041 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5042 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5043 (_initialize_loadable): New prototypes.
5045 2012-03-02 Doug Evans <dje@google.com>
5047 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5048 abbrev table, read_comp_unit will do it.
5050 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5052 Fix -Wmissing-prototypes build.
5053 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5054 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5055 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5056 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5057 (_initialize_arm_symbian_tdep): New prototype.
5058 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5059 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5060 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5062 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5063 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5065 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5066 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5067 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5069 * moxie-tdep.c (moxie_process_record): Likewise.
5070 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5071 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5072 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5073 (_initialize_rl78_tdep): New prototype.
5074 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5075 (_initialize_rx_tdep): New prototype.
5076 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5077 (_initialize_darwin_solib): New prototype.
5078 * solib-spu.c: Include solib-spu.h.
5079 (_initialize_spu_solib): New prototype.
5080 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5081 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5082 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5083 (tic6x_software_single_step): Make it static.
5084 (_initialize_tic6x_tdep): New prototype.
5086 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5088 Fix -Wmissing-prototypes build.
5089 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5090 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5092 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5094 Fix -Wmissing-prototypes build.
5095 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5096 (frv_have_stopped_data_address): Remove.
5098 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5100 Fix -Wmissing-prototypes build.
5101 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5102 * sh-tdep.c: Include sh64-tdep.h.
5103 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5104 * sh64-tdep.c: Include sh64-tdep.h.
5105 * sh64-tdep.h: New file.
5107 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5109 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5111 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5113 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5114 sp_regnum once the gdbarch_init_osabi hook has been called.
5116 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5118 * mips-tdep.c (mips32_bc1_pc): New function.
5119 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5120 BPOSGE32 and BPOSGE64 instructions.
5121 (deal_with_atomic_sequence): Likewise.
5122 (mips32_instruction_has_delay_slot): Likewise.
5124 2012-03-01 Maciej W. Rozycki <macro@mips.com>
5125 Chris Dearman <chris@mips.com>
5126 Maciej W. Rozycki <macro@codesourcery.com>
5127 Joseph Myers <joseph@codesourcery.com>
5129 * features/mips-dsp.xml: New file.
5130 * features/mips64-dsp.xml: New file.
5131 * features/mips-dsp-linux.xml: New file.
5132 * features/mips64-dsp-linux.xml: New file.
5133 * features/Makefile (WHICH): Add mips-dsp-linux and
5135 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5136 * features/mips-dsp-linux.c: New file.
5137 * features/mips64-dsp-linux.c: New file.
5138 * regformats/mips-dsp-linux.dat: New file.
5139 * regformats/mips64-dsp-linux.dat: New file.
5140 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5142 (mips64_linux_register_addr): Likewise.
5143 (mips64_linux_regsets_fetch_registers): Likewise.
5144 (mips64_linux_regsets_store_registers): Likewise.
5145 (mips64_linux_fetch_registers): Update call to
5146 mips64_linux_regsets_fetch_registers.
5147 (mips64_linux_store_registers): Update call to
5148 mips64_linux_regsets_store_registers.
5149 (mips_linux_read_description): Probe for DSP registers.
5150 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5151 and initialize_tdesc_mips64_dsp_linux.
5152 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5153 Remove padding of no longer used embedded register slots.
5154 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5155 (MIPS_RESTART_REGNUM): Redefine enum value.
5156 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5158 (mips_tx39_reg_names): Likewise.
5159 (mips_linux_reg_names): New array of register names for Linux
5161 (mips_register_name): Check for a null pointer in
5162 mips_processor_reg_names and return an empty string.
5163 (mips_register_type): Exclude embedded registers for the IRIX
5165 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5166 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5168 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5169 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5170 (mips_gdbarch_init): Likewise. Initialize internal register
5171 indices for the Linux ABI. Use dynamic numbers to refer to
5172 registers, as applicable, while parsing the target description.
5173 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5175 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5177 * frame.h (read_frame_register_unsigned): Fix typo in function
5180 2012-03-01 Pedro Alves <palves@redhat.com>
5182 * jit-reader.in [!__cplusplus]
5183 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5185 2012-03-01 Pedro Alves <palves@redhat.com>
5187 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5188 * configure: Regenerate.
5190 2012-03-01 Pedro Alves <palves@redhat.com>
5192 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5193 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5194 (ftrace_command, strace_command): Make static.
5195 * d-lang.c (_initialize_d_language): Declare.
5196 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5197 * dwarf2loc.c (_initialize_dwarf2loc):
5198 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5199 * exec.c (exec_get_section_table): Make static.
5200 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5201 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5202 * inferior.c (remove_inferior_command, add_inferior_command)
5203 (clone_inferior_command): Make static.
5204 * linux-nat.c (linux_nat_thread_address_space)
5205 (linux_nat_core_of_thread): Make static.
5206 * linux-tdep.c (_initialize_linux_tdep): Declare.
5207 * objc-lang.c (_initialize_objc_lang): Declare.
5208 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5210 (_initialize_opencl_language): Declare.
5211 * record.c (_initialize_record): Declare.
5212 * remote.c (demand_private_info, remote_get_tib_address)
5213 (remote_supports_cond_tracepoints)
5214 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5216 * skip.c (_initialize_step_skip): Declare.
5217 * symtab.c (skip_prologue_using_lineinfo): Make static.
5218 * tracepoint.c (delete_trace_state_variable)
5219 (trace_variable_command, delete_trace_variable_command)
5220 (get_uploaded_tsv, find_matching_tracepoint_location)
5221 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5223 * value.c (pack_unsigned_long): Make static.
5224 * varobj.c (varobj_ensure_python_env): Make static.
5225 * windows-tdep.c (_initialize_windows_tdep): Declare.
5226 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5228 2012-03-01 Pedro Alves <palves@redhat.com>
5230 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5232 (linux_init_abi): Install it as has_shared_address_space gdbarch
5235 2012-03-01 Pedro Alves <palves@redhat.com>
5237 * observer.c (observer_test_first_notification_function)
5238 (observer_test_second_notification_function)
5239 (observer_test_third_notification_function): Add declarations.
5241 2012-03-01 Pedro Alves <palves@redhat.com>
5243 * common/signals.c (default_target_signal_to_host)
5244 (default_target_signal_from_host): Move ...
5245 * arch-utils.c: ... here.
5246 * arch-utils.h (default_target_signal_to_host)
5247 (default_target_signal_from_host): Declare.
5249 * common/signals.c (target_signal_from_command): Move ...
5250 * infrun.c: ... here.
5251 * inferior.h (target_signal_from_command): Declare.
5252 * target.h (target_signal_from_command)
5253 (default_target_signal_from_host, default_target_signal_to_host):
5254 Delete declarations.
5256 * common/signals.c (_initialize_signals): Delete.
5258 2012-03-01 Pedro Alves <palves@redhat.com>
5260 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5261 both __cplusplus and !__cplusplus.
5263 2012-03-01 Pedro Alves <palves@redhat.com>
5265 * psymtab.c (find_and_open_source): Delete declaration.
5266 * source.c (find_and_open_source): Move comment ...
5267 * source.h (find_and_open_source): ... to this new declaration.
5269 2012-03-01 Pedro Alves <palves@redhat.com>
5271 * inline-frame.c: Include inline-frame.h.
5273 2012-03-01 Pedro Alves <palves@redhat.com>
5275 * tui/tui-data.c (set_gen_win_origin): Delete.
5276 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5277 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5279 2012-03-01 Pedro Alves <palves@redhat.com>
5281 * remote.c (encode_actions): Delete declaration.
5282 * tracepoint.c (encode_actions): Make extern.
5283 * tracepoint.h (encode_actions): Declare.
5285 2012-03-01 Pedro Alves <palves@redhat.com>
5287 * python/py-breakpoint.c: Include python.h.
5288 * python/py-continueevent.c (create_continue_event_object): Make
5290 * python/py-lazy-string.c (stpy_get_type): Make static.
5291 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5293 * python/py-utils.c (unicode_to_target_python_string): Make
5295 * python/py-value.c: Include python.h.
5297 2012-03-01 Pedro Alves <palves@redhat.com>
5299 * inferior.c (delete_threads_of_inferior): Delete.
5301 2012-03-01 Pedro Alves <palves@redhat.com>
5303 Import fallback definitions from glibc.
5305 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5306 ps_prochandle): Forward declare.
5307 (ps_err_e): Use glibc's comments.
5308 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5309 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5310 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5311 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5312 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5313 (struct ps_prochandle): Adjust comment.
5315 2012-03-01 Pedro Alves <palves@redhat.com>
5317 * ada-lang.c (ada_modulus_from_name): Delete.
5318 * ada-lex.l (lexer_init): Make static.
5320 2012-03-01 Pedro Alves <palves@redhat.com>
5324 * frame.c (read_frame_register_unsigned): New.
5325 * frame.h (read_frame_register_unsigned): Declare.
5326 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5328 (print_i387_control_word): New parameter `control_p'. Handle it.
5329 (i387_print_float_info): Handle unavailable float registers.
5331 2012-03-01 Keith Seitz <keiths@redhat.com>
5333 * linespec.c (decode_line_2): Sort the list of methods
5334 alphabetically before presenting the user with a selection
5337 2012-03-01 Doug Evans <dje@google.com>
5339 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5341 (dwarf2_read_abbrevs): Remove corresponding initialization.
5343 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5345 * NEWS: Mention new python command class gdb.COMMAND_USER.
5346 * cli/cli-cmds.c (show_user): Print error when used on a python
5348 (init_cli_cmds): Update documentation strings for "show user" and
5349 "set/show max-user-call-depth" to clarify that it does not apply to
5351 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5353 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5355 * top.c (execute_command): Only execute a user-defined command as a
5356 legacy macro if c->user_commands is set.
5358 2012-03-01 Tom Tromey <tromey@redhat.com>
5360 * valprint.h (struct generic_val_print_decorations): New.
5361 (generic_val_print): Declare.
5362 * valprint.c (generic_val_print): New function.
5363 * p-valprint.c (p_decorations): New global.
5364 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5365 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5366 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5367 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5368 * m2-valprint.c (m2_decorations): New global.
5369 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5370 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5371 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5372 TYPE_CODE_ERROR>: Call generic_val_print.
5373 * f-valprint.c (f_decorations): New global.
5374 (f_val_print): Use print_function_pointer_address.
5375 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5376 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5377 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5379 * c-valprint.c (c_decorations): New global.
5380 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5381 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5382 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5383 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5384 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5385 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5388 2012-03-01 Tom Tromey <tromey@redhat.com>
5390 * valprint.c (val_print): Update.
5391 * p-valprint (pascal_val_print): Return void.
5392 * p-lang.h (pascal_val_print): Return void.
5393 * m2-valprint.c (m2_val_print): Return void.
5394 * m2-lang.h (m2_val_print): Return void.
5395 * language.h (struct language_defn) <la_val_print>: Return void.
5396 * language.c (unk_lang_val_print): Return void.
5397 * jv-valprint.c (java_val_print): Return void.
5398 * jv-lang.h (java_val_print): Return void.
5399 * f-valprint.c (f_val_print): Return void.
5400 * f-lang.h (f_val_print): Return void.
5401 * d-valprint.c (d_val_print): Return void.
5402 (dynamic_array_type): Update.
5403 * d-lang.h (d_val_print): Return void.
5404 * c-valprint.c (c_val_print): Return void.
5405 * c-lang.h (c_val_print): Return void.
5406 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5408 * ada-lang.h (ada_val_print): Return void.
5410 2012-03-01 Tom Tromey <tromey@redhat.com>
5412 * value.h (val_print): Return void.
5413 * valprint.c (val_print): Return void.
5415 2012-03-01 Tom Tromey <tromey@redhat.com>
5417 * value.h (common_val_print): Return void.
5418 * valprint.c (common_val_print): Return void.
5420 2012-03-01 Tom Tromey <tromey@redhat.com>
5422 * value.h (value_print): Return void.
5423 * valprint.c (value_print): Return void.
5424 * p-valprint.c (pascal_value_print): Return void.
5425 * p-lang.h (pascal_value_print): Return void.
5426 * language.h (struct language_defn) <la_value_print>: Return
5428 * language.c (unk_lang_value_print): Return void.
5429 * jv-valprint.c (java_value_print): Return void.
5430 * jv-lang.h (java_value_print): Return void.
5431 * f-valprint.c (c_value_print): Don't declare.
5433 * c-valprint.c (c_value_print): Return void.
5434 * c-lang.h (c_value_print): Return void.
5435 * ada-valprint.c (ada_value_print): Return void.
5436 * ada-lang.h (ada_value_print): Return void.
5438 2012-03-01 Tom Tromey <tromey@redhat.com>
5440 * value.c (value_primitive_field): Handle virtual base classes.
5442 2012-03-01 Tom Tromey <tromey@redhat.com>
5444 * gdbtypes.h (struct vbase): Remove.
5446 2012-03-01 Tom Tromey <tromey@redhat.com>
5448 * c-valprint.c (print_function_pointer_address): Move...
5449 * valprint.c: ... here. Make non-static.
5450 * m2-valprint.c (print_function_pointer_address): Remove.
5451 * valprint.h (print_function_pointer_address): Declare.
5453 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5455 * NEWS: Document the fact that one can provide a condition when
5456 creating an Ada exception catchpoint.
5458 2012-03-01 Tom Tromey <tromey@redhat.com>
5460 * valprint.c (val_print_type_code_flags): Fix placement of
5463 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5465 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5466 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5467 environment variable before calling update-copyright.
5469 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5471 * gnulib/extra/update-copyright: Update to the latest from
5472 gnulib's git repository.
5473 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5474 variable to 2 instead of 1.
5476 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5478 * varobj.c (c_value_of_variable): Remove dead code.
5480 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5482 * ada-lex.p (processId): Do not modify already encoded IDs.
5483 Update function documentation.
5485 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5487 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5488 "name" with "struct symbol *name_sym".
5489 * ada-exp.y (write_var_or_type): Update call to
5490 ada_find_renaming_symbol.
5491 "name" with "struct symbol *name_sym". Adjust Implementation
5492 accordingly. Adjust the function documentation.
5494 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5496 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5497 * ada-lang.c (ada_find_any_type): Add advance declaration.
5498 Make static. Replace ada_find_any_symbol by
5499 ada_find_any_type_symbol.
5500 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5501 Improve function description. Make static.
5502 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5503 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5505 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5507 * ada-lang.c (struct tag_args): Delete.
5508 (ada_get_tsd_type): Function body moved up in source file.
5509 (ada_tag_name_1, ada_tag_name_2): Delete.
5510 (ada_get_tsd_from_tag): New function.
5511 (ada_tag_name_from_tsd): New function.
5512 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5513 to determine the tag name.
5515 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5517 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5519 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5522 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5524 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5526 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5528 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5531 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5533 * ada-lang.c (constrained_packed_array_type): If there is a
5534 parallel XA type, use it to determine the array index type.
5536 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5538 * ada-valprint.c (ada_val_print_1): If our value is a reference
5539 to an array descriptor, dereference it before converting it
5542 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5544 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5545 creating fixed value.
5546 (ada_value_ind, ada_coerce_ref, assign_component)
5547 (ada_evaluate_subexp): Remove call to unwrap_value before
5548 call to ada_to_fixed_value.
5550 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5552 * ada-lang.c (to_fixed_array_type): Set result's type name.
5554 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5556 * ada-lang.c (catch_ada_exception_command_split): Add new
5557 argument cond_string. Add support for condition at end of
5558 "catch exception" commands.
5559 (ada_decode_exception_location): Add new argument cond_string.
5560 Update call to catch_ada_exception_command_split.
5561 (create_ada_exception_catchpoint): Add new argument cond_string.
5562 Set the breakpoint condition if needed.
5563 (catch_ada_exception_command): Update call to
5564 ada_decode_exception_location.
5565 (ada_decode_assert_location): Add function documentation.
5566 Add support for condition at end of "catch assert" command.
5567 (catch_assert_command): Update calls to ada_decode_assert_location
5568 and create_ada_exception_catchpoint.
5570 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5572 Fix disp-step-syscall.exp: fork: single step over fork.
5573 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5574 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5575 comment, change parameters gdbarch and ptid to regcache. Remove
5576 parameter regcache, initialize gdbarch from regcache here.
5577 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5579 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5581 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5582 'syscall'. Make the 'int' check more strict.
5584 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5586 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5587 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5588 (i386_linux_intx80_sysenter_syscall_record): ... here.
5589 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5590 Use the renamed function name.
5592 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5594 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5595 * breakpoint.c (until_break_command): Likewise.
5596 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5597 * infcall.c (call_function_by_hand): Likewise.
5598 * infcmd.c (finish_forward): Likewise.
5599 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5601 2012-02-28 Tristan Gingold <gingold@adacore.com>
5603 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5604 avoid variable assignments inside condition.
5606 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5608 Fix static analysis issue found by cppcheck.
5609 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5610 uninitialized BUF for size 2.
5612 2012-02-27 Chris Dearman <chris@mips.com>
5613 Nathan Froyd <froydnj@codesourcery.com>
5614 Maciej W. Rozycki <macro@codesourcery.com>
5616 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5617 (mips16_instruction_has_delay_slot): Likewise.
5618 (mips_segment_boundary): Likewise.
5619 (mips_adjust_breakpoint_address): Likewise.
5620 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5622 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5623 Maciej W. Rozycki <macro@codesourcery.com>
5625 * infrun.c (handle_inferior_event): Don't proceed through
5626 shared library trampolines if stepping at the machine
5629 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5631 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5634 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5636 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5637 (sh_stub_unwind_sniffer): New functions.
5638 (sh_stub_unwind): New variable.
5639 (sh_gdbarch_init): Wire everything.
5641 2012-02-27 Pedro Alves <palves@redhat.com>
5643 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5644 (linux_nat_post_attach_wait): Adjust to use
5645 linux_proc_pid_is_stopped.
5646 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5647 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5648 based on pid_is_stopped from both linux-nat.c and
5649 gdbserver/linux-low.c, and renamed.
5651 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5653 * remote.c (remote_watchpoint_addr_within_range): New function.
5654 (init_remote_ops): Use it.
5656 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5658 * target.h (target_watchpoint_addr_within_range): Document macro.
5660 2012-02-24 Pedro Alves <palves@redhat.com>
5662 * stack.c (set_last_displayed_sal): Issue internal_error instead
5663 of warning, and issue it after clearing the last displayed sal.
5665 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5666 Pedro Alves <palves@redhat.com>
5668 * breakpoint.c (until_break_command): Install breakpoints after
5669 all frame manipulations.
5671 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5673 * remote.c (remote_supports_cond_breakpoints): New forward
5675 (remote_add_target_side_condition): New function.
5676 (remote_insert_breakpoint): Add target-side breakpoint
5677 conditional if supported.
5678 (remote_insert_hw_breakpoint): Likewise.
5679 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5682 * target.c (update_current_target): Inherit
5683 to_supports_evaluation_of_breakpoint_conditions.
5684 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5686 * target.h (struct target_ops)
5687 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5688 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5690 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5691 (condition_evaluation_both, condition_evaluation_auto,
5692 condition_evaluation_host, condition_evaluation_target,
5693 condition_evaluation_enums, condition_evaluation_mode_1,
5694 condition_evaluation_mode): New static globals.
5695 (translate_condition_evaluation_mode): New function.
5696 (breakpoint_condition_evaluation_mode): New function.
5697 (gdb_evaluates_breakpoint_condition_p): New function.
5698 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5699 (mark_breakpoint_modified): New function.
5700 (mark_breakpoint_location_modified): New function.
5701 (set_condition_evaluation_mode): New function.
5702 (show_condition_evaluation_mode): New function.
5703 (bp_location_compare_addrs): New function.
5704 (get_first_location_gte_addr): New helper function.
5705 (set_breakpoint_condition): Free condition bytecode if locations
5706 has become unconditional. Call mark_breakpoint_modified (...).
5707 (condition_command): Call update_global_location_list (1) for
5709 (breakpoint_xfer_memory): Use is_breakpoint (...).
5710 (is_breakpoint): New function.
5711 (parse_cond_to_aexpr): New function.
5712 (build_target_condition_list): New function.
5713 (insert_bp_location): Handle target-side conditional
5714 breakpoints and call build_target_condition_list (...).
5715 (update_inserted_breakpoint_locations): New function.
5716 (insert_breakpoint_locations): Handle target-side conditional
5718 (bpstat_check_breakpoint_conditions): Add comment.
5719 (bp_condition_evaluator): New function.
5720 (bp_location_condition_evaluator): New function.
5721 (print_breakpoint_location): Print information on where the condition
5723 (print_one_breakpoint_location): Likewise.
5724 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5725 breakpoint location.
5726 (force_breakpoint_reinsertion): New functions.
5727 (update_global_location_list): Handle target-side breakpoint
5729 Reinsert locations that are already inserted if conditions have
5731 (bp_location_dtor): Free agent expression bytecode.
5732 (disable_breakpoint): Call mark_breakpoint_modified (...).
5733 Call update_global_location_list (...) with parameter 1 for breakpoints.
5734 (disable_command): Call mark_breakpoint_location_modified (...).
5735 Call update_global_location_list (...) with parameter 1 for breakpoints.
5736 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5737 (enable_command): mark_breakpoint_location_modified (...).
5738 (_initialize_breakpoint): Update documentation and add
5739 condition-evaluation breakpoint subcommand.
5741 * breakpoint.h: Include ax.h.
5742 (condition_list): New data structure.
5743 (condition_status): New enum.
5744 (bp_target_info) <cond_list>: New field.
5745 (bp_location) <condition_changed, cond_bytecode>: New fields.
5746 (is_breakpoint): New prototype.
5748 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5750 * remote.c (remote_state) <cond_breakpoints>: New field.
5751 (PACKET_ConditionalBreakpoints): New enum.
5752 (remote_cond_breakpoint_feature): New function.
5753 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5754 (remote_supports_cond_breakpoints): New function.
5755 (_initialize_remote): Add new packet configuration for
5756 target-side conditional breakpoints.
5758 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5760 * NEWS: Mention target-side conditional breakpoint support,
5761 new condition-evaluation breakpoint subcommand and remote
5764 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5766 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5769 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5771 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5772 (after_prologue): Remove.
5774 2012-02-23 Tom Tromey <tromey@redhat.com>
5776 * jv-valprint.c (java_val_print): Remove dead code.
5778 2012-02-23 Tristan Gingold <gingold@adacore.com>
5780 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5781 known_tasks_element and known_tasks_length fields.
5782 (read_known_tasks_array): Change argument type. Use pointer type
5783 and number of elements from DATA. Adjust.
5784 (read_known_tasks_list): Likewise.
5785 (get_known_tasks_addr): Remove.
5786 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5787 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5788 type and array length. Merge former get_known_tasks_addr code.
5790 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5793 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5794 it after set_momentary_breakpoint.
5796 2012-02-22 Sterling Augustine <saugustine@google.com>
5799 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5801 2012-02-22 Gary Benson <gbenson@redhat.com>
5803 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5804 (find_slot_in_mapped_hash): Likewise.
5806 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5809 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5810 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5811 * configure: Regenerate.
5813 2012-02-21 Tristan Gingold <gingold@adacore.com>
5814 Pedro Alves <palves@redhat.com>
5816 * ia64-tdep.c: Do not include libunwind-ia64.h.
5817 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5818 Include libunwind-ia64.h instead of libunwind.h.
5819 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5820 for libunwind.h existence.
5821 * configure, config.in: Regenerate.
5823 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5825 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5826 instead of value_rtti_target_type.
5827 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5828 instead of value_rtti_target_type.
5829 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5830 value_rtti_target_type.
5831 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5832 (value_rtti_target_type): Rename to ...
5833 (value_rtti_indirect_type): ... here and make it indirect. Update
5835 * value.c (readjust_indirect_value_type): New function.
5836 (coerce_ref): Support for enclosing type setting for references
5837 with readjust_indirect_value_type.
5838 * value.h (readjust_value_type): New declaration.
5839 (value_rtti_target_type): Rename to ...
5840 (value_rtti_indirect_type): ... here.
5842 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5844 * MAINTAINERS (Write After Approval): Add myself to the list.
5846 2012-02-20 Doug Evans <dje@google.com>
5848 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5849 Rename objfile_p_char parameter to objfilep.
5850 (build_objfile_section_table): Result is now void. All callers
5852 * objfiles.h (struct objfile): Tweak comments, whitespace.
5853 (build_objfile_section_table): Update.
5855 * elfread.c (elf_symfile_segments): Fix warning text.
5857 2012-02-20 Tom Tromey <tromey@redhat.com>
5860 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5861 particular set of file names once.
5862 (dw2_map_symbol_filenames): Likewise.
5864 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5867 * main.c (write_files): Remove the declaration.
5868 (external_editor_command): Move the declaration ...
5869 [GDBTK] (external_editor_command): ... here. Fix the comment.
5871 2012-02-20 Tom Tromey <tromey@redhat.com>
5873 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5876 2012-02-20 Tristan Gingold <gingold@adacore.com>
5878 * darwin-nat.h (enum darwin_msg_state): Add comments.
5880 2012-02-20 Tristan Gingold <gingold@adacore.com>
5882 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5885 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5887 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5888 between function description and implementation.
5890 2012-02-17 Tom Tromey <tromey@redhat.com>
5893 * python/py-event.c (event_object_getset): New global.
5894 (event_object_type): Reference it.
5895 * python/py-type.c (field_object_getset): New global.
5896 (field_object_type): Reference it.
5897 * python/python-internal.h (gdb_py_generic_dict): Declare.
5898 * python/py-utils.c (gdb_py_generic_dict): New function.
5900 2012-02-17 Tristan Gingold <gingold@adacore.com>
5902 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5904 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5906 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5907 TYPE_CALLING_CONVENTION annotation.
5909 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5911 * MAINTAINERS: Add rx to target ISA section.
5912 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5913 (ALLDEPFILES): Add rx-tdep.c.
5915 2012-02-16 Tom Tromey <tromey@redhat.com>
5917 * symfile.c (symbol_file_add_main_1): Use inferior's
5919 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5920 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5922 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5924 (follow_exec): Use inferior's symfile_flags.
5925 * inferior.h (struct inferior) <symfile_flags>: New field.
5927 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5930 * remote-sim.c (gdbsim_create_inferior): Call error() when
5931 sim_create_inferior() fails.
5933 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5935 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5937 2012-02-16 Tom Tromey <tromey@redhat.com>
5940 * thread.c (struct current_thread_cleanup) <was_removable>: New
5942 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5943 (make_cleanup_restore_current_thread): Initialize new field.
5945 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5947 * MAINTAINERS: Add rl78 to target ISA section.
5948 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5949 (ALLDEPFILES): Add rl78-tdep.c.
5950 * NEWS: Mention rl78 as a new target.
5952 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5954 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5956 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5958 2012-02-15 Tom Tromey <tromey@redhat.com>
5961 * infcmd.c (registers_info): Print just the current register's
5964 2012-02-15 Tom Tromey <tromey@redhat.com>
5966 * python/py-symbol.c (sympy_value): Use _().
5968 2012-02-15 Pedro Alves <palves@redhat.com>
5970 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5971 output to be like native targets'.
5972 (remote_pid_to_str): Special case the null ptid.
5974 2012-02-14 Stan Shebs <stan@codesourcery.com>
5976 * NEWS: Mention enable count command.
5977 * breakpoint.h (struct breakpoint): New field enable_count.
5978 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5979 (enable_breakpoint): Add arg to call.
5980 (struct disp_data): New struct.
5981 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5982 (do_map_enable_once_breakpoint): Create a struct and pass it.
5983 (do_map_enable_delete_breakpoint): Ditto.
5984 (do_map_enable_count_breakpoint): New function.
5985 (enable_count_command): New function.
5986 (bpstat_stop_status): Decrement enable_count.
5987 (print_one_breakpoint_location): Report enable count.
5988 (_initialize_breakpoint): Add enable count command.
5990 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5992 * rl78-tdep.c (reggroups.h): Include.
5993 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5994 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5995 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5996 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5997 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5998 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5999 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6000 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6001 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6002 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6003 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6004 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6005 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6006 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6007 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6008 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6009 beginning of register list.
6010 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6011 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6012 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6013 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6014 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6015 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6016 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6017 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6018 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6019 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6020 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6021 the pseudo registers. Rearrange other pseudo registers too so
6022 that the bank registers appear at the end.
6023 (rl78_register_type): Account for the fact that the byte sized
6024 bank registers are now pseudo-registers.
6025 (rl78_register_name): Rearrange the register name array. Make
6026 initial set of raw banked registers inaccessible.
6027 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6028 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6029 case for copying bytes back and forth between raw and pseudo
6030 versions of the banked registers. Update other cases to reflect
6032 (rl78_return_value): Update to account for changed names of
6034 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6035 rl78_register_sim_regno().
6037 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6039 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6040 the name parameter being passed to find_pc_partial_function().
6042 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6044 * MAINTAINERS: Step down from being ia64 target maintainer.
6046 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6048 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6049 compilation warning.
6051 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6053 Fix crash on loaded shlibs without loaded exec_bfd.
6054 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6055 (set_section_command): Replace exec_bfd by p->bfd.
6057 2012-02-10 Tom Tromey <tromey@redhat.com>
6059 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6060 when we have a C++ qualified name.
6062 2012-02-10 Pedro Alves <palves@redhat.com>
6064 * inferior.c (inferior_pid_to_str): New.
6065 (print_inferior, inferior_command): Use it.
6067 2012-02-10 Pedro Alves <palves@redhat.com>
6069 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6071 * configure: Regenerate.
6073 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6075 * linespec.c (decode_line_internal): Fix comment correctness.
6077 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
6080 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6081 * amd64bsd-nat.c: Add support for debug registers (adapted from
6083 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6084 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6085 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6086 (amd64bsd_dr_get_control): New functions.
6087 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6088 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6089 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6090 watchpoints initialization.
6091 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6093 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6095 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6097 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6099 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6101 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6103 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6105 * language.h (symbol_name_cmp_ftype): Renames
6106 symbol_name_match_p_ftype.
6107 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6108 la_get_symbol_name_match_p.
6109 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6110 ada_get_symbol_name_match_p. Update comment.
6111 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6112 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6113 Renames symbol_name_match_p. Update field type.
6114 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6115 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6116 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6117 "la_get_symbol_name_cmp" in comments.
6118 * language.c: Likewise.
6120 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6122 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6124 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6125 (amd64_sol2_gregset32_reg_offs): Likewise.
6127 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6129 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6130 of the returned BFD is allocated by GDB.
6132 2012-02-07 Tom Tromey <tromey@redhat.com>
6135 * python/python-internal.h (frame_object_type): Declare.
6136 * python/py-symbol.c (sympy_needs_frame): New function.
6137 (sympy_value): New function.
6138 (symbol_object_getset): Add "needs_frame".
6139 (symbol_object_methods): Add "value".
6140 * python/py-frame.c (frame_object_type): No longer static.
6142 2012-02-07 Tom Tromey <tromey@redhat.com>
6145 * python/py-symbol.c (sympy_line): New function.
6146 (symbol_object_getset): Add "line".
6148 2012-02-07 Tom Tromey <tromey@redhat.com>
6150 * charset.c (find_charset_names): Check 'in' against NULL.
6152 2012-02-06 Doug Evans <dje@google.com>
6154 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6155 and fields.name members from char * to const char *. All uses updated.
6156 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6157 from char * to const char *. All uses updated.
6158 (type_name_no_tag): Update.
6159 (lookup_unsigned_typename, lookup_signed_typename): Update.
6160 * gdbtypes.c (type_name_no_tag): Change result type
6161 from char * to const char *. All callers updated.
6162 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6163 name parameter from char * to const char *.
6164 * symtab.h (struct cplus_specific): Change type of demangled_name
6165 member from char * to const char *. All uses updated.
6166 (struct general_symbol_info): Change type of name and
6167 mangled_lang.demangled_name members from char * to const char *.
6169 (symbol_get_demangled_name, symbol_natural_name): Update.
6170 (symbol_demangled_name, symbol_search_name): Update.
6171 * symtab.c (symbol_get_demangled_name): Change result type
6172 from char * to const char *. All callers updated.
6173 (symbol_natural_name, symbol_demangled_name): Ditto.
6174 (symbol_search_name): Ditto.
6175 (completion_list_add_name): Change type of symname,sym_text,
6176 text,word parameters from char * to const char *.
6177 (completion_list_objc_symbol): Change type of sym_text,
6178 text,word parameters from char * to const char *.
6179 * ada-lang.c (find_struct_field): Change type of name parameter
6180 from char * to const char *.
6181 (encoded_ordered_before): Similarly for N0,N1 parameters.
6182 (old_renaming_is_invisible): Similarly for function_name parameter.
6183 (ada_type_name): Change result type from char * to const char *.
6184 All callers updated.
6185 * ada-lang.h (ada_type_name): Update.
6186 * buildsym.c (hashname): Change type of name parameter
6187 from char * to const char *.
6188 * buildsym.h (hashname): Update.
6189 * dbxread.c (end_psymtab): Change type of include_list parameter
6190 from char ** to const char **.
6191 * dwarf2read.c (determine_prefix): Change result type
6192 from char * to const char *. All callers updated.
6193 * f-lang.c (find_common_for_function): Change type of name, funcname
6194 parameters from char * to const char *.
6195 * f-lang.c (find_common_for_function): Update.
6196 * f-valprint.c (list_all_visible_commons): Change type of funcname
6197 parameters from char * to const char *.
6198 * gdbarch.sh (static_transform_name): Change type of name parameter
6199 and result from char * to const char *.
6200 * gdbarch.c: Regenerate.
6201 * gdbarch.h: Regenerate.
6202 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6203 of name parameter from char * to const char *.
6204 * jv-lang.c (java_primitive_type_from_name): Ditto.
6205 (java_demangled_signature_length): Similarly for signature parameter.
6206 (java_demangled_signature_copy): Ditto.
6207 (java_demangle_type_signature): Ditto.
6208 * jv-lang.h (java_primitive_type_from_name): Update.
6209 (java_demangle_type_signature): Update.
6210 * objc-lang.c (specialcmp): Change type of a,b parameters
6211 from char * to const char *.
6212 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6213 from char * to const char *. All callers updated.
6214 * p-lang.h (is_pascal_string_type): Update.
6215 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6216 of name parameter from char * to const char *.
6217 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6218 * utils.c (fprintf_symbol_filtered): Ditto.
6219 * defs.h (fprintf_symbol_filtered): Update.
6220 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6221 * stabsread.h (end_psymtab): Update.
6222 * stack.c (find_frame_funname): Change type of funname parameter
6223 from char ** to const char **.
6224 * stack.h (find_frame_funname): Update.
6225 * typeprint.c (type_print): Change type of varstring parameter
6226 from char * to const char *.
6227 * value.h (type_print): Update.
6228 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6229 from char * to const char *. All callers updated.
6230 (xcoff_end_psymtab): Change type of include_list parameter
6231 from char ** to const char **. All callers updated.
6232 (swap_sym): Similarly for name parameter. All callers updated.
6233 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6235 (process_coff_symbol): Use xstrdup.
6236 * stabsread.c (stabs_method_name_from_physname): Renamed from
6237 update_method_name_from_physname. Change result type from void
6238 to char *. All callers updated.
6239 (read_member_functions): In has_destructor case, store name in objfile
6240 obstack instead of malloc space. In !has_stub case, fix mem leak.
6242 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6244 * configure: Rebuild.
6245 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6248 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6250 * configure.tgt (rl78-*-elf): New target.
6251 * rl78-tdep.c: New file.
6253 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6255 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6256 and continue the loop. Add QUIT statement.
6258 2012-02-03 Tom Tromey <tromey@redhat.com>
6261 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6262 bfd_lookup_symbol_from_symtab.
6263 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6264 gdb_bfd_lookup_symbol_from_symtab.
6266 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6268 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6269 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6270 symbol. Add assertion that sym2 is never NULL.
6272 2012-02-02 Doug Evans <dje@google.com>
6274 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6275 "name" parameter to const char ** from char **. All callers updated.
6276 (find_pc_partial_function): Ditto.
6277 (cache_pc_function_name): Change type to const char * from char *.
6278 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6279 (find_pc_partial_function): Update.
6280 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6281 type of "name" parameter to const char * from char *.
6283 * arch-utils.c (generic_in_solib_return_trampoline): Change
6284 type of "name" parameter to const char * from char *.
6285 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6286 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6287 type of "name" parameter to const char * from char *.
6288 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6289 * gdbarch.c: Regenerate.
6290 * gdbarch.h: Regenerate.
6291 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6292 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6293 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6294 type of "name" parameter to const char * from char *.
6295 * skip.c (skip_function_pc): Ditto.
6296 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6297 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6298 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6299 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6300 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6301 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6302 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6303 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6304 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6306 2012-02-02 Pedro Alves <palves@redhat.com>
6308 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6309 the current inferior has no execution. Make sure the current
6310 remote process matches gdb's current inferior.
6312 2012-02-02 Tom Tromey <tromey@redhat.com>
6315 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6318 2012-02-02 Tom Tromey <tromey@redhat.com>
6321 * symtab.c (lookup_language_this): Set block_found.
6323 2012-02-01 Tom Tromey <tromey@redhat.com>
6326 * jit.c (struct jit_inferior_data): Rewrite.
6327 (struct jit_objfile_data): New.
6328 (get_jit_objfile_data): New function.
6329 (add_objfile_entry): Update.
6330 (jit_read_descriptor): Return int. Replace descriptor_addr
6331 argument with inf_data. Update. Don't call error.
6332 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6334 (jit_inferior_init): Don't look up descriptor. Don't call error.
6335 (jit_reset_inferior_data_and_breakpoints)
6336 (jit_inferior_created_observer): Remove.
6337 (jit_inferior_exit_hook): Update.
6338 (jit_executable_changed_observer): Remove.
6339 (jit_event_handler): Update.
6340 (free_objfile_data): Reset inferior data if needed.
6341 (_initialize_jit): Update.
6343 2012-02-01 Tom Tromey <tromey@redhat.com>
6345 * jit.c (bfd_open_from_target_memory): Move higher in file.
6347 2012-02-01 Tristan Gingold <gingold@adacore.com>
6349 * libunwind-frame.c (libunwind_load): Display message if dlopen
6352 2012-02-01 Gary Benson <gbenson@redhat.com>
6354 * symtab.h (symbol_found_callback_ftype): New typedef.
6355 (iterate_over_symbols): Use the above.
6356 * symtab.c (iterate_over_symbols): Likewise.
6357 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6358 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6359 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6360 (iterate_name_matcher): Document return values.
6361 (collect_one_symbol): Likewise.
6362 (collect_function_symbols): Likewise.
6363 (collect_symbols): Likewise.
6365 2012-02-01 Tom Tromey <tromey@redhat.com>
6367 * ada-lang.c (resolve_subexp): Update.
6368 (ada_lookup_symbol_list): Add 'full_search' argument.
6369 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6370 ada_lookup_symbol_list.
6371 (ada_lookup_encoded_symbol): Update.
6372 (get_var_value): Update.
6373 * ada-exp.y (block_lookup): Update.
6374 (write_var_or_type): Update.
6375 (write_name_assoc): Update.
6376 * ada-lang.h (ada_lookup_symbol_list): Update.
6378 2012-01-31 Tom Tromey <tromey@redhat.com>
6380 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6383 2012-01-31 Doug Evans <dje@google.com>
6385 * symtab.h: Remove outdated comment.
6386 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6388 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6390 Fix build error in Darwin port.
6391 * i386-darwin-nat.c: Include i386-nat.h.
6393 2012-01-30 Tom Tromey <tromey@redhat.com>
6395 PR breakpoints/13568:
6396 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6397 argument. Check for recursive includes.
6398 (dwarf_decode_macros): Create an include hash.
6400 2012-01-30 Michael Eager <eager@eagercon.com>
6402 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6403 * ppc-linux-tdep.c: Include glibc-tdep.h.
6404 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6405 (powerpc_linux_in_plt_stub): New function.
6406 (powerpc_linux_in_dynsym_resolve_code): New function.
6407 (ppc_skip_trampoline_code): New function.
6408 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6409 Use glibc_skip_solib_resolver.
6411 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6413 Code cleanup: Make 1440 bytes of data segment read-only.
6414 * arch-utils.c (endian_enum): Make it const char *const [].
6415 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6417 * breakpoint.c (always_inserted_enums): Likewise.
6418 * cli/cli-cmds.c (script_ext_enums): Likewise.
6419 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6420 enumlist parameter const char *const *.
6421 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6422 const char *const *.
6423 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6424 parameter const char *const *.
6425 * cris-tdep.c (cris_modes): Make it const char *const [].
6426 * filesystem.c (target_file_system_kinds): Likewise.
6427 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6428 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6429 (can_use_displaced_stepping_enum, scheduler_enums)
6430 (exec_direction_names): Likewise.
6431 * language.c (_initialize_language): Make the type_or_range_names and
6432 case_sensitive_names variables const char *const [].
6433 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6434 * python/python.c (python_excp_enums): Likewise.
6435 * remote.c (interrupt_sequence_modes): Likewise.
6436 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6437 * serial.c (logbase_enums): Likewise.
6438 * sh-tdep.c (sh_cc_enum): Likewise.
6439 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6441 * symtab.c (multiple_symbols_modes): Likewise.
6442 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6444 * utils.c (internal_problem_modes): Likewise.
6446 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6448 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6449 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6452 2012-01-27 Doug Evans <dje@google.com>
6454 * configure.ac (with_python): Fix absolute path handling for win32.
6455 * configure: Regenerate.
6457 2012-01-26 Doug Evans <dje@google.com>
6459 * symtab.c: Whitespace cleanup, no code changes.
6461 * symtab.c (lookup_symbol_in_language): Improve comment.
6462 (lookup_symbol_aux): Fix comment.
6464 * psymtab.c (add_psymbol_to_list): Result is now "void".
6465 * psympriv.h (add_psymbol_to_list): Update.
6467 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6469 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6471 Do not open script filenames twice.
6472 * cli/cli-cmds.c (source_script_from_stream): Pass to
6473 source_python_script also STREAM.
6474 * python/py-auto-load.c (source_section_scripts): Pass to
6475 source_python_script_for_objfile also STREAM.
6476 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6478 * python/python-internal.h (source_python_script_for_objfile): New
6479 parameter file, rename parameter file to filename.
6480 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6481 instead if !_WIN32. Update the function comment.
6482 (source_python_script, source_python_script_for_objfile)
6483 (source_python_script): New parameter file, rename parameter file to
6484 filename. Pass FILENAME to python_run_simple_file.
6485 * python/python.h (source_python_script): New parameter file, rename
6486 parameter file to filename.
6488 2012-01-26 Pedro Alves <palves@redhat.com>
6490 * corelow.c (core_has_fake_pid): Delete.
6491 (core_close): Delete references to `core_has_fake_pid'.
6492 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6493 (core_open): Delete references to `core_has_fake_pid'.
6494 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6497 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6499 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6500 Remove language parameter from name_matcher. Adjust the comment.
6501 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6502 Remove language parameter.
6503 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6504 * linespec.c (iterate_name_matcher): Likewise.
6505 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6506 name_matcher. Adjust call accordingly.
6507 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6508 (maintenance_check_symtabs): Adjust type of parameter "fun".
6509 * psymtab.h (maintenance_check_symtabs): Likewise.
6511 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6513 * language.h (symbol_name_match_p_ftype): New typedef.
6514 (struct language_defn): Replace field la_symbol_name_compare
6515 by la_get_symbol_name_match_p.
6516 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6517 (ada_language_defn): Use it.
6518 * linespec.c (struct symbol_matcher_data): New type.
6519 (iterate_name_matcher): Rewrite.
6520 (iterate_over_all_matching_symtabs): Pass a pointer to
6521 a symbol_matcher_data struct to expand_symtabs_matching
6522 instead of just the lookup name.
6523 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6524 opencl-lang.c, p-lang.c, language.c: Delete field
6525 la_symbol_name_compare, and replace by NULL for new field
6526 la_get_symbol_name_match_p.
6527 * symfile.h (struct quick_symbol_functions): Update comment.
6529 2012-01-25 Tom Tromey <tromey@redhat.com>
6531 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6534 2012-01-24 Tom Tromey <tromey@redhat.com>
6537 * solib.c (update_solib_list): Update the program space's
6538 added_solibs and deleted_solibs fields.
6539 * progspace.h (struct program_space) <added_solibs,
6540 deleted_solibs>: New fields.
6541 (clear_program_space_solib_cache): Declare.
6542 * progspace.c (release_program_space): Call
6543 clear_program_space_solib_cache.
6544 (clear_program_space_solib_cache): New function.
6545 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6546 bpstat_stop_status. Use handle_solib_event.
6547 * breakpoint.c: Include gdb_regex.h.
6548 (print_solib_event): New function.
6549 (bpstat_print): Use print_solib_event.
6550 (bpstat_stop_status): Add special case for bp_shlib_event.
6551 (handle_solib_event): New function.
6552 (bpstat_what): Use handle_solib_event.
6553 (struct solib_catchpoint): New.
6554 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6555 (breakpoint_hit_catch_solib, check_status_catch_solib)
6556 (print_it_catch_solib, print_one_catch_solib)
6557 (print_mention_catch_solib, print_recreate_catch_solib): New
6559 (catch_solib_breakpoint_ops): New global.
6560 (catch_load_or_unload, catch_load_command_1)
6561 (catch_unload_command_1): New functions.
6562 (internal_bkpt_check_status): Add special case for
6564 (internal_bkpt_print_it): Use print_solib_event.
6565 (initialize_breakpoint_ops): Initialize
6566 catch_solib_breakpoint_ops.
6567 (_initialize_breakpoint): Register "catch load" and "catch
6569 * breakpoint.h (handle_solib_event): Declare.
6570 * NEWS: Add entry for "catch load" and "catch unload".
6572 2012-01-24 Tom Tromey <tromey@redhat.com>
6574 * ada-lang.c: Include gdb_vecs.h.
6575 * charset.c: Include gdb_vecs.h.
6576 * tracepoint.h: Include gdb_vecs.h.
6577 * gdb_vecs.h: New file.
6579 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6581 * breakpoint.c (breakpoint_hit_catch_fork)
6582 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6583 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6584 * infrun.c (inferior_has_forked, inferior_has_vforked)
6585 (inferior_has_execd, inferior_has_called_syscall): Delete.
6586 (handle_syscall_event): Get syscall_number from the execution
6587 control state's wait status.
6588 (wait_for_inferior): Don't clear syscall_number.
6590 2012-01-24 Pedro Alves <palves@redhat.com>
6592 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6593 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6594 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6595 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6597 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6598 false for events other than TARGET_SIGNAL_TRAP.
6599 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6601 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6602 events other than TARGET_SIGNAL_TRAP.
6603 (tracepoint_breakpoint_hit): Add `ws' parameter.
6604 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6606 (bpstat_stop_status): Same.
6607 (pc_at_non_inline_function): Same.
6608 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6609 to pass the current event's waitstatus to bpstat_stop_status
6610 and pc_at_non_inline_function.
6612 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6615 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6616 Update the function comment for it.
6617 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6618 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6621 2012-01-24 Pedro Alves <palves@redhat.com>
6623 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6624 outside `bs->stop' block.
6625 (bpstat_what): Rework bp_shlib_event handling.
6626 (internal_bkpt_check_status): If the breakpoint is a
6627 bp_shlib_event, then set bs->stop and bs->print if
6628 stop_on_solib_events is set.
6630 2012-01-24 Gary Benson <gbenson@redhat.com>
6632 Delete #if 0'd out code.
6633 * stack.c (print_frame_label_vars): Remove.
6634 (catch_info): Likewise.
6635 (_initialize_stack): Remove "info catch" command.
6636 * NEWS: Mention the above.
6638 2012-01-24 Pedro Alves <palves@redhat.com>
6640 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6642 (remote_notice_new_inferior): If the remote end doesn't support
6643 the multiprocess extensions, then the PID is fake.
6644 (add_current_inferior_and_thread): New.
6645 (remote_start_remote): Use it.
6646 (extended_remote_attach_1): Adjust.
6647 (extended_remote_create_inferior_1): Use
6648 add_current_inferior_and_thread.
6650 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6652 Fix watchpoints to be specific for each inferior.
6653 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6654 current_program_space.
6655 * i386-nat.c (i386_inferior_data_cleanup): New.
6656 (i386_inferior_data_get): Replace variable inf_data_local by an
6658 (i386_use_watchpoints): Initialize i386_inferior_data.
6659 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6660 specific iterate_over_lwps.
6662 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6664 Fix watchpoints across inferior fork.
6665 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6666 comment for linux_nat_iterate_watchpoint_lwps.
6667 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6668 linux_nat_iterate_watchpoint_lwps.
6669 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6670 * i386-linux-nat.c (update_debug_registers_callback): Update the
6671 comment for linux_nat_iterate_watchpoint_lwps.
6672 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6673 linux_nat_iterate_watchpoint_lwps.
6674 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6675 * i386-nat.c: Include inferior.h.
6676 (dr_mirror): Remove.
6677 (i386_inferior_data, struct i386_inferior_data)
6678 (i386_inferior_data_get): New.
6679 (i386_debug_reg_state): Use i386_inferior_data_get.
6680 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6681 (i386_insert_watchpoint, i386_remove_watchpoint)
6682 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6683 (i386_remove_hw_breakpoint): New variable state, use
6684 i386_debug_reg_state instead of DR_MIRROR.
6685 * linux-nat.c (delete_lwp): New declaration.
6686 (num_lwps): Move here from downwards.
6687 (delete_lwp_cleanup): New.
6688 (linux_child_follow_fork): Create new child_lp, call
6689 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6691 (num_lwps): Move upwards.
6692 (linux_nat_iterate_watchpoint_lwps): New.
6693 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6694 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6696 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6700 2012-01-23 Pedro Alves <palves@redhat.com>
6702 * top.c (caution): Rename to ...
6703 (confirm): ... this.
6704 (show_caution): Rename to ...
6705 (show_confirm): ... this.
6706 (quit_cover): Adjust.
6707 (init_main): Adjust.
6708 * top.h (caution): Rename to ...
6709 (confirm): ... this.
6710 * utils.c (internal_vproblem, defaulted_query): Adjust.
6712 2012-01-23 Pedro Alves <palves@redhat.com>
6714 * top.c (caution): Update comment.
6715 (execute_command): Don't consider the current value of `caution'.
6717 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6719 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6721 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6723 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6724 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6725 * target.c (target_fileio_pwrite): Remove buffer address from
6727 (target_fileio_pread): Likewise.
6729 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6731 * NEWS: Document remote "info proc" and "generate-core-file".
6733 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6735 * gdbarch.sh (find_memory_regions): New callback.
6736 * gdbarch.c, gdbarch.h: Regenerate.
6738 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6739 callback before falling back to target method.
6741 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6742 (linux_target_install_ops): No longer install it.
6744 * linux-tdep.c (linux_find_memory_regions): New function.
6745 (linux_init_abi): Install it.
6747 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6749 * gdbarch.sh (make_corefile_notes): New architecture callback.
6750 * gdbarch.c: Regenerate.
6751 * gdbarch.h: Likewise.
6753 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6754 before target_make_corefile_notes. If NULL is returned, the
6755 target does not support core file generation.
6757 * linux-nat.c: Include "linux-tdep.h".
6758 (find_signalled_thread, find_stop_signal): Remove.
6759 (linux_nat_do_thread_registers): Likewise.
6760 (struct linux_nat_corefile_thread_data): Likewise.
6761 (linux_nat_corefile_thread_callback): Likewise.
6762 (iterate_over_spus): Likewise.
6763 (struct linux_spu_corefile_data): Likewise.
6764 (linux_spu_corefile_callback): Likewise.
6765 (linux_spu_make_corefile_notes): Likewise.
6766 (linux_nat_collect_thread_registers): New function.
6767 (linux_nat_make_corefile_notes): Replace contents by call to
6768 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6769 as native-only callback.
6771 * linux-tdep.h: Include "bfd.h".
6772 (struct regcache): Add forward declaration.
6773 (linux_collect_thread_registers_ftype): New typedef.
6774 (linux_make_corefile_notes): Add prototype.
6775 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6776 "regset.h", and "elf-bfd.h".
6777 (find_signalled_thread, find_stop_signal): New functions.
6778 (linux_spu_make_corefile_notes): Likewise.
6779 (linux_collect_thread_registers): Likewise.
6780 (struct linux_corefile_thread_data): New data structure.
6781 (linux_corefile_thread_callback): New funcion.
6782 (linux_make_corefile_notes): Likewise.
6783 (linux_make_corefile_notes_1): Likewise.
6784 (linux_init_abi): Install it.
6786 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6788 * gdbarch.sh (info_proc): New callback.
6789 * gdbarch.c, gdbarch.h: Regenerate.
6791 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6792 before falling back to the target info_proc callback.
6794 * linux-nat.c: Do not include "cli/cli-utils.h".
6795 (linux_nat_info_proc): Remove.
6796 (linux_target_install_ops): No longer install it.
6798 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6799 (read_mapping): New function.
6800 (linux_info_proc): Likewise.
6801 (linux_init_abi): Install it.
6803 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6805 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6806 * infcmd.c: (info_proc_cmd_1): New function.
6807 (info_proc_cmd): New function, moved here from equivalent routine
6808 orignally in linux-nat.c.
6809 (info_proc_cmd_mappings): Likewise.
6810 (info_proc_cmd_stat): Likewise.
6811 (info_proc_cmd_status): Likewise.
6812 (info_proc_cmd_cwd): Likewise.
6813 (info_proc_cmd_cmdline): Likewise.
6814 (info_proc_cmd_exe): Likewise.
6815 (info_proc_cmd_all): Likewise.
6816 (_initialize_infcmd): Install "info proc" command and subcommands.
6818 * target.h (struct target_ops): Add to_info_proc.
6819 (target_info_proc): Add prototype.
6820 * target.c (target_info_proc): New function.
6822 * procfs.c (procfs_info_proc): Add prototype.
6823 (info_proc_cmd): Rename into ...
6824 (procfs_info_proc): ... this. Update argument types as appropriate
6825 for a to_info_proc implementation. Handle "what" argument.
6826 (procfs_target): Install procfs_info_proc.
6827 (_initialize_procfs): No longer install "info proc" command.
6829 * linux-nat.c: (enum info_proc_what): Remove.
6830 (linux_nat_info_proc_cmd_1): Rename into ...
6831 (linux_nat_info_proc): ... this. Update argument types as appropriate
6832 for a to_info_proc implementation.
6833 (linux_nat_info_proc_cmd): Remove.
6834 (linux_nat_info_proc_cmd_mappings): Likewise.
6835 (linux_nat_info_proc_cmd_stat): Likewise.
6836 (linux_nat_info_proc_cmd_status): Likewise.
6837 (linux_nat_info_proc_cmd_cwd): Likewise.
6838 (linux_nat_info_proc_cmd_cmdline): Likewise.
6839 (linux_nat_info_proc_cmd_exe): Likewise.
6840 (linux_nat_info_proc_cmd_all): Likewise.
6841 (linux_target_install_ops): Install linux_nat_info_proc.
6842 (_initialize_linux_nat): No longer install "info proc" command
6845 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6847 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6848 * config.in, configure: Regenerate.
6850 * target.h (struct target_ops): Add to_fileio_readlink.
6851 (target_fileio_readlink): Add prototype.
6852 * target.c (target_fileio_readlink): New function.
6854 * inf-child.c: Conditionally include <sys/param.h>.
6855 (inf_child_fileio_readlink): New function.
6856 (inf_child_target): Install it.
6858 * remote.c (PACKET_vFile_readlink): New enum value.
6859 (remote_hostio_readlink): New function.
6860 (init_remote_ops): Install it.
6861 (_initialize_remote): Handle vFile:readlink packet type.
6863 2012-01-20 Pedro Alves <palves@redhat.com>
6864 Ulrich Weigand <ulrich.weigand@linaro.org>
6866 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6867 * config.in, configure: Regenerate.
6869 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6870 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6871 (target_fileio_open): Add prototype.
6872 (target_fileio_pwrite): Likewise.
6873 (target_fileio_pread): Likewise.
6874 (target_fileio_close): Likewise.
6875 (target_fileio_unlink): Likewise.
6876 (target_fileio_read_alloc): Likewise.
6877 (target_fileio_read_stralloc): Likewise.
6879 * target.c: Include "gdb/fileio.h".
6880 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6881 (default_fileio_target): New function.
6882 (target_fileio_open): Likewise.
6883 (target_fileio_pwrite): Likewise.
6884 (target_fileio_pread): Likewise.
6885 (target_fileio_close): Likewise.
6886 (target_fileio_unlink): Likewise.
6887 (target_fileio_close_cleanup): Likewise.
6888 (target_fileio_read_alloc_1): Likewise.
6889 (target_fileio_read_alloc): Likewise.
6890 (target_fileio_read_stralloc): Likewise.
6892 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6893 <fcntl.h>, and <unistd.h>.
6894 (inf_child_fileio_open_flags_to_host): New function.
6895 (inf_child_errno_to_fileio_error): Likewise.
6896 (inf_child_fileio_open): Likewise.
6897 (inf_child_fileio_pwrite): Likewise.
6898 (inf_child_fileio_pread): Likewise.
6899 (inf_child_fileio_close): Likewise.
6900 (inf_child_fileio_unlink): Likewise.
6901 (inf_child_target): Install to_fileio routines.
6903 * remote.c (init_remote_ops): Install to_fileio routines.
6905 2012-01-20 Pedro Alves <palves@redhat.com>
6906 Ulrich Weigand <ulrich.weigand@linaro.org>
6908 * remote.c (remote_multi_process_p): Only check for multi-process
6909 protocol feature, do not check for extended protocol.
6910 (remote_supports_multi_process): Check for extended protocol here.
6911 (set_general_process): Likewise.
6912 (extended_remote_kill): Likewise.
6913 (remote_pid_to_str): Likewise.
6914 (remote_query_supported): Always query multiprocess mode.
6916 2012-01-20 Pedro Alves <palves@redhat.com>
6917 Ulrich Weigand <ulrich.weigand@linaro.org>
6919 * inferior.h (struct inferior): Add fake_pid_p.
6920 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6921 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6922 magic_null_ptid since the remote side doesn't provide a real PID.
6924 2012-01-19 Tom Tromey <tromey@redhat.com>
6926 * NEWS: Combine the two Python sections.
6928 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6930 * target.h (target_close): Update comment on the target's unpush state.
6932 2012-01-19 Pedro Alves <palves@redhat.com>
6934 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6935 linux_nat_async directly instead of going through the target
6937 * target.c (unpush_target): Close target after unpushing it, not
6940 2012-01-19 Gary Benson <gbenson@redhat.com>
6942 * mdebugread.c (sort_blocks): Replace integer constants with ones
6943 derived from FIRST_LOCAL_BLOCK.
6945 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6946 Jan Kratochvil <jan.kratochvil@redhat.com>
6949 * symfile.c (find_separate_debug_file): New function.
6950 (terminate_after_last_dir_separator): Likewise.
6951 (find_separate_debug_file_by_debuglink): Also try realpath.
6952 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6953 * configure: Regenerate.
6954 * config.in: Regenerate.
6956 2012-01-18 Doug Evans <dje@google.com>
6958 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6959 (main.o): Remove rule.
6960 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6961 (--with-sysroot): Rewrite.
6962 * configure: Regenerate.
6963 * config.in: Regenerate.
6965 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6967 * parse.c (initialize_expout): New function.
6968 (reallocate_expout): Likewise.
6969 (parse_exp_in_context): Use `initialize_expout' and
6970 `reallocate_expout' when appropriate.
6972 2012-01-18 Pedro Alves <palves@redhat.com>
6974 * record.c (struct record_breakpoint, record_breakpoint_p)
6975 (record_breakpoints): New.
6976 (record_insert_breakpoint, record_remove_breakpoint): Manage
6977 record breakpoints list. Only remove breakpoints from the
6978 inferior if they had been inserted there in the first place.
6980 2012-01-17 Doug Evans <dje@google.com>
6982 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6983 if we know we don't have a file name to look for.
6985 2012-01-17 Pedro Alves <palves@redhat.com>
6987 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6988 the frame's stop reason is UNWIND_UNAVAILABLE.
6990 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6992 Fix compilation error.
6993 * m2-exp.y (yyerror): Use ANSI C prototype.
6995 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6997 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6998 (growbuf_by_size): Likewise.
6999 (yyerror): Likewise.
7000 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7001 (modblock): Remove variable (was #if 0'ed).
7002 (parse_number): Convert prototype from K&R to ANSI C.
7003 (yyerror): Likewise.
7004 * objc-exp.y (parse_number): Likewise.
7005 (yyerror): Likewise.
7006 (yylex): Remove #if 0'ed code.
7007 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7008 (yyerror): Likewise.
7010 2012-01-16 Tom Tromey <tromey@redhat.com>
7013 * symtab.h (compare_filenames_for_search): Declare.
7014 * symtab.c (compare_filenames_for_search): New function.
7015 (iterate_over_some_symtabs): Use it.
7016 * symfile.h (struct quick_symbol_functions)
7017 <map_symtabs_matching_filename>: Change spec.
7018 * psymtab.c (partial_map_symtabs_matching_filename): Use
7019 compare_filenames_for_search. Update for new spec.
7020 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7021 compare_filenames_for_search. Update for new spec.
7022 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7024 2012-01-16 Tom Tromey <tromey@redhat.com>
7027 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7028 (struct main_type) <flag_flag_enum>: New field.
7029 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7030 * NEWS: Add entries.
7031 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7033 * python/lib/gdb/printing.py (_EnumInstance): New class.
7034 (FlagEnumerationPrinter): Likewise.
7036 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7038 * breakpoint.c (create_sals_from_address_default): New function.
7039 (create_breakpoints_sal_default): Likewise.
7040 (decode_linespec_default): Likewise.
7041 (is_marker_spec): Removed.
7042 (strace_marker_p): New function.
7043 (init_breakpoint_sal): Using `strace_marker_p' instead of
7045 (create_breakpoint): Call method `create_sals_from_address' from
7046 breakpoint_ops, replacing code that created SALs conditionally
7047 on the type of the breakpoint. Call method `create_breakpoints_sal',
7048 replacing code that created breakpoints conditionally on the type
7050 (base_breakpoint_create_sals_from_address): New function.
7051 (base_breakpoint_create_breakpoints_sal): Likewise.
7052 (base_breakpoint_decode_linespec): Likewise.
7053 (base_breakpoint_ops): Add methods
7054 `base_breakpoint_create_sals_from_address',
7055 `base_breakpoint_create_breakpoints_sal' and
7056 `base_breakpoint_decode_linespec'.
7057 (bkpt_create_sals_from_address): New function.
7058 (bkpt_create_breakpoints_sal): Likewise.
7059 (bkpt_decode_linespec): Likewise.
7060 (tracepoint_create_sals_from_address): Likewise.
7061 (tracepoint_create_breakpoints_sal): Likewise.
7062 (tracepoint_decode_linespec): Likewise.
7063 (strace_marker_create_sals_from_address): Likewise.
7064 (strace_marker_create_breakpoints_sal): Likewise.
7065 (strace_marker_decode_linespec): Likewise.
7066 (strace_marker_breakpoint_ops): New variable.
7067 (addr_string_to_sals): Remove `marker_spec'. Call method
7068 `decode_linespec' from breakpoint_ops, replacing code that decoded
7069 an address string into a SAL. Use `strace_marker_p' instead of
7071 (strace_command): Decide whether we are dealing with a static
7072 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7073 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7074 * breakpoint.h (linespec_result, linespec_sals): New forward
7076 (breakpoint_ops) <create_sals_from_address>,
7077 <create_breakpoints_sal>, <decode_linespec>: New methods.
7079 2012-01-14 Doug Evans <dje@google.com>
7081 * NEWS: Update text for "maint set python print-stack".
7082 It is deprecated in gdb 7.4 and deleted in 7.5.
7084 2012-01-13 Eli Zaretskii <eliz@gnu.org>
7086 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7089 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7091 * configure: Regenerate.
7092 * config.in: Regenerate.
7094 2012-01-12 Keith Seitz <keiths@redhat.com>
7097 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7098 (ANONYMOUS_UNION_NAME): Define.
7099 (is_path_expr_parent): New function.
7100 (get_path_expr_parent): New function.
7101 (is_anonymous_child): New function.
7102 (create_child_with_value): If the child is anonymous and without
7103 a name, assign an object name to it.
7104 (c_describe_child): Use get_path_expr_parent to determine
7105 the parent expression.
7106 If there field represents an anonymous struct or union and
7107 has no name, set an appropriate display name and expression.
7108 (cplus_describe_child): Likewise.
7110 2012-01-12 Pedro Alves <palves@redhat.com>
7112 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7113 available when %ebp is found to be zero (outermost).
7115 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
7117 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7118 an internal gdb_static_assert.
7119 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7121 2012-01-11 Tom Tromey <tromey@redhat.com>
7124 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7125 catch" and "catch throw".
7127 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7129 * blockframe.c (block_innermost_frame): Start search from selected
7130 frame, if present, or otherwise the current frame.
7132 * c-exp.y (variable): Update innermost_block for
7133 'block COLONCOLON NAME' clause.
7134 * m2-exp.y (variable): Ditto.
7135 * objc-exp.y (variable): Ditto.
7137 2012-01-10 Tom Tromey <tromey@redhat.com>
7140 * python/python.c (finish_python_initialization): Set sys.argv.
7142 2012-01-10 Doug Evans <dje@google.com>
7144 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7145 "want_line_info". All callers updated.
7146 (dwarf_decode_lines_1): New function.
7147 (handle_DW_AT_stmt_list): Add function comment.
7148 New arg "want_line_info". All callers updated.
7149 (read_file_scope,read_type_unit_scope): Move comment from
7150 handle_DW_AT_stmt_list to here.
7152 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7154 Fix regression after libiberty/ update for GCC PR 6057 and others.
7155 * c-exp.y (operator) <OPERATOR DELETE>
7156 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7157 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7158 (make_builtin_type, make_name): New variable i, add gdb_assert.
7159 (operator) <OPERATOR NEW>: Update ARGS to 3.
7160 (operator) <OPERATOR DELETE>: Add trailing space.
7161 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7162 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7163 * cp-support.c (cp_canonicalize_string): Check NULL from
7164 cp_comp_to_string, call warning and return.
7166 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7168 Fix duplicate .o files after omitting libbfd.a.
7169 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7170 (SFILES): Add corelow.c.
7171 (COMMON_OBS): Add corelow.o.
7172 (ALLDEPFILES): Remove corelow.c.
7173 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7174 * config/alpha/alpha-osf3.mh: Likewise.
7175 * config/alpha/fbsd.mh: Likewise.
7176 * config/arm/nbsdaout.mh: Likewise.
7177 * config/arm/nbsdelf.mh: Likewise.
7178 * config/i386/i386gnu.mh: Likewise.
7179 * config/ia64/hpux.mh: Likewise.
7180 * config/ia64/linux.mh: Likewise.
7181 * config/m32r/linux.mh: Likewise.
7182 * config/m68k/linux.mh: Likewise.
7183 * config/mips/irix5.mh: Likewise.
7184 * config/mips/irix6.mh: Likewise.
7185 * config/pa/hpux.mh: Likewise.
7186 * config/pa/linux.mh: Likewise.
7187 * config/powerpc/aix.mh: Likewise.
7188 * config/sparc/linux.mh: Likewise.
7189 * config/sparc/linux64.mh: Likewise.
7190 * config/sparc/sol2.mh: Likewise.
7191 * config/vax/vax.mh: Likewise.
7192 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7193 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7194 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7195 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7196 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7197 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7198 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7199 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7200 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7201 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7202 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7203 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7204 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7205 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7206 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7207 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7208 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7209 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7210 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7211 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7212 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7213 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7214 corelow.o from gdb_target_obs.
7215 * corefile.c (core_target): Update the comment on NULL value.
7216 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7217 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7218 MATCHES. Drop YUMMY set on NULL.
7219 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7220 reclaim CORE_DATA if it is already NULL.
7222 2012-01-09 Doug Evans <dje@google.com>
7224 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7225 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7227 2012-01-09 Keith Seitz <keiths@redhat.com>
7229 * breakpoint.c (wrapper.h): Don't include.
7231 2012-01-09 Keith Seitz <keiths@redhat.com>
7233 * Makefile.in (SFILES): Remove wrapper.c.
7234 (HFILES_NO_SRCDIR): Remove wrapper.h.
7235 (COMMON_OBS): Remove wrapper.o.
7236 * cli/cli-interp.c: Don't inlude wrapper.h.
7237 * corelow.c: Likewise.
7238 (core_open): Replace gdb_target_find_new_threads with
7239 TRY_CATCH around target_find_new_threads.
7240 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7241 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7242 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7243 evaluate_expression.
7244 (varobj_set_value): Likewise for evaluate_expression and
7246 (install_new_variable): Likewise for value_fetch_lazy.
7247 (adjust_value_for_child_access): Likewise for value_ind.
7248 (c_describe_child): Likewise for value_subscript and
7250 (c_value_of_root): Likewise for evaluate_expression.
7251 * wrapper.c: Remove.
7252 * wrapper.h: Remove.
7254 2012-01-09 Doug Evans <dje@google.com>
7256 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7257 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7258 "abfd" args with "section". All callers updated.
7259 Error checking code moved ...
7260 (error_check_comp_unit_head): ... here. New function.
7261 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7262 Delete arg "abfd". New arg "type_offset". All callers updated.
7263 (create_debug_types_hash_table): Simplify by using
7264 read_and_check_type_unit_head.
7266 * parser-defs.h (namecopy): Delete.
7267 * parse.c (namecopy, namecopy_size): Move into copy_name.
7269 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7271 Partially fix duplicate .o files after omitting libbfd.a.
7272 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7273 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7274 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7275 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7276 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7277 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7278 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7280 2012-01-09 Pedro Alves <palves@redhat.com>
7282 * MAINTAINERS: Update my email address.
7284 2012-01-08 Doug Evans <dje@google.com>
7286 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7287 n_type_units. Rename type_comp_units to all_type_units.
7289 (add_signatured_type_cu_to_table): Renamed from
7290 add_signatured_type_cu_to_list. All callers updated.
7292 * gdbtypes.h (struct cplus_struct_type): Delete member
7293 nfn_fields_total. All uses removed.
7295 2012-01-06 Doug Evans <dje@google.com>
7297 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7299 (dwarf2_find_comp_unit): Delete.
7300 (process_psymtab_comp_unit): Make result "void".
7301 Delete args buffer, info_ptr, buffer_size, and replace with
7302 "section". All callers updated.
7303 (dwarf2_build_psymtabs_hard): Simplify.
7305 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7306 Thiago Jung Bauermann <bauerman@br.ibm.com>
7308 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7309 before `struct gdb_exception'.
7310 * breakpoint.c (update_global_location_list_nothrow)
7311 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7312 * cp-abi.c (value_rtti_type): Likewise.
7313 * cp-support.c (cp_validate_operator): Likewise.
7314 * infrun.c (insert_exception_resume_breakpoint)
7315 (check_exception_resume, keep_going): Likewise.
7316 * mi-interp.c (mi_breakpoint_created)
7317 (mi_breakpoint_modified): Likewise.
7318 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7319 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7320 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7322 2012-01-05 Doug Evans <dje@google.com>
7324 * dwarf2read.c (statement_prologue): Delete, unused.
7326 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7327 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7329 * dwarf2read.c (comp_unit_header): Delete, unused.
7331 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7333 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7334 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7336 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7338 * infrun.c (normal_stop): Don't skip calling the normal_stop
7339 observers if the thread was doing a multi-step, but stopped for
7340 some reason other than stepping.
7342 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7344 * cli/cli-decode.h: Add comments.
7345 (CMD_LIST_AMBIGUOUS): Moved to command.h
7346 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7347 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7348 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7349 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7350 (add_com, add_com_alias, add_info, add_info_alias)
7351 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7353 * command.h: Add and adjust comments.
7354 (CMD_LIST_AMBIGUOUS): Moved here.
7355 (help_cmd, help_cmd_list): Delete declarations.
7357 2012-01-04 Doug Evans <dje@google.com>
7359 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7360 All callers updated.
7361 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7362 Replace all arguments with "per_cu". All callers updated.
7364 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7366 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7367 New arg "per_cu". All callers updated.
7369 Delete #if 0'd out code.
7370 * language.c (binop_result_type): Delete.
7371 (simple_type, ordered_type, same_type, integral_type): Delete.
7372 (numeric_type, character_type, string_type, boolean_type): Delete.
7373 (float_type, structured_type): Delete.
7374 * language.h: Update.
7376 2012-01-04 Tom Tromey <tromey@redhat.com>
7378 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7380 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7382 * corefile.c (close_exec_file): Delete.
7383 (reopen_exec_file): Remove commented out code that seems related
7384 to close_exec_file, which is being deleted here.
7385 * inferior.h (close_exec_file): Delete.
7386 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7388 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7390 * ada-lang.c: #include "cli/cli-utils.h".
7391 (get_selections): Use skip_spaces.
7392 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7393 (catch_ada_exception_command_split): Use skip_spaces.
7394 (ada_decode_assert_location): Likewise.
7396 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7398 * linespec.c (decode_line_internal): Check for C++ or Java
7399 compound constructs only if the current language is C, C++
7402 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7405 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7406 Joel Brobecker <brobecker@adacore.com>
7407 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7408 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7410 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7411 fall through into AT_ENTRY_POINT.
7412 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7414 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7415 PPC_INSN_SIZE skip to 3 times.
7417 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7419 * linespec.c (add_minsym): Preserve function descriptors.
7421 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7423 * breakpoint.c (all_locations_are_pending): Consider locations
7424 in program spaces executing during startup pending as well.
7426 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7428 Copyright year update in most files of the GDB Project.
7430 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7432 * copyright.sh: Delete.
7433 * copyright.py: Rewrite.
7435 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7437 * gnulib/extra/update-copyright: New file, imported from gnulib.
7439 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7441 * README (Copyright and License Notices): New section.
7443 2012-01-03 Tom Tromey <tromey@redhat.com>
7446 * python/py-value.c (valpy_dereference, valpy_get_address
7447 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7448 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7449 (valpy_absolute, valpy_richcompare): Free intermediate values.
7451 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7453 * ada-lang.c: Reformat the copyright notice.
7455 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7457 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7458 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7459 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7460 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7461 Revert this part of:
7462 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7463 Build gdb directly from *.o files not using libgdb.a.
7464 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7466 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7468 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7469 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7470 Reformat the copyright header.
7472 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7474 Revert this part of:
7475 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7476 Remove the gdbtui binary.
7477 * gdb.c (main): Remove args.interpreter_p initialization.
7478 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7479 * main.h (struct captured_main_args): Remove interpreter_p.
7481 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7483 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7485 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7487 * top.c (print_gdb_version): Update copyright year.
7489 2012-01-02 Yao Qi <yao@codesourcery.com>
7491 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7493 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7494 Joel Brobecker <brobecker@adacore.com>
7496 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7497 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7499 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7500 fall through into AT_ENTRY_POINT.
7501 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7503 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7504 PPC_INSN_SIZE skip to 3 times.
7506 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7508 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7510 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7512 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7514 Build gdb directly from *.o files not using libgdb.a.
7515 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7516 (COMMON_OBS): Remove solib-target.o.
7517 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7518 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7519 (LIBGDB_OBS, libgdb.a): Move it above.
7520 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7521 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7522 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7523 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7524 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7525 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7526 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7527 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7528 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7529 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7530 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7531 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7532 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7533 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7534 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7535 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7536 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7537 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7538 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7539 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7540 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7541 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7542 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7543 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7544 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7545 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7546 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7548 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7550 Remove the gdbtui binary.
7551 * .gitignore (/gdbtui): Remove.
7552 * Makefile.in (TUI): Remove.
7553 (SUBDIR_TUI_OBS): Remove tui-main.o.
7554 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7555 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7556 (tui-main.o): Remove.
7557 (all_object_files): Remove tui-main.o.
7558 * NEWS: New note for the gdbtui removal.
7559 * configure: Rebuilt.
7560 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7561 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7562 CONFIG_UNINSTALL respectively.
7563 * gdb.c (main): Remove args.interpreter_p initialization.
7564 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7565 * main.h (struct captured_main_args): Remove interpreter_p.
7566 * tui/tui-main.c: Remove.
7568 2012-01-01 Doug Evans <dje@google.com>
7570 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7571 (dwarf2_physname, read_import_statement): Ditto.
7572 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7573 (process_structure_scope read_subroutine_type): Ditto.
7574 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7575 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7576 (dwarf2_fetch_die_location_block): Ditto.
7577 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7579 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7580 All callers updated.
7581 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7582 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7583 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7585 * dwarf2read.c (load_cu): Move assert to more useful location.
7587 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7588 All callers updated.
7590 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7591 (dwarf2_elf_names): Minor reformat.
7592 (dwarf2_per_cu_data): Tweak comment.
7593 (dwarf2_read_section): Fix comment.
7594 (create_all_comp_units): Fix comment.
7595 (load_full_comp_unit): Fix comment.
7596 (process_full_comp_unit): Fix comment.
7597 (read_signatured_type): Fix comment.
7599 For older changes see ChangeLog-2011.
7605 version-control: never