1 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Pedro Alves <palves@redhat.com>
4 * gdbthread.h (ALL_THREADS): New macro.
5 (thread_list): Declare.
6 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
7 going, but instead fall through to the stepping handling.
8 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
9 the passed in signal. Adjust debug output.
10 (resume_callback): Rename to ...
11 (linux_nat_resume_callback): ... this. Pass the thread's last
12 stop signal, if in "pass" state.
13 (linux_nat_resume): Adjust to rename.
14 (stop_wait_callback): New assertion. Don't respawn signals;
15 instead let the LWP remain with SIGNALLED set.
16 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
17 * remote.c (append_pending_thread_resumptions): New.
18 (remote_vcont_resume): Call it.
19 * target.h (target_resume): Extend comment.
21 2012-06-28 Iain Sandoe <iain@codesourcery.com>
23 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
25 2012-06-27 Doug Evans <dje@google.com>
27 * dwarf2read.c (dwarf2_cu): Add ranges_base.
28 Delete have_addr_base, unused. All uses updated.
29 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
30 (dwarf2_get_pc_bounds): Add ranges_base.
31 (dwarf2_record_block_ranges): Ditto.
33 2012-06-27 Tom Tromey <tromey@redhat.com>
36 * varobj.c (varobj_create): Update.
37 (varobj_set_value): Update.
38 * tracepoint.c (validate_actionline): Update.
39 (encode_actions_1): Update.
40 * parse.c (parse_exp_1): Add 'pc' argument.
41 (parse_exp_in_context): Add 'pc' argument. Change how
42 expression_context_pc is set.
43 (parse_expression): Update.
44 (parse_field_expression): Update.
45 * expression.h (parse_exp_1): Update.
46 * eval.c (parse_to_comma_and_eval): Update.
47 * breakpoint.c (set_breakpoint_condition): Update.
48 (update_watchpoint): Update.
49 (init_breakpoint_sal): Update
50 (find_condition_and_thread): Update.
51 (watch_command_1): Update.
52 (update_breakpoint_locations): Update.
53 * ada-lang.c (ada_read_renaming_var_value): Update.
54 (create_excep_cond_exprs): Update.
56 2012-06-27 Doug Evans <dje@google.com>
58 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
61 2012-06-26 Doug Evans <dje@google.com>
63 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
65 (error_check_comp_unit_head): New arg abbrev_section. All callers
67 (read_and_check_comp_unit_head): Ditto.
68 (read_and_check_type_unit_head): Ditto.
70 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
72 New attribute 'last' for gdb.Symtab_and_line.
73 * NEWS (Python Scripting): Add entry about the new attribute.
74 * python/py-symtab.c (salpy_get_last): New function which
75 implements the get method for the 'last' attribute of
77 (sal_object_getset): Add entry for the 'last' attribute.
79 2012-06-26 Doug Evans <dje@google.com>
81 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
82 (dwo_sections): Add macinfo, macro.
83 (dwarf2_locate_dwo_sections): Watch for macro sections.
84 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
85 All callers updated. Handle DWO files.
87 * NEWS: Mention new options "set debug dwarf2-read" and
88 "set debug symtab-create".
89 * dwarf2read.c (dwarf2_read_debug): New static global.
90 (dwarf2_build_psymtabs_hard): Add debugging printfs.
91 (process_queue): Ditto.
92 (process_full_comp_unit): Ditto.
93 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
94 * elfread.c (elf_symfile_read): Add debugging printf.
95 * minsyms.c (install_minimal_symbols): Ditto.
96 * psymtab.c (allocate_psymtab): Ditto.
97 * symfile.c (allocate_symtab): Ditto.
98 * symtab.c (symtab_create_debug): New global.
99 (_initialize_symtab): Add new option "set debug symtab-create".
100 * symtab.h (symtab_create_debug): Declare.
102 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
103 (lookup_dwo_type_unit): Ditto.
105 2012-06-26 Roland McGrath <roland@hack.frob.com>
106 H.J. Lu <hongjiu.lu@intel.com>
108 * amd64-linux-nat.c: Include <sys/user.h>.
109 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
110 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
111 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
113 * configure.ac: Check if the fs_base and gs_base members of
114 `struct user_regs_struct' exist.
115 * config.in: Regenerated.
116 * configure: Likewise.
118 2012-06-25 Michael Eager <eager@eagercon.com>
121 * python/python.c (gdbpy_write): Check for interrupted output.
123 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
125 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
126 register as a stack alignment in ARM mode.
128 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
130 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
131 * gnulib/config.in: Regenerate.
132 * gnulib/configure: Likewise.
133 * gnulib/import/m4/extensions.m4: Update it.
134 * gnulib/import/m4/gnulib-common.m4: Likewise.
135 * gnulib/import/m4/memmem.m4: Likewise.
136 * gnulib/import/m4/mmap-anon.m4: Likewise.
137 * gnulib/import/m4/multiarch.m4: Likewise.
138 * gnulib/import/stdint.in.h: Likewise.
140 2012-06-24 Yao Qi <yao@codesourcery.com>
142 * corefile.c (write_memory_with_notification): New.
143 * gdbcore.h: Declare write_memory_with_notification.
144 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
145 'observer_notify_memory_changed' with 'write_memory_with_notification'.
146 * valops.c (value_assign): Likewise.
147 * python/py-inferior.c (infpy_write_memory): Call
148 'write_memory_with_notification'.
150 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
152 * cc-with-index.sh: Use also -ex "set auto-load no".
154 2012-06-23 Doug Evans <dje@google.com>
157 * NEWS: Document additions to .gdb_index.
158 * dwarf2read.c: #include "gdb/gdb-index.h".
159 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
160 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
161 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
162 (dwarf2_read_index): Recognize version 7.
163 (dw2_do_expand_symtabs_matching): New args want_specific_block,
164 block_kind, domain): All callers updated.
165 (dw2_find_symbol_file): Handle new index CU values.
166 (dw2_expand_symtabs_matching): Match symbol kind if requested.
167 (add_index_entry): New args is_static, kind. All callers updated.
168 (offset_type_compare, uniquify_cu_indices): New functions
169 (symbol_kind): New function.
170 (write_psymtabs_to_index): Remove duplicate CU values.
171 (write_psymtabs_to_index): Write .gdb_index version 7.
173 2012-06-22 Joel Brobecker <brobecker@adacore.com>
175 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
176 * configure: Regenerate.
178 2012-06-20 Yao Qi <yao@codesourcery.com>
180 * python/py-inferior.c: Update comments of infpy_read_memory
181 and infpy_write_memory.
183 2012-06-19 Tom Tromey <tromey@redhat.com>
186 * parser-defs.h (insert_type, insert_type_address_space): Declare.
187 (push_type_address_space): Remove.
188 * parse.c (insert_into_type_stack): New function.
189 (insert_type): Likewise.
190 (insert_type_address_space): Rename from push_type_address_space.
191 Insert tp_space_identifier.
192 * c-exp.y (ptr_operator): New production.
193 (abs_decl): Use ptr_operator.
194 (space_identifier): Call insert_type_address_space.
195 (ptype): Don't use const_or_volatile_or_space_identifier.
196 (const_or_volatile_noopt): Call insert_type.
197 (conversion_type_id, conversion_declarator): New productions.
198 (operator): Use conversion_type_id.
200 2012-06-18 Doug Evans <dje@google.com>
202 * symtab.h (minimal_symbol): New member created_by_gdb.
203 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
205 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
206 (search_symbols): Call it instead of lookup_symbol.
207 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
209 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
210 Adjust address for DW_OP_GNU_addr_index.
211 * dwarf2expr.h (dwarf_expr_context): Update comment.
212 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
213 all callers updated. Handle TLS vars described with
214 DW_OP_GNU_const_index.
215 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
216 and DW_OP_GNU_const_index.
217 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
219 * block.c (find_block_in_blockvector): Make explicit the fact that we
222 2012-06-18 Tom Tromey <tromey@redhat.com>
224 * c-exp.y (operator): Remove trailing space after "delete" and
227 2012-06-18 Mark Kettenis <kettenis@gnu.org>
228 Jan Kratochvil <jan.kratochvil@redhat.com>
230 Switch i386 and derived targets to ON_STACK.
231 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
232 (amd64_dicos_init_abi): Remove its installment.
233 * dicos-tdep.c (dicos_init_abi): Remove the
234 set_gdbarch_call_dummy_location call. Update the comment here.
235 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
236 (i386_dicos_init_abi): Remove its installment.
237 * i386-tdep.c (i386_push_dummy_code): New function.
238 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
239 i386_push_dummy_code.
241 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
243 Remove stale dummy frames.
244 * breakpoint.c: Include dummy-frame.h.
245 (longjmp_breakpoint_ops): New variable.
246 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
247 bp_longjmp_call_dummy.
248 (bpstat_what, bptype_string, print_one_breakpoint_location)
249 (init_bp_location): Support bp_longjmp_call_dummy.
250 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
251 (set_longjmp_breakpoint_for_call_dummy)
252 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
254 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
255 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
256 FIXME comment and extend the other comment for bp_call_dummy.
257 (set_longjmp_breakpoint_for_call_dummy)
258 (check_longjmp_breakpoint_for_call_dummy): New declarations.
259 * dummy-frame.c: Include gdbthread.h.
260 (pop_dummy_frame_bpt): New function.
261 (pop_dummy_frame): Call pop_dummy_frame_bpt.
262 (dummy_frame_discard): New function.
263 (cleanup_dummy_frames): Update the comment about longjmps.
264 * dummy-frame.h (dummy_frame_discard): New declaration.
265 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
266 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
267 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
268 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
269 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
270 keep_going if IS_LONGJMP and there is no other reason to stop.
272 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
274 * remote-sim.c (sim_command_completer): Initialize
277 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
279 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
280 * dwarf2loc.c (call_site_parameter_matches): Support
281 CALL_SITE_PARAMETER_PARAM_OFFSET.
282 (needs_dwarf_reg_entry_value): Push stub value.
283 * dwarf2read.c (read_call_site_scope): New variable origin. Support
284 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
285 * gdbtypes.h (enum call_site_parameter_kind): New item
286 CALL_SITE_PARAMETER_PARAM_OFFSET.
287 (struct call_site.parameter.u): New field param_offset.
289 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
291 Code cleanup: Generalize call_site.parameter key.
292 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
293 variable dwarf_reg. New variable kind_u. Update parameters to
294 push_dwarf_reg_entry_value.
295 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
296 * dwarf2expr.h (enum call_site_parameter_kind)
297 (union call_site_parameter_u): Forward declarations.
298 (struct dwarf_expr_context_funcs): Update parameters and their
299 description for push_dwarf_reg_entry_value.
300 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
301 * dwarf2loc.c (call_site_parameter_matches): New function.
302 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
303 description. Use call_site_parameter_matches.
304 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
305 Update parameters and their description.
306 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
307 New variable kind_u. Adjust the caller for updated parameters.
308 (needs_dwarf_reg_entry_value): Update parameters.
309 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
310 instead of attr. Update for the changed fields of struct
312 * gdbtypes.h: Include dwarf2expr.h.
313 (enum call_site_parameter_kind): New.
314 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
315 fb_offset into new union u.
317 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
319 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
320 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
323 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
325 * amd64-linux-nat.c (compat_x32_clock_t): New.
326 (compat_x32_siginfo_t): Likewise.
327 (compat_x32_siginfo_from_siginfo): Likewise.
328 (siginfo_from_compat_x32_siginfo): Likewise.
329 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
330 and siginfo_from_compat_x32_siginfo for x32.
332 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
334 * tracepoint.c (tfile_xfer_partial): Add a lseek.
336 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
338 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
339 instead of gdbarch_ptr_bit.
340 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
341 (amd64_supply_native_gregset): Likewise.
342 (amd64_collect_native_gregset): Likewise.
343 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
344 (amd64_supply_xsave): Likewise.
345 (amd64_collect_fxsave): Likewise.
346 (amd64_collect_xsave): Likewise.
348 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
350 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
351 (amd64_linux_read_description): Check DS segment register for
354 2012-06-15 Tom Tromey <tromey@redhat.com>
356 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
357 init_cutu_and_read_dies.
359 2012-06-15 Iain Sandoe <iain@codesourcery.com>
361 * MAINTAINERS (Write After Approval): Add myself to the list.
363 2012-06-15 Tom Tromey <tromey@redhat.com>
365 * valops.c (value_find_oload_method_list): Now static.
366 * value.h (value_find_oload_method_list): Don't declare.
368 2012-06-15 Tom Tromey <tromey@redhat.com>
370 * valops.c (find_overload_match): Use value_ind.
372 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
374 * infrun.c (handle_inferior_event): Correct indentation.
376 2012-06-14 Doug Evans <dje@google.com>
378 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
379 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
381 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
382 updated. Handle DEBUG_LOC_START_LENGTH.
383 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
384 (loclist_describe_location): Ditto.
386 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
389 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
390 after hiding inline functions.
392 2012-06-13 Joel Brobecker <brobecker@adacore.com>
394 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
395 _initialize_inf_ttrace.
397 2012-06-13 Joel Brobecker <brobecker@adacore.com>
399 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
400 _initialize_hppa_hpux_nat.
402 2012-06-13 Joel Brobecker <brobecker@adacore.com>
404 * remote-sim.c (sim_command_completer): Change type of return
405 value to "VEC (char_ptr) *". Adjust implementation accordingly.
407 2012-06-13 Mark Kettenis <kettenis@gnu.org>
408 Jan Kratochvil <jan.kratochvil@redhat.com>
411 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
412 stack on a 16-byte boundary.
414 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
416 * jit.c (finalize_symtab): Set function's return type to 'void' by
419 2012-06-13 Mark Kettenis <kettenis@gnu.org>
420 H.J. Lu <hongjiu.lu@intel.com>
422 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
423 Move bits common to both the classic LP64 and the new x32 ILP32
425 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
426 (amd64_x32_linux_init_abi): New function.
427 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
430 * i386-tdep.h (i386_pseudo_register_name): New prototype.
431 * i386-tdep.c (i386_pseudo_register_name): Make public.
432 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
433 * amd64-tdep.c (amd64_dword_names): Add "eip".
434 (amd64_x32_pseudo_register_type): New function
435 (amd64_x32_init_abi): New function.
437 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
440 * inferior.h (struct inferior_suspend_state): Comment out.
441 (struct inferior): Comment out the field suspend.
442 * infrun.c (struct infcall_suspend_state): Comment out the field
444 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
447 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
449 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
450 * c-exp.y (classify_inner_name): Remove caller assumptions in the
451 function comment. Return ERROR for unresolved cases. Implement
452 returning proper NAME.
453 (yylex): Accept also NAME from classify_inner_name.
454 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
455 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
457 * cp-support.h (cp_lookup_nested_type): Update its declaration.
459 2012-06-13 Tom Tromey <tromey@redhat.com>
461 * breakpoint.c (condition_completer): New function.
462 (_initialize_breakpoint): Use it.
463 * value.c (complete_internalvar): New function.
464 * value.h (complete_internalvar): Declare.
466 2012-06-13 Tom Tromey <tromey@redhat.com>
468 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
469 * breakpoint.c (catch_syscall_completer): Return a VEC.
470 * cli/cli-cmds.c (complete_command): Update.
471 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
472 (complete_on_enum): Likewise.
473 * command.h: Include gdb_vecs.h.
474 (completer_ftype): Change return type.
475 (complete_on_cmdlist, complete_on_enum): Likewise.
476 * completer.c (noop_completer, filename_completer)
477 (location_completer): Return a VEC.
478 (add_struct_fields): Remove 'nextp' argument. Change 'output'
480 (expression_completer, complete_line_internal, complete_line)
481 (command_completer): Return a VEC.
482 (gdb_completion_word_break_characters, line_completion_function):
484 * completer.h: Include gdb_vecs.h.
485 (complete_line, noop_completer, filename_completer)
486 (expression_completer, location_completer, command_completer):
488 * f-lang.c (f_word_break_characters): Return a VEC.
489 * interps.c (interpreter_completer): Return a VEC.
490 * language.h (struct language_defn)
491 <la_make_symbol_completion_list>: Return a VEC.
492 * python/py-cmd.c (cmdpy_completer): Return a VEC.
493 * symtab.c (free_completion_list): Take a VEC.
494 (return_val_size, return_val_index): Remove.
495 (return_val): Now a VEC.
496 (completion_list_add_name): Update.
497 (default_make_symbol_completion_list_break_on)
498 (default_make_symbol_completion_list, make_symbol_completion_list)
499 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
501 (add_filename_to_list): Update.
502 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
504 (maybe_add_partial_symtab_filename): Update.
505 (make_source_files_completion_list): Return a VEC.
506 * symtab.h (default_make_symbol_completion_list_break_on)
507 (default_make_symbol_completion_list, make_symbol_completion_list)
508 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
509 (make_source_files_completion_list): Update.
511 2012-06-13 Tom Tromey <tromey@redhat.com>
513 * breakpoint.c (add_catch_command): Use completer_ftype.
514 * breakpoint.h: Include command.h.
515 (add_catch_command): Use completer_ftype.
516 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
517 * cli/cli-decode.h (struct cmd_list_element) <completer>:
519 * command.h (completer_ftype): New typedef.
520 (set_cmd_completer): Use it.
521 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
524 2012-06-13 Pedro Alves <palves@redhat.com>
526 Partial revert of previous change.
528 * serial.c (scb_base): New global.
529 (serial_for_fd): New.
530 (serial_open, serial_fdopen_ops): Link new serial in open serials
532 (do_serial_close): Unlink serial from the open serials chain.
534 2012-06-12 Pedro Alves <palves@redhat.com>
536 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
538 (prepare_for_detach): No longer context switch here in non-stop
540 (fetch_inferior_event): Ditto.
541 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
542 to the event thread before removing breakpoints. Switch to the
543 event thread before inserting breakpoints and resuming.
544 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
545 event thread before resuming.
546 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
547 Switch to the event thread before removing breakpoints.
549 2012-06-12 Eli Zaretskii <eliz@gnu.org>
551 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
552 special characters correctly for the Windows shells. See
553 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
555 [!__MINGW32__]: Remove extra double quote character from special
558 2012-06-11 Stan Shebs <stan@codesourcery.com>
560 * ui-out.h: Remove #if 0 declarations.
561 * ui-out.c: Remove #if 0 functions.
563 2012-06-11 Pedro Alves <palves@redhat.com>
565 * ser-base.c (run_async_handler_and_reschedule): New.
566 (fd_event, push_event): Use it.
567 * serial.c (serial_open, serial_fdopen_ops): Set the initial
568 reference count to 1.
569 (do_serial_close): Set the bufp field to NULL. Use serial_unref
571 (serial_is_open, serial_ref, serial_unref): New.
572 * serial.h (serial_open): Adjust comment.
573 (serial_is_open): Declare.
574 (serial_close): Adjust comment.
575 (serial_ref, serial_unref) Declare.
576 (struct serial): New field 'refcnt'.
578 2012-06-11 Pedro Alves <palves@redhat.com>
580 Remove #if 0'd "connect" command, and unnecessary associated
581 refcounting and serial reuse bits.
583 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
584 * serial.c (last_serial_opened): Delete.
586 (serial_open): Adjust.
587 (serial_for_fd): Delete.
588 (serial_fdopen_ops, do_serial_close): Adjust.
589 (serial_fdopen_ops): Adjust.
591 2012-06-11 Pedro Alves <palves@redhat.com>
593 * serial.c (do_serial_close): Remove early return when SCB is
596 2012-06-11 Tom Tromey <tromey@redhat.com>
598 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
600 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
602 Fix regression by the "ambiguous linespec" series.
603 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
604 get_last_displayed_symtab and get_last_displayed_line and depending
607 2012-06-11 Tom Tromey <tromey@redhat.com>
609 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
610 (dw2_find_symbol_file): Use it.
612 2012-06-11 Michael Eager <eager@eagercon.com>
614 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
615 * mips-linux-tdep.h (mips_signals): New
617 2012-06-11 Tom Tromey <tromey@redhat.com>
619 * infrun.c (handle_inferior_event)
620 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
622 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
623 exception logic in all cases. Update comments.
624 (insert_longjmp_resume_breakpoint): Set the exception resume
627 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
629 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
631 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
633 * valarith.c (binop_types_user_defined_p): Fix a typo.
635 2012-06-08 Yao Qi <yao@codesourcery.com>
636 Chung-Lin Tang <cltang@codesourcery.com>
638 * arch-utils.c (default_return_in_first_hidden_param_p): New.
639 * arch-utils.h: Declare.
640 * gdbarch.sh: Add return_in_first_hidden_param_p.
641 * gdbarch.c, gdbarch.h: Regenerated.
642 * infcall.c (call_function_by_hand): Call
643 gdbarch_return_in_first_hidden_param_p instead of
644 language_pass_by_reference.
646 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
647 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
648 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
649 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
650 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
651 `cplus_return_struct_by_reference'.
652 (tic6x_return_value): Handle language cplusplus.
653 (tic6x_return_in_first_hidden_param_p): New.
654 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
656 2012-06-07 Doug Evans <dje@google.com>
658 * dwarf2read.c (dwarf2_cu): Add comment.
660 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
662 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
664 (mips_eabi_push_dummy_call): Likewise.
665 (mips_n32n64_push_dummy_call): Likewise.
666 (mips_o32_push_dummy_call): Likewise.
667 (mips_o64_push_dummy_call): Likewise.
669 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
671 * mips-tdep.c (mips_convert_register_p): Correct coding style.
673 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
675 * mips-tdep.c (mips_pseudo_register_type): Use
676 mips_float_register_p.
678 2012-06-06 Pedro Alves <palves@redhat.com>
680 * infrun.c (handle_inferior_event): Remove calls to
681 reinit_frame_cache that follow a context_switch call.
683 2012-06-06 Pedro Alves <palves@redhat.com>
685 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
686 context_switch and remove stale comment.
688 2012-06-06 Pedro Alves <palves@redhat.com>
690 * infrun.c (struct execution_control_state): Remove
691 `new_thread_event' field.
692 (handle_inferior_event): Simplify new threads handling; don't
693 resume the inferior if we find a new thread.
695 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
697 * NEWS: Document the deprecation of SH's 'regs' command.
698 * inferior.h (all_registers_info): Add function declaration.
699 * sh-tdep.c (sh_show_regs): Remove variable.
700 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
701 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
702 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
703 (sh_show_regs_command): Remove functions.
704 (sh_gdbarch_init): Don't set sh_show_regs.
705 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
706 'info all-registers'.
707 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
708 (sh64_show_regs): Remove functions.
709 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
711 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
713 * configure.ac: Move development=true below AC_INIT.
714 * configure: Regenerate.
716 2012-06-05 Stan Shebs <stan@codesourcery.com>
718 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
721 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
723 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
725 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
726 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
727 * target.c (target_read_stack, target_write_memory)
728 (target_write_raw_memory): Likewise.
729 * target.h (target_read_stack, target_write_memory)
730 (target_write_raw_memory): Likewise.
732 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
734 * symfile-mem.c: Change gdb_static_assert to ssize_t.
735 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
736 * target.c (target_read_memory): Change LEN to ssize_t.
737 * target.h (target_read_memory): Change LEN to ssize_t.
739 2012-06-05 Pedro Alves <palves@redhat.com>
743 * breakpoint.c (until_break_command): Only fetch the selected
744 frame after decode_line_1.
746 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
748 * solib-svr4.c (enable_break): Don't fallback to setting the solib
749 event breakpoint at _start, __start or main if a program
750 interpreter is not found.
752 2012-06-05 Joel Brobecker <brobecker@adacore.com>
754 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
756 * windows-tdep.c: #include "objfiles.h".
757 (windows_iterate_over_objfiles_in_search_order): New function.
758 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
759 iterate_over_objfiles_in_search_order gdbarch method to
760 windows_iterate_over_objfiles_in_search_order.
761 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
763 2012-06-05 Joel Brobecker <brobecker@adacore.com>
765 * gdbarch.sh: Add generation of
766 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
767 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
768 (iterate_over_objfiles_in_search_order): New gdbarch method.
769 * gdbarch.h, gdbarch.c: Regenerate.
770 * objfiles.h (default_iterate_over_objfiles_in_search_order):
772 * objfiles.c (default_iterate_over_objfiles_in_search_order):
774 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
775 out of lookup_symbol_aux_symtabs.
776 (lookup_symbol_aux_symtabs): Replace extracted-out code by
777 call to lookup_symbol_aux_objfile.
778 (struct global_sym_lookup_data): New type.
779 (lookup_symbol_global_iterator_cb): New function.
780 (lookup_symbol_global): Search for symbol using
781 gdbarch_iterate_over_objfiles_in_search_order and
782 lookup_symbol_global_iterator_cb.
783 * findvar.c (struct minsym_lookup_data): New type.
784 (minsym_lookup_iterator_cb): New function.
785 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
786 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
787 and minsym_lookup_iterator_cb.
789 2012-06-05 Joel Brobecker <brobecker@adacore.com>
791 Revert the following patch:
792 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
793 try locating the symbol in the symbol's own objfile first, before
794 extending the search to all objfiles.
795 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
796 out of lookup_symbol_aux_symtabs.
797 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
798 Replace extracted-out code by call to lookup_symbol_aux_objfile.
799 Do not search EXCLUDE_OBJFILE.
800 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
801 (lookup_symbol_global): Search for matches in the block's objfile
802 first, before searching all other objfiles.
804 2012-06-05 Joel Brobecker <brobecker@adacore.com>
806 * breakpoint.c (find_condition_and_thread): Stop parsing
807 as soon as the first invalid keyword is found.
809 2012-06-05 Joel Brobecker <brobecker@adacore.com>
811 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
813 2012-06-05 Joel Brobecker <brobecker@adacore.com>
815 * config/djgpp/djcheck.sh: Add copyright header.
817 2012-06-05 Joel Brobecker <brobecker@adacore.com>
819 * copyright.py (update_files, main): Fix path to update-copyright
822 2012-06-05 Joel Brobecker <brobecker@adacore.com>
824 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
825 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
826 for which a reminder to update by hand is printed.
828 2012-06-04 Doug Evans <dje@google.com>
830 * buildsym.c (make_blockvector): Add comment.
832 2012-06-04 Pedro Alves <palves@redhat.com>
834 * arch-utils.c (default_gdb_signal_from_target): Delete.
835 * arch-utils.h (default_gdb_signal_from_target): Delete.
836 * corelow.c (core_open) <signal mapping>: Extended comment. Check
837 gdbarch_gdb_signal_from_target_p.
838 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
840 * gdbarch.h: Regenerate.
841 * gdbarch.c: Regenerate.
843 2012-06-04 Pedro Alves <palves@redhat.com>
845 * gdbarch.sh (gdb_signal_from_target): Mention that the
846 implementation of the method must be host independent.
847 * gdbarch.h: Regenerate.
849 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
851 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
853 (target_read_memory_bfd): New function.
854 (symbol_file_add_from_memory): Use it.
856 2012-06-03 Doug Evans <dje@google.com>
858 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
860 (basic_lookup_transparent_type): Ditto.
862 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
863 (ALL_PRIMARY_SYMTABS): Use it.
864 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
865 * dwarf2read.c (dw2_find_symbol_file): Ditto.
866 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
867 * symtab.c (lookup_symbol_aux_objfile): Ditto.
868 (basic_lookup_transparent_type): Ditto.
870 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
872 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
873 it to optimize resolution of demangled name.
875 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
877 * configure.ac (development): Define new variable.
878 Call AC_CHECK_LIB for mcheck if $development.
879 (ERROR_ON_WARNING): Enable it by default only if $development.
880 * config.in: Regenerate.
881 * configure: Regenerate.
883 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
885 * target.c (target_read_memory): Make LEN argument as size_t.
886 * target.h (target_read_memory): Likewise.
888 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
890 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
892 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
894 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
895 BookE interface for PowerPC server processors if not available
898 2012-05-31 Keith Seitz <keiths@redhat.com>
900 * linespec.c (decode_objc): Add cleanup to free
902 (find_linespec_symbols): Add cleanup to free CLASSES.
903 * symfile.c (find_separate_debug_file_by_debuglink): Add
904 cleanup to free DEBUGLINK.
905 * ui-out.c (clear_header_list): No need to check if
906 HEADER_NEXT.COLHDR is NULL.
907 Free HEADER_NEXT.COL_NAME.
909 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
911 * ada-lang.c (standard_lookup): Prevent uninitialized variable
914 2012-05-30 Jeff Kenton <jkenton@tilera.com>
916 * configure.host (gdb_host_cpu): Handle tilegx*.
917 (gdb_host): Handle tilegx-*-linux*.
918 * tilegx-linux-nat.c: New file.
919 * config/tilegx/linux.mh: New file.
921 2012-05-30 Jeff Kenton <jkenton@tilera.com>
923 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
925 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
927 * configure.tgt: Handle tilegx-*-linux*.
928 * tilegx-tdep.h: New file.
929 * tilegx-tdep.c: New file.
930 * tilegx-linux-tdep.c: New file.
931 * regformats/reg-tilegx.dat: New file.
933 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
935 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
936 accounting of hw watchpoints on ppc.
938 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
940 * source.c (openp): Expand tilde in path entries.
942 2012-05-29 Doug Evans <dje@google.com>
944 * buildsym.c (block_compar): Fix comment.
945 (end_symtab): Fix and clarify some comments.
947 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
948 cleanup_undefined_types.
949 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
952 2012-05-29 Tom Tromey <tromey@redhat.com>
954 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
956 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
957 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
959 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
962 2012-05-29 Tristan Gingold <gingold@adacore.com>
964 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
965 (struct darwin_info): ... New struct.
966 (solib_darwin_pspace_data): New variable.
967 (darwin_pspace_data_cleanup): New function.
968 (get_darwin_info): Likewise.
969 (darwin_dyld_version_ok, darwin_load_image_infos)
970 (darwin_solib_get_all_image_info_addr_at_init)
971 (darwin_solib_read_all_image_info_addr): Add info argument.
973 (darwin_current_sos): Use per pspace structure.
974 (darwin_solib_create_inferior_hook): Likewise.
975 (darwin_clear_solib): Likewise.
976 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
978 2012-05-28 Pedro Alves <palves@redhat.com>
980 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
981 block that uses them. Clear ecss before handling each event.
983 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
985 * solib-svr4.c (svr4_current_sos): New comment on
986 svr4_current_sos_via_xfer_libraries fall back.
988 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
990 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
991 it as a fallback for TYPE_IS_OPAQUE.
992 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
993 symbols for lookup_symbol.
995 2012-05-24 John Steele Scott <toojays@toojays.net>
997 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
998 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
999 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1000 (check_producer): ... this new function, which also checks for ICC
1001 and caches the result.
1002 (producer_is_icc): New function.
1003 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1006 2012-05-24 Pedro Alves <palves@redhat.com>
1010 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1011 (default_gdb_signal_to_target): ... this. Add comment.
1012 (default_gdb_signal_from_host): Rename to ...
1013 (default_gdb_signal_from_target): ... this. Add comment.
1014 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1015 (default_gdb_signal_to_target): ... this.
1016 (default_gdb_signal_from_host): Rename to ...
1017 (default_gdb_signal_from_target): ... this.
1018 * corelow.c (core_open): Adjust to naming change. Replace comment.
1019 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1020 (gdb_signal_from_target): ... this. Adjust to
1021 default_gdb_signal_from_host naming change. Extend comment.
1022 (gdb_signal_to_host): Rename to ...
1023 (gdb_signal_to_target): ... this. Adjust to
1024 default_gdb_signal_to_host naming change.
1025 * gdbarch.h, gdbarch.c: Renegerate.
1027 2012-05-24 Pedro Alves <palves@redhat.com>
1031 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1033 2012-05-24 Pedro Alves <palves@redhat.com>
1037 Replace target_signal with gdb_signal throughout.
1039 2012-05-24 Pedro Alves <palves@redhat.com>
1043 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1044 string, instead of reusing the va_list argument.
1046 2012-05-24 Tom Tromey <tromey@redhat.com>
1048 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1051 2012-05-23 Doug Evans <dje@google.com>
1053 * symtab.c (search_symbols): Formatting fixes.
1054 (print_symbol_info): Formatting fixes.
1056 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1057 int64_t change to leb128 API.
1058 (read_encoded_value, decode_frame_entry_1): Ditto.
1059 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1060 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1061 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1062 (execute_stack_op): Ditto.
1063 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1064 (safe_read_uleb128, safe_read_sleb128): Ditto.
1065 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1066 (dwarf2_compile_expr_to_ax): Ditto.
1067 (locexpr_describe_location_piece): Ditto.
1068 (disassemble_dwarf_expression): Ditto.
1069 (locexpr_describe_location_1): Ditto.
1071 2012-05-23 Stan Shebs <stan@codesourcery.com>
1072 Kwok Cheung Yeung <kcy@codesourcery.com>
1074 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1075 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1076 (mi-cmd-info.o): New rule.
1077 * osdata.h (info_osdata_command): New declaration.
1078 * osdata.c (info_osdata_command): Change to non-static.
1079 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1080 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1081 * mi/mi-cmd-info.c: New file.
1083 2012-05-23 Doug Evans <dje@google.com>
1085 * symtab.c (search_symbols): Pass NULL for file_matcher to
1086 expand_symtabs_matching if there are no files to match.
1088 * gdbtypes.c (lookup_typename): Simplify.
1090 2012-05-23 Pedro Alves <palves@redhat.com>
1092 * arch-utils.h (default_target_signal_to_host): Delete.
1093 * arch-utils.c (default_target_signal_to_host): Delete.
1094 * gdbarch.sh (target_signal_to_host): Remove.
1095 * gdbarch.h, gdbarch.c: Regenerate.
1097 2012-05-22 Doug Evans <dje@google.com>
1099 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1101 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1102 (execute_cfa_program): Update to match API of leb128 functions.
1103 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1105 (read_unsigned_leb128, read_signed_leb128): Delete.
1106 (read_initial_length): Change type of buf argument to
1108 (read_encoded_value): Update to match API of leb128 functions.
1109 (decode_frame_entry): Change result to "const gdb_byte *", and
1110 similarly for "start" parameter.
1111 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1112 (dwarf2_build_frame_info): Change local frame_ptr to
1114 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1115 read_uleb128, read_sleb128. All callers updated.
1116 (safe_skip_leb128): New function.
1117 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1118 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1119 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1120 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1121 read_uleb128, read_sleb128.
1122 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1123 (execute_stack_op): Update to match API of leb128 functions.
1124 * dwarf2expr.h: #include "leb128.h".
1125 (read_uleb128, read_sleb128): Delete.
1126 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1127 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1128 * dwarf2loc.c (debug_loc_kind): New enum.
1129 (decode_debug_loc_addresses): New function.
1130 (decode_debug_loc_dwo_addresses): New function.
1131 (dwarf2_find_location_expression): Rewrite.
1132 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1133 (locexpr_describe_location_piece): Ditto.
1134 (disassemble_dwarf_expression): Ditto.
1135 (locexpr_describe_location_1): Ditto.
1136 (loclist_describe_location): Rewrite.
1137 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1138 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1139 (dwarf2_section_buffer_overflow_complaint): Renamed from
1140 dwarf2_macros_too_long_complaint. All callers updated.
1141 (skip_leb128): Delete.
1142 (init_cu_die_reader): Initialize reader->buffer_end.
1143 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1144 (skip_form_bytes): New arg buffer_end. All callers updated.
1145 Replace call to skip_leb128 with gdb_skip_leb128.
1146 (skip_unknown_opcode): New arg mac_end. All callers updated.
1147 (fill_in_loclist_baton): Initialize baton->from_dwo.
1149 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1151 * mips-linux-nat.c (mips_linux_read_description): Use a more
1152 verbose error message.
1154 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1156 * NEWS: Add MIPS/Linux DSP support.
1157 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1158 (SIGCONTEXT_DSPCTL): New macro.
1159 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1160 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1161 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1162 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1163 (N64_SIGCONTEXT_HI3): Likewise.
1164 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1165 (N64_SIGCONTEXT_LO3): Likewise.
1166 (N64_SIGCONTEXT_DSPCTL): Likewise.
1167 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1168 (mips_linux_o32_sigframe_init): Handle DSP registers.
1169 (mips_linux_n32n64_sigframe_init): Likewise.
1171 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1173 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1176 2012-05-22 Pedro Alves <palves@redhat.com>
1178 * target.h (store_waitstatus): Move declaration ...
1179 * inf-child.h (store_waitstatus): ... here.
1180 * target.c: Move inclusion of gdb_wait.h, and ...
1181 (store_waitstatus): ... this ...
1182 * inf-child.c: ... here.
1183 * linux-nat.c: Include inf-child.h.
1184 * rs6000-nat.c: Include inf-child.h.
1185 * spu-linux-nat.c: Include inf-child.h.
1187 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1189 * tracepoint.c (start_tracing): Add missing i18n markup.
1190 (stop_tracing, set_trace_user): Ditto.
1191 (set_trace_notes, set_trace_stop_notes): Ditto.
1193 2012-05-21 Tom Tromey <tromey@redhat.com>
1196 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1198 * value.h (value_cast_pointers): Update.
1199 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1200 (value_cast): Update.
1201 (update_search_result): New function.
1202 (do_search_struct_field): New, from search_struct_field. Check
1203 for ambiguous results.
1204 (search_struct_field): Rewrite.
1205 * infcall.c (value_arg_coerce): Update.
1206 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1207 value_cast_pointers.
1208 * ada-lang.c (ada_convert_actual): Update.
1210 2012-05-21 Tom Tromey <tromey@redhat.com>
1212 * macroexp.c (macro_stringify): Terminate the string.
1214 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1216 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1218 * auto-load.c (auto_load_expand_dir_vars): New function.
1219 (auto_load_safe_path_vec_update): Use it, remove the
1220 substitute_path_component call thanks to it.
1221 (auto_load_objfile_script): Remove the debug_file_directory processing.
1222 Use auto_load_expand_dir_vars, remove the substitute_path_component
1224 * configure: Regenerate.
1225 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1226 path. Escape $ also for $debugdir.
1227 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1228 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1230 2012-05-20 Doug Evans <dje@google.com>
1232 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1233 before use. Check for symtab->includes == NULL before scanning it.
1235 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1237 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1239 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1241 * NEWS: Add microMIPS support and "set mips compression",
1242 "show mips compression" commands.
1243 * mips-tdep.h (mips_isa): New enum.
1244 (gdbarch_tdep): Add mips_isa.
1245 (mips_pc_is_mips16): Update prototype.
1246 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1247 * mips-tdep.c (mips_compression_mips16): New variable.
1248 (mips_compression_micromips): Likewise.
1249 (mips_compression_strings): Likewise.
1250 (mips_compression_string): Likewise.
1251 (is_mips16_isa, is_micromips_isa): New functions.
1252 (is_mips16_addr): Rename to...
1253 (is_compact_addr): ... this.
1254 (unmake_mips16_addr): Likewise to...
1255 (unmake_compact_addr): ... this.
1256 (make_mips16_addr): Likewise to...
1257 (make_compact_addr): ... this.
1258 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1260 (mips_elf_make_msymbol_special): Handle microMIPS code.
1261 (msymbol_is_special): Rename to...
1262 (msymbol_is_mips16): ... this.
1263 (mips_make_symbol_special, mips_pc_is_mips16): Update
1265 (msymbol_is_mips, msymbol_is_micromips): New functions.
1266 (mips16_to_32_reg): Rename to...
1267 (mips_reg3_to_reg): ... this.
1268 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1269 (mips_pc_isa): Likewise.
1270 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1272 (mips_fetch_instruction): Pass return status instead of printing
1273 an error message if requested. Handle microMIPS code. Bail out
1275 (micromips_op): New macro.
1276 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1277 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1278 (b6s4_op, b7s3_reg): Likewise.
1279 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1280 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1281 (mips_insn_size): New function.
1282 (mips32_next_pc): Update mips_fetch_instruction call.
1283 (micromips_relative_offset7): New function.
1284 (micromips_relative_offset10): Likewise.
1285 (micromips_relative_offset16): Likewise.
1286 (micromips_pc_insn_size): Likewise.
1287 (micromips_bc1_pc): Likewise.
1288 (micromips_next_pc): Likewise.
1289 (unpack_mips16): Update mips_fetch_instruction call.
1290 (extended_mips16_next_pc): Update according to change to
1292 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1294 (mips16_scan_prologue): Update mips_fetch_instruction call.
1295 Update according to change to mips16_to_32_reg.
1296 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1297 (mips_insn16_frame_base_sniffer): Likewise.
1298 (micromips_decode_imm9): New function.
1299 (micromips_scan_prologue): Likewise.
1300 (mips_micro_frame_cache): Likewise.
1301 (mips_micro_frame_this_id): Likewise.
1302 (mips_micro_frame_prev_register): Likewise.
1303 (mips_micro_frame_sniffer): Likewise.
1304 (mips_micro_frame_unwind): New variable.
1305 (mips_micro_frame_base_address): New function.
1306 (mips_micro_frame_base): New variable.
1307 (mips_micro_frame_base_sniffer): New function.
1308 (mips32_scan_prologue): Update mips_fetch_instruction call.
1309 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1310 rather than for MIPS16.
1311 (mips_insn32_frame_base_sniffer): Likewise.
1312 (mips_addr_bits_remove): Handle microMIPS code.
1313 (deal_with_atomic_sequence): Rename to...
1314 (mips_deal_with_atomic_sequence): ... this. Update the type
1315 of the variable used to hold an instruction. Remove the ISA bit
1316 check. Update mips_fetch_instruction call.
1317 (micromips_deal_with_atomic_sequence): New function.
1318 (deal_with_atomic_sequence): Likewise.
1319 (mips_about_to_return): Handle microMIPS code. Update
1320 mips_fetch_instruction call.
1321 (heuristic_proc_start): Check for the standard MIPS ISA rather
1322 than for MIPS16. Update mips_pc_is_mips16 and
1323 mips_fetch_instruction calls. Handle microMIPS code.
1324 (mips_push_dummy_code): Handle microMIPS code.
1325 (mips_eabi_push_dummy_call): Likewise.
1326 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1327 (mips_o64_push_dummy_call): Handle microMIPS code.
1328 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1329 (is_delayed): Remove function.
1330 (mips_single_step_through_delay): Replace the call to is_delayed
1331 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1332 Handle microMIPS code.
1333 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1335 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1337 (micromips_in_function_epilogue_p): New function.
1338 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1340 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1342 (gdb_print_insn_mips): Likewise.
1343 (mips_breakpoint_from_pc): Likewise.
1344 (mips_remote_breakpoint_from_pc): New function.
1345 (mips32_instruction_has_delay_slot): Simplify making use of the
1346 updated mips_fetch_instruction interface.
1347 (micromips_instruction_has_delay_slot): New function.
1348 (mips16_instruction_has_delay_slot): Simplify making use of the
1349 updated mips_fetch_instruction interface.
1350 (mips_adjust_breakpoint_address): Check for the standard MIPS
1351 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1352 calls. Handle microMIPS code.
1353 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1354 (mips_skip_trampoline_code): Handle microMIPS code.
1355 (global_mips_compression): New function.
1356 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1357 file flags. Register the microMIPS remote breakpoint handler
1358 and heuristic frame unwinder.
1359 (show_mips_compression): New function.
1360 (_initialize_mips_tdep): Add the "set mips compression" and
1361 "show mips compression" commands.
1363 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1368 * amd64-darwin-tdep.c:
1369 * arm-symbian-tdep.c:
1373 * bfin-linux-tdep.c:
1380 * dwarf2-frame-tailcall.c:
1409 * microblaze-tdep.c:
1410 * mips-linux-tdep.c:
1418 * python/py-finishbreakpoint.c:
1419 * python/py-inferior.c:
1420 * python/py-infthread.c:
1424 * remote-m32r-sdi.c:
1428 * rs6000-aix-tdep.c:
1454 * amd64-darwin-tdep.c:
1455 * arm-symbian-tdep.c:
1456 * arm-tdep.c: Delete unused variables.
1458 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1460 Rename $ddir to $datadir.
1461 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1462 * auto-load.c (auto_load_safe_path_vec_update)
1463 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1464 * configure: Regenerate.
1465 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1466 Likewise. Remove the 'use $ddir' help string.
1468 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1470 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1471 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1473 2012-05-18 Tom Tromey <tromey@redhat.com>
1476 * valprint.h (struct value_print_options) <symbol_print>: New
1478 * valprint.c (user_print_options): Add default for symbol_print.
1479 (show_symbol_print): New function.
1480 (generic_val_print): Respect symbol_print.
1481 (_initialize_valprint): Add "print symbol" setting.
1482 * f-valprint.c (f_val_print): Respect symbol_print.
1483 * c-valprint.c (c_val_print): Respect symbol_print.
1485 * printcmd.c (print_address_symbolic): Return int. Ignore some
1487 (print_address_demangle): Return int.
1488 * defs.h: (print_address_symbolic): Return int.
1489 * value.h (print_address_demangle): Return int.
1491 2012-05-18 Tom Tromey <tromey@redhat.com>
1493 * valprint.c (val_print_string): Don't print leading space.
1494 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1495 print space before string or vtbl.
1496 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1498 * jv-valprint.c (java_value_print): Print space before string.
1499 * go-valprint.c (print_go_string): Print space before string.
1500 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1501 space before string.
1502 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1503 space before string or vtbl.
1504 * auxv.c (fprint_target_auxv): Print space after address.
1506 2012-05-18 Tom Tromey <tromey@redhat.com>
1508 * printcmd.c (print_address_demangle): Remove special case for 0.
1510 2012-05-18 Tom Tromey <tromey@redhat.com>
1512 * printcmd.c (print_address_demangle): Add 'opts' argument.
1513 * p-valprint.c (pascal_val_print): Update.
1514 * jv-valprint.c (java_val_print): Update.
1516 * valprint.c (generic_val_print): Update.
1517 (print_function_pointer_address): Add 'options' argument. Remove
1518 'addressprint' argument. Update.
1519 * m2-valprint.c (print_unpacked_pointer): Update.
1520 * gnu-v3-abi.c (print_one_vtable): Update.
1521 (gnuv3_print_method_ptr): Update.
1522 * f-valprint.c (f_val_print): Update.
1523 * cp-valprint.c (cp_print_value_fields): Update.
1524 * valprint.h (print_function_pointer_address): Update.
1525 * c-valprint.c (c_val_print): Update.
1527 2012-05-18 Tom Tromey <tromey@redhat.com>
1529 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1530 directly corresponding to the found psymtab.
1531 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1532 (dw2_find_pc_sect_symtab): Use it.
1533 * block.h (blockvector_contains_pc): Declare.
1534 * block.c (find_block_in_blockvector): New function.
1535 (blockvector_for_pc_sect): Use it.
1536 (blockvector_contains_pc): New function.
1538 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1540 * mips-tdep.h (mips_write_pc): New prototype.
1541 * mips-tdep.c (mips_write_pc): Make external, add description.
1542 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1545 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1547 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1549 (mips_unwind_pc, mips_write_pc): Likewise.
1550 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1553 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1555 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1556 proc_warn, proc_error, proc_get_status, proc_flags,
1557 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1558 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1559 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1560 proc_stop_process, proc_wait_for_stop, proc_run_process,
1561 proc_set_traced_signals, proc_set_traced_faults,
1562 proc_set_traced_sysentry, proc_set_traced_sysexit,
1563 proc_set_held_signals, proc_get_held_signals,
1564 proc_get_traced_signals, proc_get_traced_faults,
1565 proc_get_traced_sysentry, proc_get_traced_sysexit,
1566 proc_clear_current_fault, proc_set_current_signal,
1567 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1568 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1569 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1570 proc_get_current_thread, proc_get_current_thread,
1571 proc_get_current_thread, proc_update_threads,
1572 proc_update_threads, proc_update_threads, proc_update_threads,
1573 proc_iterate_over_threads, procfs_find_new_threads,
1574 procfs_pid_to_str): Make static. Remove advance declaration.
1575 (proc_cursig): Make static. Conditionalized defintion on
1576 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1577 (proc_syscall, proc_set_kill_on_last_close,
1578 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1579 proc_get_pending_signals, proc_get_signal_actions,
1580 proc_trace_signal, proc_ignore_signal): Delete.
1582 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1584 * coffread.c (cs_section_address): Passing proper argument for
1585 `bfd_get_section_vma'.
1586 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1587 `bfd_get_section_flags'.
1588 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1589 `bfd_get_section_vma'.
1591 2012-05-16 Tom Tromey <tromey@redhat.com>
1594 * macrotab.h: (macro_define_special): Declare.
1595 (enum macro_special_kind): New.
1596 (struct macro_definition) <argc, replacement>: Update comments.
1597 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1598 (macro_define_object_internal): New function.
1599 (macro_define_object): Use it.
1600 (macro_define_special): New function.
1601 (fixup_definition): New function.
1602 (macro_lookup_definition, foreach_macro_in_scope)
1603 (foreach_macro): Use fixup_definition.
1604 * macroexp.h (macro_stringify): Declare.
1605 * macroexp.c (free_buffer_return_text): New function.
1606 (stringify): Constify "arg".
1607 (macro_stringify): New function.
1608 * dwarf2read.c (macro_start_file): Call macro_define_special.
1610 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1611 Maciej W. Rozycki <macro@mips.com>
1613 * breakpoint.h (bp_location): Add related_address member.
1614 * inferior.h (get_return_value): Take a pointer to struct value
1615 instead of struct type for the function requested.
1616 * value.h (using_struct_return): Likewise.
1617 * gdbarch.sh (return_value): Take a pointer to struct value
1618 instead of struct type for the function requested.
1619 * breakpoint.c (set_breakpoint_location_function): Initialize
1620 related_address for bp_gnu_ifunc_resolver breakpoints.
1621 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1622 requested function's address to gdbarch_return_value.
1623 * eval.c (evaluate_subexp_standard): Pass the requested
1624 function's address to using_struct_return.
1625 * infcall.c (call_function_by_hand): Pass the requested
1626 function's address to using_struct_return and
1627 gdbarch_return_value.
1628 * infcmd.c (get_return_value): Take a pointer to struct value
1629 instead of struct type for the function requested.
1630 (print_return_value): Update accordingly.
1631 (finish_command_continuation): Likewise.
1632 * stack.c (return_command): Pass the requested function's
1633 address to using_struct_return and gdbarch_return_value.
1634 * value.c (using_struct_return): Take a pointer to struct value
1635 instead of struct type for the function requested. Pass the
1636 requested function's address to gdbarch_return_value.
1637 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1638 New function_value member, replacing function_type.
1639 (bpfinishpy_dealloc): Update accordingly.
1640 (bpfinishpy_pre_stop_hook): Likewise.
1641 (bpfinishpy_init): Likewise. Record the requested function's
1643 * mips-tdep.c (mips_fval_reg): New enum.
1644 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1645 words put in GP registers.
1646 (mips_o64_push_dummy_call): Update a comment.
1647 (mips_o32_return_value): Take a pointer to struct value instead
1648 of struct type for the function requested and use it to check if
1649 using the MIPS16 calling convention. Return the designated
1650 general purpose registers for floating-point values returned in
1652 (mips_o64_return_value): Likewise.
1653 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1654 (ppc_sysv_abi_broken_return_value): Likewise.
1655 (ppc64_sysv_abi_return_value): Likewise.
1656 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1657 value instead of struct type for the function requested.
1658 * amd64-tdep.c (amd64_return_value): Likewise.
1659 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1660 * arm-tdep.c (arm_return_value): Likewise.
1661 * avr-tdep.c (avr_return_value): Likewise.
1662 * bfin-tdep.c (bfin_return_value): Likewise.
1663 * cris-tdep.c (cris_return_value): Likewise.
1664 * frv-tdep.c (frv_return_value): Likewise.
1665 * h8300-tdep.c (h8300_return_value): Likewise.
1666 (h8300h_return_value): Likewise.
1667 * hppa-tdep.c (hppa32_return_value): Likewise.
1668 (hppa64_return_value): Likewise.
1669 * i386-tdep.c (i386_return_value): Likewise.
1670 * ia64-tdep.c (ia64_return_value): Likewise.
1671 * iq2000-tdep.c (iq2000_return_value): Likewise.
1672 * lm32-tdep.c (lm32_return_value): Likewise.
1673 * m32c-tdep.c (m32c_return_value): Likewise.
1674 * m32r-tdep.c (m32r_return_value): Likewise.
1675 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1676 * m68k-tdep.c (m68k_return_value): Likewise.
1677 (m68k_svr4_return_value): Likewise.
1678 * m88k-tdep.c (m88k_return_value): Likewise.
1679 * mep-tdep.c (mep_return_value): Likewise.
1680 * microblaze-tdep.c (microblaze_return_value): Likewise.
1681 * mn10300-tdep.c (mn10300_return_value): Likewise.
1682 * moxie-tdep.c (moxie_return_value): Likewise.
1683 * mt-tdep.c (mt_return_value): Likewise.
1684 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1685 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1686 (ppc_sysv_abi_broken_return_value): Likewise.
1687 (ppc64_sysv_abi_return_value): Likewise.
1688 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1689 * rl78-tdep.c (rl78_return_value): Likewise.
1690 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1691 * rx-tdep.c (rx_return_value): Likewise.
1692 * s390-tdep.c (s390_return_value): Likewise.
1693 * score-tdep.c (score_return_value): Likewise.
1694 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1695 (sh_return_value_fpu): Likewise.
1696 * sh64-tdep.c (sh64_return_value): Likewise.
1697 * sparc-tdep.c (sparc32_return_value): Likewise.
1698 * sparc64-tdep.c (sparc64_return_value): Likewise.
1699 * spu-tdep.c (spu_return_value): Likewise.
1700 * tic6x-tdep.c (tic6x_return_value): Likewise.
1701 * v850-tdep.c (v850_return_value): Likewise.
1702 * vax-tdep.c (vax_return_value): Likewise.
1703 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1704 * xtensa-tdep.c (xtensa_return_value): Likewise.
1705 * gdbarch.c: Regenerate.
1706 * gdbarch.h: Regenerate.
1708 2012-05-15 Tom Tromey <tromey@redhat.com>
1710 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1712 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1714 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1715 of command in two error message.
1717 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1719 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1721 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1723 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1725 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 * NEWS (show auto-load scripts-directory): Add forgotten command.
1729 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1731 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1734 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1736 * amd64-tdep.c: Include features/i386/x32.c and
1737 features/i386/x32-avx.c.
1738 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1739 initialize_tdesc_x32_avx.
1741 2012-05-14 Stan Shebs <stan@codesourcery.com>
1744 * breakpoint.h (enum bptype): New type bp_dprintf.
1745 (struct breakpoint): New field extra_string.
1746 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1747 (create_breakpoint): Add extra_string arg.
1748 * breakpoint.c (dprintf_breakpoint_ops): New.
1749 (is_breakpoint): Add bp_dprintf.
1750 (bpstat_what): Add dprintf case.
1751 (bptype_string): Ditto.
1752 (print_one_breakpoint_location): Ditto.
1753 (init_bp_location): Ditto.
1754 (bkpt_print_mention): Ditto.
1755 (dprintf_style_enums): New array.
1756 (dprintf_style): New global.
1757 (dprintf_function): New global.
1758 (dprintf_channel): New global.
1759 (update_dprintf_command_list): New function.
1760 (update_dprintf_commands): New function.
1761 (init_breakpoint_sal): Add extra_string argument, handle it.
1762 (create_breakpoint_sal): Add extra_string argument.
1763 (create_breakpoints_sal): Add extra_string argument, update callers.
1764 (find_condition_and_thread): Add extra argument.
1765 (create_breakpoint): Add extra_string argument, record it.
1766 (dprintf_command): New function.
1767 (break_command_1): Add arg to create_breakpoint call.
1768 (handle_gnu_v3_exceptions): Ditto.
1769 (trace_command): Ditto.
1770 (ftrace_command): Ditto.
1771 (strace_command): Ditto.
1772 (bkpt_print_mention): Add dprintf case.
1773 (create_breakpoint_sal_default): Add extra_string argument.
1774 (_initialize_breakpoint): Add new commands.
1775 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1776 * python/py-breakpoint.c (bppy_init): Ditto.
1777 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1779 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1781 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1783 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1785 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1788 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1790 Add a new function gdb.find_pc_line to the Python API.
1791 * NEWS (Python Scripting): Add entry about the new function.
1792 * python/python.c (gdbpy_find_pc_line): New function which
1793 implements gdb.find_pc_line.
1794 (GdbMethods): Add entry for the new function.
1796 2012-05-12 Pedro Alves <palves@redhat.com>
1798 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1799 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1801 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1803 * inferior.c: Include completer.h
1804 (initialize_inferiors): Set completer of add-inferior to
1807 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1809 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1810 gdbarch_ptr_bit for x32 core dump.
1812 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1814 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1815 and features/i386/x32-avx-linux.c.
1817 2012-05-11 Stan Shebs <stan@codesourcery.com>
1818 Kwok Cheung Yeung <kcy@codesourcery.com>
1820 * NEWS: Describe new info os commands.
1821 * common/linux-osdata.c (PID_T, TIME_T): Define.
1822 (MAX_PID_T_STRLEN): New.
1823 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1825 (command_from_pid): Add comment. Change to use PID_T.
1826 (commandline_from_pid): Change to use PID_T.
1827 (user_from_pid): Add comment.
1828 (get_process_owner): Add comment. Change to use PID_T and
1830 (get_number_of_cpu_cores): Add comment.
1831 (get_cores_used_by_process): Add comment. Change to use PID_T and
1833 (linux_xfer_osdata_processes): Change to use PID_T and
1835 (compare_processes): New function.
1836 (linux_xfer_osdata_processgroups): New function.
1837 (linux_xfer_osdata_threads): Change to use PID_T.
1838 (linux_xfer_osdata_fds): New function.
1839 (format_socket_state, print_sockets): New functions.
1840 (union socket_addr): New union.
1841 (linux_xfer_osdata_isockets): New function.
1842 (time_from_time_t, group_from_gid): New functions.
1843 (linux_xfer_osdata_shm): New function.
1844 (linux_xfer_osdata_sem): New function.
1845 (linux_xfer_osdata_msg): New function.
1846 (linux_xfer_osdata_modules): New function.
1847 (osdata_table): Add new entries.
1848 * common/buffer.c (buffer_xml_printf): Add support for long and
1849 long long format specifiers.
1851 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1853 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1854 (tdesc_x32_avx_linux): Likewise.
1856 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1858 Implement multi-component --with-auto-load-dir.
1859 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1861 (--with-auto-load-safe-path): Update the default value description.
1862 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1864 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1865 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1866 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1867 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1868 "set auto-load scripts-directory".
1869 * config.in: Regenerate.
1870 * configure: Regenerate.
1871 * configure.ac (--with-auto-load-dir): New configure option.
1872 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1874 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1876 Provide $ddir substitution for --with-auto-load-safe-path.
1877 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1879 * auto-load.c: Include observer.h.
1880 (auto_load_safe_path_vec_update): Call substitute_path_component for
1881 each component. New variable ddir_subst.
1882 (auto_load_gdb_datadir_changed): New function.
1883 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1884 AUTO_LOAD_SAFE_PATH. New comment.
1885 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1886 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1887 * config.in: Regenerate.
1888 * configure: Regenerate.
1889 * configure.ac (--auto-load-safe-path): Rename
1890 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1891 GDB_DATADIR/auto-load.
1892 * defs.h (substitute_path_component): New declaration.
1893 * top.c: Include observer.h.
1894 (set_gdb_datadir): New function.
1895 (init_main): Install it for "set data-directory".
1896 * utils.c (substitute_path_component): New function.
1898 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1900 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1901 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1902 DEBUG_FILE_DIRECTORY. Handle multiple components of
1903 DEBUG_FILE_DIRECTORY.
1905 2012-05-10 Tom Tromey <tromey@redhat.com>
1907 * dwarf2read.c (recursively_write_psymbols): New function.
1908 (write_psymtabs_to_index): Use it.
1910 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1912 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1913 (load_partial_comp_unit): Update.
1914 (queue_comp_unit): Add argument 'pretend_language'.
1915 (process_queue): Update.
1916 (psymtab_to_symtab_1): Skip dependencies that have a user.
1917 (load_partial_comp_unit_reader): Give meaning to the 'data'
1919 (load_full_comp_unit): Add 'pretend_language' argument.
1920 (process_full_comp_unit): Add 'pretend_language' argument. Set
1922 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1924 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1925 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1927 (prepare_one_comp_unit): Add 'pretend_language' argument.
1929 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1930 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1931 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1932 (dw2_do_instantiate_symtab): Check whether symtab was read in
1934 (dw2_instantiate_symtab): Add assertion. Call
1935 process_cu_includes.
1936 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1937 (partial_symtab_p): New typedef.
1938 (set_partial_user): New function.
1939 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1940 (scan_partial_symbols): Add imported CU to imported_symtabs.
1941 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1942 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1943 (get_symtab, recursively_compute_inclusions)
1944 (compute_symtab_includes, process_cu_includes)
1945 (process_imported_unit_die): New functions.
1946 (process_die) <DW_TAG_imported_unit>: New case.
1947 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1949 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1951 (struct partial_die_info) <locdesc>: Remove.
1953 (process_psymtab_comp_unit): Add 'read_partial' argument.
1955 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1956 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1957 (add_partial_symbol): Update.
1958 (process_die): Handle DW_TAG_partial_unit.
1959 (read_file_scope): Update comment.
1960 (load_partial_dies): Handle DW_TAG_imported_unit.
1961 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1962 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1964 2012-05-10 Tom Tromey <tromey@redhat.com>
1966 * cc-with-dwz.sh: New file.
1968 2012-05-10 Tom Tromey <tromey@redhat.com>
1970 * symtab.h (struct symtab) <includes, user>: New fields.
1971 * block.h (struct block_iterator) <d, idx, which>: New fields.
1972 * block.c (initialize_block_iterator, find_iterator_symtab)
1973 (block_iterator_step, block_iter_name_step)
1974 (block_iter_match_step): New functions.
1975 (block_iterator_first, block_iterator_next)
1976 (block_iter_name_first, block_iter_name_next)
1977 (block_iter_match_first, block_iter_match_next): Rewrite.
1978 (get_block_symtab): New function.
1980 2012-05-10 Tom Tromey <tromey@redhat.com>
1982 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1984 * jit.c (finalize_symtab): Use allocate_global_block,
1986 * buildsym.c (finish_block_internal): New function, from old
1988 (finish_block): Rewrite.
1989 (end_symtab): Use finish_block_internal, set_block_symtab.
1990 * block.h (struct global_block): New.
1991 (allocate_global_block, set_block_symtab): Declare.
1992 * block.c (allocate_global_block, set_block_symtab): New
1995 2012-05-10 Tom Tromey <tromey@redhat.com>
1997 * psymtab.c (partial_map_expand_apply): Add assertion.
1998 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1999 (psymtab_to_symtab): Find unshared psymtab.
2000 (dump_psymtab): Print including psymtabs.
2001 (recursively_search_psymtabs): New function.
2002 (expand_symtabs_matching_via_partial): Use it.
2003 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2005 (enum psymtab_search_status): New.
2007 2012-05-10 Tom Tromey <tromey@redhat.com>
2009 * tracepoint.c (scope_info): Update.
2010 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2011 (find_pc_sect_symtab, search_symbols)
2012 (default_make_symbol_completion_list_break_on)
2013 (make_file_symbol_completion_list): Update.
2014 * symmisc.c (dump_symtab_1): Update.
2015 * stack.c (print_frame_args, iterate_over_block_locals)
2016 (print_frame_labels, iterate_over_block_arg_vars): Update.
2017 * python/py-block.c (block_object) <dict>: Remove.
2019 <iter>: Change type.
2020 (blpy_iter): Update.
2021 (blpy_block_syms_iternext): Update.
2022 * psymtab.c (map_block): Use block iterators.
2023 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2024 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2025 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2026 * infrun.c (check_exception_resume): Update.
2027 * cp-support.c (make_symbol_overload_list_block): Update.
2028 * coffread.c (patch_opaque_types): Update.
2029 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2030 * block.h (struct block_iterator): New.
2031 (block_iterator_first, block_iterator_next, block_iter_name_first)
2032 (block_iter_name_next, block_iter_match_first)
2033 (block_iter_match_next): Declare.
2034 (ALL_BLOCK_SYMBOLS): Redefine.
2035 * block.c (block_iterator_first, block_iterator_next)
2036 (block_iter_name_first, block_iter_name_next)
2037 (block_iter_match_first, block_iter_match_next): New functions.
2038 * ada-lang.c (ada_add_block_symbols)
2039 (ada_make_symbol_completion_list): Use block iterator.
2041 2012-05-10 Tom Tromey <tromey@redhat.com>
2043 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2044 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2045 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2046 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2047 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2050 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2052 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2053 print-file-var-lib2.c, print-file-var-main.c and
2054 print-file-var.exp (located in gdb/testsuite/gdb.base).
2056 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2058 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2059 try locating the symbol in the symbol's own objfile first, before
2060 extending the search to all objfiles.
2061 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2062 out of lookup_symbol_aux_symtabs.
2063 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2064 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2065 Do not search EXCLUDE_OBJFILE.
2066 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2067 (lookup_symbol_global): Search for matches in the block's objfile
2068 first, before searching all other objfiles.
2070 2012-05-10 Tristan Gingold <gingold@adacore.com>
2072 * printcmd.c (set_command): Add pre/post inc/dec.
2074 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
2076 * gdb.1: Document -ex option.
2078 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2080 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2081 * inferior.h (AT_SYMBOL): Delete.
2083 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2085 * mips-tdep.c (mips_push_dummy_code): New function.
2086 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2087 ON_STACK and install mips_push_dummy_code as our gdbarch
2088 push_dummy_code routine.
2090 2012-05-09 Pedro Alves <palves@redhat.com>
2092 * target.c (set_maintenance_target_async_permitted): Rename to ...
2093 (set_target_async_command): ... this.
2094 (show_maintenance_target_async_permitted): Rename to ...
2095 (show_target_async_command): ... this.
2096 (initialize_targets): Adjust.
2098 2012-05-08 Doug Evans <dje@google.com>
2100 * go-exp.y (classify_name): Add missing assignment of fields of
2103 2012-05-08 Eli Zaretskii <eliz@gnu.org>
2105 Display the ">" prompt in interactive mode while reading canned
2106 commands, even when the current interpreter is MI.
2108 * interps.c (interp_set_temp): New function.
2110 * interps.h (interp_set_temp): Add prototype.
2112 * cli/cli-script.c (restore_interp): New cleanup function.
2113 (read_command_lines): Temporarily override the current interpreter
2114 with CLI and arrange for restoring the original one.
2116 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2118 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2120 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2122 * probe.c (parse_probes): Move conditional to check for
2123 debuginfo files from here...
2124 * stap-probe.c (stap_get_probes): ... to here.
2126 2012-05-07 Mark Kettenis <kettenis@gnu.org>
2127 H.J. Lu <hongjiu.lu@intel.com>
2129 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2130 `movl %esp, %ebp' for the X32 ABI.
2132 2012-05-07 Tom Tromey <tromey@redhat.com>
2134 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2136 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2137 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2138 (dwarf_stack_op_name): Remove.
2139 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2140 (decode_locdesc): Use get_DW_OP_name.
2141 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2142 (dwarf2_compile_expr_to_ax): Likewise.
2143 (disassemble_dwarf_expression): Likewise.
2144 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2146 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2148 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2149 (sh_linux_sigtramp_cache): New function.
2150 (sh_linux_sigreturn_init): New function.
2151 (sh_linux_rt_sigreturn_init): New function.
2152 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2154 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2156 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2157 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2158 (sh_linux_init_abi): Add init calls to register new tramp_frame
2159 definitions under 32-bit SH, update comments.
2161 2012-05-07 Pedro Alves <palves@redhat.com>
2165 * amd64-linux-tdep.c: Include glibc-tdep.h.
2166 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2167 gdbarch_skip_solib_resolver callback.
2169 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2171 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2172 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2173 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2174 (add_auto_load_safe_path): Change the error message.
2175 (_initialize_auto_load): Change the "safe-path" help text.
2176 * configure: Regenerate
2177 * configure.ac (--without-auto-load-safe-path): Set
2178 WITH_AUTO_LOAD_SAFE_PATH to /.
2180 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2182 * stap-probe.h: Do not include unecessary `probe.h'.
2184 2012-05-05 Alan Modra <amodra@gmail.com>
2186 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2187 bfd_und_section_ptr.
2188 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2189 and bfd_com_section_ptr.
2191 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2193 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2195 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2197 * windows-nat.h (segment_register_p_ftype): New typedef.
2198 (windows_set_segment_register_p): Add declaration.
2199 * windows-nat.c (segment_register_p): New static global.
2200 (windows_set_segment_register_p): New function.
2201 (do_windows_fetch_inferior_registers): Add special handling
2202 for segment registers.
2203 * amd64-windows-nat.c: #include "amd64-tdep.h".
2204 (amd64_windows_segment_register_p): New function.
2205 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2206 * i386-windows-nat.c: #include "i386-tdep.h".
2207 (i386_windows_segment_register_p): New function.
2208 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2210 2012-05-04 Tristan Gingold <gingold@adacore.com>
2212 * printcmd.c (set_command): Emit a warning if the expression is not
2215 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2217 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2220 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2222 * stap-probe.c (stap_is_operator): Change declaration.
2223 (stap_get_opcode): Change return value.
2224 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2225 `stap_parse_argument_1'.
2227 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2229 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2232 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2234 Add two new methods global_block and static_block to gdb.Symtab
2236 * NEWS (Python scripting): Add entry about the new methods.
2237 * python/py-symtab.c (stpy_global_block): New function which
2238 implements the gdb.Symtab.global_block() method.
2239 (stpy_static_block): New function which implements the
2240 gdb.Symtab.static_block() method.
2241 (symtab_object_methods): Add entries for the two new methods.
2243 2012-05-03 Doug Evans <dje@google.com>
2245 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2248 2012-05-03 Yao Qi <yao@codesourcery.com>
2250 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2252 (i386_process_record): Ditto.
2254 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2256 * infcall.c (unwind_on_signal_p): Make static.
2258 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2260 * sol-thread.c (solaris_pid_to_str): Make static.
2261 (_initialize_sol_thread): Add prototype.
2263 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2265 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2267 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2269 * MAINTAINERS: Remove myself.
2271 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2273 Fix --without-auto-load-safe-path for MS-Windows host platform.
2274 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2276 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2278 * gdb_curses.h: Undefine KEY_EVENT before including curses
2279 headers. Move "#undef MOUSE_MOVED" before any curses header
2282 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2284 * features/i386/i386-mmx-linux.c: Regenerate.
2285 * features/rs6000/powerpc-32.c: Likewise.
2286 * features/rs6000/powerpc-32l.c: Likewise.
2287 * features/rs6000/powerpc-403.c: Likewise.
2288 * features/rs6000/powerpc-403gc.c: Likewise.
2289 * features/rs6000/powerpc-405.c: Likewise.
2290 * features/rs6000/powerpc-505.c: Likewise.
2291 * features/rs6000/powerpc-601.c: Likewise.
2292 * features/rs6000/powerpc-602.c: Likewise.
2293 * features/rs6000/powerpc-603.c: Likewise.
2294 * features/rs6000/powerpc-604.c: Likewise.
2295 * features/rs6000/powerpc-64.c: Likewise.
2296 * features/rs6000/powerpc-64l.c: Likewise.
2297 * features/rs6000/powerpc-750.c: Likewise.
2298 * features/rs6000/powerpc-860.c: Likewise.
2299 * features/rs6000/powerpc-e500.c: Likewise.
2300 * features/rs6000/powerpc-e500l.c: Likewise.
2301 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2302 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2303 * features/rs6000/rs6000.c: Likewise.
2305 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2307 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2309 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2310 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2311 (stap_parse_argument) <e>: Likewise.
2312 (handle_stap_probe) <byte_order>: Likewise.
2314 2012-04-30 Doug Evans <dje@google.com>
2316 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2317 init_and_read_dies_worker. All callers updated.
2318 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2319 replaced with init_cutu_and_read_dies.
2320 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2321 (find_partial_die): Remove FIXME. Don't free current CU.
2323 2012-04-30 Sterling Augustine <saugustine@google.com>
2325 * contrib: New directory.
2326 * contrib/test_pubnames_and_indexes.py: New file.
2328 2012-04-30 Doug Evans <dje@google.com>
2330 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2331 All callers updated.
2332 (init_cu_die_reader): Verify the section is non-empty.
2333 (dwarf_decode_line_header): Don't dereference section->asection
2334 until we know the section is present.
2336 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2338 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2341 2012-04-29 Yao Qi <yao@codesourcery.com>
2343 * gdb-code-style.el: New hook gdb-markup-hook
2344 and gdb-comment-hook.
2346 2012-04-28 Doug Evans <dje@google.com>
2348 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2349 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2351 * symfile.h (dwarf2_debug_sections): New member addr.
2352 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2353 (ctx_no_get_addr_index): New function.
2354 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2355 (ctx_no_get_addr_index): Declare.
2356 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2357 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2358 (dwarf_expr_ctx_funcs): Update.
2359 (needs_get_addr_index): New function.
2360 (needs_frame_ctx_funcs): Update.
2361 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2362 * dwarf2read.c: #include "gdbcore.h".
2363 (dwarf2_per_objfile): New members addr, dwo_files.
2364 (dwarf2_elf_names): Add entry for addr.
2365 (struct dwo_section_names): New type.
2366 (dwo_section_names): New static global.
2367 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2368 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2369 old debug_types_section member updated to use this.
2370 Rename member debug_types_section to info_or_types_section,
2372 (signatured_type): Rename member type_offset to type_offset_in_tu,
2373 all uses updated. New member type_offset_in_section.
2374 (struct dwo_sections): New type.
2375 (struct dwo_unit): New type.
2376 (struct dwo_file): New type.
2377 (die_reader_specs): New member dwo_file.
2378 (dwarf2_locate_sections): Watch for .debug_addr.
2379 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2380 (dwarf2_read_section): Get bfd of section from bfd's asection,
2382 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2383 (create_signatured_type_table_from_index): Initialize
2384 sig_type->info_or_types_section.
2385 (dw2_get_file_names): Statement lists for type units with DWO files
2386 live in the DWO file.
2387 (create_debug_types_hash_table): New function.
2388 (create_all_type_units): Rewrite.
2389 (init_cu_die_reader): New arg dwo_file, all callers updated.
2390 (init_and_read_dies_worker): Get section from
2391 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2392 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2393 continue reading the CU/TU from there.
2394 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2395 updated. Get section from this_cu->info_or_types_section.
2396 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2397 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2398 DW_FORM_GNU_str_index.
2399 (hash_dwo_file, eq_dwo_file): New functions.
2400 (allocate_dwo_file_hash_table): New function.
2401 (hash_dwo_unit, eq_dwo_unit): New functions.
2402 (allocate_dwo_unit_table): New function.
2403 (dwarf2_locate_dwo_sections): New function.
2404 (struct create_dwo_info_table_data): New type.
2405 (create_debug_info_hash_table_reader): New function.
2406 (create_debug_info_hash_table): New function.
2407 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2408 (lookup_dwo_file): New function.
2409 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2410 (free_dwo_file, free_dwo_file_cleanup): New functions.
2411 (free_dwo_file_from_slot, free_dwo_files): New functions.
2412 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2413 (dwarf2_record_block_ranges): Ditto.
2414 (read_partial_die): Ditto.
2415 (process_enumeration_scope): Update to use type_offset_in_section.
2416 (read_full_die_1): New function.
2417 (read_full_die): Rewrite.
2418 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2419 DW_FORM_GNU_str_index.
2420 (read_addr_index_1, read_addr_index): New functions.
2421 (read_addr_index_from_leb128): New function.
2422 (struct dwarf2_read_addr_index_data): New type.
2423 (dwarf2_read_addr_index_reader): New function.
2424 (dwarf2_read_addr_index): New function.
2425 (read_str_index): New function.
2426 (leb128_size): New function.
2427 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2428 If processing a type unit from a DWO file, get the line section
2430 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2431 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2432 DW_FORM_GNU_str_index.
2433 (lookup_die_type): Check whether section offset of type's die is
2434 known before looking it up. Remove assert. Condition can
2435 legimately happen for inter-cu type references.
2436 (dwarf_attr_name): Handle Fission attributes.
2437 (dwarf_form_name): Handle Fission forms.
2438 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2439 DW_FORM_GNU_str_index.
2440 (follow_die_sig): Update to use type_offset_in_section.
2441 (decode_locdesc): New case DW_OP_GNU_addr_index.
2442 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2443 DW_FORM_GNU_str_index.
2444 (cu_debug_loc_section): New function.
2445 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2446 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2447 Free DWO files if present.
2448 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2450 Refactor DIE reading.
2451 * dwarf2read.c (dwarf2_per_objfile): Replace members
2452 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2453 (die_reader_specs): New member "die_section". Temporarily make
2454 member "buffer" non-const, pending constifying all info_ptr uses.
2455 (die_reader_func_ftype): New typedef.
2456 (dw2_get_file_names_reader): New function.
2457 (dw2_get_file_names): Rewrite.
2458 (read_and_check_type_unit_head): Rename arg type_offset to
2460 (create_all_type_units): Improve debugging message.
2461 Improve dummy type unit check.
2462 (init_cu_die_reader): New arg "section". All callers updated.
2463 (init_and_read_dies_worker): New function.
2464 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2465 (init_cutu_and_read_dies_no_follow): New function.
2466 (init_cutu_and_read_dies_simple): New function.
2467 (process_psymtab_comp_unit_reader): New function.
2468 (process_psymtab_comp_unit): Delete args section,
2469 is_debug_types_section. Rewrite. All callers updated.
2470 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2471 All callers updated. Rewrite.
2472 (load_partial_comp_unit_reader): New function.
2473 (load_partial_comp_unit): Rewrite.
2474 (skip_children): New arg reader. Delete args buffer, cu.
2475 All callers updated.
2476 (skip_one_die): New arg reader. Delete args buffer, cu.
2477 All callers updated.
2478 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2479 All callers updated.
2480 (load_full_comp_unit_reader): New function.
2481 (load_full_comp_unit): Rewrite.
2482 (read_comp_unit): Delete.
2483 (read_die_and_children_1): Delete, contents moved ...
2484 (read_die_and_children): ... here.
2485 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2486 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2487 All callers updated.
2488 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2489 All callers updated.
2490 (find_partial_die): Rewrite load_all_dies support.
2491 (read_attribute_value): New arg reader. Delete args abfd, cu.
2492 All callers updated.
2493 (read_attribute): New arg reader. Delete args abfd, cu.
2494 All callers updated.
2495 (load_full_type_unit): Add assert.
2496 (read_signatured_type_reader): New function.
2497 (read_signatured_type): Rewrite.
2498 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2499 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2500 All callers updated. Set per_cu->cu = NULL after freeing it.
2501 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2502 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2503 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2504 (set_die_type): Update.
2505 (get_die_type_at_offset): Update.
2506 (read_file_scope): Call prepare_one_comp_unit.
2507 (read_type_unit_scope): Ditto.
2508 (prepare_one_comp_unit): Set producer if present.
2510 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2512 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2513 gettext function on `error'.
2515 2012-04-27 Doug Evans <dje@google.com>
2517 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2520 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2521 Tom Tromey <tromey@redhat.com>
2523 * breakpoint.c (struct breakpoint_objfile_data)
2524 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2525 <exception_probes>: New fields.
2526 (free_breakpoint_probes): New function.
2527 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2528 `_Unwind_DebugHook'.
2529 (create_exception_master_breakpoint): Likewise.
2530 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2531 * infrun.c: Including necessary header files for handling SystemTap
2533 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2534 via SystemTap probes.
2535 (check_exception_resume): Remove `func' argument. Handle exception
2536 unwinding breakpoint set via a SystemTap probe.
2537 (insert_exception_resume_from_probe): New function.
2539 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2540 Tom Tromey <tromey@redhat.com>
2541 Jan Kratochvil <jan.kratochvil@redhat.com>
2543 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2544 (COMMON_OBS): Likewise.
2545 (HFILES_NO_SRCDIR): Add `probe'.
2546 * NEWS: Mention support for static and SystemTap probes.
2547 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2548 SystemTap probes' arguments parser.
2549 * arm-linux-tdep.c: Including headers needed to perform the parsing
2550 of SystemTap probes' arguments.
2551 (arm_stap_is_single_operand): New function.
2552 (arm_stap_parse_special_token): Likewise.
2553 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2554 probes' arguments parser.
2555 * ax-gdb.c (require_rvalue): Removing static declaration.
2556 (gen_expr): Likewise.
2557 * ax-gdb.h (gen_expr): Declaring function.
2558 (require_rvalue): Likewise.
2559 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2560 (bkpt_probe_breakpoint_ops): New variable.
2561 (momentary_breakpoint_from_master): Set the `probe' value.
2562 (add_location_to_breakpoint): Likewise.
2563 (break_command_1): Using proper breakpoint_ops according to the
2564 argument passed by the user in the command line.
2565 (bkpt_probe_insert_location): New function.
2566 (bkpt_probe_remove_location): Likewise.
2567 (bkpt_probe_create_sals_from_address): Likewise.
2568 (bkpt_probe_decode_linespec): Likewise.
2569 (tracepoint_probe_create_sals_from_address): Likewise.
2570 (tracepoint_probe_decode_linespec): Likewise.
2571 (tracepoint_probe_breakpoint_ops): New variable.
2572 (trace_command): Using proper breakpoint_ops according to the
2573 argument passed by the user in the command line.
2574 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2575 static probes on breakpoints and tracepoints.
2576 * breakpoint.h (struct bp_location) <probe>: New field.
2577 * cli-utils.c (skip_spaces_const): New function.
2578 (extract_arg): Likewise.
2579 * cli-utils.h (skip_spaces_const): Likewise.
2580 (extract_arg): Likewise.
2581 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2582 * configure.ac: Append `stap-probe.o' to be generated when ELF
2584 * configure: Regenerate.
2585 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2586 * elfread.c: Include `probe.h' and `arch-utils.h'.
2587 (probe_key): New variable.
2588 (elf_get_probes): New function.
2589 (elf_get_probe_argument_count): Likewise.
2590 (elf_evaluate_probe_argument): Likewise.
2591 (elf_compile_to_ax): Likewise.
2592 (elf_symfile_relocate_probe): Likewise.
2593 (stap_probe_key_free): Likewise.
2594 (elf_probe_fns): New variable.
2595 (elf_sym_fns): Add `sym_probe_fns' value.
2596 (elf_sym_fns_lazy_psyms): Likewise.
2597 (elf_sym_fns_gdb_index): Likewise.
2598 (_initialize_elfread): Initialize objfile cache for static
2600 * gdb_vecs.h (struct probe): New forward declaration.
2601 (probe_p): New VEC declaration.
2602 * gdbarch.c: Regenerate.
2603 * gdbarch.h: Regenerate.
2604 * gdbarch.sh (stap_integer_prefix): New variable.
2605 (stap_integer_suffix): Likewise.
2606 (stap_register_prefix): Likewise.
2607 (stap_register_suffix): Likewise.
2608 (stap_register_indirection_prefix): Likewise.
2609 (stap_register_indirection_suffix): Likewise.
2610 (stap_gdb_register_prefix): Likewise.
2611 (stap_gdb_register_suffix): Likewise.
2612 (stap_is_single_operand): New function.
2613 (stap_parse_special_token): Likewise.
2614 (struct stap_parse_info): Forward declaration.
2615 * i386-tdep.c: Including headers needed to perform the parsing
2616 of SystemTap probes' arguments.
2617 (i386_stap_is_single_operand): New function.
2618 (i386_stap_parse_special_token): Likewise.
2619 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2620 probes' arguments parser.
2621 * i386-tdep.h (i386_stap_is_single_operand): New function.
2622 (i386_stap_parse_special_token): Likewise.
2623 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2624 * mipsread.c (ecoff_sym_fns): Likewise.
2625 * objfiles.c (objfile_relocate1): Support relocation for static
2627 * parse.c (prefixify_expression): Remove static declaration.
2628 (initialize_expout): Likewise.
2629 (reallocate_expout): Likewise.
2630 * parser-defs.h (initialize_expout): Declare function.
2631 (reallocate_expout): Likewise.
2632 (prefixify_expression): Likewise.
2633 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2634 of SystemTap probes' arguments.
2635 (ppc_stap_is_single_operand): New function.
2636 (ppc_stap_parse_special_token): Likewise.
2637 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2638 probes' arguments parser.
2639 * probe.c: New file, for generic statically defined probe support.
2640 * probe.h: Likewise.
2641 * s390-tdep.c: Including headers needed to perform the parsing of
2642 SystemTap probes' arguments.
2643 (s390_stap_is_single_operand): New function.
2644 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2645 probes' arguments parser.
2646 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2647 * stap-probe.c: New file, for SystemTap probe support.
2648 * stap-probe.h: Likewise.
2649 * symfile.h: Include `gdb_vecs.h'.
2650 (struct sym_probe_fns): New struct.
2651 (struct sym_fns) <sym_probe_fns>: New field.
2652 * symtab.c (init_sal): Initialize `probe' field.
2653 * symtab.h (struct probe): Forward declaration.
2654 (struct symtab_and_line) <probe>: New field.
2655 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2657 (stop_tracing): Likewise.
2658 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2660 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2661 Tom Tromey <tromey@redhat.com>
2663 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2664 and to compile agent expressions.
2665 * infrun.c (siginfo_make_value): New argument `ignore'.
2666 (siginfo_funcs): New struct.
2667 (_initialize_infrun): New argument when calling
2668 `create_internalvar_type_lazy'.
2669 * thread.c (thread_id_make_value): New argument `ignore'.
2670 (thread_funcs): New struct.
2671 (_initialize_thread): New argument when calling
2672 `create_internalvar_type_lazy'.
2673 * tracepoint.c (sdata_make_value): New argument `ignore'.
2674 (sdata_funcs): New struct.
2675 (_initialize_tracepoint): New argument when calling
2676 `create_internalvar_type_lazy'.
2677 * value.c (make_value): New struct.
2678 (create_internalvar_type_lazy): New argument `data'.
2679 (compile_internalvar_to_ax): New function.
2680 (value_of_internalvar): Properly handling `make_value' case.
2681 (clear_internalvar): Likewise.
2682 (show_convenience): Adding `TRY_CATCH' block.
2683 * value.h (internalvar_make_value): Delete, replace by...
2684 (struct internalvar_funcs): ... this.
2685 (create_internalvar_type_lazy) <fun>: Delete argument.
2686 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2687 (compile_internalvar_to_ax): New function.
2688 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2689 (tlb_funcs): New struct.
2690 (_initialize_windows_tdep): New argument when calling
2691 `create_internalvar_type_lazy'.
2693 2012-04-27 Mark Wielaard <mjw@redhat.com>
2695 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2696 see whether it is an address or a constant offset from DW_AT_low_pc.
2697 (dwarf2_record_block_ranges): Likewise.
2698 (read_partial_die): Likewise.
2700 2012-04-26 Mark Wielaard <mjw@redhat.com>
2702 * MAINTAINERS (Write After Approval): Add myself to the list.
2704 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2706 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2707 (proc_prettyprint_signal): Likewise.
2708 (proc_prettyprint_faultset): Likewise.
2709 (proc_prettyprint_fault): Likewise.
2710 (proc_prettyprint_actionset): Likewise.
2711 (proc_prettyprint_flags): Move to new proc-flags.c section.
2712 (proc_prettyfprint_flags): New prototype.
2713 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2714 (proc_syscall, proc_cursig): Likewise.
2715 (proc_set_kill_on_last_close): Likewise.
2716 (proc_unset_kill_on_last_close): Likewise.
2717 (proc_set_watchpoint): Make static.
2718 (proc_delete_dead_threads): Likewise.
2719 (procfs_set_watchpoint): Likewise.
2720 (_initialize_procfs): Add prototype.
2721 * proc-events.c: Include proc-utils.h.
2722 (init_syscall_table): Make static.
2723 * proc-api.c (_initialize_proc_api): Add prototype.
2724 * proc-flags.c: Include proc-utils.h.
2726 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2728 * configure.ac: Add AC_ARG_PROGRAM.
2729 * configure: Regenerate.
2731 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2733 Fix DW_AT_lower_bound defaults for DWARF-4+.
2734 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2735 high. New variable low_default_is_valid. Implement DWARF-4+
2736 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2737 no default by the DWARF standard.
2739 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2740 Maciej W. Rozycki <macro@codesourcery.com>
2742 * infrun.c (handle_inferior_event): Move the check for return
2743 trampolines ahead of the check for function trampolines.
2744 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2745 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2746 (mips_str_mips16_ret_stub): Likewise.
2747 (mips_str_call_fp_stub): Likewise.
2748 (mips_str_call_stub): Likewise.
2749 (mips_str_fn_stub): Likewise.
2750 (mips_str_pic): Likewise.
2751 (mips_in_frame_stub): New function.
2752 (mips_unwind_pc): Return the return address rather than the PC
2753 if the PC of an intermediate frame is inside a call thunk.
2754 (mips_is_stub_suffix): New function.
2755 (mips_is_stub_mode): Likewise.
2756 (mips_get_mips16_fn_stub_pc): Likewise.
2757 (mips_skip_mips16_trampoline_code): Update to handle all the
2758 currently generated stub types. Don't recurse into __fn_stub
2759 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2760 Use cooked register accesses.
2761 (mips_in_return_stub): Reintroduce function.
2762 (mips_skip_trampoline_code): Traverse trampolines recursively.
2763 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2765 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2769 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2771 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2772 * features/arm-with-m-vfp-d16.xml: New file. Describes
2773 Cortex-M with VFPv4-sp-d16 FPU register layout.
2774 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2775 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2776 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2777 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2778 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2780 2012-04-25 Doug Evans <dje@google.com>
2782 * cli/cli-decode.c (print_doc_line): Use stream instead of
2785 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2787 * features/arm-with-iwmmxt.c: Regenerate.
2788 * features/arm-with-m-fpa-layout.c: Likewise.
2789 * features/arm-with-m.c: Likewise.
2790 * features/arm-with-neon.c: Likewise.
2791 * features/arm-with-vfpv2.c: Likewise.
2792 * features/arm-with-vfpv3.c: Likewise.
2793 * features/mips-dsp-linux.c: Likewise.
2794 * features/mips-linux.c: Likewise.
2795 * features/mips64-dsp-linux.c: Likewise.
2796 * features/mips64-linux.c: Likewise.
2797 * features/s390-linux32.c: Likewise.
2798 * features/s390-linux32v1.c: Likewise.
2799 * features/s390-linux32v2.c: Likewise.
2800 * features/s390-linux64.c: Likewise.
2801 * features/s390-linux64v1.c: Likewise.
2802 * features/s390-linux64v2.c: Likewise.
2803 * features/s390x-linux64.c: Likewise.
2804 * features/s390x-linux64v1.c: Likewise.
2805 * features/s390x-linux64v2.c: Likewise.
2806 * features/tic6x-c62x-linux.c: Likewise.
2807 * features/tic6x-c62x.c: Likewise.
2808 * features/tic6x-c64x-linux.c: Likewise.
2809 * features/tic6x-c64x.c: Likewise.
2810 * features/tic6x-c64xp-linux.c: Likewise.
2811 * features/tic6x-c64xp.c: Likewise.
2812 * target-descriptions.c: Only generate `field_type' and `type'
2813 variables when needed.
2815 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2817 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2819 2012-04-25 Doug Evans <dje@google.com>
2821 Initial pass at Go language support.
2823 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2825 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2826 (YYFILES): Add go-exp.c.
2827 (YYOBJ): Add go-exp.o.
2828 (local-maintainer-clean): Delete go-exp.c.
2829 * defs.h (enum language): Add language_go.
2830 * dwarf2read.c: #include "go-lang.h".
2831 (fixup_go_packaging): New function.
2832 (process_full_comp_unit): Call it when processing Go CUs.
2833 (dwarf2_physname): Add Go support.
2834 (read_file_scope): Handle missing language spec for GNU Go.
2835 (set_cu_language): Handle DW_LANG_Go.
2836 * go-exp.y: New file.
2837 * go-lang.h: New file.
2838 * go-lang.c: New file.
2839 * go-typeprint.c: New file.
2840 * go-valprint.c: New file.
2841 * symtab.c: #include "go-lang.h".
2842 (symbol_set_language): Handle language_go.
2843 (symbol_find_demangled_name, symbol_set_names): Ditto.
2844 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2846 2012-04-24 Jim Meyering <meyering@redhat.com>
2848 avoid a few strncpy-induced buffer overruns
2849 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2850 fname and psargs before trying to concatenate.
2851 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2852 "name" before applying strchr.
2854 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2856 * CONTRIBUTE: Use unified diff instead of context diff when
2859 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2861 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2862 code. Handle JR.HB correctly.
2864 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2867 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2868 with the other MIPS16 helpers.
2870 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2872 * observer.sh: Conditionally declare `args', thus cleaning up
2873 unused instances of this variable.
2875 2012-04-24 Yao Qi <yao@codesourcery.com>
2877 Revert this patch to allow breakpoint always-inserted
2879 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2880 * breakpoint.c: Include record.h.
2881 (breakpoints_always_inserted_mode): Return false when the record
2884 * breakpoint.c (iterate_over_bp_locations): New.
2885 * breakpoint.h: Declare.
2886 New typedef walk_bp_location_callback.
2887 * record.c (record_open): Call record_init_record_breakpoints.
2888 (record_sync_record_breakpoints): New.
2889 (record_init_record_breakpoints): New.
2890 * NEWS: Mention supporting breakpoint always-inserted mode in
2893 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2895 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2898 2012-04-24 Yao Qi <yao@codesourcery.com>
2900 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2901 (is_catchpoint): ... it.
2902 (print_one_breakpoint_location): Caller update.
2903 * breakpoint.h: Update declaration.
2905 2012-04-23 David S. Miller <davem@davemloft.net>
2907 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2909 2012-04-23 Tom Tromey <tromey@redhat.com>
2911 * buildsym.c (add_free_pendings): Remove.
2912 * buildsym.h (add_free_pendings): Remove.
2914 2012-04-23 Doug Evans <dje@google.com>
2916 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2917 attr.u.unsnd instead of attr.u.addr.
2918 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2919 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2921 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2922 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2924 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2926 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2928 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2929 (mips_o32_return_value): Likewise.
2930 (mips_o64_return_value): Likewise.
2932 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2934 * ada-lang.c (ada_evaluate_subexp): Add cases for
2935 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2936 their treatment in eval.c.
2938 2012-04-21 David S. Miller <davem@davemloft.net>
2940 * sparc-tdep.c (X_DISP10): Define.
2941 (sparc_analyze_control_transfer): Handle compare-and-branch.
2943 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2945 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2946 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2948 2012-04-20 Nigel Stephens <nigel@mips.com>
2949 Maciej W. Rozycki <macro@codesourcery.com>
2951 * mips-tdep.c (mips_float_register_p): New function.
2952 (mips_convert_register_float_case_p): Use mips_float_register_p.
2953 (mips_register_type): Likewise.
2954 (mips_print_register): Likewise.
2955 (print_gp_register_row): Likewise.
2956 (mips_print_registers_info): Likewise.
2958 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2960 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2963 2012-04-20 Andrew Pinski <apinski@cavium.com>
2965 * MAINTAINERS (Write After Approval): Add myself to the list.
2967 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2969 * MAINTAINERS: Update my e-mail address.
2971 2012-04-20 Pedro Alves <palves@redhat.com>
2973 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2975 * configure: Regenerate.
2977 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2979 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2981 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2983 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2985 Fix compilation compatibility with python-2.4
2986 * python/py-type.c (convert_field): Cast ADDRSTRING for
2987 PyObject_SetAttrString as non-const. New comment.
2989 2012-04-19 Tom Tromey <tromey@redhat.com>
2991 * top.c (quit_target): Use all_cleanups.
2992 * main.c (captured_command_loop): Use all_cleanups.
2993 * exceptions.c (throw_exception): Use all_cleanups.
2995 2012-04-19 Pedro Alves <palves@redhat.com>
2997 * Makefile.in (GNULIB_BUILDDIR): New.
2998 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2999 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3000 (CLEANDIRS). Remove gnulib/import.
3001 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3003 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3004 (gnulib/import/Makefile): Replace gnulib/import with
3005 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3006 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3007 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3008 acx_configure_dir.m4.
3009 * acinclude.m4: Include acx_configure_dir.m4.
3010 * acx_configure_dir.m4: New file.
3011 * aclocal.m4: Regenerate.
3012 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3013 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3014 (GNULIB): New variable.
3015 (GNULIB_STDINT_H): Adjust.
3016 (AC_OUTPUT): Don't output gnulib/Makefile.
3017 * gdb/defs.h: Include build-gnulib/config.h.
3018 * aclocal.m4: Regenerate.
3019 * config.in: Regenerate.
3020 * configure: Regenerate.
3022 * gnulib/Makefile.in: New file.
3023 * gnulib/configure.ac: New file.
3024 * gnulib/aclocal.m4: New file.
3025 * gnulib/config.in: New file.
3026 * gnulib/configure: New file.
3027 * gnulib/: Re-run gnulib-tool to adjust.
3029 2012-04-19 Doug Evans <dje@google.com>
3031 * cleanups.h (struct cleanup): Move to cleanups.c.
3032 (make_cleanup_dtor_ftype): New typedef.
3033 (make_cleanup_dtor): Use it.
3034 (ALL_CLEANUPS): Replace with ...
3035 (all_cleanups): ... this. Declare. All uses updated.
3036 * cleanups.c: #include "gdb_assert.h".
3037 (sentinel_cleanup): New static global.
3038 (SENTINEL_CLEANUP): Define.
3039 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3040 (make_my_cleanup2): Assert result is non-NULL.
3041 (all_cleanups): New function.
3042 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3045 2012-04-19 Pedro Alves <palves@redhat.com>
3047 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3048 Adjust paths to gnulib imported files.
3050 2012-04-19 Pedro Alves <palves@redhat.com>
3052 * gnulib/: Move whole directory ...
3053 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3054 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3055 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3056 (aclocal_m4_deps): Adjust.
3057 * aclocal.m4: Regenerate.
3058 * configure: Regenerate.
3059 * configure.ac: Adjust AC_OUTPUT output.
3061 2012-04-19 Yao Qi <yao@codesourcery.com>
3063 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3065 * vec.c: Move it ...
3066 * common/vec.c: ... here.
3067 * vec.h: Move it ...
3068 * common/vec.h: ... here.
3070 2012-04-19 Yao Qi <yao@codesourcery.com>
3072 * gdb-code-style.el: New.
3074 2012-04-18 Pedro Alves <palves@redhat.com>
3076 Update gnulib from latest git.
3077 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3079 * gnulib/Makefile.am: Update.
3080 * gnulib/dummy.c: Update.
3081 * gnulib/extra/arg-nonnull.h: Update.
3082 * gnulib/extra/c++defs.h: Update.
3083 * gnulib/extra/update-copyright: Update.
3084 * gnulib/extra/warn-on-use.h: Update.
3085 * gnulib/inttypes.in.h: Update.
3086 * gnulib/m4/00gnulib.m4: Update.
3087 * gnulib/m4/extensions.m4: Update.
3088 * gnulib/m4/gnulib-cache.m4: Update.
3089 * gnulib/m4/gnulib-common.m4: Update.
3090 * gnulib/m4/gnulib-comp.m4: Update.
3091 * gnulib/m4/gnulib-tool.m4: Update.
3092 * gnulib/m4/include_next.m4: Update.
3093 * gnulib/m4/inttypes-pri.m4: Update.
3094 * gnulib/m4/inttypes.m4: Update.
3095 * gnulib/m4/longlong.m4: Update.
3096 * gnulib/m4/memchr.m4: Update.
3097 * gnulib/m4/memmem.m4: Update.
3098 * gnulib/m4/mmap-anon.m4: Update.
3099 * gnulib/m4/multiarch.m4: Update.
3100 * gnulib/m4/onceonly.m4: Update.
3101 * gnulib/m4/stddef_h.m4: Update.
3102 * gnulib/m4/stdint.m4: Update.
3103 * gnulib/m4/string_h.m4: Update.
3104 * gnulib/m4/warn-on-use.m4: Update.
3105 * gnulib/m4/wchar_h.m4: Update.
3106 * gnulib/m4/wchar_t.m4: Update.
3107 * gnulib/m4/wint_t.m4: Update.
3108 * gnulib/memchr.c: Update.
3109 * gnulib/memmem.c: Update.
3110 * gnulib/stddef.in.h: Update.
3111 * gnulib/stdint.in.h: Update.
3112 * gnulib/str-two-way.h: Update.
3113 * gnulib/string.in.h: Update.
3114 * gnulib/wchar.in.h: Update.
3116 * gnulib/extra/arg-nonnull.h: Delete.
3117 * gnulib/extra/c++defs.h: Delete.
3118 * gnulib/extra/warn-on-use.h: Delete.
3119 * gnulib/m4/wchar_h.m4: Delete.
3120 * gnulib/m4/wint_t.m4: Delete.
3121 * gnulib/wchar.in.h: Delete.
3123 * gnulib/extra/snippets/arg-nonnull.h: New.
3124 * gnulib/extra/snippets/c++defs.h: New.
3125 * gnulib/extra/snippets/warn-on-use.h: New.
3127 * aclocal.m4: Regenerate.
3128 * config.in: Regenerate.
3129 * configure: Regenerate.
3130 * gnulib/Makefile.in: Regenerate.
3132 2012-04-18 Pedro Alves <palves@redhat.com>
3134 Reimport the update-copyright module from gnulib
3135 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3137 * configure: Regenerate.
3138 * gnulib/Makefile.am: Update.
3139 * gnulib/Makefile.in: Regenerate.
3140 * gnulib/extra/update-copyright: Update.
3141 * gnulib/m4/gnulib-cache.m4: Update.
3142 * gnulib/m4/gnulib-comp.m4: Update.
3144 2012-04-18 Tristan Gingold <gingold@adacore.com>
3146 * configure.ac (aix): Put -lpthread into libs.
3147 * configure: Regenerate.
3149 2012-04-18 Tom Tromey <tromey@redhat.com>
3151 * linespec.c (convert_linespec_to_sals): Don't use
3153 (compare_msymbols): Arguments are minsym_and_objfile, not
3154 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3156 2012-04-18 Pedro Alves <palves@redhat.com>
3158 Revert gnulib/ part of:
3159 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3160 Copyright year update in most files (performed by copyright.sh).
3162 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3164 Fix 64-bit constants on 32-bit hosts.
3165 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3166 from unsigned long to ULONGEST.
3167 (read_signed_leb128): Change declaration return type from long to
3169 (dwarf2_const_value_attr): Change declaration parameter value from long
3171 (dwarf2_compute_name): Change variable value from long to LONGEST.
3172 (read_unsigned_leb128): Change return type, variable result and some
3173 casts from unsigned long to ULONGEST.
3174 (read_signed_leb128): Change return type, variable result and some
3175 casts from long to LONGEST.
3176 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3177 value from long to LONGEST.
3178 (dwarf2_const_value): Change variable value from long to LONGEST.
3179 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3180 plongest and hex_string.
3181 * symtab.h (struct general_symbol_info): Change ivalue from long to
3182 LONGEST, remove the comment.
3183 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3184 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3186 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3189 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3190 * ada-lang.c (ada_discrete_type_high_bound)
3191 (ada_discrete_type_low_bound): Fix function comment. Use
3192 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3193 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3194 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3195 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3196 Use TYPE_FIELD_ENUMVAL.
3197 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3198 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3199 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3200 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3202 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3203 * dwarf2read.c (process_enumeration_scope): Likewise.
3204 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3206 (class StructMainTypePrettyPrinter): Support also
3207 FIELD_LOC_KIND_ENUMVAL.
3208 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3210 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3211 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3212 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3213 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3215 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3216 accommodate enumval.
3217 (struct call_site): Adjust loc_kind to accommodate enumval.
3218 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3219 (TYPE_FIELD_ENUMVAL): New macros.
3220 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3221 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3223 * p-typeprint.c (pascal_type_print_base): Likewise.
3224 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3226 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3227 * python/py-type.c (convert_field): New variable addrstring. Use
3228 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3229 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3230 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3231 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3233 * valprint.c (generic_val_print): Likewise.
3235 2012-04-17 Doug Evans <dje@google.com>
3237 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3239 * dwarf2read.c: Whitespace fixes.
3240 (lookup_signatured_type): Tweak comment.
3241 (get_die_type_at_offset): Fix comment.
3243 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3245 * xcoffread.c (xcoff_secnum_to_sections): New function.
3246 (secnum_to_section, secnum_to_bfd_section): Reimplement
3247 using xcoff_secnum_to_sections. Rename "secnum" parameter
3249 (RECORD_MINIMAL_SYMBOL): Delete.
3250 (record_minimal_symbol): New function.
3251 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3252 by call to record_minimal_symbol and set misc_func_recorded
3253 to 1. Set last_csect_sec to the XCOFF section index instead
3254 of GDB's section_offset index. Update calls to
3255 prim_record_minimal_symbol_and_info to pass the BFD section
3258 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3260 * xcoffread.c (read_xcoff_symtab): Delete variables
3261 last_csect_val and last_csect_sec and associated code.
3263 2012-04-17 Doug Evans <dje@google.com>
3265 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3266 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3267 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3268 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3270 * cleanups.h: New file.
3271 * cleanups.c: New file.
3272 * Makefile.in (SFILES): Add cleanups.c.
3273 (HFILES_NO_SRCDIR): Add cleanups.h.
3274 (COMMON_OBS): Add cleanups.o.
3275 * defs.h (struct cleanup): Moved to cleanups.h.
3276 (do_cleanups,do_final_cleanups): Ditto.
3277 (discard_cleanups,discard_final_cleanups): Ditto
3278 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3279 (save_cleanups,save_final_cleanups): Ditto.
3280 (restore_cleanups,restore_final_cleanups): Ditto.
3281 (null_cleanup): Ditto.
3282 (make_my_cleanup,make_my_cleanup2): Ditto.
3283 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3284 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3285 (do_cleanups,do_final_cleanups): Ditto.
3286 (discard_cleanups,discard_final_cleanups): Ditto
3287 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3288 (save_cleanups,save_final_cleanups): Ditto.
3289 (restore_cleanups,restore_final_cleanups): Ditto.
3290 (null_cleanup): Ditto.
3291 (make_my_cleanup,make_my_cleanup2): Ditto.
3292 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3294 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3296 (make_cleanup_dyn_string_delete): Ditto.
3297 (make_cleanup_ui_file_delete): Ditto.
3298 (make_cleanup_ui_out_redirect_pop): Ditto.
3299 (make_cleanup_free_section_addr_info): Ditto.
3300 (make_cleanup_restore_integer): Ditto.
3301 (make_cleanup_unpush_target): Ditto.
3302 (make_cleanup_value_free_to_mark): Ditto.
3303 (make_cleanup_value_free): Ditto.
3304 (make_cleanup_free_so): Ditto.
3306 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3308 New option "set debug auto-load".
3309 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3310 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3311 (auto_load_safe_path_vec_update)
3312 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3314 (file_is_auto_load_safe): New parameters debug_fmt and ....
3315 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3316 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3317 caller by explanatory string.
3318 (_initialize_auto_load): Register "set debug auto-load".
3319 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3321 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3322 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3323 by explanatory string.
3324 * main.c (captured_main): Likewise.
3325 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3326 (source_section_scripts): Likewise.
3328 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3330 New option "set auto-load safe-path".
3331 * NEWS: New commands "set auto-load safe-path"
3332 and "show auto-load safe-path".
3333 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3334 (auto_load_safe_path, auto_load_safe_path_vec)
3335 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3336 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3337 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3338 (source_gdb_script_for_objfile): New variable is_safe. Call
3339 file_is_auto_load_safe. Return if it is not.
3340 (struct loaded_script): New field loaded.
3341 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3342 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3343 output "Missing" to "No".
3344 (_initialize_auto_load): New variable cmd. Initialize
3345 auto_load_safe_path. Register "set auto-load safe-path",
3346 "show auto-load safe-path" and "add-auto-load-safe-path".
3347 * auto-load.h (maybe_add_script): Add parameter loaded.
3348 (file_is_auto_load_safe): New declaration.
3349 * config.in: Regenerate.
3350 * configure: Regenerate.
3351 * configure.ac: New parameters --with-auto-load-safe-path
3352 and --without-auto-load-safe-path.
3353 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3354 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3355 * main.c (captured_main): Check file_is_auto_load_safe for
3357 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3358 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3359 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3362 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3364 auto-load: Implementation.
3365 * NEWS: New descriptions for "info auto-load",
3366 "info auto-load gdb-scripts", "info auto-load python-scripts",
3367 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3368 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3369 and "show auto-load-scripts". New description for "set auto-load",
3370 "show auto-load", "set auto-load gdb-scripts",
3371 "show auto-load gdb-scripts", "set auto-load python-scripts",
3372 "show auto-load python-scripts", "set auto-load local-gdbinit",
3373 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3374 "show auto-load libthread-db".
3375 * auto-load.c: Remove include python/python-internal.h. Add includes
3376 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3378 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3379 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3380 (gdbpy_global_auto_load): Rename to ...
3381 (global_auto_load): ... here.
3382 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3383 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3384 (script_language_gdb, source_gdb_script_for_objfile): New.
3385 (struct loaded_script): New field language.
3386 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3388 (maybe_add_script): Add parameter language. Drop redundant
3389 entry.full_path initialization. Initialize entry.language and
3391 (auto_load_objfile_script): Change parameter suffix to language.
3392 Remove the call of maybe_add_script.
3393 Call language->source_script_for_objfile.
3394 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3396 (collect_matching_scripts): Adjust it for
3397 struct collect_matching_scripts_data.
3398 (auto_load_info_scripts_pattern_nl): New variable.
3399 (info_auto_load_scripts): Rename to ...
3400 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3401 for struct collect_matching_scripts_data.
3402 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3403 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3404 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3405 (auto_load_info_cmdlist_get): New.
3406 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3407 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3408 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3409 "info auto-load local-gdbinit".
3410 * auto-load.h (struct script_language): New.
3411 (gdbpy_global_auto_load): Rename to ...
3412 (global_auto_load): ... here.
3413 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3414 (auto_load_local_gdbinit_loaded): New declarations.
3415 (maybe_add_script): New parameter language.
3416 (auto_load_objfile_script): Change parameter suffix to language.
3417 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3418 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3419 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3421 * linux-thread-db.c: Include auto-load.h and ctype.h.
3422 (auto_load_thread_db, show_auto_load_thread_db): New.
3423 (struct thread_db_info): New field filename.
3424 (delete_thread_db_info): Call xfree for FILENAME.
3425 (try_thread_db_load): Initialize FILENAME.
3426 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3427 if !AUTO_LOAD_THREAD_DB.
3428 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3429 (_initialize_thread_db): Install auto_load_thread_db
3430 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3431 as "info auto-load libthread-db".
3432 * main.c (captured_main): Rename gdbpy_global_auto_load to
3433 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3434 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3435 (print_gdb_help): Extend the help for 'local init file'.
3436 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3437 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3438 (auto_load_scripts): Rename to ...
3439 (auto_load_python_scripts): ... here, update the comment.
3440 (gdbpy_load_auto_script_for_objfile): New declaration.
3441 (show_auto_load_python_scripts, script_language_python)
3442 (gdbpy_load_auto_script_for_objfile): New.
3443 (source_section_scripts): Refactor the code.
3444 (load_auto_scripts_for_objfile): Rename to ...
3445 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3446 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3447 (info_auto_load_python_scripts): New.
3448 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3449 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3450 Register "set auto-load-scripts" as its deprecated alias. Register
3451 "info auto-load python-scripts". Register "info auto-load-scripts" as
3452 its deprecated alias.
3453 (load_auto_scripts_for_objfile): Rename to ...
3454 (gdbpy_load_auto_scripts_for_objfile): ... here.
3455 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3456 (gdbpy_load_auto_scripts_for_objfile): ... here.
3458 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 auto-load: Move files.
3461 * Makefile.in (SFILES): Add auto-load.c.
3462 (HFILES_NO_SRCDIR): Add auto-load.h.
3463 (COMMON_OBS): Add auto-load.o.
3464 (distclean): Change .gdbinit for gdb-gdb.gdb.
3465 * auto-load.c: New file, with parts from python/py-auto-load.c.
3466 * auto-load.h: New file, with parts from python/python.h.
3467 * configure: Regenerate.
3468 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3469 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3470 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3471 * main.c: Include auto-load.h.
3472 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3473 command.h, observer.h and progspace.h to auto-load.c. Add include
3475 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3476 (struct loaded_script, auto_load_pspace_data)
3477 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3478 (hash_loaded_script_entry, eq_loaded_script_entry)
3479 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3480 (maybe_add_script): Move to auto-load.c.
3481 (source_section_scripts): Change maybe_add_script parameters passing,
3482 use script_not_found_warning_print.
3483 (clear_section_scripts, auto_load_objfile_script)
3484 (auto_load_new_objfile, loaded_script_ptr)
3485 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3486 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3487 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3488 auto_load_new_objfile and info_auto_load_scripts initizations to
3490 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3492 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3495 * charset.c (find_charset_names): Remove variables ix and elt.
3496 Use free_char_ptr_vec.
3497 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3498 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3499 debugdir_end. New variable debugdir_len.
3500 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3501 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3503 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3504 and elt. Use free_char_ptr_vec.
3505 * source.c (add_path): Remove variables argv, arg and argv_index.
3506 New variables dir_vec, back_to, ix and name.
3507 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3508 make_cleanup_freeargv. Remove variable separator. Simplify the code
3509 no longer expecting DIRNAME_SEPARATOR.
3510 (openp): Remove variable p, p1 and len. New variables dir_vec,
3511 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3512 no longer expecting DIRNAME_SEPARATOR.
3513 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3514 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3516 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3517 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3518 (dirnames_to_char_ptr_vec): New functions.
3520 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3523 * source.c (add_path): Remove always true conditional 'p == 0' and
3524 unindent its code block.
3526 2012-04-17 Pedro Alves <palves@redhat.com>
3528 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3529 (FIELD_BITPOS_LVAL): ... this.
3530 (FIELD_BITPOS): New.
3531 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3532 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3533 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3535 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3537 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3538 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3539 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3542 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3544 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3545 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3546 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3547 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3548 * jv-lang.c (java_link_class_type): Likewise, once.
3549 * stabsread.c (read_enum_type): Likewise.
3551 2012-04-16 Yao Qi <yao@codesourcery.com>
3553 * common/agent.c (agent_run_command): Add one more parameter `len'.
3555 * common/agent.h: Update declaration.
3556 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3558 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3560 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3563 * value.c (value_actual_type): New function.
3564 * value.h (value_actual_type): New declaration.
3565 * varobj.c (update_type_if_necessary): New function.
3566 (varobj_create): Call value_actual_type instead of
3568 (install_dynamic_child): distinct changed and type changed MI variable
3570 (update_dynamic_varobj_children): Updated for install_dynamic_child
3571 change. All callers updated.
3572 (varobj_update): Support for MI variable object type change if
3573 the value changed and RTTI is used to determine the type.
3574 (create_child_with_value): Call value_actual_type instead of
3576 (adjust_value_for_child_access): Extended with a new parameter which
3577 specify whether the given value should be casted to enclosing type.
3578 All callers updated.
3580 2012-04-14 Yao Qi <yao@codesourcery.com>
3582 Import gnulib module inttypes from git
3583 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3584 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3585 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3586 gnulib/m4/inttypes-pri.m4
3587 * aclocal.m4, config.in, configure: Regenerated.
3588 * gnulib/Makefile.am: Update.
3589 * gnulib/Makefile.in: Update.
3590 * gnulib/m4/gnulib-cache.m4: Update.
3591 * gnulib/m4/gnulib-comp.m4: Update.
3592 * gnulib/inttypes.in.h: New.
3593 * gnulib/m4/inttypes-pri.m4: New.
3594 * gnulib/m4/inttypes.m4: New.
3596 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3598 * infrun.c (resume): Update PC address to the real PC after
3599 preparing to do displaced stepping.
3601 2012-04-12 Doug Evans <dje@google.com>
3603 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3604 All callers updated.
3606 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3608 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3610 2012-04-12 Doug Evans <dje@google.com>
3612 * dwarf2read.c (create_all_type_units): Renamed from
3613 create_debug_types_hash_table. All callers updated.
3615 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3616 local type_sig to sig_type, type_offset to type_offset_in_tu.
3617 (hash_signatured_type): Renamed from hash_type_signature,
3618 all callers updated.
3619 (eq_signatured_type): Renamed from eq_type_signature,
3620 all callers updated.
3621 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3622 (process_enumeration_scope): Ditto.
3623 (lookup_signatured_type_at_offset): Ditto.
3624 (load_full_type_unit, read_signatured_type): Ditto.
3626 2012-04-12 Yao Qi <yao@codesourcery.com>
3628 * remote.c (async_remote_interrupt): Correct function name in
3630 (async_remote_interrupt_twice): Ditto.
3632 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3634 * source.c (find_and_open_source): Consistently pass resulting
3635 full path through xfullpath.
3637 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3639 Provide more specific displaced-stepping memory error message.
3640 * infrun.c (displaced_step_prepare): New variable status. Call
3641 target_read_memory instead of read_memory, provide more specific
3644 2012-04-11 Tristan Gingold <gingold@adacore.com>
3647 * darwin-nat.c (darwin_execvp): Revert previous patch.
3649 2012-04-11 Tristan Gingold <gingold@adacore.com>
3652 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3655 2012-04-11 Tristan Gingold <gingold@adacore.com>
3657 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3660 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3662 New command 'explore' which helps explore values and types in
3664 * NEWS: Add an entry about the new 'explore' command.
3665 * data-directory/Makefile.in: Add gdb/command/explore.py
3666 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3667 command using the GDB Python API.
3669 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3671 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3672 extension in jump target calculation.
3674 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3676 * mips-tdep.c (mips32_next_pc): Handle JALX.
3678 2012-04-10 Yao Qi <yao@codesourcery.com>
3680 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3682 2012-04-10 Yao Qi <yao@codesourcery.com>
3684 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3685 and gnulib/m4/gnulib-tool.m4.
3687 2012-04-10 Doug Evans <dje@google.com>
3689 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3690 (load_partial_dies): Clarify comment.
3691 (find_partial_die): Support rereading type units.
3692 Clarify CU handling, if we know offset is in CU, don't search for the
3693 containing CU. Add comment regarding memory waste.
3695 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3697 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3698 i386/x32-avx and i386/x32-avx-linux.
3699 (i386/x32-expedite): New.
3700 (i386/x32-linux-expedite): Likewise.
3701 (i386/x32-avx-expedite): Likewise.
3702 (i386/x32-avx-linux-expedite): Likewise.
3703 ($(outdir)/i386/x32.dat): Likewise.
3704 ($(outdir)/i386/x32-linux.dat): Likewise.
3705 ($(outdir)/i386/x32-avx.dat): Likewise.
3706 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3708 * features/i386/x32-avx-linux.xml: New file.
3709 * features/i386/x32-avx.xml: Likewise.
3710 * features/i386/x32-core.xml: Likewise.
3711 * features/i386/x32-linux.xml: Likewise.
3712 * features/i386/x32.xml: Likewise.
3714 * features/i386/x32-avx-linux.c: New. Generated.
3715 * features/i386/x32-avx.c: Likewise.
3716 * features/i386/x32-linux.c: Likewise.
3717 * features/i386/x32.c: Likewise.
3718 * regformats/i386/x32-avx-linux.dat: Likewise.
3719 * regformats/i386/x32-avx.dat: Likewise.
3720 * regformats/i386/x32-linux.dat: Likewise.
3721 * regformats/i386/x32.dat: Likewise.
3723 2012-04-10 Tristan Gingold <gingold@adacore.com>
3725 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3726 code to kill the inferior.
3728 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3730 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3732 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3734 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3735 (yyvsp): New defines.
3736 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3738 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3740 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3742 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3744 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3747 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3749 * sparc64-tdep.c (sparc64_store_arguments)
3750 (sparc64_store_arguments): Fix coding style.
3752 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3754 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3755 complex floats, adjust some related comments and tighten a related
3757 (sparc64_extract_return_value): Handle complex floats.
3759 2012-04-07 Doug Evans <dje@google.com>
3761 * dwarf2read.c (load_partial_dies): Change condition to assert.
3763 2012-04-06 Doug Evans <dje@google.com>
3765 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3768 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3770 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3772 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3773 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3776 2012-04-05 Keith Seitz <keiths@redhat.com>
3778 * linespec.c (decode_compound): Remove.
3779 (enum offset_relative_sign): New enum.
3780 (struct line_offset): New struct.
3781 (struct linespec): New struct.
3782 (struct linespec_state): Move file_symtabs,
3783 user_filename, and user_function into struct linespec.
3784 Make result an anonymous struct holding vectors of
3785 symbolp and minsym_and_objfile_d.
3786 Add language member.
3787 (enum ls_token_type): New enum.
3788 (linespec_keywords): New array.
3789 (struct ls_token): New struct.
3790 (struct ls_parser): New struct.
3791 (linespec_lexer_lex_number): New function.
3792 (linespec_lexer_lex_keyword): New function.
3793 (is_ada_operator): New function.
3794 (skip_quote_char): New function.
3795 (copy_token_string): New function.
3796 (is_closing_quote_enclosed): New function.
3797 (find_parameter_list_end): New function.
3798 (linespec_lexer_lex_string): New function.
3799 (linespec_lexer_lex_one): New function.
3800 (linespec_lexer_consume_token): New function.
3801 (linespec_lexer_peek_token): New function.
3802 (cplusplus_error): Remove unused function.
3803 (find_methods): Update comment.
3804 (find_toplevel_char): Return const.
3805 (is_objc_method_format): Remove unused function.
3806 (find_toplevel_string): New function.
3807 (is_linespec_boundary): Remove.
3808 (symbol_not_found_error): New function.
3809 (find_method_overload_end): Remove function.
3810 (unexpected_linespec_error): New function.
3811 (keep_name_info): Remove.
3812 (linespec_parse_line_offset): New function.
3813 (linespec_parse_basic): New function.
3814 (canonicalize_linespec): New function.
3815 (decode_line_internal): Remove.
3816 (create_sals_line_offset): New function adapted from
3818 (convert_linespec_to_sals): New function.
3819 (parse_linespec): New function.
3820 (linespec_parser_new): New function.
3821 (linespec_state_destructor): Change parameter type to
3822 struct linespec_state *.
3823 Add language parameter.
3824 Remove freeing of moved members.
3825 (linespec_parser_delete): New function.
3826 (decode_line_full): Use parse_linespec and linespec_parser_new.
3827 (decode_line_1): Likewise.
3828 (decode_indirect): Rename to ...
3829 (linespec_expression_to_pc): ... this and rewrite
3830 to simply find CORE_ADDR, storing this result for later
3832 (locate_first_half): Remove.
3833 (deocde_objc): Add parameter LS.
3834 Initialize new struct collect_info members.
3835 Handle minimal symbols, too.
3836 (decode_compound): Delete.
3837 (lookup_prefix_sym): Rewrite.
3838 (compare_msymbols): New function.
3839 (find_method): Rewrite.
3840 Do not call cplusplus_error.
3841 (symtabs_from_filename): Rewrite.
3842 (collect_function_symbols): Delete.
3843 (find_function_symbols): Rewrite without ARGPTR-style
3845 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3846 (decode_dollar): Adapted and renamed to ...
3847 (linespec_parse_variable): ... this.
3848 (find_linespec_symbols): New function.
3849 (decode_label): Adapted and renamed to ...
3850 (find_label_symbols): ... this.
3851 (decode_digits_list_mode): Add and use LS argument.
3852 (decode_digits_ordinary): Likewise.
3853 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3854 If in list mode, allow any symbol class. Otherwise, only
3855 permit LOC_BLOCK symbols.
3856 (minsym_found): Update comments.
3857 (search_minsyms_for_name): Do not convert the matching symbol
3858 into a SAL. Simply push the symbol and objfile into the
3860 (decode_variable): Delete. Contents adapted into
3861 find_linespec_symbols.
3863 * cp-support.c (SKIP_SPACE): Remove.
3864 (operator_tokens): Remove unused global.
3865 (cp_validate_operator): Remove.
3866 * cp-support.h (cp_validate_operator): Remove declaration.
3868 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3870 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3871 for TYPE_VPTR_FIELDNO.
3872 * valprint.c (valprint_check_validity): Make it global, move the
3873 function comment ...
3874 * value.h (valprint_check_validity): ... to this new declaration.
3876 2012-04-02 Tristan Gingold <gingold@adacore.com>
3878 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3879 the STATE32 api for i386 state.
3880 (i386_darwin_store_inferior_registers): Likewise.
3882 2012-04-02 Tristan Gingold <gingold@adacore.com>
3884 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3886 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3889 2012-04-02 Tristan Gingold <gingold@adacore.com>
3892 * darwin-nat.c (darwin_execvp): Set binary preference.
3894 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3896 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3898 2012-03-30 Tom Tromey <tromey@redhat.com>
3900 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3901 of TRY_CATCH. Fix error handling.
3902 * python/py-value.c (convert_value_from_python): Move 'old'
3903 declaration to innermost scope.
3905 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3906 Andrey Smirnov <andrew.smirnov@gmail.com>
3908 -Wshadow warning fix.
3909 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3910 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3911 Adjust code accordingly.
3913 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3915 * ada-lang.c (symbol_completion_add): Rename parameter
3916 "encoded" into "encoded_p". Ajust code and documentation
3919 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3920 Andrey Smirnov <andrew.smirnov@gmail.com>
3922 -Wshadow warning fix.
3923 * ada-lang.c (symbol_completion_add): Rename parameter
3924 "wild_match" into wild_match_p. Update code and documentation
3927 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3929 * ada-lang.c (symbol_completion_match): Rename parameter
3930 "encoded" into "encoded_p". Ajust code and documentation
3933 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3934 Andrey Smirnov <andrew.smirnov@gmail.com>
3936 -Wshadow warning fix.
3937 * ada-lang.c (symbol_completion_match): Rename parameter
3938 "wild_match" into "wild_match_p". Adjust code and function
3939 documentation accordingly.
3941 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3942 Andrey Smirnov <andrew.smirnov@gmail.com>
3944 -Wshadow warning fix.
3945 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3946 "symbol_info" into "info". Adjust code accordingly.
3947 (ada_lookup_symbol): Likewise.
3949 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3951 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3952 of this function's documentation.
3954 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3955 Andrey Smirnov <andrew.smirnov@gmail.com>
3957 -Wshadow warning fix.
3958 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3959 variable into "wild_match_p". Adjust code accordingly.
3961 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3962 Andrey Smirnov <andrew.smirnov@gmail.com>
3964 -Wshadow warning fix.
3965 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3966 parameter into "wild_match_p". Adjust code accordingly.
3967 Document this parameter in the function description.
3969 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3970 Andrey Smirnov <andrew.smirnov@gmail.com>
3972 -Wshadow warning fix.
3973 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3974 "wild_match" parameter to "wild_match_p" (-Wshadow).
3976 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3978 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3979 in function documentation.
3981 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3982 Andrey Smirnov <andrew.smirnov@gmail.com>
3984 -Wshadow warning fix.
3985 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3986 variable into wild_match_p. Adjust code accordingly.
3988 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3989 Andrey Smirnov <andrew.smirnov@gmail.com>
3991 * ada-valprint.c (ada_val_print_1): Move the code handling
3992 TYPE_CODE_ENUM inside its own lexical block. Declare
3993 variables len and val there, instead of in the function's
3994 top level block. Avoid declaring deref_val again in a way
3995 that shadows another variable of the same name declared
3996 in one of the up-level blocks. Just re-use the up-level
3999 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4001 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4002 Replace block_found argument by symbol_info. Adjust
4003 implementation accordingly. Add function documentation.
4004 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4006 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4007 * ada-exp.y (write_object_renaming): Adjust to new
4008 ada_lookup_encoded_symbol API.
4010 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4012 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4015 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
4017 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4018 (v850_register_name): Add the mpu and fpu register names.
4019 (v850e_register_name): Add the mpu and fpu register names.
4020 (v850e2_register_name): New function.
4021 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
4024 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4026 * NEWS: Add entry for Ada varobj support.
4028 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4030 * varobj.c (default_value_is_changeable_p): New function,
4031 extracted from varobj_value_is_changeable_p. Add declaration.
4032 (ada_value_is_changeable_p): New function, extracted from
4033 varobj_value_is_changeable_p. Add declaration.
4034 (struct language_specific): New field "value_is_changeable_p".
4035 (languages): Add entries for new field.
4036 (varobj_create): Set language before calling install_new_value.
4037 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4038 "value_is_changeable_p" language callback.
4040 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4042 * ada-varobj.h, ada-varobj.c: New files.
4043 * Makefile.in (SFILES): Add ada-varobj.c.
4044 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4045 (COMMON_OBS): Add ada-varobj.o.
4047 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4049 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4050 (struct language_specific): New field "value_has_mutated".
4051 (languages): Set field "value_has_mutated" in each entry of array.
4052 (varobj_value_has_mutated): New function.
4053 (varobj_udpdate): Add handling of type mutation.
4054 (value_of_root): Add handling of type mutation.
4055 (ada_value_has_mutated): New function.
4057 2012-03-28 Pedro Alves <palves@redhat.com>
4059 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4060 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4062 2012-03-28 Tom Tromey <tromey@redhat.com>
4064 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4065 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4068 2012-03-28 Tom Tromey <tromey@redhat.com>
4070 * .dir-locals.el: New file.
4072 2012-03-28 Pedro Alves <palves@redhat.com>
4074 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4076 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4078 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4081 2012-03-27 Pedro Alves <palves@redhat.com>
4083 Eliminate struct ui_stream.
4085 * ui-out.h (struct ui_stream): Delete.
4086 (ui_out_field_stream): Adjust prototype.
4087 (ui_out_stream_new, ui_out_stream_delete)
4088 (make_cleanup_ui_out_stream_delete): Delete declarations.
4089 * ui-out.c (ui_out_field_stream): Change prototype to take a
4090 ui_file instead of a ui_stream. Adjust.
4091 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4092 (make_cleanup_ui_out_stream_delete): Delete.
4093 * breakpoint.c (print_breakpoint_location)
4094 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4095 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4096 * disasm.c (dump_insns): Ditto.
4097 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4099 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4100 ui_stream/ui_out_stream_new.
4101 * infcmd.c (print_return_value): Ditto.
4102 * osdata.c (info_osdata_command): Don't allocate a local
4104 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4105 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4106 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4107 allocate a local ui_stream.
4108 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4109 instead of ui_stream/ui_out_stream_new.
4110 (list_args_or_locals): Don't allocate a local ui_stream.
4111 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4112 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4113 ui_stream/ui_out_stream_new.
4114 * cli/cli-setshow.c (do_setshow_command): Ditto.
4116 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
4118 * arm-linux-tdep.c (arm_linux_init_abi): Call
4119 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4120 * arm-tdep.c (arm_process_record): New function.
4121 (deallocate_reg_mem): New function.
4122 (decode_insn): New function.
4123 (thumb_record_branch): New function.
4124 (thumb_record_ldm_stm_swi(): New function.
4125 (thumb_record_misc): New function.
4126 (thumb_record_ld_st_stack): New function.
4127 (thumb_record_ld_st_imm_offset): New function.
4128 (thumb_record_ld_st_reg_offset(): New function.
4129 (thumb_record_add_sub_cmp_mov): New function.
4130 (thumb_record_shift_add_sub): New function.
4131 (arm_record_coproc_data_proc): New function.
4132 (arm_record_coproc): New function.
4133 (arm_record_b_bl): New function.
4134 (arm_record_ld_st_multiple): New function.
4135 (arm_record_ld_st_reg_offset): New function.
4136 (arm_record_ld_st_imm_offset): New function.
4137 (arm_record_data_proc_imm): New function.
4138 (arm_record_data_proc_misc_ld_str): New function.
4139 (arm_record_extension_space): New function.
4140 (arm_record_strx): New function.
4141 (sbo_sbz): New function.
4142 (struct insn_decode_record): New structure for arm insn record.
4143 (REG_ALLOC): New macro for reg allocations.
4144 (MEM_ALLOC): New macro for memory allocations.
4145 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4147 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4149 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4150 (store_register): Likewise.
4152 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
4154 * MAINTAINERS (Write After Approval): Add myself to the list.
4156 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4158 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4159 Describe also the option "auto".
4161 2012-03-22 Richard Henderson <rth@redhat.com>
4163 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4164 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4166 2012-03-22 Richard Henderson <rth@redhat.com>
4168 * jit.c (jit_read_code_entry): Compute alignment and offset of
4169 int64_t member before computing entry_size.
4171 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4173 Python scripting: Add new method Value.referenced_value to
4174 gdb.Value which can dereference pointer as well as reference
4176 * NEWS: Add entry under 'Python scripting' about the new method
4177 Value.referenced_value on gdb.Value objects.
4178 * python/py-value.c (valpy_referenced_value): New function
4179 defining a new method on gdb.Value objects which can dereference
4180 pointer and reference values.
4182 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4184 * MAINTAINERS (Write After Approval): Add myself to the list.
4186 2012-03-21 Kevin Buettner <kevinb@redhat.com>
4188 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4189 in addition to "main".
4191 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4193 * expression.h (op_name): Add declaration.
4194 * expprint.c (op_name): Remove declaration. Make non-static.
4195 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4197 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4199 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4201 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4202 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4203 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4204 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4205 (linux_nat_get_siginfo): Likewise.
4206 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4207 (linux_nat_get_siginfo): Likewise.
4208 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4209 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4210 * procfs.c (gdb_siginfo_t): Likewise.
4212 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4214 * .gitignore: Ignore more files.
4216 2012-03-20 Pedro Alves <palves@redhat.com>
4218 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4221 2012-03-20 Yao Qi <yao@codesourcery.com>
4223 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4226 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4228 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4229 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4230 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4232 * dwarf2expr.h (cu_offset, sect_offset): New types.
4233 (struct dwarf_expr_context_funcs) <dwarf_call>
4234 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4236 (struct dwarf_expr_context) <len>: Improve the comment.
4237 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4238 cu_offset and sect_offset.
4239 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4240 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4241 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4242 * dwarf2loc.h: Include dwarf2expr.h.
4243 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4245 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4246 Improve the comment.
4247 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4248 (struct signatured_type, struct line_header, struct partial_die_info)
4249 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4250 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4251 (get_die_type_at_offset, create_cus_from_index)
4252 (create_signatured_type_table_from_index, dw2_get_file_names)
4253 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4254 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4255 (create_debug_types_hash_table, process_psymtab_comp_unit)
4256 (load_partial_comp_unit, create_all_comp_units)
4257 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4258 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4259 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4260 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4261 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4262 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4263 (find_partial_die, read_attribute_value, lookup_die_type)
4264 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4265 (is_ref_attr): New function comment.
4266 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4267 Use cu_offset and sect_offset.
4268 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4269 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4270 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4271 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4272 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4273 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4274 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4277 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4280 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4281 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4283 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4285 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4287 * NEWS: Describe new options --init-command=FILE, -ix and
4288 --init-eval-command=COMMAND, -iex.
4289 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4290 CMDARG_INIT_COMMAND.
4291 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4292 "init-command", "init-eval-command", "ix" and "iex" to the variable
4293 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4294 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4295 (print_gdb_help): Describe --init-command=FILE, -ix and
4296 --init-eval-command=COMMAND, -iex.
4298 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4301 * main.c (struct cmdarg): Move it here from main. Add more comments.
4302 (cmdarg_s, VEC (cmdarg_s)): New.
4303 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4304 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4305 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4306 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4309 2012-03-19 Tom Tromey <tromey@redhat.com>
4311 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4313 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4316 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4319 2012-03-16 Chris January <chris.january@allinea.com>
4321 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4324 2012-03-16 Chris January <chris.january@allinea.com>
4326 * source.c (add_path): Use memmove instead of strcpy because the
4329 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4331 * value.h (set_value_parent): Add declaration.
4332 * value.c (set_value_parent): New function.
4333 (value_address): If VALUE->PARENT is not NULL, then use it as
4334 the base address instead of VALUE->LOCATION.address.
4335 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4336 the same as OBJ's address. Adjust V's offset accordingly.
4339 2012-03-16 Gary Benson <gbenson@redhat.com>
4341 PR breakpoints/10738
4342 * dwarf2read.c (use_deprecated_index_sections): New global.
4343 (struct partial_die_info): New member may_be_inlined.
4344 (read_partial_die): Set may_be_inlined where appropriate.
4345 (add_partial_subprogram): Add partial symbols for partial
4346 DIEs that may be inlined.
4347 (new_symbol_full): Add inlined subroutines to the current
4349 (write_psymtabs_to_index): Bump version number.
4350 (dwarf2_read_index): Read only version 6 indices unless
4351 use_deprecated_index_sections is set.
4352 * linespec.c (symbol_and_data_callback): New structure.
4353 (iterate_inline_only): New function.
4354 (iterate_over_all_matching_symtabs): New argument
4355 "include_inline". If nonzero, also call the callback for
4356 symbols representing inlined subroutines.
4357 (lookup_prefix_sym): Pass extra argument to the above.
4358 (find_function_symbols): Likewise.
4359 (add_matching_symbols_to_info): Likewise.
4360 * NEWS: Mention that GDB can now set breakpoints on inlined
4363 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4365 * p-typeprint.c (pascal_type_print_method_args):
4366 Fix display of parameter of methods.
4368 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4370 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4371 Add missing prototype.
4373 2012-03-16 Yao Qi <yao@codesourcery.com>
4374 Jan Kratochvil <jan.kratochvil@redhat.com>
4376 Fix false compilation warning.
4377 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4379 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4380 Pedro Alves <pedro@codesourcery.com>
4382 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4383 (arm_register_g_packet_guesses): New function.
4384 (arm_gdbarch_init): Don't force a target description with
4385 registers when the executable is detected as M-profile. Instead
4386 set gdbarch->tdep->is_m. Register `g' packet guesses.
4387 (_initialize_arm_tdep): Initialize the new target description.
4388 * features/arm-with-m-fpa-layout.xml: New description.
4389 * features/arm-with-m-fpa-layout.c: New, generated.
4391 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4393 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4394 Update function description.
4395 (insert_bp_location): Do not wipe bl->target_info out.
4396 * mem-break.c: #include "gdb_string.h".
4397 (default_memory_insert_breakpoint): Do not call target_read_memory
4398 with a pointer to the breakpoint's shadow_contents buffer. Use
4399 a local buffer instead.
4400 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4402 2012-03-15 Tom Tromey <tromey@redhat.com>
4404 * NEWS: Mention "info vtbl", not "info vtable".
4405 * cp-support.c (info_vtbl_command): Fix comment.
4406 (_initialize_cp_support): Fix text.
4408 2012-03-15 Tom Tromey <tromey@redhat.com>
4410 * cp-valprint.c (cp_print_value_fields): Use
4411 print_function_pointer_address for vtable slot.
4413 2012-03-15 Tom Tromey <tromey@redhat.com>
4415 * gnu-v3-abi.c (struct value_and_voffset): New.
4416 (hash_value_and_voffset, eq_value_and_voffset)
4417 (compare_value_and_voffset, compute_vtable_size)
4418 (print_one_vtable, gnuv3_print_vtable): New functions.
4419 (init_gnuv3_ops): Initialize 'print_vtable' field.
4420 * cp-support.c (info_vtbl_command): New function.
4421 (_initialize_cp_support): Add "info vtbl".
4422 * cp-abi.h (cplus_print_vtable): Declare.
4423 (struct cp_abi_ops) <print_vtable>: New field.
4424 * cp-abi.c (cplus_print_vtable): New function.
4427 2012-03-15 Tom Tromey <tromey@redhat.com>
4429 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4430 iterate_over_symbols.
4432 2012-03-14 Doug Evans <dje@google.com>
4434 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4435 DW_OP_GNU_parameter_ref.
4437 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4439 Fix double prompt of 'interpreter-exec mi'.
4440 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4441 (mi_interpreter_resume): use it.
4442 (mi_execute_command_input_handler): New function.
4443 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4444 mi_execute_command_input_handler.
4446 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4448 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4450 (darwin_debug_port_info): Make static.
4451 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4452 * machoread.c (_initialize_machoread): Add prototype.
4453 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4454 (i386_darwin_set_control, i386_darwin_get_control)
4455 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4456 i386_darwin_get_status, i386_darwin_get_control):
4457 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4459 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4461 * ax-gdb.c (gen_usual_unary): Remove special handling of
4462 enum and bool types.
4464 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4466 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4468 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4470 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4472 2012-03-13 Chris January <chris.january@allinea.com>
4474 * aix-thread.c (fill_sprs): Store the floating point registers
4475 at the correct offsets into vals.
4477 2012-03-13 Doug Evans <dje@google.com>
4479 * NEWS: Mention symbol-reloading has been deleted.
4480 * symfile.c (symbol_reloading): Delete.
4481 (show_symbol_reloading): Delete.
4482 (_initialize_symfile): Delete set/show symbol-reloading.
4484 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4485 read_in_chain until we have successfully read it in.
4486 (load_full_comp_unit): Ditto.
4487 (read_signatured_type): Add comment.
4489 2012-03-13 Chris January <chris.january@allinea.com>
4491 * stabsread.c (fix_common_block): Change type of valu argument
4494 2012-03-13 Chris January <chris.january@allinea.com>
4496 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4499 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4501 * common/linux-procfs.c (linux_proc_get_int): New, from
4502 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4504 (linux_proc_get_tgid): Only call linux_proc_get_int.
4505 (linux_proc_get_tracerpid): New.
4506 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4507 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4508 linux_proc_pid_has_state.
4509 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4510 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4511 (linux_ptrace_attach_warnings): New.
4512 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4514 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4515 (linux_nat_attach): New variables ex, buffer, message and message_s.
4516 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4518 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4520 * Makefile.in (linux-ptrace.o): New.
4521 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4523 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4524 * common/linux-ptrace.c: New file.
4525 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4526 * config/arm/linux.mh: Likewise.
4527 * config/i386/linux.mh: Likewise.
4528 * config/i386/linux64.mh: Likewise.
4529 * config/ia64/linux.mh: Likewise.
4530 * config/m32r/linux.mh: Likewise.
4531 * config/m68k/linux.mh: Likewise.
4532 * config/mips/linux.mh: Likewise.
4533 * config/pa/linux.mh: Likewise.
4534 * config/powerpc/linux.mh: Likewise.
4535 * config/powerpc/ppc64-linux.mh: Likewise.
4536 * config/powerpc/spu-linux.mh: Likewise.
4537 * config/s390/s390.mh: Likewise.
4538 * config/sparc/linux.mh: Likewise.
4539 * config/sparc/linux64.mh: Likewise.
4540 * config/xtensa/linux.mh: Likewise.
4541 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4542 common/linux-procfs.c.
4543 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4545 2012-03-13 Hui Zhu <teawater@gmail.com>
4546 Pedro Alves <palves@redhat.com>
4548 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4549 CREATE_BREAKPOINT_FLAGS_INSERTED.
4550 (create_breakpoint_sal, create_breakpoints_sal)
4551 (base_breakpoint_create_breakpoints_sal)
4552 (tracepoint_create_breakpoints_sal)
4553 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4555 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4556 (ftrace_command, strace_command): Adjust.
4557 (create_tracepoint_from_upload): Pass
4558 CREATE_BREAKPOINT_FLAGS_INSERTED.
4559 * breakpoint.h (enum breakpoint_create_flags): New.
4560 (create_breakpoint): New flags parameter.
4561 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4562 * python/py-breakpoint.c (bppy_init): Adjust.
4563 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4564 * spu-tdep.c (spu_catch_start): Adjust.
4566 2012-03-13 Pedro Alves <palves@redhat.com>
4567 Hui Zhu <teawater@gmail.com>
4568 Yao Qi <yao@codesourcery.com>
4570 * remote.c (struct remote_state): New field `starting_up'.
4571 (remote_start_remote): Set and clear it.
4572 (remote_can_download_tracepoint): If starting up, return false.
4574 2012-03-13 Yao Qi <yao@codesourcery.com>
4576 * inferior.h (struct inferior): Remove fields any_syscall_count,
4577 syscalls_counts and total_syscalls_count. Move them to new
4578 struct catch_syscall_inferior_data in breakpoint.c.
4579 * breakpoint.c: Call DEF_VEC_I(int).
4580 (struct catch_syscall_inferior_data): New.
4581 (get_catch_syscall_inferior_data): New.
4582 (catch_syscall_inferior_data_cleanup): New.
4583 (insert_catch_syscall): Update to access data in
4584 struct catch_syscall_inferior_data.
4585 (insert_catch_syscall): Likewise.
4586 (remove_catch_syscall): Likewise.
4587 (remove_catch_syscall): Likewise.
4588 (is_syscall_catchpoint_enabled): Likewise.
4589 (add_catch_command): Likewise.
4590 (_initialize_breakpoint): Register cleanup.
4591 * breakpoint.h: Removed DEF_VEC_I(int).
4592 * dwarf2loc.c: Call DEF_VEC_I(int).
4593 * mi/mi-main.c: Likewise.
4595 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4597 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4599 2012-03-12 Chris January <chris.january@allinea.com>
4601 * aix-thread.c (_initialize_aix_thread): Add prototype.
4602 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4603 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4605 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4607 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4608 include of "amd64-nat.h".
4610 2012-03-12 Tom Tromey <tromey@redhat.com>
4612 * buildsym.c (record_pending_block): Now static.
4613 * buildsym.h: (record_pending_block): Remove.
4615 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4617 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4619 2012-03-09 Tom Tromey <tromey@redhat.com>
4621 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4622 producer_is_gxx_lt_4_6>: New fields.
4623 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4625 2012-03-09 Tom Tromey <tromey@redhat.com>
4627 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4629 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4631 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4634 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4636 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4638 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4640 Fix -Wmissing-prototypes build.
4641 * arm-linux-nat.c (get_thread_id): Make it static.
4642 * xtensa-linux-nat.c (get_thread_id): Likewise.
4644 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4646 * server.c (process_point_options): If a conditional expression
4647 is found, only print a message if remote_debug is nonzero.
4649 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4651 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4652 of internal error for unknown/unsupported types.
4654 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4656 Fix CU relative vs. absolute DIE offsets.
4657 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4658 offset to offset_in_cu.
4659 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4661 (dwarf2_fetch_die_location_block): Rename parameter offset to
4662 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4664 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4666 * libunwind-frame.c: Rename to ...
4667 * ia64-libunwind-tdep.c: ... here.
4668 * libunwind-frame.h: Rename to ...
4669 * ia64-libunwind-tdep.h: ... here.
4670 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4671 ia64-libunwind-tdep.h.
4672 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4673 * README (--with-libunwind): Rename to ...
4674 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4675 * config.in: Regenerate.
4676 * configure: Regenerate.
4677 * configure.ac: New option --with-libunwind-ia64, make the
4678 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4679 Remove AC_DEFINE for HAVE_LIBUNWIND.
4680 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4681 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4682 Rename libunwind-frame in the general comment.
4683 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4684 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4685 Move forward declarations inside #ifndef. Rename libunwind-frame in
4686 the general comment.
4687 * ia64-tdep.c: Rename libunwind-frame.h #include to
4688 ia64-libunwind-tdep.h.
4689 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4690 (ia64_libunwind_descr): Rename libunwind-frame to
4691 ia64-libunwind-tdep in these function comments.
4692 * ia64-tdep.h: Rename libunwind-frame.h #include to
4693 ia64-libunwind-tdep.h.
4694 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4695 ia64-libunwind-tdep in that data comment.
4697 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4699 * libunwind-frame.h (struct frame_unwind): New declaration.
4701 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4703 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4704 "set breakpoint condition-evaluation" command.
4706 2012-03-08 Tristan Gingold <gingold@adacore.com>
4708 * sparc-stub.c: Move to stubs/
4709 * sh-stub.c: Likewise.
4710 * m68k-stub.c: Likewise.
4711 * m32r-stub.c: Likewise.
4712 * i386-stub.c: Likewise.
4714 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4716 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4717 linux_get_siginfo_type.
4719 * m68klinux-nat.c: Include "gdb_proc_service.h".
4720 (PTRACE_GET_THREAD_AREA): Define.
4721 (ps_get_thread_area): New function.
4723 2012-03-08 Yao Qi <yao@codesourcery.com>
4725 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4727 (remote_query_attached): Likewise.
4728 (remote_static_tracepoint_marker_at): Likewise.
4729 (remote_set_permissions): Likewise.
4730 (remote_detach_1, extended_remote_attach_1): Likewise.
4731 (send_g_packet, remote_vkill): Likewise.
4732 (extended_remote_disable_randomization): Likewise.
4733 (remote_add_target_side_condition): Likewise.
4734 (remote_insert_breakpoint): Likewise.
4735 (remote_remove_breakpoint): Likewise.
4736 (remote_insert_watchpoint): Likewise.
4737 (remote_remove_watchpoint): Likewise.
4738 (remote_insert_hw_breakpoint): Likewise.
4739 (remote_insert_hw_breakpoint): Likewise.
4740 (remote_remove_hw_breakpoint): Likewise.
4741 (remote_download_command_source): Likewise.
4742 (remote_download_tracepoint): Likewise.
4743 (remote_download_trace_state_variable): Likewise.
4744 (remote_disable_tracepoint): Likewise.
4745 (remote_trace_set_readonly_regions): Likewise.
4746 (remote_get_tracepoint_status): Likewise.
4747 (remote_trace_find): Likewise.
4748 (remote_get_trace_state_variable_value): Likewise.
4749 (remote_set_disconnected_tracing): Likewise.
4750 (remote_set_circular_trace_buffer): Likewise.
4751 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4752 (remote_use_agent): Likewise.
4753 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4756 2012-03-07 Pedro Alves <palves@redhat.com>
4758 * NEWS: Mention QProgramSignals.
4759 * inferior.h (update_signals_program_target): Declare.
4760 * infrun.c: (update_signals_program_target): New.
4761 (handle_command): Update the target of the new program signals
4763 * remote.c (PACKET_QProgramSignals): New enum.
4764 (last_program_signals_packet): New global.
4765 (remote_program_signals): New.
4766 (remote_start_remote): Update the target with the program signals
4768 (remote_protocol_features): Add entry for QPassSignals.
4769 (remote_open_1): Free anc clear last_program_signals_packet.
4770 (init_remote_ops): Install remote_program_signals.
4771 * target.c (update_current_target): Adjust.
4772 (target_program_signals): New.
4773 * target.h (struct target_ops) <to_program_signals>: New field.
4774 (target_program_signals): Declare.
4776 2012-03-07 Pedro Alves <palves@redhat.com>
4778 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4781 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4783 * m68klinux-nat.c (getregs_supplies): Make static.
4784 (getfpregs_supplies): Likewise.
4785 (have_ptrace_getregs): Likewise.
4787 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4789 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4790 in call to get_die_type_at_offset.
4792 2012-03-06 Stan Shebs <stan@codesourcery.com>
4794 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4795 * mi/mi-cmd-disas.c: Ditto.
4796 * mi/mi-cmd-env.c: Ditto.
4797 * mi/mi-cmd-file.c: Ditto.
4798 * mi/mi-cmd-stack.c: Ditto.
4799 * mi/mi-cmd-target.c: Ditto.
4800 * mi/mi-cmd-var.c: Ditto.
4801 * mi/mi-cmds.c: Ditto.
4802 * mi/mi-cmds.h: Ditto.
4803 * mi/mi-console.c: Ditto.
4804 * mi/mi-getopt.c: Ditto.
4805 * mi/mi-getopt.h: Ditto.
4806 * mi/mi-interp.c: Ditto.
4807 * mi/mi-main.c: Ditto.
4808 * mi/mi-out.c: Ditto.
4809 * mi/mi-parse.c: Ditto.
4810 * mi/mi-parse.h: Ditto.
4811 * mi/mi-symbol-cmds.c: Ditto.
4813 * mi/mi-getopt.h: Move mi_opt struct up.
4814 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4816 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4818 2012-03-06 Tom Tromey <tromey@redhat.com>
4820 * proc-service.c (ps_pglobal_lookup): Set the current program
4823 2012-03-06 Pedro Alves <palves@redhat.com>
4825 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4827 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4829 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4831 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4834 * common/linux-osdata.c (linux_common_core_of_thread): New function
4836 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4837 call by linux_common_core_of_thread.
4838 (linux_nat_core_of_thread_1): Remove.
4839 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4840 * linux-thread-db.c: Include linux-osdata.h.
4841 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4842 linux_common_core_of_thread.
4844 2012-03-05 Tom Tromey <tromey@redhat.com>
4846 * value.c (value_primitive_field): Don't fetch contents for
4849 2012-03-05 Tom Tromey <tromey@redhat.com>
4851 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4853 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4855 * s390-nat.c: Include "gregset.h".
4857 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4859 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4860 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4861 (libunwind_load): New variable so_error, use it for dlerror. Try to
4862 load also LIBUNWIND_SO_7.
4864 2012-03-05 Pedro Alves <palves@redhat.com>
4866 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4867 is not NULL, and remove resulting dead code.
4869 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4871 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4872 prologue to sh_analyze_prologue.
4873 (sh_analyze_prologue): Make better use of such an upper limit, and
4874 generally be more cautious about accessing memory.
4876 2012-03-05 Tom Tromey <tromey@redhat.com>
4878 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4879 _initialize_ia64_hpux_tdep.
4881 2012-03-05 Pedro Alves <palves@redhat.com>
4885 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4886 the register state is clear, supply explicit zero, instead of
4887 marking the register unavailable.
4889 2012-03-05 Tristan Gingold <gingold@adacore.com>
4891 * NEWS: Mention OpenVMS ia64 new target.
4893 2012-03-05 Tristan Gingold <gingold@adacore.com>
4895 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4896 (ia64_unw_accessors, ia64_unw_rse_accessors)
4897 (ia64_libunwind_descr): Declare.
4898 * ia64-vms-tdep.c: New file.
4899 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4900 (ia64_libunwind_descr): Make them public.
4901 * configure.tgt: Add ia64-*-*vms*.
4902 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4903 (ALLDEPFILES): Add ia64-vms-tdep.c
4905 2012-03-05 Tristan Gingold <gingold@adacore.com>
4907 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4908 * remote.c (PACKET_qXfer_uib): New enum value.
4909 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4910 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4911 (_initialize_remote): Call add_packet_config_cmd for
4914 2012-03-05 Tristan Gingold <gingold@adacore.com>
4916 * osabi.c (gdb_osabi_names): Add OpenVMS.
4917 (generic_elf_osabi_sniffer): Likewise.
4918 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4920 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4922 Removed unused code.
4923 * libunwind-frame.c (libunwind_frame_unwind)
4924 (libunwind_frame_base_address): Remove.
4925 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4927 2012-03-04 Yao Qi <yao@codesourcery.com>
4929 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4930 remove trailing new line.
4931 (agent_run_command, agent_run_command): Add _ markup.
4932 (agent_capability_check): Likewise.
4934 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4936 * breakpoint.c (set_condition_evaluation_mode): Set
4937 CONDITION_EVALUATION_MODE unconditionally.
4939 2012-03-03 Yao Qi <yao@codesourcery.com>
4941 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4942 * common/agent.h: Update declaration.
4943 * inf-child.c (inf_child_use_agent): New.
4944 (inf_child_can_use_agent): New.
4945 (inf_child_target): Initialize fields `to_use_agent'
4946 and `to_can_use_agent'.
4947 * agent.c (agent_new_objfile): New.
4948 (_initialize_agent): Add agent_new_objfile to new_objfile
4951 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4953 (linux_target_install_ops): Initialize field
4954 `to_static_tracepoint_markers_by_strid'.
4955 * remote.c (free_current_marker): Move it to ...
4956 * tracepoint.c (free_current_marker): ... here. New.
4957 (cleanup_target_stop): New.
4958 * tracepoint.h: Declare free_current_marker.
4959 * NEWS: Add one entry about `info static-tracepoint-marker'.
4961 2012-03-03 Yao Qi <yao@codesourcery.com>
4963 * common/agent.c (agent_loaded_p): New.
4964 (agent_look_up_symbols): New global.
4965 * common/agent.h: Declare agent_loaded_p.
4967 2012-03-03 Yao Qi <yao@codesourcery.com>
4969 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4970 (agent_capability_check, agent_capability_invalidate): New.
4971 (symbol_list): New array element.
4972 * common/agent.h (enum agent_capa): New.
4973 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4975 2012-03-03 Yao Qi <yao@codesourcery.com>
4977 * target.h (struct target_ops) <to_use_agent>: New field.
4978 (struct target_ops) <to_can_use_agent>: New field.
4979 (target_use_agent, target_can_use_agent): New macro.
4980 * target.c (update_current_target): Update.
4981 * remote.c: New enum `PACKET_QAgent'.
4982 (remote_protocol_features): Add a new element.
4983 (remote_use_agent, remote_can_use_agent): New.
4984 (init_remote_ops): Initialize field `can_use_agent' with
4985 remote_can_use_agent. Intiailize field `use_agent' with
4987 * common/agent.c (use_agent): New global.
4988 * common/agent.h: Declare it.
4989 * tracepoint.c (info_static_tracepoint_markers_command): Add
4991 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4992 (COMMON_OBS): Add common/agent.o and agent.o
4993 (common-agent.o): New rule.
4996 2012-03-03 Yao Qi <yao@codesourcery.com>
4998 * common/agent.c: New.
4999 * common/agent.h: New.
5000 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5002 * configure, configh.in: Regenerated.
5004 2012-03-02 Kevin Buettner <kevinb@redhat.com>
5006 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5007 unless it exists for this architecture.
5009 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5011 * language.h (struct language_defn): New "method" la_read_var_value.
5012 * findvar.c: #include "language.h".
5013 (default_read_var_value): Renames read_var_value. Rewrite
5014 function description.
5015 (read_var_value): New function.
5016 * value.h (default_read_var_value): Add prototype.
5017 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5019 (ada_language_defn): Add entry for la_read_var_value.
5020 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5021 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5022 language_defn structures to add entry for new la_read_var_value
5025 2012-03-02 Tom Tromey <tromey@redhat.com>
5026 Pedro Alves <palves@redhat.com>
5028 PR breakpoints/13776:
5029 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5031 (delete_longjmp_breakpoint_at_next_stop): New.
5032 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5033 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5034 before deleting the inferior. Add comments.
5035 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5036 breakpoints immediately, but only on next stop. Move that code
5037 next to where we mark other breakpoints for deletion.
5039 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5041 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5043 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5046 2012-03-02 Pedro Alves <palves@redhat.com>
5048 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5050 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5052 Fix -Wmissing-prototypes build.
5053 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5054 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5055 (gdbsim_has_memory): Likewise.
5057 2012-03-02 Yao Qi <yao@codesourcery.com>
5059 Fix -Wmissing-prototypes build.
5060 * charset.c (phony_iconv_open): Make static.
5061 (phony_iconv_close, phony_iconv): Likewise.
5062 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5063 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5065 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5066 * ser-mingw.c (create_select_thread): Make static.
5067 * windows-termcap.c (tgetent): New prototype.
5068 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5070 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5072 Fix -Wmissing-prototypes build.
5073 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5074 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5075 (_initialize_loadable): New prototypes.
5077 2012-03-02 Doug Evans <dje@google.com>
5079 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5080 abbrev table, read_comp_unit will do it.
5082 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5084 Fix -Wmissing-prototypes build.
5085 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5086 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5087 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5088 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5089 (_initialize_arm_symbian_tdep): New prototype.
5090 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5091 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5092 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5094 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5095 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5097 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5098 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5099 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5101 * moxie-tdep.c (moxie_process_record): Likewise.
5102 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5103 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5104 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5105 (_initialize_rl78_tdep): New prototype.
5106 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5107 (_initialize_rx_tdep): New prototype.
5108 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5109 (_initialize_darwin_solib): New prototype.
5110 * solib-spu.c: Include solib-spu.h.
5111 (_initialize_spu_solib): New prototype.
5112 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5113 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5114 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5115 (tic6x_software_single_step): Make it static.
5116 (_initialize_tic6x_tdep): New prototype.
5118 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5120 Fix -Wmissing-prototypes build.
5121 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5122 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5124 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5126 Fix -Wmissing-prototypes build.
5127 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5128 (frv_have_stopped_data_address): Remove.
5130 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5132 Fix -Wmissing-prototypes build.
5133 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5134 * sh-tdep.c: Include sh64-tdep.h.
5135 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5136 * sh64-tdep.c: Include sh64-tdep.h.
5137 * sh64-tdep.h: New file.
5139 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5141 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5143 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5145 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5146 sp_regnum once the gdbarch_init_osabi hook has been called.
5148 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5150 * mips-tdep.c (mips32_bc1_pc): New function.
5151 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5152 BPOSGE32 and BPOSGE64 instructions.
5153 (deal_with_atomic_sequence): Likewise.
5154 (mips32_instruction_has_delay_slot): Likewise.
5156 2012-03-01 Maciej W. Rozycki <macro@mips.com>
5157 Chris Dearman <chris@mips.com>
5158 Maciej W. Rozycki <macro@codesourcery.com>
5159 Joseph Myers <joseph@codesourcery.com>
5161 * features/mips-dsp.xml: New file.
5162 * features/mips64-dsp.xml: New file.
5163 * features/mips-dsp-linux.xml: New file.
5164 * features/mips64-dsp-linux.xml: New file.
5165 * features/Makefile (WHICH): Add mips-dsp-linux and
5167 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5168 * features/mips-dsp-linux.c: New file.
5169 * features/mips64-dsp-linux.c: New file.
5170 * regformats/mips-dsp-linux.dat: New file.
5171 * regformats/mips64-dsp-linux.dat: New file.
5172 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5174 (mips64_linux_register_addr): Likewise.
5175 (mips64_linux_regsets_fetch_registers): Likewise.
5176 (mips64_linux_regsets_store_registers): Likewise.
5177 (mips64_linux_fetch_registers): Update call to
5178 mips64_linux_regsets_fetch_registers.
5179 (mips64_linux_store_registers): Update call to
5180 mips64_linux_regsets_store_registers.
5181 (mips_linux_read_description): Probe for DSP registers.
5182 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5183 and initialize_tdesc_mips64_dsp_linux.
5184 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5185 Remove padding of no longer used embedded register slots.
5186 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5187 (MIPS_RESTART_REGNUM): Redefine enum value.
5188 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5190 (mips_tx39_reg_names): Likewise.
5191 (mips_linux_reg_names): New array of register names for Linux
5193 (mips_register_name): Check for a null pointer in
5194 mips_processor_reg_names and return an empty string.
5195 (mips_register_type): Exclude embedded registers for the IRIX
5197 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5198 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5200 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5201 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5202 (mips_gdbarch_init): Likewise. Initialize internal register
5203 indices for the Linux ABI. Use dynamic numbers to refer to
5204 registers, as applicable, while parsing the target description.
5205 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5207 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5209 * frame.h (read_frame_register_unsigned): Fix typo in function
5212 2012-03-01 Pedro Alves <palves@redhat.com>
5214 * jit-reader.in [!__cplusplus]
5215 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5217 2012-03-01 Pedro Alves <palves@redhat.com>
5219 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5220 * configure: Regenerate.
5222 2012-03-01 Pedro Alves <palves@redhat.com>
5224 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5225 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5226 (ftrace_command, strace_command): Make static.
5227 * d-lang.c (_initialize_d_language): Declare.
5228 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5229 * dwarf2loc.c (_initialize_dwarf2loc):
5230 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5231 * exec.c (exec_get_section_table): Make static.
5232 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5233 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5234 * inferior.c (remove_inferior_command, add_inferior_command)
5235 (clone_inferior_command): Make static.
5236 * linux-nat.c (linux_nat_thread_address_space)
5237 (linux_nat_core_of_thread): Make static.
5238 * linux-tdep.c (_initialize_linux_tdep): Declare.
5239 * objc-lang.c (_initialize_objc_lang): Declare.
5240 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5242 (_initialize_opencl_language): Declare.
5243 * record.c (_initialize_record): Declare.
5244 * remote.c (demand_private_info, remote_get_tib_address)
5245 (remote_supports_cond_tracepoints)
5246 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5248 * skip.c (_initialize_step_skip): Declare.
5249 * symtab.c (skip_prologue_using_lineinfo): Make static.
5250 * tracepoint.c (delete_trace_state_variable)
5251 (trace_variable_command, delete_trace_variable_command)
5252 (get_uploaded_tsv, find_matching_tracepoint_location)
5253 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5255 * value.c (pack_unsigned_long): Make static.
5256 * varobj.c (varobj_ensure_python_env): Make static.
5257 * windows-tdep.c (_initialize_windows_tdep): Declare.
5258 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5260 2012-03-01 Pedro Alves <palves@redhat.com>
5262 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5264 (linux_init_abi): Install it as has_shared_address_space gdbarch
5267 2012-03-01 Pedro Alves <palves@redhat.com>
5269 * observer.c (observer_test_first_notification_function)
5270 (observer_test_second_notification_function)
5271 (observer_test_third_notification_function): Add declarations.
5273 2012-03-01 Pedro Alves <palves@redhat.com>
5275 * common/signals.c (default_target_signal_to_host)
5276 (default_target_signal_from_host): Move ...
5277 * arch-utils.c: ... here.
5278 * arch-utils.h (default_target_signal_to_host)
5279 (default_target_signal_from_host): Declare.
5281 * common/signals.c (target_signal_from_command): Move ...
5282 * infrun.c: ... here.
5283 * inferior.h (target_signal_from_command): Declare.
5284 * target.h (target_signal_from_command)
5285 (default_target_signal_from_host, default_target_signal_to_host):
5286 Delete declarations.
5288 * common/signals.c (_initialize_signals): Delete.
5290 2012-03-01 Pedro Alves <palves@redhat.com>
5292 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5293 both __cplusplus and !__cplusplus.
5295 2012-03-01 Pedro Alves <palves@redhat.com>
5297 * psymtab.c (find_and_open_source): Delete declaration.
5298 * source.c (find_and_open_source): Move comment ...
5299 * source.h (find_and_open_source): ... to this new declaration.
5301 2012-03-01 Pedro Alves <palves@redhat.com>
5303 * inline-frame.c: Include inline-frame.h.
5305 2012-03-01 Pedro Alves <palves@redhat.com>
5307 * tui/tui-data.c (set_gen_win_origin): Delete.
5308 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5309 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5311 2012-03-01 Pedro Alves <palves@redhat.com>
5313 * remote.c (encode_actions): Delete declaration.
5314 * tracepoint.c (encode_actions): Make extern.
5315 * tracepoint.h (encode_actions): Declare.
5317 2012-03-01 Pedro Alves <palves@redhat.com>
5319 * python/py-breakpoint.c: Include python.h.
5320 * python/py-continueevent.c (create_continue_event_object): Make
5322 * python/py-lazy-string.c (stpy_get_type): Make static.
5323 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5325 * python/py-utils.c (unicode_to_target_python_string): Make
5327 * python/py-value.c: Include python.h.
5329 2012-03-01 Pedro Alves <palves@redhat.com>
5331 * inferior.c (delete_threads_of_inferior): Delete.
5333 2012-03-01 Pedro Alves <palves@redhat.com>
5335 Import fallback definitions from glibc.
5337 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5338 ps_prochandle): Forward declare.
5339 (ps_err_e): Use glibc's comments.
5340 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5341 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5342 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5343 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5344 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5345 (struct ps_prochandle): Adjust comment.
5347 2012-03-01 Pedro Alves <palves@redhat.com>
5349 * ada-lang.c (ada_modulus_from_name): Delete.
5350 * ada-lex.l (lexer_init): Make static.
5352 2012-03-01 Pedro Alves <palves@redhat.com>
5356 * frame.c (read_frame_register_unsigned): New.
5357 * frame.h (read_frame_register_unsigned): Declare.
5358 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5360 (print_i387_control_word): New parameter `control_p'. Handle it.
5361 (i387_print_float_info): Handle unavailable float registers.
5363 2012-03-01 Keith Seitz <keiths@redhat.com>
5365 * linespec.c (decode_line_2): Sort the list of methods
5366 alphabetically before presenting the user with a selection
5369 2012-03-01 Doug Evans <dje@google.com>
5371 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5373 (dwarf2_read_abbrevs): Remove corresponding initialization.
5375 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5377 * NEWS: Mention new python command class gdb.COMMAND_USER.
5378 * cli/cli-cmds.c (show_user): Print error when used on a python
5380 (init_cli_cmds): Update documentation strings for "show user" and
5381 "set/show max-user-call-depth" to clarify that it does not apply to
5383 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5385 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5387 * top.c (execute_command): Only execute a user-defined command as a
5388 legacy macro if c->user_commands is set.
5390 2012-03-01 Tom Tromey <tromey@redhat.com>
5392 * valprint.h (struct generic_val_print_decorations): New.
5393 (generic_val_print): Declare.
5394 * valprint.c (generic_val_print): New function.
5395 * p-valprint.c (p_decorations): New global.
5396 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5397 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5398 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5399 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5400 * m2-valprint.c (m2_decorations): New global.
5401 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5402 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5403 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5404 TYPE_CODE_ERROR>: Call generic_val_print.
5405 * f-valprint.c (f_decorations): New global.
5406 (f_val_print): Use print_function_pointer_address.
5407 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5408 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5409 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5411 * c-valprint.c (c_decorations): New global.
5412 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5413 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5414 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5415 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5416 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5417 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5420 2012-03-01 Tom Tromey <tromey@redhat.com>
5422 * valprint.c (val_print): Update.
5423 * p-valprint (pascal_val_print): Return void.
5424 * p-lang.h (pascal_val_print): Return void.
5425 * m2-valprint.c (m2_val_print): Return void.
5426 * m2-lang.h (m2_val_print): Return void.
5427 * language.h (struct language_defn) <la_val_print>: Return void.
5428 * language.c (unk_lang_val_print): Return void.
5429 * jv-valprint.c (java_val_print): Return void.
5430 * jv-lang.h (java_val_print): Return void.
5431 * f-valprint.c (f_val_print): Return void.
5432 * f-lang.h (f_val_print): Return void.
5433 * d-valprint.c (d_val_print): Return void.
5434 (dynamic_array_type): Update.
5435 * d-lang.h (d_val_print): Return void.
5436 * c-valprint.c (c_val_print): Return void.
5437 * c-lang.h (c_val_print): Return void.
5438 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5440 * ada-lang.h (ada_val_print): Return void.
5442 2012-03-01 Tom Tromey <tromey@redhat.com>
5444 * value.h (val_print): Return void.
5445 * valprint.c (val_print): Return void.
5447 2012-03-01 Tom Tromey <tromey@redhat.com>
5449 * value.h (common_val_print): Return void.
5450 * valprint.c (common_val_print): Return void.
5452 2012-03-01 Tom Tromey <tromey@redhat.com>
5454 * value.h (value_print): Return void.
5455 * valprint.c (value_print): Return void.
5456 * p-valprint.c (pascal_value_print): Return void.
5457 * p-lang.h (pascal_value_print): Return void.
5458 * language.h (struct language_defn) <la_value_print>: Return
5460 * language.c (unk_lang_value_print): Return void.
5461 * jv-valprint.c (java_value_print): Return void.
5462 * jv-lang.h (java_value_print): Return void.
5463 * f-valprint.c (c_value_print): Don't declare.
5465 * c-valprint.c (c_value_print): Return void.
5466 * c-lang.h (c_value_print): Return void.
5467 * ada-valprint.c (ada_value_print): Return void.
5468 * ada-lang.h (ada_value_print): Return void.
5470 2012-03-01 Tom Tromey <tromey@redhat.com>
5472 * value.c (value_primitive_field): Handle virtual base classes.
5474 2012-03-01 Tom Tromey <tromey@redhat.com>
5476 * gdbtypes.h (struct vbase): Remove.
5478 2012-03-01 Tom Tromey <tromey@redhat.com>
5480 * c-valprint.c (print_function_pointer_address): Move...
5481 * valprint.c: ... here. Make non-static.
5482 * m2-valprint.c (print_function_pointer_address): Remove.
5483 * valprint.h (print_function_pointer_address): Declare.
5485 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5487 * NEWS: Document the fact that one can provide a condition when
5488 creating an Ada exception catchpoint.
5490 2012-03-01 Tom Tromey <tromey@redhat.com>
5492 * valprint.c (val_print_type_code_flags): Fix placement of
5495 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5497 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5498 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5499 environment variable before calling update-copyright.
5501 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5503 * gnulib/extra/update-copyright: Update to the latest from
5504 gnulib's git repository.
5505 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5506 variable to 2 instead of 1.
5508 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5510 * varobj.c (c_value_of_variable): Remove dead code.
5512 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5514 * ada-lex.p (processId): Do not modify already encoded IDs.
5515 Update function documentation.
5517 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5519 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5520 "name" with "struct symbol *name_sym".
5521 * ada-exp.y (write_var_or_type): Update call to
5522 ada_find_renaming_symbol.
5523 "name" with "struct symbol *name_sym". Adjust Implementation
5524 accordingly. Adjust the function documentation.
5526 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5528 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5529 * ada-lang.c (ada_find_any_type): Add advance declaration.
5530 Make static. Replace ada_find_any_symbol by
5531 ada_find_any_type_symbol.
5532 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5533 Improve function description. Make static.
5534 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5535 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5537 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5539 * ada-lang.c (struct tag_args): Delete.
5540 (ada_get_tsd_type): Function body moved up in source file.
5541 (ada_tag_name_1, ada_tag_name_2): Delete.
5542 (ada_get_tsd_from_tag): New function.
5543 (ada_tag_name_from_tsd): New function.
5544 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5545 to determine the tag name.
5547 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5549 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5551 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5554 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5556 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5558 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5560 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5563 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5565 * ada-lang.c (constrained_packed_array_type): If there is a
5566 parallel XA type, use it to determine the array index type.
5568 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5570 * ada-valprint.c (ada_val_print_1): If our value is a reference
5571 to an array descriptor, dereference it before converting it
5574 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5576 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5577 creating fixed value.
5578 (ada_value_ind, ada_coerce_ref, assign_component)
5579 (ada_evaluate_subexp): Remove call to unwrap_value before
5580 call to ada_to_fixed_value.
5582 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5584 * ada-lang.c (to_fixed_array_type): Set result's type name.
5586 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5588 * ada-lang.c (catch_ada_exception_command_split): Add new
5589 argument cond_string. Add support for condition at end of
5590 "catch exception" commands.
5591 (ada_decode_exception_location): Add new argument cond_string.
5592 Update call to catch_ada_exception_command_split.
5593 (create_ada_exception_catchpoint): Add new argument cond_string.
5594 Set the breakpoint condition if needed.
5595 (catch_ada_exception_command): Update call to
5596 ada_decode_exception_location.
5597 (ada_decode_assert_location): Add function documentation.
5598 Add support for condition at end of "catch assert" command.
5599 (catch_assert_command): Update calls to ada_decode_assert_location
5600 and create_ada_exception_catchpoint.
5602 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5604 Fix disp-step-syscall.exp: fork: single step over fork.
5605 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5606 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5607 comment, change parameters gdbarch and ptid to regcache. Remove
5608 parameter regcache, initialize gdbarch from regcache here.
5609 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5611 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5613 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5614 'syscall'. Make the 'int' check more strict.
5616 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5618 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5619 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5620 (i386_linux_intx80_sysenter_syscall_record): ... here.
5621 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5622 Use the renamed function name.
5624 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5626 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5627 * breakpoint.c (until_break_command): Likewise.
5628 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5629 * infcall.c (call_function_by_hand): Likewise.
5630 * infcmd.c (finish_forward): Likewise.
5631 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5633 2012-02-28 Tristan Gingold <gingold@adacore.com>
5635 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5636 avoid variable assignments inside condition.
5638 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5640 Fix static analysis issue found by cppcheck.
5641 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5642 uninitialized BUF for size 2.
5644 2012-02-27 Chris Dearman <chris@mips.com>
5645 Nathan Froyd <froydnj@codesourcery.com>
5646 Maciej W. Rozycki <macro@codesourcery.com>
5648 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5649 (mips16_instruction_has_delay_slot): Likewise.
5650 (mips_segment_boundary): Likewise.
5651 (mips_adjust_breakpoint_address): Likewise.
5652 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5654 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5655 Maciej W. Rozycki <macro@codesourcery.com>
5657 * infrun.c (handle_inferior_event): Don't proceed through
5658 shared library trampolines if stepping at the machine
5661 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5663 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5666 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5668 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5669 (sh_stub_unwind_sniffer): New functions.
5670 (sh_stub_unwind): New variable.
5671 (sh_gdbarch_init): Wire everything.
5673 2012-02-27 Pedro Alves <palves@redhat.com>
5675 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5676 (linux_nat_post_attach_wait): Adjust to use
5677 linux_proc_pid_is_stopped.
5678 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5679 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5680 based on pid_is_stopped from both linux-nat.c and
5681 gdbserver/linux-low.c, and renamed.
5683 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5685 * remote.c (remote_watchpoint_addr_within_range): New function.
5686 (init_remote_ops): Use it.
5688 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5690 * target.h (target_watchpoint_addr_within_range): Document macro.
5692 2012-02-24 Pedro Alves <palves@redhat.com>
5694 * stack.c (set_last_displayed_sal): Issue internal_error instead
5695 of warning, and issue it after clearing the last displayed sal.
5697 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5698 Pedro Alves <palves@redhat.com>
5700 * breakpoint.c (until_break_command): Install breakpoints after
5701 all frame manipulations.
5703 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5705 * remote.c (remote_supports_cond_breakpoints): New forward
5707 (remote_add_target_side_condition): New function.
5708 (remote_insert_breakpoint): Add target-side breakpoint
5709 conditional if supported.
5710 (remote_insert_hw_breakpoint): Likewise.
5711 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5714 * target.c (update_current_target): Inherit
5715 to_supports_evaluation_of_breakpoint_conditions.
5716 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5718 * target.h (struct target_ops)
5719 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5720 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5722 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5723 (condition_evaluation_both, condition_evaluation_auto,
5724 condition_evaluation_host, condition_evaluation_target,
5725 condition_evaluation_enums, condition_evaluation_mode_1,
5726 condition_evaluation_mode): New static globals.
5727 (translate_condition_evaluation_mode): New function.
5728 (breakpoint_condition_evaluation_mode): New function.
5729 (gdb_evaluates_breakpoint_condition_p): New function.
5730 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5731 (mark_breakpoint_modified): New function.
5732 (mark_breakpoint_location_modified): New function.
5733 (set_condition_evaluation_mode): New function.
5734 (show_condition_evaluation_mode): New function.
5735 (bp_location_compare_addrs): New function.
5736 (get_first_location_gte_addr): New helper function.
5737 (set_breakpoint_condition): Free condition bytecode if locations
5738 has become unconditional. Call mark_breakpoint_modified (...).
5739 (condition_command): Call update_global_location_list (1) for
5741 (breakpoint_xfer_memory): Use is_breakpoint (...).
5742 (is_breakpoint): New function.
5743 (parse_cond_to_aexpr): New function.
5744 (build_target_condition_list): New function.
5745 (insert_bp_location): Handle target-side conditional
5746 breakpoints and call build_target_condition_list (...).
5747 (update_inserted_breakpoint_locations): New function.
5748 (insert_breakpoint_locations): Handle target-side conditional
5750 (bpstat_check_breakpoint_conditions): Add comment.
5751 (bp_condition_evaluator): New function.
5752 (bp_location_condition_evaluator): New function.
5753 (print_breakpoint_location): Print information on where the condition
5755 (print_one_breakpoint_location): Likewise.
5756 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5757 breakpoint location.
5758 (force_breakpoint_reinsertion): New functions.
5759 (update_global_location_list): Handle target-side breakpoint
5761 Reinsert locations that are already inserted if conditions have
5763 (bp_location_dtor): Free agent expression bytecode.
5764 (disable_breakpoint): Call mark_breakpoint_modified (...).
5765 Call update_global_location_list (...) with parameter 1 for breakpoints.
5766 (disable_command): Call mark_breakpoint_location_modified (...).
5767 Call update_global_location_list (...) with parameter 1 for breakpoints.
5768 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5769 (enable_command): mark_breakpoint_location_modified (...).
5770 (_initialize_breakpoint): Update documentation and add
5771 condition-evaluation breakpoint subcommand.
5773 * breakpoint.h: Include ax.h.
5774 (condition_list): New data structure.
5775 (condition_status): New enum.
5776 (bp_target_info) <cond_list>: New field.
5777 (bp_location) <condition_changed, cond_bytecode>: New fields.
5778 (is_breakpoint): New prototype.
5780 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5782 * remote.c (remote_state) <cond_breakpoints>: New field.
5783 (PACKET_ConditionalBreakpoints): New enum.
5784 (remote_cond_breakpoint_feature): New function.
5785 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5786 (remote_supports_cond_breakpoints): New function.
5787 (_initialize_remote): Add new packet configuration for
5788 target-side conditional breakpoints.
5790 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5792 * NEWS: Mention target-side conditional breakpoint support,
5793 new condition-evaluation breakpoint subcommand and remote
5796 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5798 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5801 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5803 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5804 (after_prologue): Remove.
5806 2012-02-23 Tom Tromey <tromey@redhat.com>
5808 * jv-valprint.c (java_val_print): Remove dead code.
5810 2012-02-23 Tristan Gingold <gingold@adacore.com>
5812 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5813 known_tasks_element and known_tasks_length fields.
5814 (read_known_tasks_array): Change argument type. Use pointer type
5815 and number of elements from DATA. Adjust.
5816 (read_known_tasks_list): Likewise.
5817 (get_known_tasks_addr): Remove.
5818 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5819 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5820 type and array length. Merge former get_known_tasks_addr code.
5822 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5825 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5826 it after set_momentary_breakpoint.
5828 2012-02-22 Sterling Augustine <saugustine@google.com>
5831 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5833 2012-02-22 Gary Benson <gbenson@redhat.com>
5835 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5836 (find_slot_in_mapped_hash): Likewise.
5838 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5841 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5842 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5843 * configure: Regenerate.
5845 2012-02-21 Tristan Gingold <gingold@adacore.com>
5846 Pedro Alves <palves@redhat.com>
5848 * ia64-tdep.c: Do not include libunwind-ia64.h.
5849 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5850 Include libunwind-ia64.h instead of libunwind.h.
5851 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5852 for libunwind.h existence.
5853 * configure, config.in: Regenerate.
5855 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5857 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5858 instead of value_rtti_target_type.
5859 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5860 instead of value_rtti_target_type.
5861 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5862 value_rtti_target_type.
5863 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5864 (value_rtti_target_type): Rename to ...
5865 (value_rtti_indirect_type): ... here and make it indirect. Update
5867 * value.c (readjust_indirect_value_type): New function.
5868 (coerce_ref): Support for enclosing type setting for references
5869 with readjust_indirect_value_type.
5870 * value.h (readjust_value_type): New declaration.
5871 (value_rtti_target_type): Rename to ...
5872 (value_rtti_indirect_type): ... here.
5874 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5876 * MAINTAINERS (Write After Approval): Add myself to the list.
5878 2012-02-20 Doug Evans <dje@google.com>
5880 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5881 Rename objfile_p_char parameter to objfilep.
5882 (build_objfile_section_table): Result is now void. All callers
5884 * objfiles.h (struct objfile): Tweak comments, whitespace.
5885 (build_objfile_section_table): Update.
5887 * elfread.c (elf_symfile_segments): Fix warning text.
5889 2012-02-20 Tom Tromey <tromey@redhat.com>
5892 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5893 particular set of file names once.
5894 (dw2_map_symbol_filenames): Likewise.
5896 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5899 * main.c (write_files): Remove the declaration.
5900 (external_editor_command): Move the declaration ...
5901 [GDBTK] (external_editor_command): ... here. Fix the comment.
5903 2012-02-20 Tom Tromey <tromey@redhat.com>
5905 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5908 2012-02-20 Tristan Gingold <gingold@adacore.com>
5910 * darwin-nat.h (enum darwin_msg_state): Add comments.
5912 2012-02-20 Tristan Gingold <gingold@adacore.com>
5914 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5917 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5919 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5920 between function description and implementation.
5922 2012-02-17 Tom Tromey <tromey@redhat.com>
5925 * python/py-event.c (event_object_getset): New global.
5926 (event_object_type): Reference it.
5927 * python/py-type.c (field_object_getset): New global.
5928 (field_object_type): Reference it.
5929 * python/python-internal.h (gdb_py_generic_dict): Declare.
5930 * python/py-utils.c (gdb_py_generic_dict): New function.
5932 2012-02-17 Tristan Gingold <gingold@adacore.com>
5934 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5936 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5938 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5939 TYPE_CALLING_CONVENTION annotation.
5941 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5943 * MAINTAINERS: Add rx to target ISA section.
5944 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5945 (ALLDEPFILES): Add rx-tdep.c.
5947 2012-02-16 Tom Tromey <tromey@redhat.com>
5949 * symfile.c (symbol_file_add_main_1): Use inferior's
5951 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5952 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5954 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5956 (follow_exec): Use inferior's symfile_flags.
5957 * inferior.h (struct inferior) <symfile_flags>: New field.
5959 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5962 * remote-sim.c (gdbsim_create_inferior): Call error() when
5963 sim_create_inferior() fails.
5965 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5967 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5969 2012-02-16 Tom Tromey <tromey@redhat.com>
5972 * thread.c (struct current_thread_cleanup) <was_removable>: New
5974 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5975 (make_cleanup_restore_current_thread): Initialize new field.
5977 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5979 * MAINTAINERS: Add rl78 to target ISA section.
5980 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5981 (ALLDEPFILES): Add rl78-tdep.c.
5982 * NEWS: Mention rl78 as a new target.
5984 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5986 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5988 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5990 2012-02-15 Tom Tromey <tromey@redhat.com>
5993 * infcmd.c (registers_info): Print just the current register's
5996 2012-02-15 Tom Tromey <tromey@redhat.com>
5998 * python/py-symbol.c (sympy_value): Use _().
6000 2012-02-15 Pedro Alves <palves@redhat.com>
6002 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6003 output to be like native targets'.
6004 (remote_pid_to_str): Special case the null ptid.
6006 2012-02-14 Stan Shebs <stan@codesourcery.com>
6008 * NEWS: Mention enable count command.
6009 * breakpoint.h (struct breakpoint): New field enable_count.
6010 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6011 (enable_breakpoint): Add arg to call.
6012 (struct disp_data): New struct.
6013 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6014 (do_map_enable_once_breakpoint): Create a struct and pass it.
6015 (do_map_enable_delete_breakpoint): Ditto.
6016 (do_map_enable_count_breakpoint): New function.
6017 (enable_count_command): New function.
6018 (bpstat_stop_status): Decrement enable_count.
6019 (print_one_breakpoint_location): Report enable count.
6020 (_initialize_breakpoint): Add enable count command.
6022 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6024 * rl78-tdep.c (reggroups.h): Include.
6025 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6026 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6027 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6028 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6029 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6030 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6031 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6032 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6033 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6034 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6035 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6036 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6037 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6038 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6039 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6040 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6041 beginning of register list.
6042 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6043 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6044 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6045 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6046 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6047 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6048 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6049 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6050 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6051 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6052 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6053 the pseudo registers. Rearrange other pseudo registers too so
6054 that the bank registers appear at the end.
6055 (rl78_register_type): Account for the fact that the byte sized
6056 bank registers are now pseudo-registers.
6057 (rl78_register_name): Rearrange the register name array. Make
6058 initial set of raw banked registers inaccessible.
6059 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6060 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6061 case for copying bytes back and forth between raw and pseudo
6062 versions of the banked registers. Update other cases to reflect
6064 (rl78_return_value): Update to account for changed names of
6066 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6067 rl78_register_sim_regno().
6069 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6071 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6072 the name parameter being passed to find_pc_partial_function().
6074 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6076 * MAINTAINERS: Step down from being ia64 target maintainer.
6078 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6080 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6081 compilation warning.
6083 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6085 Fix crash on loaded shlibs without loaded exec_bfd.
6086 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6087 (set_section_command): Replace exec_bfd by p->bfd.
6089 2012-02-10 Tom Tromey <tromey@redhat.com>
6091 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6092 when we have a C++ qualified name.
6094 2012-02-10 Pedro Alves <palves@redhat.com>
6096 * inferior.c (inferior_pid_to_str): New.
6097 (print_inferior, inferior_command): Use it.
6099 2012-02-10 Pedro Alves <palves@redhat.com>
6101 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6103 * configure: Regenerate.
6105 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6107 * linespec.c (decode_line_internal): Fix comment correctness.
6109 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
6112 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6113 * amd64bsd-nat.c: Add support for debug registers (adapted from
6115 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6116 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6117 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6118 (amd64bsd_dr_get_control): New functions.
6119 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6120 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6121 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6122 watchpoints initialization.
6123 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6125 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6127 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6129 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6131 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6133 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6135 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6137 * language.h (symbol_name_cmp_ftype): Renames
6138 symbol_name_match_p_ftype.
6139 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6140 la_get_symbol_name_match_p.
6141 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6142 ada_get_symbol_name_match_p. Update comment.
6143 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6144 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6145 Renames symbol_name_match_p. Update field type.
6146 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6147 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6148 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6149 "la_get_symbol_name_cmp" in comments.
6150 * language.c: Likewise.
6152 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6154 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6156 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6157 (amd64_sol2_gregset32_reg_offs): Likewise.
6159 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6161 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6162 of the returned BFD is allocated by GDB.
6164 2012-02-07 Tom Tromey <tromey@redhat.com>
6167 * python/python-internal.h (frame_object_type): Declare.
6168 * python/py-symbol.c (sympy_needs_frame): New function.
6169 (sympy_value): New function.
6170 (symbol_object_getset): Add "needs_frame".
6171 (symbol_object_methods): Add "value".
6172 * python/py-frame.c (frame_object_type): No longer static.
6174 2012-02-07 Tom Tromey <tromey@redhat.com>
6177 * python/py-symbol.c (sympy_line): New function.
6178 (symbol_object_getset): Add "line".
6180 2012-02-07 Tom Tromey <tromey@redhat.com>
6182 * charset.c (find_charset_names): Check 'in' against NULL.
6184 2012-02-06 Doug Evans <dje@google.com>
6186 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6187 and fields.name members from char * to const char *. All uses updated.
6188 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6189 from char * to const char *. All uses updated.
6190 (type_name_no_tag): Update.
6191 (lookup_unsigned_typename, lookup_signed_typename): Update.
6192 * gdbtypes.c (type_name_no_tag): Change result type
6193 from char * to const char *. All callers updated.
6194 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6195 name parameter from char * to const char *.
6196 * symtab.h (struct cplus_specific): Change type of demangled_name
6197 member from char * to const char *. All uses updated.
6198 (struct general_symbol_info): Change type of name and
6199 mangled_lang.demangled_name members from char * to const char *.
6201 (symbol_get_demangled_name, symbol_natural_name): Update.
6202 (symbol_demangled_name, symbol_search_name): Update.
6203 * symtab.c (symbol_get_demangled_name): Change result type
6204 from char * to const char *. All callers updated.
6205 (symbol_natural_name, symbol_demangled_name): Ditto.
6206 (symbol_search_name): Ditto.
6207 (completion_list_add_name): Change type of symname,sym_text,
6208 text,word parameters from char * to const char *.
6209 (completion_list_objc_symbol): Change type of sym_text,
6210 text,word parameters from char * to const char *.
6211 * ada-lang.c (find_struct_field): Change type of name parameter
6212 from char * to const char *.
6213 (encoded_ordered_before): Similarly for N0,N1 parameters.
6214 (old_renaming_is_invisible): Similarly for function_name parameter.
6215 (ada_type_name): Change result type from char * to const char *.
6216 All callers updated.
6217 * ada-lang.h (ada_type_name): Update.
6218 * buildsym.c (hashname): Change type of name parameter
6219 from char * to const char *.
6220 * buildsym.h (hashname): Update.
6221 * dbxread.c (end_psymtab): Change type of include_list parameter
6222 from char ** to const char **.
6223 * dwarf2read.c (determine_prefix): Change result type
6224 from char * to const char *. All callers updated.
6225 * f-lang.c (find_common_for_function): Change type of name, funcname
6226 parameters from char * to const char *.
6227 * f-lang.c (find_common_for_function): Update.
6228 * f-valprint.c (list_all_visible_commons): Change type of funcname
6229 parameters from char * to const char *.
6230 * gdbarch.sh (static_transform_name): Change type of name parameter
6231 and result from char * to const char *.
6232 * gdbarch.c: Regenerate.
6233 * gdbarch.h: Regenerate.
6234 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6235 of name parameter from char * to const char *.
6236 * jv-lang.c (java_primitive_type_from_name): Ditto.
6237 (java_demangled_signature_length): Similarly for signature parameter.
6238 (java_demangled_signature_copy): Ditto.
6239 (java_demangle_type_signature): Ditto.
6240 * jv-lang.h (java_primitive_type_from_name): Update.
6241 (java_demangle_type_signature): Update.
6242 * objc-lang.c (specialcmp): Change type of a,b parameters
6243 from char * to const char *.
6244 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6245 from char * to const char *. All callers updated.
6246 * p-lang.h (is_pascal_string_type): Update.
6247 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6248 of name parameter from char * to const char *.
6249 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6250 * utils.c (fprintf_symbol_filtered): Ditto.
6251 * defs.h (fprintf_symbol_filtered): Update.
6252 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6253 * stabsread.h (end_psymtab): Update.
6254 * stack.c (find_frame_funname): Change type of funname parameter
6255 from char ** to const char **.
6256 * stack.h (find_frame_funname): Update.
6257 * typeprint.c (type_print): Change type of varstring parameter
6258 from char * to const char *.
6259 * value.h (type_print): Update.
6260 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6261 from char * to const char *. All callers updated.
6262 (xcoff_end_psymtab): Change type of include_list parameter
6263 from char ** to const char **. All callers updated.
6264 (swap_sym): Similarly for name parameter. All callers updated.
6265 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6267 (process_coff_symbol): Use xstrdup.
6268 * stabsread.c (stabs_method_name_from_physname): Renamed from
6269 update_method_name_from_physname. Change result type from void
6270 to char *. All callers updated.
6271 (read_member_functions): In has_destructor case, store name in objfile
6272 obstack instead of malloc space. In !has_stub case, fix mem leak.
6274 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6276 * configure: Rebuild.
6277 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6280 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6282 * configure.tgt (rl78-*-elf): New target.
6283 * rl78-tdep.c: New file.
6285 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6287 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6288 and continue the loop. Add QUIT statement.
6290 2012-02-03 Tom Tromey <tromey@redhat.com>
6293 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6294 bfd_lookup_symbol_from_symtab.
6295 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6296 gdb_bfd_lookup_symbol_from_symtab.
6298 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6300 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6301 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6302 symbol. Add assertion that sym2 is never NULL.
6304 2012-02-02 Doug Evans <dje@google.com>
6306 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6307 "name" parameter to const char ** from char **. All callers updated.
6308 (find_pc_partial_function): Ditto.
6309 (cache_pc_function_name): Change type to const char * from char *.
6310 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6311 (find_pc_partial_function): Update.
6312 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6313 type of "name" parameter to const char * from char *.
6315 * arch-utils.c (generic_in_solib_return_trampoline): Change
6316 type of "name" parameter to const char * from char *.
6317 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6318 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6319 type of "name" parameter to const char * from char *.
6320 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6321 * gdbarch.c: Regenerate.
6322 * gdbarch.h: Regenerate.
6323 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6324 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6325 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6326 type of "name" parameter to const char * from char *.
6327 * skip.c (skip_function_pc): Ditto.
6328 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6329 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6330 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6331 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6332 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6333 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6334 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6335 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6336 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6338 2012-02-02 Pedro Alves <palves@redhat.com>
6340 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6341 the current inferior has no execution. Make sure the current
6342 remote process matches gdb's current inferior.
6344 2012-02-02 Tom Tromey <tromey@redhat.com>
6347 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6350 2012-02-02 Tom Tromey <tromey@redhat.com>
6353 * symtab.c (lookup_language_this): Set block_found.
6355 2012-02-01 Tom Tromey <tromey@redhat.com>
6358 * jit.c (struct jit_inferior_data): Rewrite.
6359 (struct jit_objfile_data): New.
6360 (get_jit_objfile_data): New function.
6361 (add_objfile_entry): Update.
6362 (jit_read_descriptor): Return int. Replace descriptor_addr
6363 argument with inf_data. Update. Don't call error.
6364 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6366 (jit_inferior_init): Don't look up descriptor. Don't call error.
6367 (jit_reset_inferior_data_and_breakpoints)
6368 (jit_inferior_created_observer): Remove.
6369 (jit_inferior_exit_hook): Update.
6370 (jit_executable_changed_observer): Remove.
6371 (jit_event_handler): Update.
6372 (free_objfile_data): Reset inferior data if needed.
6373 (_initialize_jit): Update.
6375 2012-02-01 Tom Tromey <tromey@redhat.com>
6377 * jit.c (bfd_open_from_target_memory): Move higher in file.
6379 2012-02-01 Tristan Gingold <gingold@adacore.com>
6381 * libunwind-frame.c (libunwind_load): Display message if dlopen
6384 2012-02-01 Gary Benson <gbenson@redhat.com>
6386 * symtab.h (symbol_found_callback_ftype): New typedef.
6387 (iterate_over_symbols): Use the above.
6388 * symtab.c (iterate_over_symbols): Likewise.
6389 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6390 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6391 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6392 (iterate_name_matcher): Document return values.
6393 (collect_one_symbol): Likewise.
6394 (collect_function_symbols): Likewise.
6395 (collect_symbols): Likewise.
6397 2012-02-01 Tom Tromey <tromey@redhat.com>
6399 * ada-lang.c (resolve_subexp): Update.
6400 (ada_lookup_symbol_list): Add 'full_search' argument.
6401 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6402 ada_lookup_symbol_list.
6403 (ada_lookup_encoded_symbol): Update.
6404 (get_var_value): Update.
6405 * ada-exp.y (block_lookup): Update.
6406 (write_var_or_type): Update.
6407 (write_name_assoc): Update.
6408 * ada-lang.h (ada_lookup_symbol_list): Update.
6410 2012-01-31 Tom Tromey <tromey@redhat.com>
6412 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6415 2012-01-31 Doug Evans <dje@google.com>
6417 * symtab.h: Remove outdated comment.
6418 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6420 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6422 Fix build error in Darwin port.
6423 * i386-darwin-nat.c: Include i386-nat.h.
6425 2012-01-30 Tom Tromey <tromey@redhat.com>
6427 PR breakpoints/13568:
6428 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6429 argument. Check for recursive includes.
6430 (dwarf_decode_macros): Create an include hash.
6432 2012-01-30 Michael Eager <eager@eagercon.com>
6434 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6435 * ppc-linux-tdep.c: Include glibc-tdep.h.
6436 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6437 (powerpc_linux_in_plt_stub): New function.
6438 (powerpc_linux_in_dynsym_resolve_code): New function.
6439 (ppc_skip_trampoline_code): New function.
6440 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6441 Use glibc_skip_solib_resolver.
6443 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6445 Code cleanup: Make 1440 bytes of data segment read-only.
6446 * arch-utils.c (endian_enum): Make it const char *const [].
6447 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6449 * breakpoint.c (always_inserted_enums): Likewise.
6450 * cli/cli-cmds.c (script_ext_enums): Likewise.
6451 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6452 enumlist parameter const char *const *.
6453 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6454 const char *const *.
6455 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6456 parameter const char *const *.
6457 * cris-tdep.c (cris_modes): Make it const char *const [].
6458 * filesystem.c (target_file_system_kinds): Likewise.
6459 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6460 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6461 (can_use_displaced_stepping_enum, scheduler_enums)
6462 (exec_direction_names): Likewise.
6463 * language.c (_initialize_language): Make the type_or_range_names and
6464 case_sensitive_names variables const char *const [].
6465 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6466 * python/python.c (python_excp_enums): Likewise.
6467 * remote.c (interrupt_sequence_modes): Likewise.
6468 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6469 * serial.c (logbase_enums): Likewise.
6470 * sh-tdep.c (sh_cc_enum): Likewise.
6471 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6473 * symtab.c (multiple_symbols_modes): Likewise.
6474 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6476 * utils.c (internal_problem_modes): Likewise.
6478 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6480 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6481 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6484 2012-01-27 Doug Evans <dje@google.com>
6486 * configure.ac (with_python): Fix absolute path handling for win32.
6487 * configure: Regenerate.
6489 2012-01-26 Doug Evans <dje@google.com>
6491 * symtab.c: Whitespace cleanup, no code changes.
6493 * symtab.c (lookup_symbol_in_language): Improve comment.
6494 (lookup_symbol_aux): Fix comment.
6496 * psymtab.c (add_psymbol_to_list): Result is now "void".
6497 * psympriv.h (add_psymbol_to_list): Update.
6499 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6501 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6503 Do not open script filenames twice.
6504 * cli/cli-cmds.c (source_script_from_stream): Pass to
6505 source_python_script also STREAM.
6506 * python/py-auto-load.c (source_section_scripts): Pass to
6507 source_python_script_for_objfile also STREAM.
6508 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6510 * python/python-internal.h (source_python_script_for_objfile): New
6511 parameter file, rename parameter file to filename.
6512 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6513 instead if !_WIN32. Update the function comment.
6514 (source_python_script, source_python_script_for_objfile)
6515 (source_python_script): New parameter file, rename parameter file to
6516 filename. Pass FILENAME to python_run_simple_file.
6517 * python/python.h (source_python_script): New parameter file, rename
6518 parameter file to filename.
6520 2012-01-26 Pedro Alves <palves@redhat.com>
6522 * corelow.c (core_has_fake_pid): Delete.
6523 (core_close): Delete references to `core_has_fake_pid'.
6524 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6525 (core_open): Delete references to `core_has_fake_pid'.
6526 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6529 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6531 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6532 Remove language parameter from name_matcher. Adjust the comment.
6533 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6534 Remove language parameter.
6535 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6536 * linespec.c (iterate_name_matcher): Likewise.
6537 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6538 name_matcher. Adjust call accordingly.
6539 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6540 (maintenance_check_symtabs): Adjust type of parameter "fun".
6541 * psymtab.h (maintenance_check_symtabs): Likewise.
6543 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6545 * language.h (symbol_name_match_p_ftype): New typedef.
6546 (struct language_defn): Replace field la_symbol_name_compare
6547 by la_get_symbol_name_match_p.
6548 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6549 (ada_language_defn): Use it.
6550 * linespec.c (struct symbol_matcher_data): New type.
6551 (iterate_name_matcher): Rewrite.
6552 (iterate_over_all_matching_symtabs): Pass a pointer to
6553 a symbol_matcher_data struct to expand_symtabs_matching
6554 instead of just the lookup name.
6555 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6556 opencl-lang.c, p-lang.c, language.c: Delete field
6557 la_symbol_name_compare, and replace by NULL for new field
6558 la_get_symbol_name_match_p.
6559 * symfile.h (struct quick_symbol_functions): Update comment.
6561 2012-01-25 Tom Tromey <tromey@redhat.com>
6563 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6566 2012-01-24 Tom Tromey <tromey@redhat.com>
6569 * solib.c (update_solib_list): Update the program space's
6570 added_solibs and deleted_solibs fields.
6571 * progspace.h (struct program_space) <added_solibs,
6572 deleted_solibs>: New fields.
6573 (clear_program_space_solib_cache): Declare.
6574 * progspace.c (release_program_space): Call
6575 clear_program_space_solib_cache.
6576 (clear_program_space_solib_cache): New function.
6577 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6578 bpstat_stop_status. Use handle_solib_event.
6579 * breakpoint.c: Include gdb_regex.h.
6580 (print_solib_event): New function.
6581 (bpstat_print): Use print_solib_event.
6582 (bpstat_stop_status): Add special case for bp_shlib_event.
6583 (handle_solib_event): New function.
6584 (bpstat_what): Use handle_solib_event.
6585 (struct solib_catchpoint): New.
6586 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6587 (breakpoint_hit_catch_solib, check_status_catch_solib)
6588 (print_it_catch_solib, print_one_catch_solib)
6589 (print_mention_catch_solib, print_recreate_catch_solib): New
6591 (catch_solib_breakpoint_ops): New global.
6592 (catch_load_or_unload, catch_load_command_1)
6593 (catch_unload_command_1): New functions.
6594 (internal_bkpt_check_status): Add special case for
6596 (internal_bkpt_print_it): Use print_solib_event.
6597 (initialize_breakpoint_ops): Initialize
6598 catch_solib_breakpoint_ops.
6599 (_initialize_breakpoint): Register "catch load" and "catch
6601 * breakpoint.h (handle_solib_event): Declare.
6602 * NEWS: Add entry for "catch load" and "catch unload".
6604 2012-01-24 Tom Tromey <tromey@redhat.com>
6606 * ada-lang.c: Include gdb_vecs.h.
6607 * charset.c: Include gdb_vecs.h.
6608 * tracepoint.h: Include gdb_vecs.h.
6609 * gdb_vecs.h: New file.
6611 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6613 * breakpoint.c (breakpoint_hit_catch_fork)
6614 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6615 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6616 * infrun.c (inferior_has_forked, inferior_has_vforked)
6617 (inferior_has_execd, inferior_has_called_syscall): Delete.
6618 (handle_syscall_event): Get syscall_number from the execution
6619 control state's wait status.
6620 (wait_for_inferior): Don't clear syscall_number.
6622 2012-01-24 Pedro Alves <palves@redhat.com>
6624 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6625 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6626 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6627 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6629 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6630 false for events other than TARGET_SIGNAL_TRAP.
6631 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6633 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6634 events other than TARGET_SIGNAL_TRAP.
6635 (tracepoint_breakpoint_hit): Add `ws' parameter.
6636 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6638 (bpstat_stop_status): Same.
6639 (pc_at_non_inline_function): Same.
6640 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6641 to pass the current event's waitstatus to bpstat_stop_status
6642 and pc_at_non_inline_function.
6644 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6647 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6648 Update the function comment for it.
6649 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6650 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6653 2012-01-24 Pedro Alves <palves@redhat.com>
6655 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6656 outside `bs->stop' block.
6657 (bpstat_what): Rework bp_shlib_event handling.
6658 (internal_bkpt_check_status): If the breakpoint is a
6659 bp_shlib_event, then set bs->stop and bs->print if
6660 stop_on_solib_events is set.
6662 2012-01-24 Gary Benson <gbenson@redhat.com>
6664 Delete #if 0'd out code.
6665 * stack.c (print_frame_label_vars): Remove.
6666 (catch_info): Likewise.
6667 (_initialize_stack): Remove "info catch" command.
6668 * NEWS: Mention the above.
6670 2012-01-24 Pedro Alves <palves@redhat.com>
6672 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6674 (remote_notice_new_inferior): If the remote end doesn't support
6675 the multiprocess extensions, then the PID is fake.
6676 (add_current_inferior_and_thread): New.
6677 (remote_start_remote): Use it.
6678 (extended_remote_attach_1): Adjust.
6679 (extended_remote_create_inferior_1): Use
6680 add_current_inferior_and_thread.
6682 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6684 Fix watchpoints to be specific for each inferior.
6685 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6686 current_program_space.
6687 * i386-nat.c (i386_inferior_data_cleanup): New.
6688 (i386_inferior_data_get): Replace variable inf_data_local by an
6690 (i386_use_watchpoints): Initialize i386_inferior_data.
6691 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6692 specific iterate_over_lwps.
6694 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6696 Fix watchpoints across inferior fork.
6697 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6698 comment for linux_nat_iterate_watchpoint_lwps.
6699 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6700 linux_nat_iterate_watchpoint_lwps.
6701 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6702 * i386-linux-nat.c (update_debug_registers_callback): Update the
6703 comment for linux_nat_iterate_watchpoint_lwps.
6704 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6705 linux_nat_iterate_watchpoint_lwps.
6706 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6707 * i386-nat.c: Include inferior.h.
6708 (dr_mirror): Remove.
6709 (i386_inferior_data, struct i386_inferior_data)
6710 (i386_inferior_data_get): New.
6711 (i386_debug_reg_state): Use i386_inferior_data_get.
6712 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6713 (i386_insert_watchpoint, i386_remove_watchpoint)
6714 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6715 (i386_remove_hw_breakpoint): New variable state, use
6716 i386_debug_reg_state instead of DR_MIRROR.
6717 * linux-nat.c (delete_lwp): New declaration.
6718 (num_lwps): Move here from downwards.
6719 (delete_lwp_cleanup): New.
6720 (linux_child_follow_fork): Create new child_lp, call
6721 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6723 (num_lwps): Move upwards.
6724 (linux_nat_iterate_watchpoint_lwps): New.
6725 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6726 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6728 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6732 2012-01-23 Pedro Alves <palves@redhat.com>
6734 * top.c (caution): Rename to ...
6735 (confirm): ... this.
6736 (show_caution): Rename to ...
6737 (show_confirm): ... this.
6738 (quit_cover): Adjust.
6739 (init_main): Adjust.
6740 * top.h (caution): Rename to ...
6741 (confirm): ... this.
6742 * utils.c (internal_vproblem, defaulted_query): Adjust.
6744 2012-01-23 Pedro Alves <palves@redhat.com>
6746 * top.c (caution): Update comment.
6747 (execute_command): Don't consider the current value of `caution'.
6749 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6751 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6753 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6755 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6756 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6757 * target.c (target_fileio_pwrite): Remove buffer address from
6759 (target_fileio_pread): Likewise.
6761 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6763 * NEWS: Document remote "info proc" and "generate-core-file".
6765 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6767 * gdbarch.sh (find_memory_regions): New callback.
6768 * gdbarch.c, gdbarch.h: Regenerate.
6770 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6771 callback before falling back to target method.
6773 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6774 (linux_target_install_ops): No longer install it.
6776 * linux-tdep.c (linux_find_memory_regions): New function.
6777 (linux_init_abi): Install it.
6779 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6781 * gdbarch.sh (make_corefile_notes): New architecture callback.
6782 * gdbarch.c: Regenerate.
6783 * gdbarch.h: Likewise.
6785 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6786 before target_make_corefile_notes. If NULL is returned, the
6787 target does not support core file generation.
6789 * linux-nat.c: Include "linux-tdep.h".
6790 (find_signalled_thread, find_stop_signal): Remove.
6791 (linux_nat_do_thread_registers): Likewise.
6792 (struct linux_nat_corefile_thread_data): Likewise.
6793 (linux_nat_corefile_thread_callback): Likewise.
6794 (iterate_over_spus): Likewise.
6795 (struct linux_spu_corefile_data): Likewise.
6796 (linux_spu_corefile_callback): Likewise.
6797 (linux_spu_make_corefile_notes): Likewise.
6798 (linux_nat_collect_thread_registers): New function.
6799 (linux_nat_make_corefile_notes): Replace contents by call to
6800 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6801 as native-only callback.
6803 * linux-tdep.h: Include "bfd.h".
6804 (struct regcache): Add forward declaration.
6805 (linux_collect_thread_registers_ftype): New typedef.
6806 (linux_make_corefile_notes): Add prototype.
6807 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6808 "regset.h", and "elf-bfd.h".
6809 (find_signalled_thread, find_stop_signal): New functions.
6810 (linux_spu_make_corefile_notes): Likewise.
6811 (linux_collect_thread_registers): Likewise.
6812 (struct linux_corefile_thread_data): New data structure.
6813 (linux_corefile_thread_callback): New funcion.
6814 (linux_make_corefile_notes): Likewise.
6815 (linux_make_corefile_notes_1): Likewise.
6816 (linux_init_abi): Install it.
6818 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6820 * gdbarch.sh (info_proc): New callback.
6821 * gdbarch.c, gdbarch.h: Regenerate.
6823 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6824 before falling back to the target info_proc callback.
6826 * linux-nat.c: Do not include "cli/cli-utils.h".
6827 (linux_nat_info_proc): Remove.
6828 (linux_target_install_ops): No longer install it.
6830 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6831 (read_mapping): New function.
6832 (linux_info_proc): Likewise.
6833 (linux_init_abi): Install it.
6835 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6837 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6838 * infcmd.c: (info_proc_cmd_1): New function.
6839 (info_proc_cmd): New function, moved here from equivalent routine
6840 orignally in linux-nat.c.
6841 (info_proc_cmd_mappings): Likewise.
6842 (info_proc_cmd_stat): Likewise.
6843 (info_proc_cmd_status): Likewise.
6844 (info_proc_cmd_cwd): Likewise.
6845 (info_proc_cmd_cmdline): Likewise.
6846 (info_proc_cmd_exe): Likewise.
6847 (info_proc_cmd_all): Likewise.
6848 (_initialize_infcmd): Install "info proc" command and subcommands.
6850 * target.h (struct target_ops): Add to_info_proc.
6851 (target_info_proc): Add prototype.
6852 * target.c (target_info_proc): New function.
6854 * procfs.c (procfs_info_proc): Add prototype.
6855 (info_proc_cmd): Rename into ...
6856 (procfs_info_proc): ... this. Update argument types as appropriate
6857 for a to_info_proc implementation. Handle "what" argument.
6858 (procfs_target): Install procfs_info_proc.
6859 (_initialize_procfs): No longer install "info proc" command.
6861 * linux-nat.c: (enum info_proc_what): Remove.
6862 (linux_nat_info_proc_cmd_1): Rename into ...
6863 (linux_nat_info_proc): ... this. Update argument types as appropriate
6864 for a to_info_proc implementation.
6865 (linux_nat_info_proc_cmd): Remove.
6866 (linux_nat_info_proc_cmd_mappings): Likewise.
6867 (linux_nat_info_proc_cmd_stat): Likewise.
6868 (linux_nat_info_proc_cmd_status): Likewise.
6869 (linux_nat_info_proc_cmd_cwd): Likewise.
6870 (linux_nat_info_proc_cmd_cmdline): Likewise.
6871 (linux_nat_info_proc_cmd_exe): Likewise.
6872 (linux_nat_info_proc_cmd_all): Likewise.
6873 (linux_target_install_ops): Install linux_nat_info_proc.
6874 (_initialize_linux_nat): No longer install "info proc" command
6877 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6879 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6880 * config.in, configure: Regenerate.
6882 * target.h (struct target_ops): Add to_fileio_readlink.
6883 (target_fileio_readlink): Add prototype.
6884 * target.c (target_fileio_readlink): New function.
6886 * inf-child.c: Conditionally include <sys/param.h>.
6887 (inf_child_fileio_readlink): New function.
6888 (inf_child_target): Install it.
6890 * remote.c (PACKET_vFile_readlink): New enum value.
6891 (remote_hostio_readlink): New function.
6892 (init_remote_ops): Install it.
6893 (_initialize_remote): Handle vFile:readlink packet type.
6895 2012-01-20 Pedro Alves <palves@redhat.com>
6896 Ulrich Weigand <ulrich.weigand@linaro.org>
6898 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6899 * config.in, configure: Regenerate.
6901 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6902 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6903 (target_fileio_open): Add prototype.
6904 (target_fileio_pwrite): Likewise.
6905 (target_fileio_pread): Likewise.
6906 (target_fileio_close): Likewise.
6907 (target_fileio_unlink): Likewise.
6908 (target_fileio_read_alloc): Likewise.
6909 (target_fileio_read_stralloc): Likewise.
6911 * target.c: Include "gdb/fileio.h".
6912 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6913 (default_fileio_target): New function.
6914 (target_fileio_open): Likewise.
6915 (target_fileio_pwrite): Likewise.
6916 (target_fileio_pread): Likewise.
6917 (target_fileio_close): Likewise.
6918 (target_fileio_unlink): Likewise.
6919 (target_fileio_close_cleanup): Likewise.
6920 (target_fileio_read_alloc_1): Likewise.
6921 (target_fileio_read_alloc): Likewise.
6922 (target_fileio_read_stralloc): Likewise.
6924 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6925 <fcntl.h>, and <unistd.h>.
6926 (inf_child_fileio_open_flags_to_host): New function.
6927 (inf_child_errno_to_fileio_error): Likewise.
6928 (inf_child_fileio_open): Likewise.
6929 (inf_child_fileio_pwrite): Likewise.
6930 (inf_child_fileio_pread): Likewise.
6931 (inf_child_fileio_close): Likewise.
6932 (inf_child_fileio_unlink): Likewise.
6933 (inf_child_target): Install to_fileio routines.
6935 * remote.c (init_remote_ops): Install to_fileio routines.
6937 2012-01-20 Pedro Alves <palves@redhat.com>
6938 Ulrich Weigand <ulrich.weigand@linaro.org>
6940 * remote.c (remote_multi_process_p): Only check for multi-process
6941 protocol feature, do not check for extended protocol.
6942 (remote_supports_multi_process): Check for extended protocol here.
6943 (set_general_process): Likewise.
6944 (extended_remote_kill): Likewise.
6945 (remote_pid_to_str): Likewise.
6946 (remote_query_supported): Always query multiprocess mode.
6948 2012-01-20 Pedro Alves <palves@redhat.com>
6949 Ulrich Weigand <ulrich.weigand@linaro.org>
6951 * inferior.h (struct inferior): Add fake_pid_p.
6952 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6953 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6954 magic_null_ptid since the remote side doesn't provide a real PID.
6956 2012-01-19 Tom Tromey <tromey@redhat.com>
6958 * NEWS: Combine the two Python sections.
6960 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6962 * target.h (target_close): Update comment on the target's unpush state.
6964 2012-01-19 Pedro Alves <palves@redhat.com>
6966 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6967 linux_nat_async directly instead of going through the target
6969 * target.c (unpush_target): Close target after unpushing it, not
6972 2012-01-19 Gary Benson <gbenson@redhat.com>
6974 * mdebugread.c (sort_blocks): Replace integer constants with ones
6975 derived from FIRST_LOCAL_BLOCK.
6977 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6978 Jan Kratochvil <jan.kratochvil@redhat.com>
6981 * symfile.c (find_separate_debug_file): New function.
6982 (terminate_after_last_dir_separator): Likewise.
6983 (find_separate_debug_file_by_debuglink): Also try realpath.
6984 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6985 * configure: Regenerate.
6986 * config.in: Regenerate.
6988 2012-01-18 Doug Evans <dje@google.com>
6990 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6991 (main.o): Remove rule.
6992 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6993 (--with-sysroot): Rewrite.
6994 * configure: Regenerate.
6995 * config.in: Regenerate.
6997 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6999 * parse.c (initialize_expout): New function.
7000 (reallocate_expout): Likewise.
7001 (parse_exp_in_context): Use `initialize_expout' and
7002 `reallocate_expout' when appropriate.
7004 2012-01-18 Pedro Alves <palves@redhat.com>
7006 * record.c (struct record_breakpoint, record_breakpoint_p)
7007 (record_breakpoints): New.
7008 (record_insert_breakpoint, record_remove_breakpoint): Manage
7009 record breakpoints list. Only remove breakpoints from the
7010 inferior if they had been inserted there in the first place.
7012 2012-01-17 Doug Evans <dje@google.com>
7014 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7015 if we know we don't have a file name to look for.
7017 2012-01-17 Pedro Alves <palves@redhat.com>
7019 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7020 the frame's stop reason is UNWIND_UNAVAILABLE.
7022 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7024 Fix compilation error.
7025 * m2-exp.y (yyerror): Use ANSI C prototype.
7027 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7029 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7030 (growbuf_by_size): Likewise.
7031 (yyerror): Likewise.
7032 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7033 (modblock): Remove variable (was #if 0'ed).
7034 (parse_number): Convert prototype from K&R to ANSI C.
7035 (yyerror): Likewise.
7036 * objc-exp.y (parse_number): Likewise.
7037 (yyerror): Likewise.
7038 (yylex): Remove #if 0'ed code.
7039 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7040 (yyerror): Likewise.
7042 2012-01-16 Tom Tromey <tromey@redhat.com>
7045 * symtab.h (compare_filenames_for_search): Declare.
7046 * symtab.c (compare_filenames_for_search): New function.
7047 (iterate_over_some_symtabs): Use it.
7048 * symfile.h (struct quick_symbol_functions)
7049 <map_symtabs_matching_filename>: Change spec.
7050 * psymtab.c (partial_map_symtabs_matching_filename): Use
7051 compare_filenames_for_search. Update for new spec.
7052 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7053 compare_filenames_for_search. Update for new spec.
7054 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7056 2012-01-16 Tom Tromey <tromey@redhat.com>
7059 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7060 (struct main_type) <flag_flag_enum>: New field.
7061 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7062 * NEWS: Add entries.
7063 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7065 * python/lib/gdb/printing.py (_EnumInstance): New class.
7066 (FlagEnumerationPrinter): Likewise.
7068 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7070 * breakpoint.c (create_sals_from_address_default): New function.
7071 (create_breakpoints_sal_default): Likewise.
7072 (decode_linespec_default): Likewise.
7073 (is_marker_spec): Removed.
7074 (strace_marker_p): New function.
7075 (init_breakpoint_sal): Using `strace_marker_p' instead of
7077 (create_breakpoint): Call method `create_sals_from_address' from
7078 breakpoint_ops, replacing code that created SALs conditionally
7079 on the type of the breakpoint. Call method `create_breakpoints_sal',
7080 replacing code that created breakpoints conditionally on the type
7082 (base_breakpoint_create_sals_from_address): New function.
7083 (base_breakpoint_create_breakpoints_sal): Likewise.
7084 (base_breakpoint_decode_linespec): Likewise.
7085 (base_breakpoint_ops): Add methods
7086 `base_breakpoint_create_sals_from_address',
7087 `base_breakpoint_create_breakpoints_sal' and
7088 `base_breakpoint_decode_linespec'.
7089 (bkpt_create_sals_from_address): New function.
7090 (bkpt_create_breakpoints_sal): Likewise.
7091 (bkpt_decode_linespec): Likewise.
7092 (tracepoint_create_sals_from_address): Likewise.
7093 (tracepoint_create_breakpoints_sal): Likewise.
7094 (tracepoint_decode_linespec): Likewise.
7095 (strace_marker_create_sals_from_address): Likewise.
7096 (strace_marker_create_breakpoints_sal): Likewise.
7097 (strace_marker_decode_linespec): Likewise.
7098 (strace_marker_breakpoint_ops): New variable.
7099 (addr_string_to_sals): Remove `marker_spec'. Call method
7100 `decode_linespec' from breakpoint_ops, replacing code that decoded
7101 an address string into a SAL. Use `strace_marker_p' instead of
7103 (strace_command): Decide whether we are dealing with a static
7104 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7105 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7106 * breakpoint.h (linespec_result, linespec_sals): New forward
7108 (breakpoint_ops) <create_sals_from_address>,
7109 <create_breakpoints_sal>, <decode_linespec>: New methods.
7111 2012-01-14 Doug Evans <dje@google.com>
7113 * NEWS: Update text for "maint set python print-stack".
7114 It is deprecated in gdb 7.4 and deleted in 7.5.
7116 2012-01-13 Eli Zaretskii <eliz@gnu.org>
7118 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7121 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7123 * configure: Regenerate.
7124 * config.in: Regenerate.
7126 2012-01-12 Keith Seitz <keiths@redhat.com>
7129 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7130 (ANONYMOUS_UNION_NAME): Define.
7131 (is_path_expr_parent): New function.
7132 (get_path_expr_parent): New function.
7133 (is_anonymous_child): New function.
7134 (create_child_with_value): If the child is anonymous and without
7135 a name, assign an object name to it.
7136 (c_describe_child): Use get_path_expr_parent to determine
7137 the parent expression.
7138 If there field represents an anonymous struct or union and
7139 has no name, set an appropriate display name and expression.
7140 (cplus_describe_child): Likewise.
7142 2012-01-12 Pedro Alves <palves@redhat.com>
7144 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7145 available when %ebp is found to be zero (outermost).
7147 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
7149 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7150 an internal gdb_static_assert.
7151 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7153 2012-01-11 Tom Tromey <tromey@redhat.com>
7156 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7157 catch" and "catch throw".
7159 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7161 * blockframe.c (block_innermost_frame): Start search from selected
7162 frame, if present, or otherwise the current frame.
7164 * c-exp.y (variable): Update innermost_block for
7165 'block COLONCOLON NAME' clause.
7166 * m2-exp.y (variable): Ditto.
7167 * objc-exp.y (variable): Ditto.
7169 2012-01-10 Tom Tromey <tromey@redhat.com>
7172 * python/python.c (finish_python_initialization): Set sys.argv.
7174 2012-01-10 Doug Evans <dje@google.com>
7176 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7177 "want_line_info". All callers updated.
7178 (dwarf_decode_lines_1): New function.
7179 (handle_DW_AT_stmt_list): Add function comment.
7180 New arg "want_line_info". All callers updated.
7181 (read_file_scope,read_type_unit_scope): Move comment from
7182 handle_DW_AT_stmt_list to here.
7184 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7186 Fix regression after libiberty/ update for GCC PR 6057 and others.
7187 * c-exp.y (operator) <OPERATOR DELETE>
7188 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7189 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7190 (make_builtin_type, make_name): New variable i, add gdb_assert.
7191 (operator) <OPERATOR NEW>: Update ARGS to 3.
7192 (operator) <OPERATOR DELETE>: Add trailing space.
7193 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7194 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7195 * cp-support.c (cp_canonicalize_string): Check NULL from
7196 cp_comp_to_string, call warning and return.
7198 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7200 Fix duplicate .o files after omitting libbfd.a.
7201 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7202 (SFILES): Add corelow.c.
7203 (COMMON_OBS): Add corelow.o.
7204 (ALLDEPFILES): Remove corelow.c.
7205 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7206 * config/alpha/alpha-osf3.mh: Likewise.
7207 * config/alpha/fbsd.mh: Likewise.
7208 * config/arm/nbsdaout.mh: Likewise.
7209 * config/arm/nbsdelf.mh: Likewise.
7210 * config/i386/i386gnu.mh: Likewise.
7211 * config/ia64/hpux.mh: Likewise.
7212 * config/ia64/linux.mh: Likewise.
7213 * config/m32r/linux.mh: Likewise.
7214 * config/m68k/linux.mh: Likewise.
7215 * config/mips/irix5.mh: Likewise.
7216 * config/mips/irix6.mh: Likewise.
7217 * config/pa/hpux.mh: Likewise.
7218 * config/pa/linux.mh: Likewise.
7219 * config/powerpc/aix.mh: Likewise.
7220 * config/sparc/linux.mh: Likewise.
7221 * config/sparc/linux64.mh: Likewise.
7222 * config/sparc/sol2.mh: Likewise.
7223 * config/vax/vax.mh: Likewise.
7224 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7225 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7226 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7227 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7228 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7229 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7230 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7231 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7232 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7233 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7234 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7235 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7236 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7237 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7238 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7239 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7240 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7241 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7242 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7243 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7244 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7245 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7246 corelow.o from gdb_target_obs.
7247 * corefile.c (core_target): Update the comment on NULL value.
7248 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7249 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7250 MATCHES. Drop YUMMY set on NULL.
7251 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7252 reclaim CORE_DATA if it is already NULL.
7254 2012-01-09 Doug Evans <dje@google.com>
7256 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7257 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7259 2012-01-09 Keith Seitz <keiths@redhat.com>
7261 * breakpoint.c (wrapper.h): Don't include.
7263 2012-01-09 Keith Seitz <keiths@redhat.com>
7265 * Makefile.in (SFILES): Remove wrapper.c.
7266 (HFILES_NO_SRCDIR): Remove wrapper.h.
7267 (COMMON_OBS): Remove wrapper.o.
7268 * cli/cli-interp.c: Don't inlude wrapper.h.
7269 * corelow.c: Likewise.
7270 (core_open): Replace gdb_target_find_new_threads with
7271 TRY_CATCH around target_find_new_threads.
7272 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7273 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7274 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7275 evaluate_expression.
7276 (varobj_set_value): Likewise for evaluate_expression and
7278 (install_new_variable): Likewise for value_fetch_lazy.
7279 (adjust_value_for_child_access): Likewise for value_ind.
7280 (c_describe_child): Likewise for value_subscript and
7282 (c_value_of_root): Likewise for evaluate_expression.
7283 * wrapper.c: Remove.
7284 * wrapper.h: Remove.
7286 2012-01-09 Doug Evans <dje@google.com>
7288 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7289 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7290 "abfd" args with "section". All callers updated.
7291 Error checking code moved ...
7292 (error_check_comp_unit_head): ... here. New function.
7293 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7294 Delete arg "abfd". New arg "type_offset". All callers updated.
7295 (create_debug_types_hash_table): Simplify by using
7296 read_and_check_type_unit_head.
7298 * parser-defs.h (namecopy): Delete.
7299 * parse.c (namecopy, namecopy_size): Move into copy_name.
7301 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7303 Partially fix duplicate .o files after omitting libbfd.a.
7304 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7305 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7306 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7307 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7308 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7309 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7310 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7312 2012-01-09 Pedro Alves <palves@redhat.com>
7314 * MAINTAINERS: Update my email address.
7316 2012-01-08 Doug Evans <dje@google.com>
7318 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7319 n_type_units. Rename type_comp_units to all_type_units.
7321 (add_signatured_type_cu_to_table): Renamed from
7322 add_signatured_type_cu_to_list. All callers updated.
7324 * gdbtypes.h (struct cplus_struct_type): Delete member
7325 nfn_fields_total. All uses removed.
7327 2012-01-06 Doug Evans <dje@google.com>
7329 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7331 (dwarf2_find_comp_unit): Delete.
7332 (process_psymtab_comp_unit): Make result "void".
7333 Delete args buffer, info_ptr, buffer_size, and replace with
7334 "section". All callers updated.
7335 (dwarf2_build_psymtabs_hard): Simplify.
7337 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7338 Thiago Jung Bauermann <bauerman@br.ibm.com>
7340 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7341 before `struct gdb_exception'.
7342 * breakpoint.c (update_global_location_list_nothrow)
7343 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7344 * cp-abi.c (value_rtti_type): Likewise.
7345 * cp-support.c (cp_validate_operator): Likewise.
7346 * infrun.c (insert_exception_resume_breakpoint)
7347 (check_exception_resume, keep_going): Likewise.
7348 * mi-interp.c (mi_breakpoint_created)
7349 (mi_breakpoint_modified): Likewise.
7350 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7351 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7352 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7354 2012-01-05 Doug Evans <dje@google.com>
7356 * dwarf2read.c (statement_prologue): Delete, unused.
7358 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7359 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7361 * dwarf2read.c (comp_unit_header): Delete, unused.
7363 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7365 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7366 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7368 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7370 * infrun.c (normal_stop): Don't skip calling the normal_stop
7371 observers if the thread was doing a multi-step, but stopped for
7372 some reason other than stepping.
7374 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7376 * cli/cli-decode.h: Add comments.
7377 (CMD_LIST_AMBIGUOUS): Moved to command.h
7378 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7379 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7380 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7381 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7382 (add_com, add_com_alias, add_info, add_info_alias)
7383 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7385 * command.h: Add and adjust comments.
7386 (CMD_LIST_AMBIGUOUS): Moved here.
7387 (help_cmd, help_cmd_list): Delete declarations.
7389 2012-01-04 Doug Evans <dje@google.com>
7391 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7392 All callers updated.
7393 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7394 Replace all arguments with "per_cu". All callers updated.
7396 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7398 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7399 New arg "per_cu". All callers updated.
7401 Delete #if 0'd out code.
7402 * language.c (binop_result_type): Delete.
7403 (simple_type, ordered_type, same_type, integral_type): Delete.
7404 (numeric_type, character_type, string_type, boolean_type): Delete.
7405 (float_type, structured_type): Delete.
7406 * language.h: Update.
7408 2012-01-04 Tom Tromey <tromey@redhat.com>
7410 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7412 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7414 * corefile.c (close_exec_file): Delete.
7415 (reopen_exec_file): Remove commented out code that seems related
7416 to close_exec_file, which is being deleted here.
7417 * inferior.h (close_exec_file): Delete.
7418 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7420 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7422 * ada-lang.c: #include "cli/cli-utils.h".
7423 (get_selections): Use skip_spaces.
7424 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7425 (catch_ada_exception_command_split): Use skip_spaces.
7426 (ada_decode_assert_location): Likewise.
7428 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7430 * linespec.c (decode_line_internal): Check for C++ or Java
7431 compound constructs only if the current language is C, C++
7434 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7437 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7438 Joel Brobecker <brobecker@adacore.com>
7439 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7440 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7442 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7443 fall through into AT_ENTRY_POINT.
7444 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7446 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7447 PPC_INSN_SIZE skip to 3 times.
7449 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7451 * linespec.c (add_minsym): Preserve function descriptors.
7453 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7455 * breakpoint.c (all_locations_are_pending): Consider locations
7456 in program spaces executing during startup pending as well.
7458 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7460 Copyright year update in most files of the GDB Project.
7462 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7464 * copyright.sh: Delete.
7465 * copyright.py: Rewrite.
7467 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7469 * gnulib/extra/update-copyright: New file, imported from gnulib.
7471 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7473 * README (Copyright and License Notices): New section.
7475 2012-01-03 Tom Tromey <tromey@redhat.com>
7478 * python/py-value.c (valpy_dereference, valpy_get_address
7479 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7480 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7481 (valpy_absolute, valpy_richcompare): Free intermediate values.
7483 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7485 * ada-lang.c: Reformat the copyright notice.
7487 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7489 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7490 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7491 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7492 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7493 Revert this part of:
7494 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7495 Build gdb directly from *.o files not using libgdb.a.
7496 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7498 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7500 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7501 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7502 Reformat the copyright header.
7504 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7506 Revert this part of:
7507 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7508 Remove the gdbtui binary.
7509 * gdb.c (main): Remove args.interpreter_p initialization.
7510 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7511 * main.h (struct captured_main_args): Remove interpreter_p.
7513 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7515 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7517 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7519 * top.c (print_gdb_version): Update copyright year.
7521 2012-01-02 Yao Qi <yao@codesourcery.com>
7523 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7525 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7526 Joel Brobecker <brobecker@adacore.com>
7528 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7529 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7531 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7532 fall through into AT_ENTRY_POINT.
7533 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7535 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7536 PPC_INSN_SIZE skip to 3 times.
7538 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7540 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7542 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7544 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7546 Build gdb directly from *.o files not using libgdb.a.
7547 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7548 (COMMON_OBS): Remove solib-target.o.
7549 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7550 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7551 (LIBGDB_OBS, libgdb.a): Move it above.
7552 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7553 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7554 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7555 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7556 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7557 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7558 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7559 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7560 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7561 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7562 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7563 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7564 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7565 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7566 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7567 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7568 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7569 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7570 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7571 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7572 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7573 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7574 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7575 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7576 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7577 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7578 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7580 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7582 Remove the gdbtui binary.
7583 * .gitignore (/gdbtui): Remove.
7584 * Makefile.in (TUI): Remove.
7585 (SUBDIR_TUI_OBS): Remove tui-main.o.
7586 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7587 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7588 (tui-main.o): Remove.
7589 (all_object_files): Remove tui-main.o.
7590 * NEWS: New note for the gdbtui removal.
7591 * configure: Rebuilt.
7592 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7593 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7594 CONFIG_UNINSTALL respectively.
7595 * gdb.c (main): Remove args.interpreter_p initialization.
7596 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7597 * main.h (struct captured_main_args): Remove interpreter_p.
7598 * tui/tui-main.c: Remove.
7600 2012-01-01 Doug Evans <dje@google.com>
7602 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7603 (dwarf2_physname, read_import_statement): Ditto.
7604 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7605 (process_structure_scope read_subroutine_type): Ditto.
7606 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7607 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7608 (dwarf2_fetch_die_location_block): Ditto.
7609 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7611 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7612 All callers updated.
7613 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7614 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7615 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7617 * dwarf2read.c (load_cu): Move assert to more useful location.
7619 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7620 All callers updated.
7622 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7623 (dwarf2_elf_names): Minor reformat.
7624 (dwarf2_per_cu_data): Tweak comment.
7625 (dwarf2_read_section): Fix comment.
7626 (create_all_comp_units): Fix comment.
7627 (load_full_comp_unit): Fix comment.
7628 (process_full_comp_unit): Fix comment.
7629 (read_signatured_type): Fix comment.
7631 For older changes see ChangeLog-2011.
7637 version-control: never