1 2012-06-29 Doug Evans <dje@google.com>
3 * linespec.c: #include "stack.h".
4 (decode_line_with_current_source): Moved here from symtab.c and
5 renamed from decode_line_spec. All callers updated.
6 (decode_line_with_last_displayed): Moved here from breakpoint.c and
7 renamed from decode_line_spec_1. All callers updated.
8 * linespec.h (decode_line_with_current_source): Move declaration here
9 from symtab.h and renamed from decode_line_spec.
10 (decode_line_with_last_displayed): Move declaration here from symtab.h
11 and renamed from decode_line_spec_1.
12 * macrocmd.c: #include "linespec.h".
13 * symtab.c: Remove #include "linespec.h".
15 2012-06-28 Doug Evans <dje@google.com>
17 * dwarf2read.c (get_cu_length): New function.
18 (offset_in_cu_p, error_check_comp_unit_head): Call it.
19 (create_debug_types_hash_table): Ditto.
20 (init_cutu_and_read_dies): Ditto.
21 (init_cutu_and_read_dies_no_follow): Ditto.
23 * dwarf2read.c (dwarf2_find_base_address): Move definition.
25 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
26 (struct abbrev_table): Define.
27 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
29 (init_cutu_and_read_dies): Update.
30 (abbrev_table_alloc_abbrev): New function. Replaces
31 dwarf_alloc_abbrev. All callers updated.
32 (abbrev_table_add_abbrev): New function.
33 (abbrev_table_lookup_abbrev): New function. Replaces
34 dwarf2_lookup_abbrev. All callers updated.
35 (abbrev_table_read_table): New function. Contents moved here from
37 (dwarf2_read_abbrevs): Call it.
38 (abbrev_table_free): New function.
39 (dwarf2_free_abbrev_table): Call it.
41 2012-06-28 Stan Shebs <stan@codesourcery.com>
43 * osdata.c (info_osdata_command): Filter out "Title" columns
45 * common/linux-osdata.c (struct osdata_type): Add title field.
46 (osdata_table): Add titles to each entry.
47 (linux_command_xfer_osdata): Add a column for title data.
49 2012-06-28 Stan Shebs <stan@codesourcery.com>
51 Make logging work for MI.
53 * interps.h (interp_set_logging_ftype): New typedef.
54 (struct interp_procs): New field set_logging_proc.
55 (current_interp_set_logging): Declare.
56 * interps.c (current_interp_set_logging): New function.
57 * cli/cli-logging.c: Include interps.h.
58 (set_logging_redirect): Call current_interp_set_logging.
59 (pop_output_files): Ditto.
60 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
61 * mi/mi-console.h (mi_console_set_raw): Declare.
62 * mi/mi-console.c (mi_console_set_raw): New function.
63 * mi/mi-interp.c (saved_raw_stdout): New global.
64 (mi_set_logging): New function.
65 (_initialize_mi_interp): Add it to interp procs.
67 2012-06-28 Doug Evans <dje@google.com>
69 * symtab.c (lookup_symbol_aux_objfile): Use
70 ALL_OBJFILE_PRIMARY_SYMTABS.
72 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
74 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
76 * common/buffer.c: Include inttypes.h and stdint.h.
77 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
79 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
80 Pedro Alves <palves@redhat.com>
82 * gdbthread.h (ALL_THREADS): New macro.
83 (thread_list): Declare.
84 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
85 going, but instead fall through to the stepping handling.
86 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
87 the passed in signal. Adjust debug output.
88 (resume_callback): Rename to ...
89 (linux_nat_resume_callback): ... this. Pass the thread's last
90 stop signal, if in "pass" state.
91 (linux_nat_resume): Adjust to rename.
92 (stop_wait_callback): New assertion. Don't respawn signals;
93 instead let the LWP remain with SIGNALLED set.
94 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
95 * remote.c (append_pending_thread_resumptions): New.
96 (remote_vcont_resume): Call it.
97 * target.h (target_resume): Extend comment.
99 2012-06-28 Iain Sandoe <iain@codesourcery.com>
101 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
103 2012-06-27 Doug Evans <dje@google.com>
105 * dwarf2read.c (dwarf2_cu): Add ranges_base.
106 Delete have_addr_base, unused. All uses updated.
107 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
108 (dwarf2_get_pc_bounds): Add ranges_base.
109 (dwarf2_record_block_ranges): Ditto.
111 2012-06-27 Tom Tromey <tromey@redhat.com>
114 * varobj.c (varobj_create): Update.
115 (varobj_set_value): Update.
116 * tracepoint.c (validate_actionline): Update.
117 (encode_actions_1): Update.
118 * parse.c (parse_exp_1): Add 'pc' argument.
119 (parse_exp_in_context): Add 'pc' argument. Change how
120 expression_context_pc is set.
121 (parse_expression): Update.
122 (parse_field_expression): Update.
123 * expression.h (parse_exp_1): Update.
124 * eval.c (parse_to_comma_and_eval): Update.
125 * breakpoint.c (set_breakpoint_condition): Update.
126 (update_watchpoint): Update.
127 (init_breakpoint_sal): Update
128 (find_condition_and_thread): Update.
129 (watch_command_1): Update.
130 (update_breakpoint_locations): Update.
131 * ada-lang.c (ada_read_renaming_var_value): Update.
132 (create_excep_cond_exprs): Update.
134 2012-06-27 Doug Evans <dje@google.com>
136 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
139 2012-06-26 Doug Evans <dje@google.com>
141 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
143 (error_check_comp_unit_head): New arg abbrev_section. All callers
145 (read_and_check_comp_unit_head): Ditto.
146 (read_and_check_type_unit_head): Ditto.
148 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
150 New attribute 'last' for gdb.Symtab_and_line.
151 * NEWS (Python Scripting): Add entry about the new attribute.
152 * python/py-symtab.c (salpy_get_last): New function which
153 implements the get method for the 'last' attribute of
155 (sal_object_getset): Add entry for the 'last' attribute.
157 2012-06-26 Doug Evans <dje@google.com>
159 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
160 (dwo_sections): Add macinfo, macro.
161 (dwarf2_locate_dwo_sections): Watch for macro sections.
162 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
163 All callers updated. Handle DWO files.
165 * NEWS: Mention new options "set debug dwarf2-read" and
166 "set debug symtab-create".
167 * dwarf2read.c (dwarf2_read_debug): New static global.
168 (dwarf2_build_psymtabs_hard): Add debugging printfs.
169 (process_queue): Ditto.
170 (process_full_comp_unit): Ditto.
171 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
172 * elfread.c (elf_symfile_read): Add debugging printf.
173 * minsyms.c (install_minimal_symbols): Ditto.
174 * psymtab.c (allocate_psymtab): Ditto.
175 * symfile.c (allocate_symtab): Ditto.
176 * symtab.c (symtab_create_debug): New global.
177 (_initialize_symtab): Add new option "set debug symtab-create".
178 * symtab.h (symtab_create_debug): Declare.
180 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
181 (lookup_dwo_type_unit): Ditto.
183 2012-06-26 Roland McGrath <roland@hack.frob.com>
184 H.J. Lu <hongjiu.lu@intel.com>
186 * amd64-linux-nat.c: Include <sys/user.h>.
187 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
188 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
189 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
191 * configure.ac: Check if the fs_base and gs_base members of
192 `struct user_regs_struct' exist.
193 * config.in: Regenerated.
194 * configure: Likewise.
196 2012-06-25 Michael Eager <eager@eagercon.com>
199 * python/python.c (gdbpy_write): Check for interrupted output.
201 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
203 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
204 register as a stack alignment in ARM mode.
206 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
208 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
209 * gnulib/config.in: Regenerate.
210 * gnulib/configure: Likewise.
211 * gnulib/import/m4/extensions.m4: Update it.
212 * gnulib/import/m4/gnulib-common.m4: Likewise.
213 * gnulib/import/m4/memmem.m4: Likewise.
214 * gnulib/import/m4/mmap-anon.m4: Likewise.
215 * gnulib/import/m4/multiarch.m4: Likewise.
216 * gnulib/import/stdint.in.h: Likewise.
218 2012-06-24 Yao Qi <yao@codesourcery.com>
220 * corefile.c (write_memory_with_notification): New.
221 * gdbcore.h: Declare write_memory_with_notification.
222 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
223 'observer_notify_memory_changed' with 'write_memory_with_notification'.
224 * valops.c (value_assign): Likewise.
225 * python/py-inferior.c (infpy_write_memory): Call
226 'write_memory_with_notification'.
228 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
230 * cc-with-index.sh: Use also -ex "set auto-load no".
232 2012-06-23 Doug Evans <dje@google.com>
235 * NEWS: Document additions to .gdb_index.
236 * dwarf2read.c: #include "gdb/gdb-index.h".
237 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
238 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
239 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
240 (dwarf2_read_index): Recognize version 7.
241 (dw2_do_expand_symtabs_matching): New args want_specific_block,
242 block_kind, domain): All callers updated.
243 (dw2_find_symbol_file): Handle new index CU values.
244 (dw2_expand_symtabs_matching): Match symbol kind if requested.
245 (add_index_entry): New args is_static, kind. All callers updated.
246 (offset_type_compare, uniquify_cu_indices): New functions
247 (symbol_kind): New function.
248 (write_psymtabs_to_index): Remove duplicate CU values.
249 (write_psymtabs_to_index): Write .gdb_index version 7.
251 2012-06-22 Joel Brobecker <brobecker@adacore.com>
253 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
254 * configure: Regenerate.
256 2012-06-20 Yao Qi <yao@codesourcery.com>
258 * python/py-inferior.c: Update comments of infpy_read_memory
259 and infpy_write_memory.
261 2012-06-19 Tom Tromey <tromey@redhat.com>
264 * parser-defs.h (insert_type, insert_type_address_space): Declare.
265 (push_type_address_space): Remove.
266 * parse.c (insert_into_type_stack): New function.
267 (insert_type): Likewise.
268 (insert_type_address_space): Rename from push_type_address_space.
269 Insert tp_space_identifier.
270 * c-exp.y (ptr_operator): New production.
271 (abs_decl): Use ptr_operator.
272 (space_identifier): Call insert_type_address_space.
273 (ptype): Don't use const_or_volatile_or_space_identifier.
274 (const_or_volatile_noopt): Call insert_type.
275 (conversion_type_id, conversion_declarator): New productions.
276 (operator): Use conversion_type_id.
278 2012-06-18 Doug Evans <dje@google.com>
280 * symtab.h (minimal_symbol): New member created_by_gdb.
281 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
283 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
284 (search_symbols): Call it instead of lookup_symbol.
285 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
287 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
288 Adjust address for DW_OP_GNU_addr_index.
289 * dwarf2expr.h (dwarf_expr_context): Update comment.
290 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
291 all callers updated. Handle TLS vars described with
292 DW_OP_GNU_const_index.
293 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
294 and DW_OP_GNU_const_index.
295 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
297 * block.c (find_block_in_blockvector): Make explicit the fact that we
300 2012-06-18 Tom Tromey <tromey@redhat.com>
302 * c-exp.y (operator): Remove trailing space after "delete" and
305 2012-06-18 Mark Kettenis <kettenis@gnu.org>
306 Jan Kratochvil <jan.kratochvil@redhat.com>
308 Switch i386 and derived targets to ON_STACK.
309 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
310 (amd64_dicos_init_abi): Remove its installment.
311 * dicos-tdep.c (dicos_init_abi): Remove the
312 set_gdbarch_call_dummy_location call. Update the comment here.
313 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
314 (i386_dicos_init_abi): Remove its installment.
315 * i386-tdep.c (i386_push_dummy_code): New function.
316 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
317 i386_push_dummy_code.
319 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
321 Remove stale dummy frames.
322 * breakpoint.c: Include dummy-frame.h.
323 (longjmp_breakpoint_ops): New variable.
324 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
325 bp_longjmp_call_dummy.
326 (bpstat_what, bptype_string, print_one_breakpoint_location)
327 (init_bp_location): Support bp_longjmp_call_dummy.
328 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
329 (set_longjmp_breakpoint_for_call_dummy)
330 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
332 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
333 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
334 FIXME comment and extend the other comment for bp_call_dummy.
335 (set_longjmp_breakpoint_for_call_dummy)
336 (check_longjmp_breakpoint_for_call_dummy): New declarations.
337 * dummy-frame.c: Include gdbthread.h.
338 (pop_dummy_frame_bpt): New function.
339 (pop_dummy_frame): Call pop_dummy_frame_bpt.
340 (dummy_frame_discard): New function.
341 (cleanup_dummy_frames): Update the comment about longjmps.
342 * dummy-frame.h (dummy_frame_discard): New declaration.
343 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
344 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
345 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
346 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
347 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
348 keep_going if IS_LONGJMP and there is no other reason to stop.
350 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
352 * remote-sim.c (sim_command_completer): Initialize
355 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
357 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
358 * dwarf2loc.c (call_site_parameter_matches): Support
359 CALL_SITE_PARAMETER_PARAM_OFFSET.
360 (needs_dwarf_reg_entry_value): Push stub value.
361 * dwarf2read.c (read_call_site_scope): New variable origin. Support
362 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
363 * gdbtypes.h (enum call_site_parameter_kind): New item
364 CALL_SITE_PARAMETER_PARAM_OFFSET.
365 (struct call_site.parameter.u): New field param_offset.
367 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
369 Code cleanup: Generalize call_site.parameter key.
370 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
371 variable dwarf_reg. New variable kind_u. Update parameters to
372 push_dwarf_reg_entry_value.
373 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
374 * dwarf2expr.h (enum call_site_parameter_kind)
375 (union call_site_parameter_u): Forward declarations.
376 (struct dwarf_expr_context_funcs): Update parameters and their
377 description for push_dwarf_reg_entry_value.
378 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
379 * dwarf2loc.c (call_site_parameter_matches): New function.
380 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
381 description. Use call_site_parameter_matches.
382 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
383 Update parameters and their description.
384 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
385 New variable kind_u. Adjust the caller for updated parameters.
386 (needs_dwarf_reg_entry_value): Update parameters.
387 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
388 instead of attr. Update for the changed fields of struct
390 * gdbtypes.h: Include dwarf2expr.h.
391 (enum call_site_parameter_kind): New.
392 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
393 fb_offset into new union u.
395 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
397 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
398 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
401 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
403 * amd64-linux-nat.c (compat_x32_clock_t): New.
404 (compat_x32_siginfo_t): Likewise.
405 (compat_x32_siginfo_from_siginfo): Likewise.
406 (siginfo_from_compat_x32_siginfo): Likewise.
407 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
408 and siginfo_from_compat_x32_siginfo for x32.
410 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
412 * tracepoint.c (tfile_xfer_partial): Add a lseek.
414 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
416 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
417 instead of gdbarch_ptr_bit.
418 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
419 (amd64_supply_native_gregset): Likewise.
420 (amd64_collect_native_gregset): Likewise.
421 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
422 (amd64_supply_xsave): Likewise.
423 (amd64_collect_fxsave): Likewise.
424 (amd64_collect_xsave): Likewise.
426 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
428 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
429 (amd64_linux_read_description): Check DS segment register for
432 2012-06-15 Tom Tromey <tromey@redhat.com>
434 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
435 init_cutu_and_read_dies.
437 2012-06-15 Iain Sandoe <iain@codesourcery.com>
439 * MAINTAINERS (Write After Approval): Add myself to the list.
441 2012-06-15 Tom Tromey <tromey@redhat.com>
443 * valops.c (value_find_oload_method_list): Now static.
444 * value.h (value_find_oload_method_list): Don't declare.
446 2012-06-15 Tom Tromey <tromey@redhat.com>
448 * valops.c (find_overload_match): Use value_ind.
450 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
452 * infrun.c (handle_inferior_event): Correct indentation.
454 2012-06-14 Doug Evans <dje@google.com>
456 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
457 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
459 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
460 updated. Handle DEBUG_LOC_START_LENGTH.
461 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
462 (loclist_describe_location): Ditto.
464 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
467 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
468 after hiding inline functions.
470 2012-06-13 Joel Brobecker <brobecker@adacore.com>
472 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
473 _initialize_inf_ttrace.
475 2012-06-13 Joel Brobecker <brobecker@adacore.com>
477 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
478 _initialize_hppa_hpux_nat.
480 2012-06-13 Joel Brobecker <brobecker@adacore.com>
482 * remote-sim.c (sim_command_completer): Change type of return
483 value to "VEC (char_ptr) *". Adjust implementation accordingly.
485 2012-06-13 Mark Kettenis <kettenis@gnu.org>
486 Jan Kratochvil <jan.kratochvil@redhat.com>
489 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
490 stack on a 16-byte boundary.
492 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
494 * jit.c (finalize_symtab): Set function's return type to 'void' by
497 2012-06-13 Mark Kettenis <kettenis@gnu.org>
498 H.J. Lu <hongjiu.lu@intel.com>
500 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
501 Move bits common to both the classic LP64 and the new x32 ILP32
503 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
504 (amd64_x32_linux_init_abi): New function.
505 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
508 * i386-tdep.h (i386_pseudo_register_name): New prototype.
509 * i386-tdep.c (i386_pseudo_register_name): Make public.
510 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
511 * amd64-tdep.c (amd64_dword_names): Add "eip".
512 (amd64_x32_pseudo_register_type): New function
513 (amd64_x32_init_abi): New function.
515 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
518 * inferior.h (struct inferior_suspend_state): Comment out.
519 (struct inferior): Comment out the field suspend.
520 * infrun.c (struct infcall_suspend_state): Comment out the field
522 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
525 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
527 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
528 * c-exp.y (classify_inner_name): Remove caller assumptions in the
529 function comment. Return ERROR for unresolved cases. Implement
530 returning proper NAME.
531 (yylex): Accept also NAME from classify_inner_name.
532 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
533 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
535 * cp-support.h (cp_lookup_nested_type): Update its declaration.
537 2012-06-13 Tom Tromey <tromey@redhat.com>
539 * breakpoint.c (condition_completer): New function.
540 (_initialize_breakpoint): Use it.
541 * value.c (complete_internalvar): New function.
542 * value.h (complete_internalvar): Declare.
544 2012-06-13 Tom Tromey <tromey@redhat.com>
546 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
547 * breakpoint.c (catch_syscall_completer): Return a VEC.
548 * cli/cli-cmds.c (complete_command): Update.
549 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
550 (complete_on_enum): Likewise.
551 * command.h: Include gdb_vecs.h.
552 (completer_ftype): Change return type.
553 (complete_on_cmdlist, complete_on_enum): Likewise.
554 * completer.c (noop_completer, filename_completer)
555 (location_completer): Return a VEC.
556 (add_struct_fields): Remove 'nextp' argument. Change 'output'
558 (expression_completer, complete_line_internal, complete_line)
559 (command_completer): Return a VEC.
560 (gdb_completion_word_break_characters, line_completion_function):
562 * completer.h: Include gdb_vecs.h.
563 (complete_line, noop_completer, filename_completer)
564 (expression_completer, location_completer, command_completer):
566 * f-lang.c (f_word_break_characters): Return a VEC.
567 * interps.c (interpreter_completer): Return a VEC.
568 * language.h (struct language_defn)
569 <la_make_symbol_completion_list>: Return a VEC.
570 * python/py-cmd.c (cmdpy_completer): Return a VEC.
571 * symtab.c (free_completion_list): Take a VEC.
572 (return_val_size, return_val_index): Remove.
573 (return_val): Now a VEC.
574 (completion_list_add_name): Update.
575 (default_make_symbol_completion_list_break_on)
576 (default_make_symbol_completion_list, make_symbol_completion_list)
577 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
579 (add_filename_to_list): Update.
580 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
582 (maybe_add_partial_symtab_filename): Update.
583 (make_source_files_completion_list): Return a VEC.
584 * symtab.h (default_make_symbol_completion_list_break_on)
585 (default_make_symbol_completion_list, make_symbol_completion_list)
586 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
587 (make_source_files_completion_list): Update.
589 2012-06-13 Tom Tromey <tromey@redhat.com>
591 * breakpoint.c (add_catch_command): Use completer_ftype.
592 * breakpoint.h: Include command.h.
593 (add_catch_command): Use completer_ftype.
594 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
595 * cli/cli-decode.h (struct cmd_list_element) <completer>:
597 * command.h (completer_ftype): New typedef.
598 (set_cmd_completer): Use it.
599 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
602 2012-06-13 Pedro Alves <palves@redhat.com>
604 Partial revert of previous change.
606 * serial.c (scb_base): New global.
607 (serial_for_fd): New.
608 (serial_open, serial_fdopen_ops): Link new serial in open serials
610 (do_serial_close): Unlink serial from the open serials chain.
612 2012-06-12 Pedro Alves <palves@redhat.com>
614 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
616 (prepare_for_detach): No longer context switch here in non-stop
618 (fetch_inferior_event): Ditto.
619 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
620 to the event thread before removing breakpoints. Switch to the
621 event thread before inserting breakpoints and resuming.
622 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
623 event thread before resuming.
624 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
625 Switch to the event thread before removing breakpoints.
627 2012-06-12 Eli Zaretskii <eliz@gnu.org>
629 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
630 special characters correctly for the Windows shells. See
631 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
633 [!__MINGW32__]: Remove extra double quote character from special
636 2012-06-11 Stan Shebs <stan@codesourcery.com>
638 * ui-out.h: Remove #if 0 declarations.
639 * ui-out.c: Remove #if 0 functions.
641 2012-06-11 Pedro Alves <palves@redhat.com>
643 * ser-base.c (run_async_handler_and_reschedule): New.
644 (fd_event, push_event): Use it.
645 * serial.c (serial_open, serial_fdopen_ops): Set the initial
646 reference count to 1.
647 (do_serial_close): Set the bufp field to NULL. Use serial_unref
649 (serial_is_open, serial_ref, serial_unref): New.
650 * serial.h (serial_open): Adjust comment.
651 (serial_is_open): Declare.
652 (serial_close): Adjust comment.
653 (serial_ref, serial_unref) Declare.
654 (struct serial): New field 'refcnt'.
656 2012-06-11 Pedro Alves <palves@redhat.com>
658 Remove #if 0'd "connect" command, and unnecessary associated
659 refcounting and serial reuse bits.
661 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
662 * serial.c (last_serial_opened): Delete.
664 (serial_open): Adjust.
665 (serial_for_fd): Delete.
666 (serial_fdopen_ops, do_serial_close): Adjust.
667 (serial_fdopen_ops): Adjust.
669 2012-06-11 Pedro Alves <palves@redhat.com>
671 * serial.c (do_serial_close): Remove early return when SCB is
674 2012-06-11 Tom Tromey <tromey@redhat.com>
676 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
678 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
680 Fix regression by the "ambiguous linespec" series.
681 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
682 get_last_displayed_symtab and get_last_displayed_line and depending
685 2012-06-11 Tom Tromey <tromey@redhat.com>
687 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
688 (dw2_find_symbol_file): Use it.
690 2012-06-11 Michael Eager <eager@eagercon.com>
692 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
693 * mips-linux-tdep.h (mips_signals): New
695 2012-06-11 Tom Tromey <tromey@redhat.com>
697 * infrun.c (handle_inferior_event)
698 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
700 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
701 exception logic in all cases. Update comments.
702 (insert_longjmp_resume_breakpoint): Set the exception resume
705 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
707 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
709 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
711 * valarith.c (binop_types_user_defined_p): Fix a typo.
713 2012-06-08 Yao Qi <yao@codesourcery.com>
714 Chung-Lin Tang <cltang@codesourcery.com>
716 * arch-utils.c (default_return_in_first_hidden_param_p): New.
717 * arch-utils.h: Declare.
718 * gdbarch.sh: Add return_in_first_hidden_param_p.
719 * gdbarch.c, gdbarch.h: Regenerated.
720 * infcall.c (call_function_by_hand): Call
721 gdbarch_return_in_first_hidden_param_p instead of
722 language_pass_by_reference.
724 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
725 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
726 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
727 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
728 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
729 `cplus_return_struct_by_reference'.
730 (tic6x_return_value): Handle language cplusplus.
731 (tic6x_return_in_first_hidden_param_p): New.
732 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
734 2012-06-07 Doug Evans <dje@google.com>
736 * dwarf2read.c (dwarf2_cu): Add comment.
738 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
740 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
742 (mips_eabi_push_dummy_call): Likewise.
743 (mips_n32n64_push_dummy_call): Likewise.
744 (mips_o32_push_dummy_call): Likewise.
745 (mips_o64_push_dummy_call): Likewise.
747 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
749 * mips-tdep.c (mips_convert_register_p): Correct coding style.
751 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
753 * mips-tdep.c (mips_pseudo_register_type): Use
754 mips_float_register_p.
756 2012-06-06 Pedro Alves <palves@redhat.com>
758 * infrun.c (handle_inferior_event): Remove calls to
759 reinit_frame_cache that follow a context_switch call.
761 2012-06-06 Pedro Alves <palves@redhat.com>
763 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
764 context_switch and remove stale comment.
766 2012-06-06 Pedro Alves <palves@redhat.com>
768 * infrun.c (struct execution_control_state): Remove
769 `new_thread_event' field.
770 (handle_inferior_event): Simplify new threads handling; don't
771 resume the inferior if we find a new thread.
773 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
775 * NEWS: Document the deprecation of SH's 'regs' command.
776 * inferior.h (all_registers_info): Add function declaration.
777 * sh-tdep.c (sh_show_regs): Remove variable.
778 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
779 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
780 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
781 (sh_show_regs_command): Remove functions.
782 (sh_gdbarch_init): Don't set sh_show_regs.
783 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
784 'info all-registers'.
785 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
786 (sh64_show_regs): Remove functions.
787 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
789 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
791 * configure.ac: Move development=true below AC_INIT.
792 * configure: Regenerate.
794 2012-06-05 Stan Shebs <stan@codesourcery.com>
796 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
799 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
801 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
803 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
804 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
805 * target.c (target_read_stack, target_write_memory)
806 (target_write_raw_memory): Likewise.
807 * target.h (target_read_stack, target_write_memory)
808 (target_write_raw_memory): Likewise.
810 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
812 * symfile-mem.c: Change gdb_static_assert to ssize_t.
813 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
814 * target.c (target_read_memory): Change LEN to ssize_t.
815 * target.h (target_read_memory): Change LEN to ssize_t.
817 2012-06-05 Pedro Alves <palves@redhat.com>
821 * breakpoint.c (until_break_command): Only fetch the selected
822 frame after decode_line_1.
824 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
826 * solib-svr4.c (enable_break): Don't fallback to setting the solib
827 event breakpoint at _start, __start or main if a program
828 interpreter is not found.
830 2012-06-05 Joel Brobecker <brobecker@adacore.com>
832 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
834 * windows-tdep.c: #include "objfiles.h".
835 (windows_iterate_over_objfiles_in_search_order): New function.
836 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
837 iterate_over_objfiles_in_search_order gdbarch method to
838 windows_iterate_over_objfiles_in_search_order.
839 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
841 2012-06-05 Joel Brobecker <brobecker@adacore.com>
843 * gdbarch.sh: Add generation of
844 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
845 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
846 (iterate_over_objfiles_in_search_order): New gdbarch method.
847 * gdbarch.h, gdbarch.c: Regenerate.
848 * objfiles.h (default_iterate_over_objfiles_in_search_order):
850 * objfiles.c (default_iterate_over_objfiles_in_search_order):
852 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
853 out of lookup_symbol_aux_symtabs.
854 (lookup_symbol_aux_symtabs): Replace extracted-out code by
855 call to lookup_symbol_aux_objfile.
856 (struct global_sym_lookup_data): New type.
857 (lookup_symbol_global_iterator_cb): New function.
858 (lookup_symbol_global): Search for symbol using
859 gdbarch_iterate_over_objfiles_in_search_order and
860 lookup_symbol_global_iterator_cb.
861 * findvar.c (struct minsym_lookup_data): New type.
862 (minsym_lookup_iterator_cb): New function.
863 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
864 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
865 and minsym_lookup_iterator_cb.
867 2012-06-05 Joel Brobecker <brobecker@adacore.com>
869 Revert the following patch:
870 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
871 try locating the symbol in the symbol's own objfile first, before
872 extending the search to all objfiles.
873 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
874 out of lookup_symbol_aux_symtabs.
875 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
876 Replace extracted-out code by call to lookup_symbol_aux_objfile.
877 Do not search EXCLUDE_OBJFILE.
878 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
879 (lookup_symbol_global): Search for matches in the block's objfile
880 first, before searching all other objfiles.
882 2012-06-05 Joel Brobecker <brobecker@adacore.com>
884 * breakpoint.c (find_condition_and_thread): Stop parsing
885 as soon as the first invalid keyword is found.
887 2012-06-05 Joel Brobecker <brobecker@adacore.com>
889 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
891 2012-06-05 Joel Brobecker <brobecker@adacore.com>
893 * config/djgpp/djcheck.sh: Add copyright header.
895 2012-06-05 Joel Brobecker <brobecker@adacore.com>
897 * copyright.py (update_files, main): Fix path to update-copyright
900 2012-06-05 Joel Brobecker <brobecker@adacore.com>
902 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
903 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
904 for which a reminder to update by hand is printed.
906 2012-06-04 Doug Evans <dje@google.com>
908 * buildsym.c (make_blockvector): Add comment.
910 2012-06-04 Pedro Alves <palves@redhat.com>
912 * arch-utils.c (default_gdb_signal_from_target): Delete.
913 * arch-utils.h (default_gdb_signal_from_target): Delete.
914 * corelow.c (core_open) <signal mapping>: Extended comment. Check
915 gdbarch_gdb_signal_from_target_p.
916 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
918 * gdbarch.h: Regenerate.
919 * gdbarch.c: Regenerate.
921 2012-06-04 Pedro Alves <palves@redhat.com>
923 * gdbarch.sh (gdb_signal_from_target): Mention that the
924 implementation of the method must be host independent.
925 * gdbarch.h: Regenerate.
927 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
929 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
931 (target_read_memory_bfd): New function.
932 (symbol_file_add_from_memory): Use it.
934 2012-06-03 Doug Evans <dje@google.com>
936 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
938 (basic_lookup_transparent_type): Ditto.
940 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
941 (ALL_PRIMARY_SYMTABS): Use it.
942 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
943 * dwarf2read.c (dw2_find_symbol_file): Ditto.
944 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
945 * symtab.c (lookup_symbol_aux_objfile): Ditto.
946 (basic_lookup_transparent_type): Ditto.
948 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
950 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
951 it to optimize resolution of demangled name.
953 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
955 * configure.ac (development): Define new variable.
956 Call AC_CHECK_LIB for mcheck if $development.
957 (ERROR_ON_WARNING): Enable it by default only if $development.
958 * config.in: Regenerate.
959 * configure: Regenerate.
961 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
963 * target.c (target_read_memory): Make LEN argument as size_t.
964 * target.h (target_read_memory): Likewise.
966 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
968 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
970 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
972 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
973 BookE interface for PowerPC server processors if not available
976 2012-05-31 Keith Seitz <keiths@redhat.com>
978 * linespec.c (decode_objc): Add cleanup to free
980 (find_linespec_symbols): Add cleanup to free CLASSES.
981 * symfile.c (find_separate_debug_file_by_debuglink): Add
982 cleanup to free DEBUGLINK.
983 * ui-out.c (clear_header_list): No need to check if
984 HEADER_NEXT.COLHDR is NULL.
985 Free HEADER_NEXT.COL_NAME.
987 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
989 * ada-lang.c (standard_lookup): Prevent uninitialized variable
992 2012-05-30 Jeff Kenton <jkenton@tilera.com>
994 * configure.host (gdb_host_cpu): Handle tilegx*.
995 (gdb_host): Handle tilegx-*-linux*.
996 * tilegx-linux-nat.c: New file.
997 * config/tilegx/linux.mh: New file.
999 2012-05-30 Jeff Kenton <jkenton@tilera.com>
1001 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
1002 tilegx-linux-tdep.o.
1003 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
1004 tilegx-linux-tdep.c.
1005 * configure.tgt: Handle tilegx-*-linux*.
1006 * tilegx-tdep.h: New file.
1007 * tilegx-tdep.c: New file.
1008 * tilegx-linux-tdep.c: New file.
1009 * regformats/reg-tilegx.dat: New file.
1011 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
1013 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
1014 accounting of hw watchpoints on ppc.
1016 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
1018 * source.c (openp): Expand tilde in path entries.
1020 2012-05-29 Doug Evans <dje@google.com>
1022 * buildsym.c (block_compar): Fix comment.
1023 (end_symtab): Fix and clarify some comments.
1025 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
1026 cleanup_undefined_types.
1027 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
1028 All callers updated.
1030 2012-05-29 Tom Tromey <tromey@redhat.com>
1032 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
1034 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
1035 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
1037 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
1040 2012-05-29 Tristan Gingold <gingold@adacore.com>
1042 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
1043 (struct darwin_info): ... New struct.
1044 (solib_darwin_pspace_data): New variable.
1045 (darwin_pspace_data_cleanup): New function.
1046 (get_darwin_info): Likewise.
1047 (darwin_dyld_version_ok, darwin_load_image_infos)
1048 (darwin_solib_get_all_image_info_addr_at_init)
1049 (darwin_solib_read_all_image_info_addr): Add info argument.
1051 (darwin_current_sos): Use per pspace structure.
1052 (darwin_solib_create_inferior_hook): Likewise.
1053 (darwin_clear_solib): Likewise.
1054 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
1056 2012-05-28 Pedro Alves <palves@redhat.com>
1058 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
1059 block that uses them. Clear ecss before handling each event.
1061 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1063 * solib-svr4.c (svr4_current_sos): New comment on
1064 svr4_current_sos_via_xfer_libraries fall back.
1066 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1068 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
1069 it as a fallback for TYPE_IS_OPAQUE.
1070 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1071 symbols for lookup_symbol.
1073 2012-05-24 John Steele Scott <toojays@toojays.net>
1075 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1076 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1077 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1078 (check_producer): ... this new function, which also checks for ICC
1079 and caches the result.
1080 (producer_is_icc): New function.
1081 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1084 2012-05-24 Pedro Alves <palves@redhat.com>
1088 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1089 (default_gdb_signal_to_target): ... this. Add comment.
1090 (default_gdb_signal_from_host): Rename to ...
1091 (default_gdb_signal_from_target): ... this. Add comment.
1092 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1093 (default_gdb_signal_to_target): ... this.
1094 (default_gdb_signal_from_host): Rename to ...
1095 (default_gdb_signal_from_target): ... this.
1096 * corelow.c (core_open): Adjust to naming change. Replace comment.
1097 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1098 (gdb_signal_from_target): ... this. Adjust to
1099 default_gdb_signal_from_host naming change. Extend comment.
1100 (gdb_signal_to_host): Rename to ...
1101 (gdb_signal_to_target): ... this. Adjust to
1102 default_gdb_signal_to_host naming change.
1103 * gdbarch.h, gdbarch.c: Renegerate.
1105 2012-05-24 Pedro Alves <palves@redhat.com>
1109 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1111 2012-05-24 Pedro Alves <palves@redhat.com>
1115 Replace target_signal with gdb_signal throughout.
1117 2012-05-24 Pedro Alves <palves@redhat.com>
1121 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1122 string, instead of reusing the va_list argument.
1124 2012-05-24 Tom Tromey <tromey@redhat.com>
1126 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1129 2012-05-23 Doug Evans <dje@google.com>
1131 * symtab.c (search_symbols): Formatting fixes.
1132 (print_symbol_info): Formatting fixes.
1134 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1135 int64_t change to leb128 API.
1136 (read_encoded_value, decode_frame_entry_1): Ditto.
1137 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1138 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1139 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1140 (execute_stack_op): Ditto.
1141 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1142 (safe_read_uleb128, safe_read_sleb128): Ditto.
1143 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1144 (dwarf2_compile_expr_to_ax): Ditto.
1145 (locexpr_describe_location_piece): Ditto.
1146 (disassemble_dwarf_expression): Ditto.
1147 (locexpr_describe_location_1): Ditto.
1149 2012-05-23 Stan Shebs <stan@codesourcery.com>
1150 Kwok Cheung Yeung <kcy@codesourcery.com>
1152 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1153 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1154 (mi-cmd-info.o): New rule.
1155 * osdata.h (info_osdata_command): New declaration.
1156 * osdata.c (info_osdata_command): Change to non-static.
1157 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1158 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1159 * mi/mi-cmd-info.c: New file.
1161 2012-05-23 Doug Evans <dje@google.com>
1163 * symtab.c (search_symbols): Pass NULL for file_matcher to
1164 expand_symtabs_matching if there are no files to match.
1166 * gdbtypes.c (lookup_typename): Simplify.
1168 2012-05-23 Pedro Alves <palves@redhat.com>
1170 * arch-utils.h (default_target_signal_to_host): Delete.
1171 * arch-utils.c (default_target_signal_to_host): Delete.
1172 * gdbarch.sh (target_signal_to_host): Remove.
1173 * gdbarch.h, gdbarch.c: Regenerate.
1175 2012-05-22 Doug Evans <dje@google.com>
1177 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1179 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1180 (execute_cfa_program): Update to match API of leb128 functions.
1181 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1183 (read_unsigned_leb128, read_signed_leb128): Delete.
1184 (read_initial_length): Change type of buf argument to
1186 (read_encoded_value): Update to match API of leb128 functions.
1187 (decode_frame_entry): Change result to "const gdb_byte *", and
1188 similarly for "start" parameter.
1189 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1190 (dwarf2_build_frame_info): Change local frame_ptr to
1192 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1193 read_uleb128, read_sleb128. All callers updated.
1194 (safe_skip_leb128): New function.
1195 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1196 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1197 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1198 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1199 read_uleb128, read_sleb128.
1200 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1201 (execute_stack_op): Update to match API of leb128 functions.
1202 * dwarf2expr.h: #include "leb128.h".
1203 (read_uleb128, read_sleb128): Delete.
1204 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1205 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1206 * dwarf2loc.c (debug_loc_kind): New enum.
1207 (decode_debug_loc_addresses): New function.
1208 (decode_debug_loc_dwo_addresses): New function.
1209 (dwarf2_find_location_expression): Rewrite.
1210 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1211 (locexpr_describe_location_piece): Ditto.
1212 (disassemble_dwarf_expression): Ditto.
1213 (locexpr_describe_location_1): Ditto.
1214 (loclist_describe_location): Rewrite.
1215 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1216 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1217 (dwarf2_section_buffer_overflow_complaint): Renamed from
1218 dwarf2_macros_too_long_complaint. All callers updated.
1219 (skip_leb128): Delete.
1220 (init_cu_die_reader): Initialize reader->buffer_end.
1221 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1222 (skip_form_bytes): New arg buffer_end. All callers updated.
1223 Replace call to skip_leb128 with gdb_skip_leb128.
1224 (skip_unknown_opcode): New arg mac_end. All callers updated.
1225 (fill_in_loclist_baton): Initialize baton->from_dwo.
1227 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1229 * mips-linux-nat.c (mips_linux_read_description): Use a more
1230 verbose error message.
1232 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1234 * NEWS: Add MIPS/Linux DSP support.
1235 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1236 (SIGCONTEXT_DSPCTL): New macro.
1237 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1238 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1239 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1240 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1241 (N64_SIGCONTEXT_HI3): Likewise.
1242 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1243 (N64_SIGCONTEXT_LO3): Likewise.
1244 (N64_SIGCONTEXT_DSPCTL): Likewise.
1245 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1246 (mips_linux_o32_sigframe_init): Handle DSP registers.
1247 (mips_linux_n32n64_sigframe_init): Likewise.
1249 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1251 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1254 2012-05-22 Pedro Alves <palves@redhat.com>
1256 * target.h (store_waitstatus): Move declaration ...
1257 * inf-child.h (store_waitstatus): ... here.
1258 * target.c: Move inclusion of gdb_wait.h, and ...
1259 (store_waitstatus): ... this ...
1260 * inf-child.c: ... here.
1261 * linux-nat.c: Include inf-child.h.
1262 * rs6000-nat.c: Include inf-child.h.
1263 * spu-linux-nat.c: Include inf-child.h.
1265 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1267 * tracepoint.c (start_tracing): Add missing i18n markup.
1268 (stop_tracing, set_trace_user): Ditto.
1269 (set_trace_notes, set_trace_stop_notes): Ditto.
1271 2012-05-21 Tom Tromey <tromey@redhat.com>
1274 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1276 * value.h (value_cast_pointers): Update.
1277 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1278 (value_cast): Update.
1279 (update_search_result): New function.
1280 (do_search_struct_field): New, from search_struct_field. Check
1281 for ambiguous results.
1282 (search_struct_field): Rewrite.
1283 * infcall.c (value_arg_coerce): Update.
1284 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1285 value_cast_pointers.
1286 * ada-lang.c (ada_convert_actual): Update.
1288 2012-05-21 Tom Tromey <tromey@redhat.com>
1290 * macroexp.c (macro_stringify): Terminate the string.
1292 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1294 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1296 * auto-load.c (auto_load_expand_dir_vars): New function.
1297 (auto_load_safe_path_vec_update): Use it, remove the
1298 substitute_path_component call thanks to it.
1299 (auto_load_objfile_script): Remove the debug_file_directory processing.
1300 Use auto_load_expand_dir_vars, remove the substitute_path_component
1302 * configure: Regenerate.
1303 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1304 path. Escape $ also for $debugdir.
1305 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1306 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1308 2012-05-20 Doug Evans <dje@google.com>
1310 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1311 before use. Check for symtab->includes == NULL before scanning it.
1313 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1315 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1317 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1319 * NEWS: Add microMIPS support and "set mips compression",
1320 "show mips compression" commands.
1321 * mips-tdep.h (mips_isa): New enum.
1322 (gdbarch_tdep): Add mips_isa.
1323 (mips_pc_is_mips16): Update prototype.
1324 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1325 * mips-tdep.c (mips_compression_mips16): New variable.
1326 (mips_compression_micromips): Likewise.
1327 (mips_compression_strings): Likewise.
1328 (mips_compression_string): Likewise.
1329 (is_mips16_isa, is_micromips_isa): New functions.
1330 (is_mips16_addr): Rename to...
1331 (is_compact_addr): ... this.
1332 (unmake_mips16_addr): Likewise to...
1333 (unmake_compact_addr): ... this.
1334 (make_mips16_addr): Likewise to...
1335 (make_compact_addr): ... this.
1336 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1338 (mips_elf_make_msymbol_special): Handle microMIPS code.
1339 (msymbol_is_special): Rename to...
1340 (msymbol_is_mips16): ... this.
1341 (mips_make_symbol_special, mips_pc_is_mips16): Update
1343 (msymbol_is_mips, msymbol_is_micromips): New functions.
1344 (mips16_to_32_reg): Rename to...
1345 (mips_reg3_to_reg): ... this.
1346 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1347 (mips_pc_isa): Likewise.
1348 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1350 (mips_fetch_instruction): Pass return status instead of printing
1351 an error message if requested. Handle microMIPS code. Bail out
1353 (micromips_op): New macro.
1354 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1355 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1356 (b6s4_op, b7s3_reg): Likewise.
1357 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1358 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1359 (mips_insn_size): New function.
1360 (mips32_next_pc): Update mips_fetch_instruction call.
1361 (micromips_relative_offset7): New function.
1362 (micromips_relative_offset10): Likewise.
1363 (micromips_relative_offset16): Likewise.
1364 (micromips_pc_insn_size): Likewise.
1365 (micromips_bc1_pc): Likewise.
1366 (micromips_next_pc): Likewise.
1367 (unpack_mips16): Update mips_fetch_instruction call.
1368 (extended_mips16_next_pc): Update according to change to
1370 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1372 (mips16_scan_prologue): Update mips_fetch_instruction call.
1373 Update according to change to mips16_to_32_reg.
1374 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1375 (mips_insn16_frame_base_sniffer): Likewise.
1376 (micromips_decode_imm9): New function.
1377 (micromips_scan_prologue): Likewise.
1378 (mips_micro_frame_cache): Likewise.
1379 (mips_micro_frame_this_id): Likewise.
1380 (mips_micro_frame_prev_register): Likewise.
1381 (mips_micro_frame_sniffer): Likewise.
1382 (mips_micro_frame_unwind): New variable.
1383 (mips_micro_frame_base_address): New function.
1384 (mips_micro_frame_base): New variable.
1385 (mips_micro_frame_base_sniffer): New function.
1386 (mips32_scan_prologue): Update mips_fetch_instruction call.
1387 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1388 rather than for MIPS16.
1389 (mips_insn32_frame_base_sniffer): Likewise.
1390 (mips_addr_bits_remove): Handle microMIPS code.
1391 (deal_with_atomic_sequence): Rename to...
1392 (mips_deal_with_atomic_sequence): ... this. Update the type
1393 of the variable used to hold an instruction. Remove the ISA bit
1394 check. Update mips_fetch_instruction call.
1395 (micromips_deal_with_atomic_sequence): New function.
1396 (deal_with_atomic_sequence): Likewise.
1397 (mips_about_to_return): Handle microMIPS code. Update
1398 mips_fetch_instruction call.
1399 (heuristic_proc_start): Check for the standard MIPS ISA rather
1400 than for MIPS16. Update mips_pc_is_mips16 and
1401 mips_fetch_instruction calls. Handle microMIPS code.
1402 (mips_push_dummy_code): Handle microMIPS code.
1403 (mips_eabi_push_dummy_call): Likewise.
1404 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1405 (mips_o64_push_dummy_call): Handle microMIPS code.
1406 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1407 (is_delayed): Remove function.
1408 (mips_single_step_through_delay): Replace the call to is_delayed
1409 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1410 Handle microMIPS code.
1411 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1413 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1415 (micromips_in_function_epilogue_p): New function.
1416 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1418 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1420 (gdb_print_insn_mips): Likewise.
1421 (mips_breakpoint_from_pc): Likewise.
1422 (mips_remote_breakpoint_from_pc): New function.
1423 (mips32_instruction_has_delay_slot): Simplify making use of the
1424 updated mips_fetch_instruction interface.
1425 (micromips_instruction_has_delay_slot): New function.
1426 (mips16_instruction_has_delay_slot): Simplify making use of the
1427 updated mips_fetch_instruction interface.
1428 (mips_adjust_breakpoint_address): Check for the standard MIPS
1429 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1430 calls. Handle microMIPS code.
1431 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1432 (mips_skip_trampoline_code): Handle microMIPS code.
1433 (global_mips_compression): New function.
1434 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1435 file flags. Register the microMIPS remote breakpoint handler
1436 and heuristic frame unwinder.
1437 (show_mips_compression): New function.
1438 (_initialize_mips_tdep): Add the "set mips compression" and
1439 "show mips compression" commands.
1441 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1446 * amd64-darwin-tdep.c:
1447 * arm-symbian-tdep.c:
1451 * bfin-linux-tdep.c:
1458 * dwarf2-frame-tailcall.c:
1487 * microblaze-tdep.c:
1488 * mips-linux-tdep.c:
1496 * python/py-finishbreakpoint.c:
1497 * python/py-inferior.c:
1498 * python/py-infthread.c:
1502 * remote-m32r-sdi.c:
1506 * rs6000-aix-tdep.c:
1532 * amd64-darwin-tdep.c:
1533 * arm-symbian-tdep.c:
1534 * arm-tdep.c: Delete unused variables.
1536 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1538 Rename $ddir to $datadir.
1539 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1540 * auto-load.c (auto_load_safe_path_vec_update)
1541 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1542 * configure: Regenerate.
1543 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1544 Likewise. Remove the 'use $ddir' help string.
1546 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1548 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1549 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1551 2012-05-18 Tom Tromey <tromey@redhat.com>
1554 * valprint.h (struct value_print_options) <symbol_print>: New
1556 * valprint.c (user_print_options): Add default for symbol_print.
1557 (show_symbol_print): New function.
1558 (generic_val_print): Respect symbol_print.
1559 (_initialize_valprint): Add "print symbol" setting.
1560 * f-valprint.c (f_val_print): Respect symbol_print.
1561 * c-valprint.c (c_val_print): Respect symbol_print.
1563 * printcmd.c (print_address_symbolic): Return int. Ignore some
1565 (print_address_demangle): Return int.
1566 * defs.h: (print_address_symbolic): Return int.
1567 * value.h (print_address_demangle): Return int.
1569 2012-05-18 Tom Tromey <tromey@redhat.com>
1571 * valprint.c (val_print_string): Don't print leading space.
1572 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1573 print space before string or vtbl.
1574 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1576 * jv-valprint.c (java_value_print): Print space before string.
1577 * go-valprint.c (print_go_string): Print space before string.
1578 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1579 space before string.
1580 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1581 space before string or vtbl.
1582 * auxv.c (fprint_target_auxv): Print space after address.
1584 2012-05-18 Tom Tromey <tromey@redhat.com>
1586 * printcmd.c (print_address_demangle): Remove special case for 0.
1588 2012-05-18 Tom Tromey <tromey@redhat.com>
1590 * printcmd.c (print_address_demangle): Add 'opts' argument.
1591 * p-valprint.c (pascal_val_print): Update.
1592 * jv-valprint.c (java_val_print): Update.
1594 * valprint.c (generic_val_print): Update.
1595 (print_function_pointer_address): Add 'options' argument. Remove
1596 'addressprint' argument. Update.
1597 * m2-valprint.c (print_unpacked_pointer): Update.
1598 * gnu-v3-abi.c (print_one_vtable): Update.
1599 (gnuv3_print_method_ptr): Update.
1600 * f-valprint.c (f_val_print): Update.
1601 * cp-valprint.c (cp_print_value_fields): Update.
1602 * valprint.h (print_function_pointer_address): Update.
1603 * c-valprint.c (c_val_print): Update.
1605 2012-05-18 Tom Tromey <tromey@redhat.com>
1607 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1608 directly corresponding to the found psymtab.
1609 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1610 (dw2_find_pc_sect_symtab): Use it.
1611 * block.h (blockvector_contains_pc): Declare.
1612 * block.c (find_block_in_blockvector): New function.
1613 (blockvector_for_pc_sect): Use it.
1614 (blockvector_contains_pc): New function.
1616 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1618 * mips-tdep.h (mips_write_pc): New prototype.
1619 * mips-tdep.c (mips_write_pc): Make external, add description.
1620 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1623 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1625 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1627 (mips_unwind_pc, mips_write_pc): Likewise.
1628 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1631 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1633 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1634 proc_warn, proc_error, proc_get_status, proc_flags,
1635 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1636 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1637 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1638 proc_stop_process, proc_wait_for_stop, proc_run_process,
1639 proc_set_traced_signals, proc_set_traced_faults,
1640 proc_set_traced_sysentry, proc_set_traced_sysexit,
1641 proc_set_held_signals, proc_get_held_signals,
1642 proc_get_traced_signals, proc_get_traced_faults,
1643 proc_get_traced_sysentry, proc_get_traced_sysexit,
1644 proc_clear_current_fault, proc_set_current_signal,
1645 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1646 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1647 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1648 proc_get_current_thread, proc_get_current_thread,
1649 proc_get_current_thread, proc_update_threads,
1650 proc_update_threads, proc_update_threads, proc_update_threads,
1651 proc_iterate_over_threads, procfs_find_new_threads,
1652 procfs_pid_to_str): Make static. Remove advance declaration.
1653 (proc_cursig): Make static. Conditionalized defintion on
1654 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1655 (proc_syscall, proc_set_kill_on_last_close,
1656 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1657 proc_get_pending_signals, proc_get_signal_actions,
1658 proc_trace_signal, proc_ignore_signal): Delete.
1660 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1662 * coffread.c (cs_section_address): Passing proper argument for
1663 `bfd_get_section_vma'.
1664 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1665 `bfd_get_section_flags'.
1666 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1667 `bfd_get_section_vma'.
1669 2012-05-16 Tom Tromey <tromey@redhat.com>
1672 * macrotab.h: (macro_define_special): Declare.
1673 (enum macro_special_kind): New.
1674 (struct macro_definition) <argc, replacement>: Update comments.
1675 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1676 (macro_define_object_internal): New function.
1677 (macro_define_object): Use it.
1678 (macro_define_special): New function.
1679 (fixup_definition): New function.
1680 (macro_lookup_definition, foreach_macro_in_scope)
1681 (foreach_macro): Use fixup_definition.
1682 * macroexp.h (macro_stringify): Declare.
1683 * macroexp.c (free_buffer_return_text): New function.
1684 (stringify): Constify "arg".
1685 (macro_stringify): New function.
1686 * dwarf2read.c (macro_start_file): Call macro_define_special.
1688 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1689 Maciej W. Rozycki <macro@mips.com>
1691 * breakpoint.h (bp_location): Add related_address member.
1692 * inferior.h (get_return_value): Take a pointer to struct value
1693 instead of struct type for the function requested.
1694 * value.h (using_struct_return): Likewise.
1695 * gdbarch.sh (return_value): Take a pointer to struct value
1696 instead of struct type for the function requested.
1697 * breakpoint.c (set_breakpoint_location_function): Initialize
1698 related_address for bp_gnu_ifunc_resolver breakpoints.
1699 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1700 requested function's address to gdbarch_return_value.
1701 * eval.c (evaluate_subexp_standard): Pass the requested
1702 function's address to using_struct_return.
1703 * infcall.c (call_function_by_hand): Pass the requested
1704 function's address to using_struct_return and
1705 gdbarch_return_value.
1706 * infcmd.c (get_return_value): Take a pointer to struct value
1707 instead of struct type for the function requested.
1708 (print_return_value): Update accordingly.
1709 (finish_command_continuation): Likewise.
1710 * stack.c (return_command): Pass the requested function's
1711 address to using_struct_return and gdbarch_return_value.
1712 * value.c (using_struct_return): Take a pointer to struct value
1713 instead of struct type for the function requested. Pass the
1714 requested function's address to gdbarch_return_value.
1715 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1716 New function_value member, replacing function_type.
1717 (bpfinishpy_dealloc): Update accordingly.
1718 (bpfinishpy_pre_stop_hook): Likewise.
1719 (bpfinishpy_init): Likewise. Record the requested function's
1721 * mips-tdep.c (mips_fval_reg): New enum.
1722 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1723 words put in GP registers.
1724 (mips_o64_push_dummy_call): Update a comment.
1725 (mips_o32_return_value): Take a pointer to struct value instead
1726 of struct type for the function requested and use it to check if
1727 using the MIPS16 calling convention. Return the designated
1728 general purpose registers for floating-point values returned in
1730 (mips_o64_return_value): Likewise.
1731 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1732 (ppc_sysv_abi_broken_return_value): Likewise.
1733 (ppc64_sysv_abi_return_value): Likewise.
1734 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1735 value instead of struct type for the function requested.
1736 * amd64-tdep.c (amd64_return_value): Likewise.
1737 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1738 * arm-tdep.c (arm_return_value): Likewise.
1739 * avr-tdep.c (avr_return_value): Likewise.
1740 * bfin-tdep.c (bfin_return_value): Likewise.
1741 * cris-tdep.c (cris_return_value): Likewise.
1742 * frv-tdep.c (frv_return_value): Likewise.
1743 * h8300-tdep.c (h8300_return_value): Likewise.
1744 (h8300h_return_value): Likewise.
1745 * hppa-tdep.c (hppa32_return_value): Likewise.
1746 (hppa64_return_value): Likewise.
1747 * i386-tdep.c (i386_return_value): Likewise.
1748 * ia64-tdep.c (ia64_return_value): Likewise.
1749 * iq2000-tdep.c (iq2000_return_value): Likewise.
1750 * lm32-tdep.c (lm32_return_value): Likewise.
1751 * m32c-tdep.c (m32c_return_value): Likewise.
1752 * m32r-tdep.c (m32r_return_value): Likewise.
1753 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1754 * m68k-tdep.c (m68k_return_value): Likewise.
1755 (m68k_svr4_return_value): Likewise.
1756 * m88k-tdep.c (m88k_return_value): Likewise.
1757 * mep-tdep.c (mep_return_value): Likewise.
1758 * microblaze-tdep.c (microblaze_return_value): Likewise.
1759 * mn10300-tdep.c (mn10300_return_value): Likewise.
1760 * moxie-tdep.c (moxie_return_value): Likewise.
1761 * mt-tdep.c (mt_return_value): Likewise.
1762 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1763 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1764 (ppc_sysv_abi_broken_return_value): Likewise.
1765 (ppc64_sysv_abi_return_value): Likewise.
1766 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1767 * rl78-tdep.c (rl78_return_value): Likewise.
1768 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1769 * rx-tdep.c (rx_return_value): Likewise.
1770 * s390-tdep.c (s390_return_value): Likewise.
1771 * score-tdep.c (score_return_value): Likewise.
1772 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1773 (sh_return_value_fpu): Likewise.
1774 * sh64-tdep.c (sh64_return_value): Likewise.
1775 * sparc-tdep.c (sparc32_return_value): Likewise.
1776 * sparc64-tdep.c (sparc64_return_value): Likewise.
1777 * spu-tdep.c (spu_return_value): Likewise.
1778 * tic6x-tdep.c (tic6x_return_value): Likewise.
1779 * v850-tdep.c (v850_return_value): Likewise.
1780 * vax-tdep.c (vax_return_value): Likewise.
1781 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1782 * xtensa-tdep.c (xtensa_return_value): Likewise.
1783 * gdbarch.c: Regenerate.
1784 * gdbarch.h: Regenerate.
1786 2012-05-15 Tom Tromey <tromey@redhat.com>
1788 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1790 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1792 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1793 of command in two error message.
1795 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1797 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1799 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1801 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1803 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1805 * NEWS (show auto-load scripts-directory): Add forgotten command.
1807 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1809 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1812 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1814 * amd64-tdep.c: Include features/i386/x32.c and
1815 features/i386/x32-avx.c.
1816 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1817 initialize_tdesc_x32_avx.
1819 2012-05-14 Stan Shebs <stan@codesourcery.com>
1822 * breakpoint.h (enum bptype): New type bp_dprintf.
1823 (struct breakpoint): New field extra_string.
1824 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1825 (create_breakpoint): Add extra_string arg.
1826 * breakpoint.c (dprintf_breakpoint_ops): New.
1827 (is_breakpoint): Add bp_dprintf.
1828 (bpstat_what): Add dprintf case.
1829 (bptype_string): Ditto.
1830 (print_one_breakpoint_location): Ditto.
1831 (init_bp_location): Ditto.
1832 (bkpt_print_mention): Ditto.
1833 (dprintf_style_enums): New array.
1834 (dprintf_style): New global.
1835 (dprintf_function): New global.
1836 (dprintf_channel): New global.
1837 (update_dprintf_command_list): New function.
1838 (update_dprintf_commands): New function.
1839 (init_breakpoint_sal): Add extra_string argument, handle it.
1840 (create_breakpoint_sal): Add extra_string argument.
1841 (create_breakpoints_sal): Add extra_string argument, update callers.
1842 (find_condition_and_thread): Add extra argument.
1843 (create_breakpoint): Add extra_string argument, record it.
1844 (dprintf_command): New function.
1845 (break_command_1): Add arg to create_breakpoint call.
1846 (handle_gnu_v3_exceptions): Ditto.
1847 (trace_command): Ditto.
1848 (ftrace_command): Ditto.
1849 (strace_command): Ditto.
1850 (bkpt_print_mention): Add dprintf case.
1851 (create_breakpoint_sal_default): Add extra_string argument.
1852 (_initialize_breakpoint): Add new commands.
1853 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1854 * python/py-breakpoint.c (bppy_init): Ditto.
1855 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1857 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1859 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1861 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1863 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1866 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1868 Add a new function gdb.find_pc_line to the Python API.
1869 * NEWS (Python Scripting): Add entry about the new function.
1870 * python/python.c (gdbpy_find_pc_line): New function which
1871 implements gdb.find_pc_line.
1872 (GdbMethods): Add entry for the new function.
1874 2012-05-12 Pedro Alves <palves@redhat.com>
1876 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1877 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1879 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1881 * inferior.c: Include completer.h
1882 (initialize_inferiors): Set completer of add-inferior to
1885 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1887 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1888 gdbarch_ptr_bit for x32 core dump.
1890 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1892 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1893 and features/i386/x32-avx-linux.c.
1895 2012-05-11 Stan Shebs <stan@codesourcery.com>
1896 Kwok Cheung Yeung <kcy@codesourcery.com>
1898 * NEWS: Describe new info os commands.
1899 * common/linux-osdata.c (PID_T, TIME_T): Define.
1900 (MAX_PID_T_STRLEN): New.
1901 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1903 (command_from_pid): Add comment. Change to use PID_T.
1904 (commandline_from_pid): Change to use PID_T.
1905 (user_from_pid): Add comment.
1906 (get_process_owner): Add comment. Change to use PID_T and
1908 (get_number_of_cpu_cores): Add comment.
1909 (get_cores_used_by_process): Add comment. Change to use PID_T and
1911 (linux_xfer_osdata_processes): Change to use PID_T and
1913 (compare_processes): New function.
1914 (linux_xfer_osdata_processgroups): New function.
1915 (linux_xfer_osdata_threads): Change to use PID_T.
1916 (linux_xfer_osdata_fds): New function.
1917 (format_socket_state, print_sockets): New functions.
1918 (union socket_addr): New union.
1919 (linux_xfer_osdata_isockets): New function.
1920 (time_from_time_t, group_from_gid): New functions.
1921 (linux_xfer_osdata_shm): New function.
1922 (linux_xfer_osdata_sem): New function.
1923 (linux_xfer_osdata_msg): New function.
1924 (linux_xfer_osdata_modules): New function.
1925 (osdata_table): Add new entries.
1926 * common/buffer.c (buffer_xml_printf): Add support for long and
1927 long long format specifiers.
1929 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1931 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1932 (tdesc_x32_avx_linux): Likewise.
1934 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 Implement multi-component --with-auto-load-dir.
1937 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1939 (--with-auto-load-safe-path): Update the default value description.
1940 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1942 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1943 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1944 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1945 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1946 "set auto-load scripts-directory".
1947 * config.in: Regenerate.
1948 * configure: Regenerate.
1949 * configure.ac (--with-auto-load-dir): New configure option.
1950 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1952 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1954 Provide $ddir substitution for --with-auto-load-safe-path.
1955 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1957 * auto-load.c: Include observer.h.
1958 (auto_load_safe_path_vec_update): Call substitute_path_component for
1959 each component. New variable ddir_subst.
1960 (auto_load_gdb_datadir_changed): New function.
1961 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1962 AUTO_LOAD_SAFE_PATH. New comment.
1963 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1964 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1965 * config.in: Regenerate.
1966 * configure: Regenerate.
1967 * configure.ac (--auto-load-safe-path): Rename
1968 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1969 GDB_DATADIR/auto-load.
1970 * defs.h (substitute_path_component): New declaration.
1971 * top.c: Include observer.h.
1972 (set_gdb_datadir): New function.
1973 (init_main): Install it for "set data-directory".
1974 * utils.c (substitute_path_component): New function.
1976 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1979 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1980 DEBUG_FILE_DIRECTORY. Handle multiple components of
1981 DEBUG_FILE_DIRECTORY.
1983 2012-05-10 Tom Tromey <tromey@redhat.com>
1985 * dwarf2read.c (recursively_write_psymbols): New function.
1986 (write_psymtabs_to_index): Use it.
1988 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1990 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1991 (load_partial_comp_unit): Update.
1992 (queue_comp_unit): Add argument 'pretend_language'.
1993 (process_queue): Update.
1994 (psymtab_to_symtab_1): Skip dependencies that have a user.
1995 (load_partial_comp_unit_reader): Give meaning to the 'data'
1997 (load_full_comp_unit): Add 'pretend_language' argument.
1998 (process_full_comp_unit): Add 'pretend_language' argument. Set
2000 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
2002 (maybe_queue_comp_unit): Add 'pretend_language' argument.
2003 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
2005 (prepare_one_comp_unit): Add 'pretend_language' argument.
2007 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
2008 (struct dwarf2_per_objfile) <just_read_cus>: New field.
2009 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
2010 (dw2_do_instantiate_symtab): Check whether symtab was read in
2012 (dw2_instantiate_symtab): Add assertion. Call
2013 process_cu_includes.
2014 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
2015 (partial_symtab_p): New typedef.
2016 (set_partial_user): New function.
2017 (dwarf2_build_psymtabs_hard): Use set_partial_user.
2018 (scan_partial_symbols): Add imported CU to imported_symtabs.
2019 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
2020 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
2021 (get_symtab, recursively_compute_inclusions)
2022 (compute_symtab_includes, process_cu_includes)
2023 (process_imported_unit_die): New functions.
2024 (process_die) <DW_TAG_imported_unit>: New case.
2025 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
2027 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
2029 (struct partial_die_info) <locdesc>: Remove.
2031 (process_psymtab_comp_unit): Add 'read_partial' argument.
2033 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
2034 (scan_partial_symbols): Handle DW_TAG_imported_unit.
2035 (add_partial_symbol): Update.
2036 (process_die): Handle DW_TAG_partial_unit.
2037 (read_file_scope): Update comment.
2038 (load_partial_dies): Handle DW_TAG_imported_unit.
2039 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
2040 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
2042 2012-05-10 Tom Tromey <tromey@redhat.com>
2044 * cc-with-dwz.sh: New file.
2046 2012-05-10 Tom Tromey <tromey@redhat.com>
2048 * symtab.h (struct symtab) <includes, user>: New fields.
2049 * block.h (struct block_iterator) <d, idx, which>: New fields.
2050 * block.c (initialize_block_iterator, find_iterator_symtab)
2051 (block_iterator_step, block_iter_name_step)
2052 (block_iter_match_step): New functions.
2053 (block_iterator_first, block_iterator_next)
2054 (block_iter_name_first, block_iter_name_next)
2055 (block_iter_match_first, block_iter_match_next): Rewrite.
2056 (get_block_symtab): New function.
2058 2012-05-10 Tom Tromey <tromey@redhat.com>
2060 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
2062 * jit.c (finalize_symtab): Use allocate_global_block,
2064 * buildsym.c (finish_block_internal): New function, from old
2066 (finish_block): Rewrite.
2067 (end_symtab): Use finish_block_internal, set_block_symtab.
2068 * block.h (struct global_block): New.
2069 (allocate_global_block, set_block_symtab): Declare.
2070 * block.c (allocate_global_block, set_block_symtab): New
2073 2012-05-10 Tom Tromey <tromey@redhat.com>
2075 * psymtab.c (partial_map_expand_apply): Add assertion.
2076 (partial_map_symtabs_matching_filename): Skip included psymtabs.
2077 (psymtab_to_symtab): Find unshared psymtab.
2078 (dump_psymtab): Print including psymtabs.
2079 (recursively_search_psymtabs): New function.
2080 (expand_symtabs_matching_via_partial): Use it.
2081 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2083 (enum psymtab_search_status): New.
2085 2012-05-10 Tom Tromey <tromey@redhat.com>
2087 * tracepoint.c (scope_info): Update.
2088 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2089 (find_pc_sect_symtab, search_symbols)
2090 (default_make_symbol_completion_list_break_on)
2091 (make_file_symbol_completion_list): Update.
2092 * symmisc.c (dump_symtab_1): Update.
2093 * stack.c (print_frame_args, iterate_over_block_locals)
2094 (print_frame_labels, iterate_over_block_arg_vars): Update.
2095 * python/py-block.c (block_object) <dict>: Remove.
2097 <iter>: Change type.
2098 (blpy_iter): Update.
2099 (blpy_block_syms_iternext): Update.
2100 * psymtab.c (map_block): Use block iterators.
2101 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2102 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2103 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2104 * infrun.c (check_exception_resume): Update.
2105 * cp-support.c (make_symbol_overload_list_block): Update.
2106 * coffread.c (patch_opaque_types): Update.
2107 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2108 * block.h (struct block_iterator): New.
2109 (block_iterator_first, block_iterator_next, block_iter_name_first)
2110 (block_iter_name_next, block_iter_match_first)
2111 (block_iter_match_next): Declare.
2112 (ALL_BLOCK_SYMBOLS): Redefine.
2113 * block.c (block_iterator_first, block_iterator_next)
2114 (block_iter_name_first, block_iter_name_next)
2115 (block_iter_match_first, block_iter_match_next): New functions.
2116 * ada-lang.c (ada_add_block_symbols)
2117 (ada_make_symbol_completion_list): Use block iterator.
2119 2012-05-10 Tom Tromey <tromey@redhat.com>
2121 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2122 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2123 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2124 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2125 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2128 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2130 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2131 print-file-var-lib2.c, print-file-var-main.c and
2132 print-file-var.exp (located in gdb/testsuite/gdb.base).
2134 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2136 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2137 try locating the symbol in the symbol's own objfile first, before
2138 extending the search to all objfiles.
2139 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2140 out of lookup_symbol_aux_symtabs.
2141 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2142 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2143 Do not search EXCLUDE_OBJFILE.
2144 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2145 (lookup_symbol_global): Search for matches in the block's objfile
2146 first, before searching all other objfiles.
2148 2012-05-10 Tristan Gingold <gingold@adacore.com>
2150 * printcmd.c (set_command): Add pre/post inc/dec.
2152 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
2154 * gdb.1: Document -ex option.
2156 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2158 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2159 * inferior.h (AT_SYMBOL): Delete.
2161 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2163 * mips-tdep.c (mips_push_dummy_code): New function.
2164 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2165 ON_STACK and install mips_push_dummy_code as our gdbarch
2166 push_dummy_code routine.
2168 2012-05-09 Pedro Alves <palves@redhat.com>
2170 * target.c (set_maintenance_target_async_permitted): Rename to ...
2171 (set_target_async_command): ... this.
2172 (show_maintenance_target_async_permitted): Rename to ...
2173 (show_target_async_command): ... this.
2174 (initialize_targets): Adjust.
2176 2012-05-08 Doug Evans <dje@google.com>
2178 * go-exp.y (classify_name): Add missing assignment of fields of
2181 2012-05-08 Eli Zaretskii <eliz@gnu.org>
2183 Display the ">" prompt in interactive mode while reading canned
2184 commands, even when the current interpreter is MI.
2186 * interps.c (interp_set_temp): New function.
2188 * interps.h (interp_set_temp): Add prototype.
2190 * cli/cli-script.c (restore_interp): New cleanup function.
2191 (read_command_lines): Temporarily override the current interpreter
2192 with CLI and arrange for restoring the original one.
2194 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2196 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2198 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2200 * probe.c (parse_probes): Move conditional to check for
2201 debuginfo files from here...
2202 * stap-probe.c (stap_get_probes): ... to here.
2204 2012-05-07 Mark Kettenis <kettenis@gnu.org>
2205 H.J. Lu <hongjiu.lu@intel.com>
2207 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2208 `movl %esp, %ebp' for the X32 ABI.
2210 2012-05-07 Tom Tromey <tromey@redhat.com>
2212 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2214 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2215 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2216 (dwarf_stack_op_name): Remove.
2217 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2218 (decode_locdesc): Use get_DW_OP_name.
2219 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2220 (dwarf2_compile_expr_to_ax): Likewise.
2221 (disassemble_dwarf_expression): Likewise.
2222 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2224 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2226 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2227 (sh_linux_sigtramp_cache): New function.
2228 (sh_linux_sigreturn_init): New function.
2229 (sh_linux_rt_sigreturn_init): New function.
2230 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2232 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2234 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2235 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2236 (sh_linux_init_abi): Add init calls to register new tramp_frame
2237 definitions under 32-bit SH, update comments.
2239 2012-05-07 Pedro Alves <palves@redhat.com>
2243 * amd64-linux-tdep.c: Include glibc-tdep.h.
2244 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2245 gdbarch_skip_solib_resolver callback.
2247 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2249 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2250 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2251 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2252 (add_auto_load_safe_path): Change the error message.
2253 (_initialize_auto_load): Change the "safe-path" help text.
2254 * configure: Regenerate
2255 * configure.ac (--without-auto-load-safe-path): Set
2256 WITH_AUTO_LOAD_SAFE_PATH to /.
2258 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2260 * stap-probe.h: Do not include unecessary `probe.h'.
2262 2012-05-05 Alan Modra <amodra@gmail.com>
2264 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2265 bfd_und_section_ptr.
2266 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2267 and bfd_com_section_ptr.
2269 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2271 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2273 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2275 * windows-nat.h (segment_register_p_ftype): New typedef.
2276 (windows_set_segment_register_p): Add declaration.
2277 * windows-nat.c (segment_register_p): New static global.
2278 (windows_set_segment_register_p): New function.
2279 (do_windows_fetch_inferior_registers): Add special handling
2280 for segment registers.
2281 * amd64-windows-nat.c: #include "amd64-tdep.h".
2282 (amd64_windows_segment_register_p): New function.
2283 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2284 * i386-windows-nat.c: #include "i386-tdep.h".
2285 (i386_windows_segment_register_p): New function.
2286 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2288 2012-05-04 Tristan Gingold <gingold@adacore.com>
2290 * printcmd.c (set_command): Emit a warning if the expression is not
2293 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2295 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2298 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2300 * stap-probe.c (stap_is_operator): Change declaration.
2301 (stap_get_opcode): Change return value.
2302 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2303 `stap_parse_argument_1'.
2305 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2307 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2310 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2312 Add two new methods global_block and static_block to gdb.Symtab
2314 * NEWS (Python scripting): Add entry about the new methods.
2315 * python/py-symtab.c (stpy_global_block): New function which
2316 implements the gdb.Symtab.global_block() method.
2317 (stpy_static_block): New function which implements the
2318 gdb.Symtab.static_block() method.
2319 (symtab_object_methods): Add entries for the two new methods.
2321 2012-05-03 Doug Evans <dje@google.com>
2323 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2326 2012-05-03 Yao Qi <yao@codesourcery.com>
2328 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2330 (i386_process_record): Ditto.
2332 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2334 * infcall.c (unwind_on_signal_p): Make static.
2336 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2338 * sol-thread.c (solaris_pid_to_str): Make static.
2339 (_initialize_sol_thread): Add prototype.
2341 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2343 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2345 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2347 * MAINTAINERS: Remove myself.
2349 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2351 Fix --without-auto-load-safe-path for MS-Windows host platform.
2352 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2354 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2356 * gdb_curses.h: Undefine KEY_EVENT before including curses
2357 headers. Move "#undef MOUSE_MOVED" before any curses header
2360 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2362 * features/i386/i386-mmx-linux.c: Regenerate.
2363 * features/rs6000/powerpc-32.c: Likewise.
2364 * features/rs6000/powerpc-32l.c: Likewise.
2365 * features/rs6000/powerpc-403.c: Likewise.
2366 * features/rs6000/powerpc-403gc.c: Likewise.
2367 * features/rs6000/powerpc-405.c: Likewise.
2368 * features/rs6000/powerpc-505.c: Likewise.
2369 * features/rs6000/powerpc-601.c: Likewise.
2370 * features/rs6000/powerpc-602.c: Likewise.
2371 * features/rs6000/powerpc-603.c: Likewise.
2372 * features/rs6000/powerpc-604.c: Likewise.
2373 * features/rs6000/powerpc-64.c: Likewise.
2374 * features/rs6000/powerpc-64l.c: Likewise.
2375 * features/rs6000/powerpc-750.c: Likewise.
2376 * features/rs6000/powerpc-860.c: Likewise.
2377 * features/rs6000/powerpc-e500.c: Likewise.
2378 * features/rs6000/powerpc-e500l.c: Likewise.
2379 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2380 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2381 * features/rs6000/rs6000.c: Likewise.
2383 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2385 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2387 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2388 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2389 (stap_parse_argument) <e>: Likewise.
2390 (handle_stap_probe) <byte_order>: Likewise.
2392 2012-04-30 Doug Evans <dje@google.com>
2394 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2395 init_and_read_dies_worker. All callers updated.
2396 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2397 replaced with init_cutu_and_read_dies.
2398 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2399 (find_partial_die): Remove FIXME. Don't free current CU.
2401 2012-04-30 Sterling Augustine <saugustine@google.com>
2403 * contrib: New directory.
2404 * contrib/test_pubnames_and_indexes.py: New file.
2406 2012-04-30 Doug Evans <dje@google.com>
2408 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2409 All callers updated.
2410 (init_cu_die_reader): Verify the section is non-empty.
2411 (dwarf_decode_line_header): Don't dereference section->asection
2412 until we know the section is present.
2414 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2416 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2419 2012-04-29 Yao Qi <yao@codesourcery.com>
2421 * gdb-code-style.el: New hook gdb-markup-hook
2422 and gdb-comment-hook.
2424 2012-04-28 Doug Evans <dje@google.com>
2426 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2427 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2429 * symfile.h (dwarf2_debug_sections): New member addr.
2430 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2431 (ctx_no_get_addr_index): New function.
2432 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2433 (ctx_no_get_addr_index): Declare.
2434 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2435 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2436 (dwarf_expr_ctx_funcs): Update.
2437 (needs_get_addr_index): New function.
2438 (needs_frame_ctx_funcs): Update.
2439 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2440 * dwarf2read.c: #include "gdbcore.h".
2441 (dwarf2_per_objfile): New members addr, dwo_files.
2442 (dwarf2_elf_names): Add entry for addr.
2443 (struct dwo_section_names): New type.
2444 (dwo_section_names): New static global.
2445 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2446 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2447 old debug_types_section member updated to use this.
2448 Rename member debug_types_section to info_or_types_section,
2450 (signatured_type): Rename member type_offset to type_offset_in_tu,
2451 all uses updated. New member type_offset_in_section.
2452 (struct dwo_sections): New type.
2453 (struct dwo_unit): New type.
2454 (struct dwo_file): New type.
2455 (die_reader_specs): New member dwo_file.
2456 (dwarf2_locate_sections): Watch for .debug_addr.
2457 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2458 (dwarf2_read_section): Get bfd of section from bfd's asection,
2460 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2461 (create_signatured_type_table_from_index): Initialize
2462 sig_type->info_or_types_section.
2463 (dw2_get_file_names): Statement lists for type units with DWO files
2464 live in the DWO file.
2465 (create_debug_types_hash_table): New function.
2466 (create_all_type_units): Rewrite.
2467 (init_cu_die_reader): New arg dwo_file, all callers updated.
2468 (init_and_read_dies_worker): Get section from
2469 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2470 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2471 continue reading the CU/TU from there.
2472 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2473 updated. Get section from this_cu->info_or_types_section.
2474 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2475 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2476 DW_FORM_GNU_str_index.
2477 (hash_dwo_file, eq_dwo_file): New functions.
2478 (allocate_dwo_file_hash_table): New function.
2479 (hash_dwo_unit, eq_dwo_unit): New functions.
2480 (allocate_dwo_unit_table): New function.
2481 (dwarf2_locate_dwo_sections): New function.
2482 (struct create_dwo_info_table_data): New type.
2483 (create_debug_info_hash_table_reader): New function.
2484 (create_debug_info_hash_table): New function.
2485 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2486 (lookup_dwo_file): New function.
2487 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2488 (free_dwo_file, free_dwo_file_cleanup): New functions.
2489 (free_dwo_file_from_slot, free_dwo_files): New functions.
2490 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2491 (dwarf2_record_block_ranges): Ditto.
2492 (read_partial_die): Ditto.
2493 (process_enumeration_scope): Update to use type_offset_in_section.
2494 (read_full_die_1): New function.
2495 (read_full_die): Rewrite.
2496 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2497 DW_FORM_GNU_str_index.
2498 (read_addr_index_1, read_addr_index): New functions.
2499 (read_addr_index_from_leb128): New function.
2500 (struct dwarf2_read_addr_index_data): New type.
2501 (dwarf2_read_addr_index_reader): New function.
2502 (dwarf2_read_addr_index): New function.
2503 (read_str_index): New function.
2504 (leb128_size): New function.
2505 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2506 If processing a type unit from a DWO file, get the line section
2508 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2509 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2510 DW_FORM_GNU_str_index.
2511 (lookup_die_type): Check whether section offset of type's die is
2512 known before looking it up. Remove assert. Condition can
2513 legimately happen for inter-cu type references.
2514 (dwarf_attr_name): Handle Fission attributes.
2515 (dwarf_form_name): Handle Fission forms.
2516 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2517 DW_FORM_GNU_str_index.
2518 (follow_die_sig): Update to use type_offset_in_section.
2519 (decode_locdesc): New case DW_OP_GNU_addr_index.
2520 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2521 DW_FORM_GNU_str_index.
2522 (cu_debug_loc_section): New function.
2523 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2524 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2525 Free DWO files if present.
2526 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2528 Refactor DIE reading.
2529 * dwarf2read.c (dwarf2_per_objfile): Replace members
2530 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2531 (die_reader_specs): New member "die_section". Temporarily make
2532 member "buffer" non-const, pending constifying all info_ptr uses.
2533 (die_reader_func_ftype): New typedef.
2534 (dw2_get_file_names_reader): New function.
2535 (dw2_get_file_names): Rewrite.
2536 (read_and_check_type_unit_head): Rename arg type_offset to
2538 (create_all_type_units): Improve debugging message.
2539 Improve dummy type unit check.
2540 (init_cu_die_reader): New arg "section". All callers updated.
2541 (init_and_read_dies_worker): New function.
2542 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2543 (init_cutu_and_read_dies_no_follow): New function.
2544 (init_cutu_and_read_dies_simple): New function.
2545 (process_psymtab_comp_unit_reader): New function.
2546 (process_psymtab_comp_unit): Delete args section,
2547 is_debug_types_section. Rewrite. All callers updated.
2548 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2549 All callers updated. Rewrite.
2550 (load_partial_comp_unit_reader): New function.
2551 (load_partial_comp_unit): Rewrite.
2552 (skip_children): New arg reader. Delete args buffer, cu.
2553 All callers updated.
2554 (skip_one_die): New arg reader. Delete args buffer, cu.
2555 All callers updated.
2556 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2557 All callers updated.
2558 (load_full_comp_unit_reader): New function.
2559 (load_full_comp_unit): Rewrite.
2560 (read_comp_unit): Delete.
2561 (read_die_and_children_1): Delete, contents moved ...
2562 (read_die_and_children): ... here.
2563 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2564 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2565 All callers updated.
2566 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2567 All callers updated.
2568 (find_partial_die): Rewrite load_all_dies support.
2569 (read_attribute_value): New arg reader. Delete args abfd, cu.
2570 All callers updated.
2571 (read_attribute): New arg reader. Delete args abfd, cu.
2572 All callers updated.
2573 (load_full_type_unit): Add assert.
2574 (read_signatured_type_reader): New function.
2575 (read_signatured_type): Rewrite.
2576 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2577 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2578 All callers updated. Set per_cu->cu = NULL after freeing it.
2579 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2580 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2581 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2582 (set_die_type): Update.
2583 (get_die_type_at_offset): Update.
2584 (read_file_scope): Call prepare_one_comp_unit.
2585 (read_type_unit_scope): Ditto.
2586 (prepare_one_comp_unit): Set producer if present.
2588 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2590 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2591 gettext function on `error'.
2593 2012-04-27 Doug Evans <dje@google.com>
2595 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2598 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2599 Tom Tromey <tromey@redhat.com>
2601 * breakpoint.c (struct breakpoint_objfile_data)
2602 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2603 <exception_probes>: New fields.
2604 (free_breakpoint_probes): New function.
2605 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2606 `_Unwind_DebugHook'.
2607 (create_exception_master_breakpoint): Likewise.
2608 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2609 * infrun.c: Including necessary header files for handling SystemTap
2611 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2612 via SystemTap probes.
2613 (check_exception_resume): Remove `func' argument. Handle exception
2614 unwinding breakpoint set via a SystemTap probe.
2615 (insert_exception_resume_from_probe): New function.
2617 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2618 Tom Tromey <tromey@redhat.com>
2619 Jan Kratochvil <jan.kratochvil@redhat.com>
2621 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2622 (COMMON_OBS): Likewise.
2623 (HFILES_NO_SRCDIR): Add `probe'.
2624 * NEWS: Mention support for static and SystemTap probes.
2625 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2626 SystemTap probes' arguments parser.
2627 * arm-linux-tdep.c: Including headers needed to perform the parsing
2628 of SystemTap probes' arguments.
2629 (arm_stap_is_single_operand): New function.
2630 (arm_stap_parse_special_token): Likewise.
2631 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2632 probes' arguments parser.
2633 * ax-gdb.c (require_rvalue): Removing static declaration.
2634 (gen_expr): Likewise.
2635 * ax-gdb.h (gen_expr): Declaring function.
2636 (require_rvalue): Likewise.
2637 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2638 (bkpt_probe_breakpoint_ops): New variable.
2639 (momentary_breakpoint_from_master): Set the `probe' value.
2640 (add_location_to_breakpoint): Likewise.
2641 (break_command_1): Using proper breakpoint_ops according to the
2642 argument passed by the user in the command line.
2643 (bkpt_probe_insert_location): New function.
2644 (bkpt_probe_remove_location): Likewise.
2645 (bkpt_probe_create_sals_from_address): Likewise.
2646 (bkpt_probe_decode_linespec): Likewise.
2647 (tracepoint_probe_create_sals_from_address): Likewise.
2648 (tracepoint_probe_decode_linespec): Likewise.
2649 (tracepoint_probe_breakpoint_ops): New variable.
2650 (trace_command): Using proper breakpoint_ops according to the
2651 argument passed by the user in the command line.
2652 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2653 static probes on breakpoints and tracepoints.
2654 * breakpoint.h (struct bp_location) <probe>: New field.
2655 * cli-utils.c (skip_spaces_const): New function.
2656 (extract_arg): Likewise.
2657 * cli-utils.h (skip_spaces_const): Likewise.
2658 (extract_arg): Likewise.
2659 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2660 * configure.ac: Append `stap-probe.o' to be generated when ELF
2662 * configure: Regenerate.
2663 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2664 * elfread.c: Include `probe.h' and `arch-utils.h'.
2665 (probe_key): New variable.
2666 (elf_get_probes): New function.
2667 (elf_get_probe_argument_count): Likewise.
2668 (elf_evaluate_probe_argument): Likewise.
2669 (elf_compile_to_ax): Likewise.
2670 (elf_symfile_relocate_probe): Likewise.
2671 (stap_probe_key_free): Likewise.
2672 (elf_probe_fns): New variable.
2673 (elf_sym_fns): Add `sym_probe_fns' value.
2674 (elf_sym_fns_lazy_psyms): Likewise.
2675 (elf_sym_fns_gdb_index): Likewise.
2676 (_initialize_elfread): Initialize objfile cache for static
2678 * gdb_vecs.h (struct probe): New forward declaration.
2679 (probe_p): New VEC declaration.
2680 * gdbarch.c: Regenerate.
2681 * gdbarch.h: Regenerate.
2682 * gdbarch.sh (stap_integer_prefix): New variable.
2683 (stap_integer_suffix): Likewise.
2684 (stap_register_prefix): Likewise.
2685 (stap_register_suffix): Likewise.
2686 (stap_register_indirection_prefix): Likewise.
2687 (stap_register_indirection_suffix): Likewise.
2688 (stap_gdb_register_prefix): Likewise.
2689 (stap_gdb_register_suffix): Likewise.
2690 (stap_is_single_operand): New function.
2691 (stap_parse_special_token): Likewise.
2692 (struct stap_parse_info): Forward declaration.
2693 * i386-tdep.c: Including headers needed to perform the parsing
2694 of SystemTap probes' arguments.
2695 (i386_stap_is_single_operand): New function.
2696 (i386_stap_parse_special_token): Likewise.
2697 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2698 probes' arguments parser.
2699 * i386-tdep.h (i386_stap_is_single_operand): New function.
2700 (i386_stap_parse_special_token): Likewise.
2701 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2702 * mipsread.c (ecoff_sym_fns): Likewise.
2703 * objfiles.c (objfile_relocate1): Support relocation for static
2705 * parse.c (prefixify_expression): Remove static declaration.
2706 (initialize_expout): Likewise.
2707 (reallocate_expout): Likewise.
2708 * parser-defs.h (initialize_expout): Declare function.
2709 (reallocate_expout): Likewise.
2710 (prefixify_expression): Likewise.
2711 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2712 of SystemTap probes' arguments.
2713 (ppc_stap_is_single_operand): New function.
2714 (ppc_stap_parse_special_token): Likewise.
2715 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2716 probes' arguments parser.
2717 * probe.c: New file, for generic statically defined probe support.
2718 * probe.h: Likewise.
2719 * s390-tdep.c: Including headers needed to perform the parsing of
2720 SystemTap probes' arguments.
2721 (s390_stap_is_single_operand): New function.
2722 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2723 probes' arguments parser.
2724 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2725 * stap-probe.c: New file, for SystemTap probe support.
2726 * stap-probe.h: Likewise.
2727 * symfile.h: Include `gdb_vecs.h'.
2728 (struct sym_probe_fns): New struct.
2729 (struct sym_fns) <sym_probe_fns>: New field.
2730 * symtab.c (init_sal): Initialize `probe' field.
2731 * symtab.h (struct probe): Forward declaration.
2732 (struct symtab_and_line) <probe>: New field.
2733 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2735 (stop_tracing): Likewise.
2736 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2738 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2739 Tom Tromey <tromey@redhat.com>
2741 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2742 and to compile agent expressions.
2743 * infrun.c (siginfo_make_value): New argument `ignore'.
2744 (siginfo_funcs): New struct.
2745 (_initialize_infrun): New argument when calling
2746 `create_internalvar_type_lazy'.
2747 * thread.c (thread_id_make_value): New argument `ignore'.
2748 (thread_funcs): New struct.
2749 (_initialize_thread): New argument when calling
2750 `create_internalvar_type_lazy'.
2751 * tracepoint.c (sdata_make_value): New argument `ignore'.
2752 (sdata_funcs): New struct.
2753 (_initialize_tracepoint): New argument when calling
2754 `create_internalvar_type_lazy'.
2755 * value.c (make_value): New struct.
2756 (create_internalvar_type_lazy): New argument `data'.
2757 (compile_internalvar_to_ax): New function.
2758 (value_of_internalvar): Properly handling `make_value' case.
2759 (clear_internalvar): Likewise.
2760 (show_convenience): Adding `TRY_CATCH' block.
2761 * value.h (internalvar_make_value): Delete, replace by...
2762 (struct internalvar_funcs): ... this.
2763 (create_internalvar_type_lazy) <fun>: Delete argument.
2764 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2765 (compile_internalvar_to_ax): New function.
2766 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2767 (tlb_funcs): New struct.
2768 (_initialize_windows_tdep): New argument when calling
2769 `create_internalvar_type_lazy'.
2771 2012-04-27 Mark Wielaard <mjw@redhat.com>
2773 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2774 see whether it is an address or a constant offset from DW_AT_low_pc.
2775 (dwarf2_record_block_ranges): Likewise.
2776 (read_partial_die): Likewise.
2778 2012-04-26 Mark Wielaard <mjw@redhat.com>
2780 * MAINTAINERS (Write After Approval): Add myself to the list.
2782 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2784 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2785 (proc_prettyprint_signal): Likewise.
2786 (proc_prettyprint_faultset): Likewise.
2787 (proc_prettyprint_fault): Likewise.
2788 (proc_prettyprint_actionset): Likewise.
2789 (proc_prettyprint_flags): Move to new proc-flags.c section.
2790 (proc_prettyfprint_flags): New prototype.
2791 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2792 (proc_syscall, proc_cursig): Likewise.
2793 (proc_set_kill_on_last_close): Likewise.
2794 (proc_unset_kill_on_last_close): Likewise.
2795 (proc_set_watchpoint): Make static.
2796 (proc_delete_dead_threads): Likewise.
2797 (procfs_set_watchpoint): Likewise.
2798 (_initialize_procfs): Add prototype.
2799 * proc-events.c: Include proc-utils.h.
2800 (init_syscall_table): Make static.
2801 * proc-api.c (_initialize_proc_api): Add prototype.
2802 * proc-flags.c: Include proc-utils.h.
2804 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2806 * configure.ac: Add AC_ARG_PROGRAM.
2807 * configure: Regenerate.
2809 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2811 Fix DW_AT_lower_bound defaults for DWARF-4+.
2812 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2813 high. New variable low_default_is_valid. Implement DWARF-4+
2814 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2815 no default by the DWARF standard.
2817 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2818 Maciej W. Rozycki <macro@codesourcery.com>
2820 * infrun.c (handle_inferior_event): Move the check for return
2821 trampolines ahead of the check for function trampolines.
2822 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2823 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2824 (mips_str_mips16_ret_stub): Likewise.
2825 (mips_str_call_fp_stub): Likewise.
2826 (mips_str_call_stub): Likewise.
2827 (mips_str_fn_stub): Likewise.
2828 (mips_str_pic): Likewise.
2829 (mips_in_frame_stub): New function.
2830 (mips_unwind_pc): Return the return address rather than the PC
2831 if the PC of an intermediate frame is inside a call thunk.
2832 (mips_is_stub_suffix): New function.
2833 (mips_is_stub_mode): Likewise.
2834 (mips_get_mips16_fn_stub_pc): Likewise.
2835 (mips_skip_mips16_trampoline_code): Update to handle all the
2836 currently generated stub types. Don't recurse into __fn_stub
2837 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2838 Use cooked register accesses.
2839 (mips_in_return_stub): Reintroduce function.
2840 (mips_skip_trampoline_code): Traverse trampolines recursively.
2841 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2843 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2847 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2849 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2850 * features/arm-with-m-vfp-d16.xml: New file. Describes
2851 Cortex-M with VFPv4-sp-d16 FPU register layout.
2852 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2853 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2854 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2855 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2856 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2858 2012-04-25 Doug Evans <dje@google.com>
2860 * cli/cli-decode.c (print_doc_line): Use stream instead of
2863 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2865 * features/arm-with-iwmmxt.c: Regenerate.
2866 * features/arm-with-m-fpa-layout.c: Likewise.
2867 * features/arm-with-m.c: Likewise.
2868 * features/arm-with-neon.c: Likewise.
2869 * features/arm-with-vfpv2.c: Likewise.
2870 * features/arm-with-vfpv3.c: Likewise.
2871 * features/mips-dsp-linux.c: Likewise.
2872 * features/mips-linux.c: Likewise.
2873 * features/mips64-dsp-linux.c: Likewise.
2874 * features/mips64-linux.c: Likewise.
2875 * features/s390-linux32.c: Likewise.
2876 * features/s390-linux32v1.c: Likewise.
2877 * features/s390-linux32v2.c: Likewise.
2878 * features/s390-linux64.c: Likewise.
2879 * features/s390-linux64v1.c: Likewise.
2880 * features/s390-linux64v2.c: Likewise.
2881 * features/s390x-linux64.c: Likewise.
2882 * features/s390x-linux64v1.c: Likewise.
2883 * features/s390x-linux64v2.c: Likewise.
2884 * features/tic6x-c62x-linux.c: Likewise.
2885 * features/tic6x-c62x.c: Likewise.
2886 * features/tic6x-c64x-linux.c: Likewise.
2887 * features/tic6x-c64x.c: Likewise.
2888 * features/tic6x-c64xp-linux.c: Likewise.
2889 * features/tic6x-c64xp.c: Likewise.
2890 * target-descriptions.c: Only generate `field_type' and `type'
2891 variables when needed.
2893 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2895 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2897 2012-04-25 Doug Evans <dje@google.com>
2899 Initial pass at Go language support.
2901 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2903 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2904 (YYFILES): Add go-exp.c.
2905 (YYOBJ): Add go-exp.o.
2906 (local-maintainer-clean): Delete go-exp.c.
2907 * defs.h (enum language): Add language_go.
2908 * dwarf2read.c: #include "go-lang.h".
2909 (fixup_go_packaging): New function.
2910 (process_full_comp_unit): Call it when processing Go CUs.
2911 (dwarf2_physname): Add Go support.
2912 (read_file_scope): Handle missing language spec for GNU Go.
2913 (set_cu_language): Handle DW_LANG_Go.
2914 * go-exp.y: New file.
2915 * go-lang.h: New file.
2916 * go-lang.c: New file.
2917 * go-typeprint.c: New file.
2918 * go-valprint.c: New file.
2919 * symtab.c: #include "go-lang.h".
2920 (symbol_set_language): Handle language_go.
2921 (symbol_find_demangled_name, symbol_set_names): Ditto.
2922 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2924 2012-04-24 Jim Meyering <meyering@redhat.com>
2926 avoid a few strncpy-induced buffer overruns
2927 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2928 fname and psargs before trying to concatenate.
2929 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2930 "name" before applying strchr.
2932 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2934 * CONTRIBUTE: Use unified diff instead of context diff when
2937 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2939 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2940 code. Handle JR.HB correctly.
2942 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2945 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2946 with the other MIPS16 helpers.
2948 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2950 * observer.sh: Conditionally declare `args', thus cleaning up
2951 unused instances of this variable.
2953 2012-04-24 Yao Qi <yao@codesourcery.com>
2955 Revert this patch to allow breakpoint always-inserted
2957 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2958 * breakpoint.c: Include record.h.
2959 (breakpoints_always_inserted_mode): Return false when the record
2962 * breakpoint.c (iterate_over_bp_locations): New.
2963 * breakpoint.h: Declare.
2964 New typedef walk_bp_location_callback.
2965 * record.c (record_open): Call record_init_record_breakpoints.
2966 (record_sync_record_breakpoints): New.
2967 (record_init_record_breakpoints): New.
2968 * NEWS: Mention supporting breakpoint always-inserted mode in
2971 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2973 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2976 2012-04-24 Yao Qi <yao@codesourcery.com>
2978 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2979 (is_catchpoint): ... it.
2980 (print_one_breakpoint_location): Caller update.
2981 * breakpoint.h: Update declaration.
2983 2012-04-23 David S. Miller <davem@davemloft.net>
2985 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2987 2012-04-23 Tom Tromey <tromey@redhat.com>
2989 * buildsym.c (add_free_pendings): Remove.
2990 * buildsym.h (add_free_pendings): Remove.
2992 2012-04-23 Doug Evans <dje@google.com>
2994 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2995 attr.u.unsnd instead of attr.u.addr.
2996 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2997 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2999 (dump_die_shallow): Update cases DW_FORM_ref_addr,
3000 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
3002 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
3004 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
3006 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
3007 (mips_o32_return_value): Likewise.
3008 (mips_o64_return_value): Likewise.
3010 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
3012 * ada-lang.c (ada_evaluate_subexp): Add cases for
3013 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
3014 their treatment in eval.c.
3016 2012-04-21 David S. Miller <davem@davemloft.net>
3018 * sparc-tdep.c (X_DISP10): Define.
3019 (sparc_analyze_control_transfer): Handle compare-and-branch.
3021 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
3023 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
3024 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
3026 2012-04-20 Nigel Stephens <nigel@mips.com>
3027 Maciej W. Rozycki <macro@codesourcery.com>
3029 * mips-tdep.c (mips_float_register_p): New function.
3030 (mips_convert_register_float_case_p): Use mips_float_register_p.
3031 (mips_register_type): Likewise.
3032 (mips_print_register): Likewise.
3033 (print_gp_register_row): Likewise.
3034 (mips_print_registers_info): Likewise.
3036 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
3038 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
3041 2012-04-20 Andrew Pinski <apinski@cavium.com>
3043 * MAINTAINERS (Write After Approval): Add myself to the list.
3045 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3047 * MAINTAINERS: Update my e-mail address.
3049 2012-04-20 Pedro Alves <palves@redhat.com>
3051 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
3053 * configure: Regenerate.
3055 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3057 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
3059 * gdb_vecs.h: Declare `const_char_ptr' VEC.
3061 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3063 Fix compilation compatibility with python-2.4
3064 * python/py-type.c (convert_field): Cast ADDRSTRING for
3065 PyObject_SetAttrString as non-const. New comment.
3067 2012-04-19 Tom Tromey <tromey@redhat.com>
3069 * top.c (quit_target): Use all_cleanups.
3070 * main.c (captured_command_loop): Use all_cleanups.
3071 * exceptions.c (throw_exception): Use all_cleanups.
3073 2012-04-19 Pedro Alves <palves@redhat.com>
3075 * Makefile.in (GNULIB_BUILDDIR): New.
3076 (LIBGNU, INCGNU, GNULIB_H): Adjust.
3077 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3078 (CLEANDIRS). Remove gnulib/import.
3079 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3081 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3082 (gnulib/import/Makefile): Replace gnulib/import with
3083 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3084 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3085 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3086 acx_configure_dir.m4.
3087 * acinclude.m4: Include acx_configure_dir.m4.
3088 * acx_configure_dir.m4: New file.
3089 * aclocal.m4: Regenerate.
3090 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3091 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3092 (GNULIB): New variable.
3093 (GNULIB_STDINT_H): Adjust.
3094 (AC_OUTPUT): Don't output gnulib/Makefile.
3095 * gdb/defs.h: Include build-gnulib/config.h.
3096 * aclocal.m4: Regenerate.
3097 * config.in: Regenerate.
3098 * configure: Regenerate.
3100 * gnulib/Makefile.in: New file.
3101 * gnulib/configure.ac: New file.
3102 * gnulib/aclocal.m4: New file.
3103 * gnulib/config.in: New file.
3104 * gnulib/configure: New file.
3105 * gnulib/: Re-run gnulib-tool to adjust.
3107 2012-04-19 Doug Evans <dje@google.com>
3109 * cleanups.h (struct cleanup): Move to cleanups.c.
3110 (make_cleanup_dtor_ftype): New typedef.
3111 (make_cleanup_dtor): Use it.
3112 (ALL_CLEANUPS): Replace with ...
3113 (all_cleanups): ... this. Declare. All uses updated.
3114 * cleanups.c: #include "gdb_assert.h".
3115 (sentinel_cleanup): New static global.
3116 (SENTINEL_CLEANUP): Define.
3117 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3118 (make_my_cleanup2): Assert result is non-NULL.
3119 (all_cleanups): New function.
3120 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3123 2012-04-19 Pedro Alves <palves@redhat.com>
3125 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3126 Adjust paths to gnulib imported files.
3128 2012-04-19 Pedro Alves <palves@redhat.com>
3130 * gnulib/: Move whole directory ...
3131 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3132 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3133 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3134 (aclocal_m4_deps): Adjust.
3135 * aclocal.m4: Regenerate.
3136 * configure: Regenerate.
3137 * configure.ac: Adjust AC_OUTPUT output.
3139 2012-04-19 Yao Qi <yao@codesourcery.com>
3141 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3143 * vec.c: Move it ...
3144 * common/vec.c: ... here.
3145 * vec.h: Move it ...
3146 * common/vec.h: ... here.
3148 2012-04-19 Yao Qi <yao@codesourcery.com>
3150 * gdb-code-style.el: New.
3152 2012-04-18 Pedro Alves <palves@redhat.com>
3154 Update gnulib from latest git.
3155 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3157 * gnulib/Makefile.am: Update.
3158 * gnulib/dummy.c: Update.
3159 * gnulib/extra/arg-nonnull.h: Update.
3160 * gnulib/extra/c++defs.h: Update.
3161 * gnulib/extra/update-copyright: Update.
3162 * gnulib/extra/warn-on-use.h: Update.
3163 * gnulib/inttypes.in.h: Update.
3164 * gnulib/m4/00gnulib.m4: Update.
3165 * gnulib/m4/extensions.m4: Update.
3166 * gnulib/m4/gnulib-cache.m4: Update.
3167 * gnulib/m4/gnulib-common.m4: Update.
3168 * gnulib/m4/gnulib-comp.m4: Update.
3169 * gnulib/m4/gnulib-tool.m4: Update.
3170 * gnulib/m4/include_next.m4: Update.
3171 * gnulib/m4/inttypes-pri.m4: Update.
3172 * gnulib/m4/inttypes.m4: Update.
3173 * gnulib/m4/longlong.m4: Update.
3174 * gnulib/m4/memchr.m4: Update.
3175 * gnulib/m4/memmem.m4: Update.
3176 * gnulib/m4/mmap-anon.m4: Update.
3177 * gnulib/m4/multiarch.m4: Update.
3178 * gnulib/m4/onceonly.m4: Update.
3179 * gnulib/m4/stddef_h.m4: Update.
3180 * gnulib/m4/stdint.m4: Update.
3181 * gnulib/m4/string_h.m4: Update.
3182 * gnulib/m4/warn-on-use.m4: Update.
3183 * gnulib/m4/wchar_h.m4: Update.
3184 * gnulib/m4/wchar_t.m4: Update.
3185 * gnulib/m4/wint_t.m4: Update.
3186 * gnulib/memchr.c: Update.
3187 * gnulib/memmem.c: Update.
3188 * gnulib/stddef.in.h: Update.
3189 * gnulib/stdint.in.h: Update.
3190 * gnulib/str-two-way.h: Update.
3191 * gnulib/string.in.h: Update.
3192 * gnulib/wchar.in.h: Update.
3194 * gnulib/extra/arg-nonnull.h: Delete.
3195 * gnulib/extra/c++defs.h: Delete.
3196 * gnulib/extra/warn-on-use.h: Delete.
3197 * gnulib/m4/wchar_h.m4: Delete.
3198 * gnulib/m4/wint_t.m4: Delete.
3199 * gnulib/wchar.in.h: Delete.
3201 * gnulib/extra/snippets/arg-nonnull.h: New.
3202 * gnulib/extra/snippets/c++defs.h: New.
3203 * gnulib/extra/snippets/warn-on-use.h: New.
3205 * aclocal.m4: Regenerate.
3206 * config.in: Regenerate.
3207 * configure: Regenerate.
3208 * gnulib/Makefile.in: Regenerate.
3210 2012-04-18 Pedro Alves <palves@redhat.com>
3212 Reimport the update-copyright module from gnulib
3213 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3215 * configure: Regenerate.
3216 * gnulib/Makefile.am: Update.
3217 * gnulib/Makefile.in: Regenerate.
3218 * gnulib/extra/update-copyright: Update.
3219 * gnulib/m4/gnulib-cache.m4: Update.
3220 * gnulib/m4/gnulib-comp.m4: Update.
3222 2012-04-18 Tristan Gingold <gingold@adacore.com>
3224 * configure.ac (aix): Put -lpthread into libs.
3225 * configure: Regenerate.
3227 2012-04-18 Tom Tromey <tromey@redhat.com>
3229 * linespec.c (convert_linespec_to_sals): Don't use
3231 (compare_msymbols): Arguments are minsym_and_objfile, not
3232 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3234 2012-04-18 Pedro Alves <palves@redhat.com>
3236 Revert gnulib/ part of:
3237 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3238 Copyright year update in most files (performed by copyright.sh).
3240 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3242 Fix 64-bit constants on 32-bit hosts.
3243 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3244 from unsigned long to ULONGEST.
3245 (read_signed_leb128): Change declaration return type from long to
3247 (dwarf2_const_value_attr): Change declaration parameter value from long
3249 (dwarf2_compute_name): Change variable value from long to LONGEST.
3250 (read_unsigned_leb128): Change return type, variable result and some
3251 casts from unsigned long to ULONGEST.
3252 (read_signed_leb128): Change return type, variable result and some
3253 casts from long to LONGEST.
3254 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3255 value from long to LONGEST.
3256 (dwarf2_const_value): Change variable value from long to LONGEST.
3257 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3258 plongest and hex_string.
3259 * symtab.h (struct general_symbol_info): Change ivalue from long to
3260 LONGEST, remove the comment.
3261 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3262 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3264 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3267 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3268 * ada-lang.c (ada_discrete_type_high_bound)
3269 (ada_discrete_type_low_bound): Fix function comment. Use
3270 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3271 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3272 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3273 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3274 Use TYPE_FIELD_ENUMVAL.
3275 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3276 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3277 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3278 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3280 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3281 * dwarf2read.c (process_enumeration_scope): Likewise.
3282 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3284 (class StructMainTypePrettyPrinter): Support also
3285 FIELD_LOC_KIND_ENUMVAL.
3286 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3288 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3289 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3290 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3291 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3293 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3294 accommodate enumval.
3295 (struct call_site): Adjust loc_kind to accommodate enumval.
3296 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3297 (TYPE_FIELD_ENUMVAL): New macros.
3298 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3299 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3301 * p-typeprint.c (pascal_type_print_base): Likewise.
3302 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3304 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3305 * python/py-type.c (convert_field): New variable addrstring. Use
3306 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3307 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3308 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3309 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3311 * valprint.c (generic_val_print): Likewise.
3313 2012-04-17 Doug Evans <dje@google.com>
3315 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3317 * dwarf2read.c: Whitespace fixes.
3318 (lookup_signatured_type): Tweak comment.
3319 (get_die_type_at_offset): Fix comment.
3321 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3323 * xcoffread.c (xcoff_secnum_to_sections): New function.
3324 (secnum_to_section, secnum_to_bfd_section): Reimplement
3325 using xcoff_secnum_to_sections. Rename "secnum" parameter
3327 (RECORD_MINIMAL_SYMBOL): Delete.
3328 (record_minimal_symbol): New function.
3329 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3330 by call to record_minimal_symbol and set misc_func_recorded
3331 to 1. Set last_csect_sec to the XCOFF section index instead
3332 of GDB's section_offset index. Update calls to
3333 prim_record_minimal_symbol_and_info to pass the BFD section
3336 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3338 * xcoffread.c (read_xcoff_symtab): Delete variables
3339 last_csect_val and last_csect_sec and associated code.
3341 2012-04-17 Doug Evans <dje@google.com>
3343 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3344 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3345 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3346 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3348 * cleanups.h: New file.
3349 * cleanups.c: New file.
3350 * Makefile.in (SFILES): Add cleanups.c.
3351 (HFILES_NO_SRCDIR): Add cleanups.h.
3352 (COMMON_OBS): Add cleanups.o.
3353 * defs.h (struct cleanup): Moved to cleanups.h.
3354 (do_cleanups,do_final_cleanups): Ditto.
3355 (discard_cleanups,discard_final_cleanups): Ditto
3356 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3357 (save_cleanups,save_final_cleanups): Ditto.
3358 (restore_cleanups,restore_final_cleanups): Ditto.
3359 (null_cleanup): Ditto.
3360 (make_my_cleanup,make_my_cleanup2): Ditto.
3361 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3362 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3363 (do_cleanups,do_final_cleanups): Ditto.
3364 (discard_cleanups,discard_final_cleanups): Ditto
3365 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3366 (save_cleanups,save_final_cleanups): Ditto.
3367 (restore_cleanups,restore_final_cleanups): Ditto.
3368 (null_cleanup): Ditto.
3369 (make_my_cleanup,make_my_cleanup2): Ditto.
3370 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3372 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3374 (make_cleanup_dyn_string_delete): Ditto.
3375 (make_cleanup_ui_file_delete): Ditto.
3376 (make_cleanup_ui_out_redirect_pop): Ditto.
3377 (make_cleanup_free_section_addr_info): Ditto.
3378 (make_cleanup_restore_integer): Ditto.
3379 (make_cleanup_unpush_target): Ditto.
3380 (make_cleanup_value_free_to_mark): Ditto.
3381 (make_cleanup_value_free): Ditto.
3382 (make_cleanup_free_so): Ditto.
3384 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3386 New option "set debug auto-load".
3387 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3388 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3389 (auto_load_safe_path_vec_update)
3390 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3392 (file_is_auto_load_safe): New parameters debug_fmt and ....
3393 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3394 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3395 caller by explanatory string.
3396 (_initialize_auto_load): Register "set debug auto-load".
3397 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3399 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3400 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3401 by explanatory string.
3402 * main.c (captured_main): Likewise.
3403 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3404 (source_section_scripts): Likewise.
3406 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3408 New option "set auto-load safe-path".
3409 * NEWS: New commands "set auto-load safe-path"
3410 and "show auto-load safe-path".
3411 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3412 (auto_load_safe_path, auto_load_safe_path_vec)
3413 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3414 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3415 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3416 (source_gdb_script_for_objfile): New variable is_safe. Call
3417 file_is_auto_load_safe. Return if it is not.
3418 (struct loaded_script): New field loaded.
3419 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3420 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3421 output "Missing" to "No".
3422 (_initialize_auto_load): New variable cmd. Initialize
3423 auto_load_safe_path. Register "set auto-load safe-path",
3424 "show auto-load safe-path" and "add-auto-load-safe-path".
3425 * auto-load.h (maybe_add_script): Add parameter loaded.
3426 (file_is_auto_load_safe): New declaration.
3427 * config.in: Regenerate.
3428 * configure: Regenerate.
3429 * configure.ac: New parameters --with-auto-load-safe-path
3430 and --without-auto-load-safe-path.
3431 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3432 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3433 * main.c (captured_main): Check file_is_auto_load_safe for
3435 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3436 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3437 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3440 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3442 auto-load: Implementation.
3443 * NEWS: New descriptions for "info auto-load",
3444 "info auto-load gdb-scripts", "info auto-load python-scripts",
3445 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3446 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3447 and "show auto-load-scripts". New description for "set auto-load",
3448 "show auto-load", "set auto-load gdb-scripts",
3449 "show auto-load gdb-scripts", "set auto-load python-scripts",
3450 "show auto-load python-scripts", "set auto-load local-gdbinit",
3451 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3452 "show auto-load libthread-db".
3453 * auto-load.c: Remove include python/python-internal.h. Add includes
3454 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3456 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3457 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3458 (gdbpy_global_auto_load): Rename to ...
3459 (global_auto_load): ... here.
3460 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3461 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3462 (script_language_gdb, source_gdb_script_for_objfile): New.
3463 (struct loaded_script): New field language.
3464 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3466 (maybe_add_script): Add parameter language. Drop redundant
3467 entry.full_path initialization. Initialize entry.language and
3469 (auto_load_objfile_script): Change parameter suffix to language.
3470 Remove the call of maybe_add_script.
3471 Call language->source_script_for_objfile.
3472 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3474 (collect_matching_scripts): Adjust it for
3475 struct collect_matching_scripts_data.
3476 (auto_load_info_scripts_pattern_nl): New variable.
3477 (info_auto_load_scripts): Rename to ...
3478 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3479 for struct collect_matching_scripts_data.
3480 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3481 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3482 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3483 (auto_load_info_cmdlist_get): New.
3484 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3485 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3486 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3487 "info auto-load local-gdbinit".
3488 * auto-load.h (struct script_language): New.
3489 (gdbpy_global_auto_load): Rename to ...
3490 (global_auto_load): ... here.
3491 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3492 (auto_load_local_gdbinit_loaded): New declarations.
3493 (maybe_add_script): New parameter language.
3494 (auto_load_objfile_script): Change parameter suffix to language.
3495 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3496 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3497 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3499 * linux-thread-db.c: Include auto-load.h and ctype.h.
3500 (auto_load_thread_db, show_auto_load_thread_db): New.
3501 (struct thread_db_info): New field filename.
3502 (delete_thread_db_info): Call xfree for FILENAME.
3503 (try_thread_db_load): Initialize FILENAME.
3504 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3505 if !AUTO_LOAD_THREAD_DB.
3506 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3507 (_initialize_thread_db): Install auto_load_thread_db
3508 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3509 as "info auto-load libthread-db".
3510 * main.c (captured_main): Rename gdbpy_global_auto_load to
3511 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3512 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3513 (print_gdb_help): Extend the help for 'local init file'.
3514 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3515 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3516 (auto_load_scripts): Rename to ...
3517 (auto_load_python_scripts): ... here, update the comment.
3518 (gdbpy_load_auto_script_for_objfile): New declaration.
3519 (show_auto_load_python_scripts, script_language_python)
3520 (gdbpy_load_auto_script_for_objfile): New.
3521 (source_section_scripts): Refactor the code.
3522 (load_auto_scripts_for_objfile): Rename to ...
3523 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3524 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3525 (info_auto_load_python_scripts): New.
3526 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3527 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3528 Register "set auto-load-scripts" as its deprecated alias. Register
3529 "info auto-load python-scripts". Register "info auto-load-scripts" as
3530 its deprecated alias.
3531 (load_auto_scripts_for_objfile): Rename to ...
3532 (gdbpy_load_auto_scripts_for_objfile): ... here.
3533 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3534 (gdbpy_load_auto_scripts_for_objfile): ... here.
3536 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3538 auto-load: Move files.
3539 * Makefile.in (SFILES): Add auto-load.c.
3540 (HFILES_NO_SRCDIR): Add auto-load.h.
3541 (COMMON_OBS): Add auto-load.o.
3542 (distclean): Change .gdbinit for gdb-gdb.gdb.
3543 * auto-load.c: New file, with parts from python/py-auto-load.c.
3544 * auto-load.h: New file, with parts from python/python.h.
3545 * configure: Regenerate.
3546 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3547 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3548 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3549 * main.c: Include auto-load.h.
3550 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3551 command.h, observer.h and progspace.h to auto-load.c. Add include
3553 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3554 (struct loaded_script, auto_load_pspace_data)
3555 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3556 (hash_loaded_script_entry, eq_loaded_script_entry)
3557 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3558 (maybe_add_script): Move to auto-load.c.
3559 (source_section_scripts): Change maybe_add_script parameters passing,
3560 use script_not_found_warning_print.
3561 (clear_section_scripts, auto_load_objfile_script)
3562 (auto_load_new_objfile, loaded_script_ptr)
3563 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3564 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3565 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3566 auto_load_new_objfile and info_auto_load_scripts initizations to
3568 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3570 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3573 * charset.c (find_charset_names): Remove variables ix and elt.
3574 Use free_char_ptr_vec.
3575 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3576 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3577 debugdir_end. New variable debugdir_len.
3578 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3579 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3581 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3582 and elt. Use free_char_ptr_vec.
3583 * source.c (add_path): Remove variables argv, arg and argv_index.
3584 New variables dir_vec, back_to, ix and name.
3585 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3586 make_cleanup_freeargv. Remove variable separator. Simplify the code
3587 no longer expecting DIRNAME_SEPARATOR.
3588 (openp): Remove variable p, p1 and len. New variables dir_vec,
3589 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3590 no longer expecting DIRNAME_SEPARATOR.
3591 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3592 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3594 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3595 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3596 (dirnames_to_char_ptr_vec): New functions.
3598 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3601 * source.c (add_path): Remove always true conditional 'p == 0' and
3602 unindent its code block.
3604 2012-04-17 Pedro Alves <palves@redhat.com>
3606 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3607 (FIELD_BITPOS_LVAL): ... this.
3608 (FIELD_BITPOS): New.
3609 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3610 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3611 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3613 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3615 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3616 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3617 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3620 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3622 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3623 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3624 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3625 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3626 * jv-lang.c (java_link_class_type): Likewise, once.
3627 * stabsread.c (read_enum_type): Likewise.
3629 2012-04-16 Yao Qi <yao@codesourcery.com>
3631 * common/agent.c (agent_run_command): Add one more parameter `len'.
3633 * common/agent.h: Update declaration.
3634 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3636 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3638 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3641 * value.c (value_actual_type): New function.
3642 * value.h (value_actual_type): New declaration.
3643 * varobj.c (update_type_if_necessary): New function.
3644 (varobj_create): Call value_actual_type instead of
3646 (install_dynamic_child): distinct changed and type changed MI variable
3648 (update_dynamic_varobj_children): Updated for install_dynamic_child
3649 change. All callers updated.
3650 (varobj_update): Support for MI variable object type change if
3651 the value changed and RTTI is used to determine the type.
3652 (create_child_with_value): Call value_actual_type instead of
3654 (adjust_value_for_child_access): Extended with a new parameter which
3655 specify whether the given value should be casted to enclosing type.
3656 All callers updated.
3658 2012-04-14 Yao Qi <yao@codesourcery.com>
3660 Import gnulib module inttypes from git
3661 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3662 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3663 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3664 gnulib/m4/inttypes-pri.m4
3665 * aclocal.m4, config.in, configure: Regenerated.
3666 * gnulib/Makefile.am: Update.
3667 * gnulib/Makefile.in: Update.
3668 * gnulib/m4/gnulib-cache.m4: Update.
3669 * gnulib/m4/gnulib-comp.m4: Update.
3670 * gnulib/inttypes.in.h: New.
3671 * gnulib/m4/inttypes-pri.m4: New.
3672 * gnulib/m4/inttypes.m4: New.
3674 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3676 * infrun.c (resume): Update PC address to the real PC after
3677 preparing to do displaced stepping.
3679 2012-04-12 Doug Evans <dje@google.com>
3681 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3682 All callers updated.
3684 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3686 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3688 2012-04-12 Doug Evans <dje@google.com>
3690 * dwarf2read.c (create_all_type_units): Renamed from
3691 create_debug_types_hash_table. All callers updated.
3693 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3694 local type_sig to sig_type, type_offset to type_offset_in_tu.
3695 (hash_signatured_type): Renamed from hash_type_signature,
3696 all callers updated.
3697 (eq_signatured_type): Renamed from eq_type_signature,
3698 all callers updated.
3699 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3700 (process_enumeration_scope): Ditto.
3701 (lookup_signatured_type_at_offset): Ditto.
3702 (load_full_type_unit, read_signatured_type): Ditto.
3704 2012-04-12 Yao Qi <yao@codesourcery.com>
3706 * remote.c (async_remote_interrupt): Correct function name in
3708 (async_remote_interrupt_twice): Ditto.
3710 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3712 * source.c (find_and_open_source): Consistently pass resulting
3713 full path through xfullpath.
3715 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 Provide more specific displaced-stepping memory error message.
3718 * infrun.c (displaced_step_prepare): New variable status. Call
3719 target_read_memory instead of read_memory, provide more specific
3722 2012-04-11 Tristan Gingold <gingold@adacore.com>
3725 * darwin-nat.c (darwin_execvp): Revert previous patch.
3727 2012-04-11 Tristan Gingold <gingold@adacore.com>
3730 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3733 2012-04-11 Tristan Gingold <gingold@adacore.com>
3735 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3738 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3740 New command 'explore' which helps explore values and types in
3742 * NEWS: Add an entry about the new 'explore' command.
3743 * data-directory/Makefile.in: Add gdb/command/explore.py
3744 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3745 command using the GDB Python API.
3747 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3749 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3750 extension in jump target calculation.
3752 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3754 * mips-tdep.c (mips32_next_pc): Handle JALX.
3756 2012-04-10 Yao Qi <yao@codesourcery.com>
3758 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3760 2012-04-10 Yao Qi <yao@codesourcery.com>
3762 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3763 and gnulib/m4/gnulib-tool.m4.
3765 2012-04-10 Doug Evans <dje@google.com>
3767 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3768 (load_partial_dies): Clarify comment.
3769 (find_partial_die): Support rereading type units.
3770 Clarify CU handling, if we know offset is in CU, don't search for the
3771 containing CU. Add comment regarding memory waste.
3773 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3775 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3776 i386/x32-avx and i386/x32-avx-linux.
3777 (i386/x32-expedite): New.
3778 (i386/x32-linux-expedite): Likewise.
3779 (i386/x32-avx-expedite): Likewise.
3780 (i386/x32-avx-linux-expedite): Likewise.
3781 ($(outdir)/i386/x32.dat): Likewise.
3782 ($(outdir)/i386/x32-linux.dat): Likewise.
3783 ($(outdir)/i386/x32-avx.dat): Likewise.
3784 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3786 * features/i386/x32-avx-linux.xml: New file.
3787 * features/i386/x32-avx.xml: Likewise.
3788 * features/i386/x32-core.xml: Likewise.
3789 * features/i386/x32-linux.xml: Likewise.
3790 * features/i386/x32.xml: Likewise.
3792 * features/i386/x32-avx-linux.c: New. Generated.
3793 * features/i386/x32-avx.c: Likewise.
3794 * features/i386/x32-linux.c: Likewise.
3795 * features/i386/x32.c: Likewise.
3796 * regformats/i386/x32-avx-linux.dat: Likewise.
3797 * regformats/i386/x32-avx.dat: Likewise.
3798 * regformats/i386/x32-linux.dat: Likewise.
3799 * regformats/i386/x32.dat: Likewise.
3801 2012-04-10 Tristan Gingold <gingold@adacore.com>
3803 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3804 code to kill the inferior.
3806 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3808 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3810 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3812 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3813 (yyvsp): New defines.
3814 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3816 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3818 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3820 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3822 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3825 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3827 * sparc64-tdep.c (sparc64_store_arguments)
3828 (sparc64_store_arguments): Fix coding style.
3830 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3832 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3833 complex floats, adjust some related comments and tighten a related
3835 (sparc64_extract_return_value): Handle complex floats.
3837 2012-04-07 Doug Evans <dje@google.com>
3839 * dwarf2read.c (load_partial_dies): Change condition to assert.
3841 2012-04-06 Doug Evans <dje@google.com>
3843 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3846 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3848 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3850 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3851 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3854 2012-04-05 Keith Seitz <keiths@redhat.com>
3856 * linespec.c (decode_compound): Remove.
3857 (enum offset_relative_sign): New enum.
3858 (struct line_offset): New struct.
3859 (struct linespec): New struct.
3860 (struct linespec_state): Move file_symtabs,
3861 user_filename, and user_function into struct linespec.
3862 Make result an anonymous struct holding vectors of
3863 symbolp and minsym_and_objfile_d.
3864 Add language member.
3865 (enum ls_token_type): New enum.
3866 (linespec_keywords): New array.
3867 (struct ls_token): New struct.
3868 (struct ls_parser): New struct.
3869 (linespec_lexer_lex_number): New function.
3870 (linespec_lexer_lex_keyword): New function.
3871 (is_ada_operator): New function.
3872 (skip_quote_char): New function.
3873 (copy_token_string): New function.
3874 (is_closing_quote_enclosed): New function.
3875 (find_parameter_list_end): New function.
3876 (linespec_lexer_lex_string): New function.
3877 (linespec_lexer_lex_one): New function.
3878 (linespec_lexer_consume_token): New function.
3879 (linespec_lexer_peek_token): New function.
3880 (cplusplus_error): Remove unused function.
3881 (find_methods): Update comment.
3882 (find_toplevel_char): Return const.
3883 (is_objc_method_format): Remove unused function.
3884 (find_toplevel_string): New function.
3885 (is_linespec_boundary): Remove.
3886 (symbol_not_found_error): New function.
3887 (find_method_overload_end): Remove function.
3888 (unexpected_linespec_error): New function.
3889 (keep_name_info): Remove.
3890 (linespec_parse_line_offset): New function.
3891 (linespec_parse_basic): New function.
3892 (canonicalize_linespec): New function.
3893 (decode_line_internal): Remove.
3894 (create_sals_line_offset): New function adapted from
3896 (convert_linespec_to_sals): New function.
3897 (parse_linespec): New function.
3898 (linespec_parser_new): New function.
3899 (linespec_state_destructor): Change parameter type to
3900 struct linespec_state *.
3901 Add language parameter.
3902 Remove freeing of moved members.
3903 (linespec_parser_delete): New function.
3904 (decode_line_full): Use parse_linespec and linespec_parser_new.
3905 (decode_line_1): Likewise.
3906 (decode_indirect): Rename to ...
3907 (linespec_expression_to_pc): ... this and rewrite
3908 to simply find CORE_ADDR, storing this result for later
3910 (locate_first_half): Remove.
3911 (deocde_objc): Add parameter LS.
3912 Initialize new struct collect_info members.
3913 Handle minimal symbols, too.
3914 (decode_compound): Delete.
3915 (lookup_prefix_sym): Rewrite.
3916 (compare_msymbols): New function.
3917 (find_method): Rewrite.
3918 Do not call cplusplus_error.
3919 (symtabs_from_filename): Rewrite.
3920 (collect_function_symbols): Delete.
3921 (find_function_symbols): Rewrite without ARGPTR-style
3923 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3924 (decode_dollar): Adapted and renamed to ...
3925 (linespec_parse_variable): ... this.
3926 (find_linespec_symbols): New function.
3927 (decode_label): Adapted and renamed to ...
3928 (find_label_symbols): ... this.
3929 (decode_digits_list_mode): Add and use LS argument.
3930 (decode_digits_ordinary): Likewise.
3931 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3932 If in list mode, allow any symbol class. Otherwise, only
3933 permit LOC_BLOCK symbols.
3934 (minsym_found): Update comments.
3935 (search_minsyms_for_name): Do not convert the matching symbol
3936 into a SAL. Simply push the symbol and objfile into the
3938 (decode_variable): Delete. Contents adapted into
3939 find_linespec_symbols.
3941 * cp-support.c (SKIP_SPACE): Remove.
3942 (operator_tokens): Remove unused global.
3943 (cp_validate_operator): Remove.
3944 * cp-support.h (cp_validate_operator): Remove declaration.
3946 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3948 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3949 for TYPE_VPTR_FIELDNO.
3950 * valprint.c (valprint_check_validity): Make it global, move the
3951 function comment ...
3952 * value.h (valprint_check_validity): ... to this new declaration.
3954 2012-04-02 Tristan Gingold <gingold@adacore.com>
3956 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3957 the STATE32 api for i386 state.
3958 (i386_darwin_store_inferior_registers): Likewise.
3960 2012-04-02 Tristan Gingold <gingold@adacore.com>
3962 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3964 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3967 2012-04-02 Tristan Gingold <gingold@adacore.com>
3970 * darwin-nat.c (darwin_execvp): Set binary preference.
3972 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3974 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3976 2012-03-30 Tom Tromey <tromey@redhat.com>
3978 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3979 of TRY_CATCH. Fix error handling.
3980 * python/py-value.c (convert_value_from_python): Move 'old'
3981 declaration to innermost scope.
3983 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3984 Andrey Smirnov <andrew.smirnov@gmail.com>
3986 -Wshadow warning fix.
3987 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3988 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3989 Adjust code accordingly.
3991 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3993 * ada-lang.c (symbol_completion_add): Rename parameter
3994 "encoded" into "encoded_p". Ajust code and documentation
3997 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3998 Andrey Smirnov <andrew.smirnov@gmail.com>
4000 -Wshadow warning fix.
4001 * ada-lang.c (symbol_completion_add): Rename parameter
4002 "wild_match" into wild_match_p. Update code and documentation
4005 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4007 * ada-lang.c (symbol_completion_match): Rename parameter
4008 "encoded" into "encoded_p". Ajust code and documentation
4011 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4012 Andrey Smirnov <andrew.smirnov@gmail.com>
4014 -Wshadow warning fix.
4015 * ada-lang.c (symbol_completion_match): Rename parameter
4016 "wild_match" into "wild_match_p". Adjust code and function
4017 documentation accordingly.
4019 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4020 Andrey Smirnov <andrew.smirnov@gmail.com>
4022 -Wshadow warning fix.
4023 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
4024 "symbol_info" into "info". Adjust code accordingly.
4025 (ada_lookup_symbol): Likewise.
4027 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4029 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
4030 of this function's documentation.
4032 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4033 Andrey Smirnov <andrew.smirnov@gmail.com>
4035 -Wshadow warning fix.
4036 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
4037 variable into "wild_match_p". Adjust code accordingly.
4039 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4040 Andrey Smirnov <andrew.smirnov@gmail.com>
4042 -Wshadow warning fix.
4043 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
4044 parameter into "wild_match_p". Adjust code accordingly.
4045 Document this parameter in the function description.
4047 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4048 Andrey Smirnov <andrew.smirnov@gmail.com>
4050 -Wshadow warning fix.
4051 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
4052 "wild_match" parameter to "wild_match_p" (-Wshadow).
4054 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4056 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4057 in function documentation.
4059 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4060 Andrey Smirnov <andrew.smirnov@gmail.com>
4062 -Wshadow warning fix.
4063 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
4064 variable into wild_match_p. Adjust code accordingly.
4066 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4067 Andrey Smirnov <andrew.smirnov@gmail.com>
4069 * ada-valprint.c (ada_val_print_1): Move the code handling
4070 TYPE_CODE_ENUM inside its own lexical block. Declare
4071 variables len and val there, instead of in the function's
4072 top level block. Avoid declaring deref_val again in a way
4073 that shadows another variable of the same name declared
4074 in one of the up-level blocks. Just re-use the up-level
4077 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4079 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4080 Replace block_found argument by symbol_info. Adjust
4081 implementation accordingly. Add function documentation.
4082 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4084 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4085 * ada-exp.y (write_object_renaming): Adjust to new
4086 ada_lookup_encoded_symbol API.
4088 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4090 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4093 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
4095 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4096 (v850_register_name): Add the mpu and fpu register names.
4097 (v850e_register_name): Add the mpu and fpu register names.
4098 (v850e2_register_name): New function.
4099 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
4102 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4104 * NEWS: Add entry for Ada varobj support.
4106 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4108 * varobj.c (default_value_is_changeable_p): New function,
4109 extracted from varobj_value_is_changeable_p. Add declaration.
4110 (ada_value_is_changeable_p): New function, extracted from
4111 varobj_value_is_changeable_p. Add declaration.
4112 (struct language_specific): New field "value_is_changeable_p".
4113 (languages): Add entries for new field.
4114 (varobj_create): Set language before calling install_new_value.
4115 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4116 "value_is_changeable_p" language callback.
4118 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4120 * ada-varobj.h, ada-varobj.c: New files.
4121 * Makefile.in (SFILES): Add ada-varobj.c.
4122 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4123 (COMMON_OBS): Add ada-varobj.o.
4125 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4127 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4128 (struct language_specific): New field "value_has_mutated".
4129 (languages): Set field "value_has_mutated" in each entry of array.
4130 (varobj_value_has_mutated): New function.
4131 (varobj_udpdate): Add handling of type mutation.
4132 (value_of_root): Add handling of type mutation.
4133 (ada_value_has_mutated): New function.
4135 2012-03-28 Pedro Alves <palves@redhat.com>
4137 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4138 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4140 2012-03-28 Tom Tromey <tromey@redhat.com>
4142 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4143 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4146 2012-03-28 Tom Tromey <tromey@redhat.com>
4148 * .dir-locals.el: New file.
4150 2012-03-28 Pedro Alves <palves@redhat.com>
4152 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4154 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4156 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4159 2012-03-27 Pedro Alves <palves@redhat.com>
4161 Eliminate struct ui_stream.
4163 * ui-out.h (struct ui_stream): Delete.
4164 (ui_out_field_stream): Adjust prototype.
4165 (ui_out_stream_new, ui_out_stream_delete)
4166 (make_cleanup_ui_out_stream_delete): Delete declarations.
4167 * ui-out.c (ui_out_field_stream): Change prototype to take a
4168 ui_file instead of a ui_stream. Adjust.
4169 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4170 (make_cleanup_ui_out_stream_delete): Delete.
4171 * breakpoint.c (print_breakpoint_location)
4172 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4173 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4174 * disasm.c (dump_insns): Ditto.
4175 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4177 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4178 ui_stream/ui_out_stream_new.
4179 * infcmd.c (print_return_value): Ditto.
4180 * osdata.c (info_osdata_command): Don't allocate a local
4182 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4183 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4184 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4185 allocate a local ui_stream.
4186 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4187 instead of ui_stream/ui_out_stream_new.
4188 (list_args_or_locals): Don't allocate a local ui_stream.
4189 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4190 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4191 ui_stream/ui_out_stream_new.
4192 * cli/cli-setshow.c (do_setshow_command): Ditto.
4194 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
4196 * arm-linux-tdep.c (arm_linux_init_abi): Call
4197 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4198 * arm-tdep.c (arm_process_record): New function.
4199 (deallocate_reg_mem): New function.
4200 (decode_insn): New function.
4201 (thumb_record_branch): New function.
4202 (thumb_record_ldm_stm_swi(): New function.
4203 (thumb_record_misc): New function.
4204 (thumb_record_ld_st_stack): New function.
4205 (thumb_record_ld_st_imm_offset): New function.
4206 (thumb_record_ld_st_reg_offset(): New function.
4207 (thumb_record_add_sub_cmp_mov): New function.
4208 (thumb_record_shift_add_sub): New function.
4209 (arm_record_coproc_data_proc): New function.
4210 (arm_record_coproc): New function.
4211 (arm_record_b_bl): New function.
4212 (arm_record_ld_st_multiple): New function.
4213 (arm_record_ld_st_reg_offset): New function.
4214 (arm_record_ld_st_imm_offset): New function.
4215 (arm_record_data_proc_imm): New function.
4216 (arm_record_data_proc_misc_ld_str): New function.
4217 (arm_record_extension_space): New function.
4218 (arm_record_strx): New function.
4219 (sbo_sbz): New function.
4220 (struct insn_decode_record): New structure for arm insn record.
4221 (REG_ALLOC): New macro for reg allocations.
4222 (MEM_ALLOC): New macro for memory allocations.
4223 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4225 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4227 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4228 (store_register): Likewise.
4230 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
4232 * MAINTAINERS (Write After Approval): Add myself to the list.
4234 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4236 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4237 Describe also the option "auto".
4239 2012-03-22 Richard Henderson <rth@redhat.com>
4241 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4242 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4244 2012-03-22 Richard Henderson <rth@redhat.com>
4246 * jit.c (jit_read_code_entry): Compute alignment and offset of
4247 int64_t member before computing entry_size.
4249 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4251 Python scripting: Add new method Value.referenced_value to
4252 gdb.Value which can dereference pointer as well as reference
4254 * NEWS: Add entry under 'Python scripting' about the new method
4255 Value.referenced_value on gdb.Value objects.
4256 * python/py-value.c (valpy_referenced_value): New function
4257 defining a new method on gdb.Value objects which can dereference
4258 pointer and reference values.
4260 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4262 * MAINTAINERS (Write After Approval): Add myself to the list.
4264 2012-03-21 Kevin Buettner <kevinb@redhat.com>
4266 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4267 in addition to "main".
4269 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4271 * expression.h (op_name): Add declaration.
4272 * expprint.c (op_name): Remove declaration. Make non-static.
4273 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4275 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4277 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4279 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4280 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4281 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4282 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4283 (linux_nat_get_siginfo): Likewise.
4284 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4285 (linux_nat_get_siginfo): Likewise.
4286 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4287 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4288 * procfs.c (gdb_siginfo_t): Likewise.
4290 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4292 * .gitignore: Ignore more files.
4294 2012-03-20 Pedro Alves <palves@redhat.com>
4296 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4299 2012-03-20 Yao Qi <yao@codesourcery.com>
4301 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4304 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4306 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4307 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4308 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4310 * dwarf2expr.h (cu_offset, sect_offset): New types.
4311 (struct dwarf_expr_context_funcs) <dwarf_call>
4312 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4314 (struct dwarf_expr_context) <len>: Improve the comment.
4315 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4316 cu_offset and sect_offset.
4317 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4318 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4319 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4320 * dwarf2loc.h: Include dwarf2expr.h.
4321 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4323 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4324 Improve the comment.
4325 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4326 (struct signatured_type, struct line_header, struct partial_die_info)
4327 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4328 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4329 (get_die_type_at_offset, create_cus_from_index)
4330 (create_signatured_type_table_from_index, dw2_get_file_names)
4331 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4332 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4333 (create_debug_types_hash_table, process_psymtab_comp_unit)
4334 (load_partial_comp_unit, create_all_comp_units)
4335 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4336 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4337 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4338 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4339 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4340 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4341 (find_partial_die, read_attribute_value, lookup_die_type)
4342 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4343 (is_ref_attr): New function comment.
4344 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4345 Use cu_offset and sect_offset.
4346 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4347 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4348 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4349 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4350 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4351 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4352 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4355 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4358 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4359 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4361 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4363 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4365 * NEWS: Describe new options --init-command=FILE, -ix and
4366 --init-eval-command=COMMAND, -iex.
4367 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4368 CMDARG_INIT_COMMAND.
4369 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4370 "init-command", "init-eval-command", "ix" and "iex" to the variable
4371 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4372 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4373 (print_gdb_help): Describe --init-command=FILE, -ix and
4374 --init-eval-command=COMMAND, -iex.
4376 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4379 * main.c (struct cmdarg): Move it here from main. Add more comments.
4380 (cmdarg_s, VEC (cmdarg_s)): New.
4381 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4382 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4383 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4384 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4387 2012-03-19 Tom Tromey <tromey@redhat.com>
4389 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4391 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4394 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4397 2012-03-16 Chris January <chris.january@allinea.com>
4399 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4402 2012-03-16 Chris January <chris.january@allinea.com>
4404 * source.c (add_path): Use memmove instead of strcpy because the
4407 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4409 * value.h (set_value_parent): Add declaration.
4410 * value.c (set_value_parent): New function.
4411 (value_address): If VALUE->PARENT is not NULL, then use it as
4412 the base address instead of VALUE->LOCATION.address.
4413 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4414 the same as OBJ's address. Adjust V's offset accordingly.
4417 2012-03-16 Gary Benson <gbenson@redhat.com>
4419 PR breakpoints/10738
4420 * dwarf2read.c (use_deprecated_index_sections): New global.
4421 (struct partial_die_info): New member may_be_inlined.
4422 (read_partial_die): Set may_be_inlined where appropriate.
4423 (add_partial_subprogram): Add partial symbols for partial
4424 DIEs that may be inlined.
4425 (new_symbol_full): Add inlined subroutines to the current
4427 (write_psymtabs_to_index): Bump version number.
4428 (dwarf2_read_index): Read only version 6 indices unless
4429 use_deprecated_index_sections is set.
4430 * linespec.c (symbol_and_data_callback): New structure.
4431 (iterate_inline_only): New function.
4432 (iterate_over_all_matching_symtabs): New argument
4433 "include_inline". If nonzero, also call the callback for
4434 symbols representing inlined subroutines.
4435 (lookup_prefix_sym): Pass extra argument to the above.
4436 (find_function_symbols): Likewise.
4437 (add_matching_symbols_to_info): Likewise.
4438 * NEWS: Mention that GDB can now set breakpoints on inlined
4441 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4443 * p-typeprint.c (pascal_type_print_method_args):
4444 Fix display of parameter of methods.
4446 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4448 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4449 Add missing prototype.
4451 2012-03-16 Yao Qi <yao@codesourcery.com>
4452 Jan Kratochvil <jan.kratochvil@redhat.com>
4454 Fix false compilation warning.
4455 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4457 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4458 Pedro Alves <pedro@codesourcery.com>
4460 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4461 (arm_register_g_packet_guesses): New function.
4462 (arm_gdbarch_init): Don't force a target description with
4463 registers when the executable is detected as M-profile. Instead
4464 set gdbarch->tdep->is_m. Register `g' packet guesses.
4465 (_initialize_arm_tdep): Initialize the new target description.
4466 * features/arm-with-m-fpa-layout.xml: New description.
4467 * features/arm-with-m-fpa-layout.c: New, generated.
4469 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4471 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4472 Update function description.
4473 (insert_bp_location): Do not wipe bl->target_info out.
4474 * mem-break.c: #include "gdb_string.h".
4475 (default_memory_insert_breakpoint): Do not call target_read_memory
4476 with a pointer to the breakpoint's shadow_contents buffer. Use
4477 a local buffer instead.
4478 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4480 2012-03-15 Tom Tromey <tromey@redhat.com>
4482 * NEWS: Mention "info vtbl", not "info vtable".
4483 * cp-support.c (info_vtbl_command): Fix comment.
4484 (_initialize_cp_support): Fix text.
4486 2012-03-15 Tom Tromey <tromey@redhat.com>
4488 * cp-valprint.c (cp_print_value_fields): Use
4489 print_function_pointer_address for vtable slot.
4491 2012-03-15 Tom Tromey <tromey@redhat.com>
4493 * gnu-v3-abi.c (struct value_and_voffset): New.
4494 (hash_value_and_voffset, eq_value_and_voffset)
4495 (compare_value_and_voffset, compute_vtable_size)
4496 (print_one_vtable, gnuv3_print_vtable): New functions.
4497 (init_gnuv3_ops): Initialize 'print_vtable' field.
4498 * cp-support.c (info_vtbl_command): New function.
4499 (_initialize_cp_support): Add "info vtbl".
4500 * cp-abi.h (cplus_print_vtable): Declare.
4501 (struct cp_abi_ops) <print_vtable>: New field.
4502 * cp-abi.c (cplus_print_vtable): New function.
4505 2012-03-15 Tom Tromey <tromey@redhat.com>
4507 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4508 iterate_over_symbols.
4510 2012-03-14 Doug Evans <dje@google.com>
4512 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4513 DW_OP_GNU_parameter_ref.
4515 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4517 Fix double prompt of 'interpreter-exec mi'.
4518 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4519 (mi_interpreter_resume): use it.
4520 (mi_execute_command_input_handler): New function.
4521 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4522 mi_execute_command_input_handler.
4524 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4526 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4528 (darwin_debug_port_info): Make static.
4529 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4530 * machoread.c (_initialize_machoread): Add prototype.
4531 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4532 (i386_darwin_set_control, i386_darwin_get_control)
4533 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4534 i386_darwin_get_status, i386_darwin_get_control):
4535 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4537 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4539 * ax-gdb.c (gen_usual_unary): Remove special handling of
4540 enum and bool types.
4542 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4544 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4546 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4548 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4550 2012-03-13 Chris January <chris.january@allinea.com>
4552 * aix-thread.c (fill_sprs): Store the floating point registers
4553 at the correct offsets into vals.
4555 2012-03-13 Doug Evans <dje@google.com>
4557 * NEWS: Mention symbol-reloading has been deleted.
4558 * symfile.c (symbol_reloading): Delete.
4559 (show_symbol_reloading): Delete.
4560 (_initialize_symfile): Delete set/show symbol-reloading.
4562 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4563 read_in_chain until we have successfully read it in.
4564 (load_full_comp_unit): Ditto.
4565 (read_signatured_type): Add comment.
4567 2012-03-13 Chris January <chris.january@allinea.com>
4569 * stabsread.c (fix_common_block): Change type of valu argument
4572 2012-03-13 Chris January <chris.january@allinea.com>
4574 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4577 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4579 * common/linux-procfs.c (linux_proc_get_int): New, from
4580 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4582 (linux_proc_get_tgid): Only call linux_proc_get_int.
4583 (linux_proc_get_tracerpid): New.
4584 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4585 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4586 linux_proc_pid_has_state.
4587 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4588 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4589 (linux_ptrace_attach_warnings): New.
4590 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4592 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4593 (linux_nat_attach): New variables ex, buffer, message and message_s.
4594 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4596 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4598 * Makefile.in (linux-ptrace.o): New.
4599 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4601 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4602 * common/linux-ptrace.c: New file.
4603 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4604 * config/arm/linux.mh: Likewise.
4605 * config/i386/linux.mh: Likewise.
4606 * config/i386/linux64.mh: Likewise.
4607 * config/ia64/linux.mh: Likewise.
4608 * config/m32r/linux.mh: Likewise.
4609 * config/m68k/linux.mh: Likewise.
4610 * config/mips/linux.mh: Likewise.
4611 * config/pa/linux.mh: Likewise.
4612 * config/powerpc/linux.mh: Likewise.
4613 * config/powerpc/ppc64-linux.mh: Likewise.
4614 * config/powerpc/spu-linux.mh: Likewise.
4615 * config/s390/s390.mh: Likewise.
4616 * config/sparc/linux.mh: Likewise.
4617 * config/sparc/linux64.mh: Likewise.
4618 * config/xtensa/linux.mh: Likewise.
4619 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4620 common/linux-procfs.c.
4621 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4623 2012-03-13 Hui Zhu <teawater@gmail.com>
4624 Pedro Alves <palves@redhat.com>
4626 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4627 CREATE_BREAKPOINT_FLAGS_INSERTED.
4628 (create_breakpoint_sal, create_breakpoints_sal)
4629 (base_breakpoint_create_breakpoints_sal)
4630 (tracepoint_create_breakpoints_sal)
4631 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4633 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4634 (ftrace_command, strace_command): Adjust.
4635 (create_tracepoint_from_upload): Pass
4636 CREATE_BREAKPOINT_FLAGS_INSERTED.
4637 * breakpoint.h (enum breakpoint_create_flags): New.
4638 (create_breakpoint): New flags parameter.
4639 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4640 * python/py-breakpoint.c (bppy_init): Adjust.
4641 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4642 * spu-tdep.c (spu_catch_start): Adjust.
4644 2012-03-13 Pedro Alves <palves@redhat.com>
4645 Hui Zhu <teawater@gmail.com>
4646 Yao Qi <yao@codesourcery.com>
4648 * remote.c (struct remote_state): New field `starting_up'.
4649 (remote_start_remote): Set and clear it.
4650 (remote_can_download_tracepoint): If starting up, return false.
4652 2012-03-13 Yao Qi <yao@codesourcery.com>
4654 * inferior.h (struct inferior): Remove fields any_syscall_count,
4655 syscalls_counts and total_syscalls_count. Move them to new
4656 struct catch_syscall_inferior_data in breakpoint.c.
4657 * breakpoint.c: Call DEF_VEC_I(int).
4658 (struct catch_syscall_inferior_data): New.
4659 (get_catch_syscall_inferior_data): New.
4660 (catch_syscall_inferior_data_cleanup): New.
4661 (insert_catch_syscall): Update to access data in
4662 struct catch_syscall_inferior_data.
4663 (insert_catch_syscall): Likewise.
4664 (remove_catch_syscall): Likewise.
4665 (remove_catch_syscall): Likewise.
4666 (is_syscall_catchpoint_enabled): Likewise.
4667 (add_catch_command): Likewise.
4668 (_initialize_breakpoint): Register cleanup.
4669 * breakpoint.h: Removed DEF_VEC_I(int).
4670 * dwarf2loc.c: Call DEF_VEC_I(int).
4671 * mi/mi-main.c: Likewise.
4673 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4675 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4677 2012-03-12 Chris January <chris.january@allinea.com>
4679 * aix-thread.c (_initialize_aix_thread): Add prototype.
4680 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4681 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4683 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4685 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4686 include of "amd64-nat.h".
4688 2012-03-12 Tom Tromey <tromey@redhat.com>
4690 * buildsym.c (record_pending_block): Now static.
4691 * buildsym.h: (record_pending_block): Remove.
4693 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4695 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4697 2012-03-09 Tom Tromey <tromey@redhat.com>
4699 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4700 producer_is_gxx_lt_4_6>: New fields.
4701 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4703 2012-03-09 Tom Tromey <tromey@redhat.com>
4705 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4707 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4709 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4712 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4714 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4716 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4718 Fix -Wmissing-prototypes build.
4719 * arm-linux-nat.c (get_thread_id): Make it static.
4720 * xtensa-linux-nat.c (get_thread_id): Likewise.
4722 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4724 * server.c (process_point_options): If a conditional expression
4725 is found, only print a message if remote_debug is nonzero.
4727 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4729 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4730 of internal error for unknown/unsupported types.
4732 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4734 Fix CU relative vs. absolute DIE offsets.
4735 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4736 offset to offset_in_cu.
4737 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4739 (dwarf2_fetch_die_location_block): Rename parameter offset to
4740 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4742 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4744 * libunwind-frame.c: Rename to ...
4745 * ia64-libunwind-tdep.c: ... here.
4746 * libunwind-frame.h: Rename to ...
4747 * ia64-libunwind-tdep.h: ... here.
4748 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4749 ia64-libunwind-tdep.h.
4750 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4751 * README (--with-libunwind): Rename to ...
4752 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4753 * config.in: Regenerate.
4754 * configure: Regenerate.
4755 * configure.ac: New option --with-libunwind-ia64, make the
4756 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4757 Remove AC_DEFINE for HAVE_LIBUNWIND.
4758 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4759 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4760 Rename libunwind-frame in the general comment.
4761 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4762 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4763 Move forward declarations inside #ifndef. Rename libunwind-frame in
4764 the general comment.
4765 * ia64-tdep.c: Rename libunwind-frame.h #include to
4766 ia64-libunwind-tdep.h.
4767 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4768 (ia64_libunwind_descr): Rename libunwind-frame to
4769 ia64-libunwind-tdep in these function comments.
4770 * ia64-tdep.h: Rename libunwind-frame.h #include to
4771 ia64-libunwind-tdep.h.
4772 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4773 ia64-libunwind-tdep in that data comment.
4775 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4777 * libunwind-frame.h (struct frame_unwind): New declaration.
4779 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4781 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4782 "set breakpoint condition-evaluation" command.
4784 2012-03-08 Tristan Gingold <gingold@adacore.com>
4786 * sparc-stub.c: Move to stubs/
4787 * sh-stub.c: Likewise.
4788 * m68k-stub.c: Likewise.
4789 * m32r-stub.c: Likewise.
4790 * i386-stub.c: Likewise.
4792 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4794 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4795 linux_get_siginfo_type.
4797 * m68klinux-nat.c: Include "gdb_proc_service.h".
4798 (PTRACE_GET_THREAD_AREA): Define.
4799 (ps_get_thread_area): New function.
4801 2012-03-08 Yao Qi <yao@codesourcery.com>
4803 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4805 (remote_query_attached): Likewise.
4806 (remote_static_tracepoint_marker_at): Likewise.
4807 (remote_set_permissions): Likewise.
4808 (remote_detach_1, extended_remote_attach_1): Likewise.
4809 (send_g_packet, remote_vkill): Likewise.
4810 (extended_remote_disable_randomization): Likewise.
4811 (remote_add_target_side_condition): Likewise.
4812 (remote_insert_breakpoint): Likewise.
4813 (remote_remove_breakpoint): Likewise.
4814 (remote_insert_watchpoint): Likewise.
4815 (remote_remove_watchpoint): Likewise.
4816 (remote_insert_hw_breakpoint): Likewise.
4817 (remote_insert_hw_breakpoint): Likewise.
4818 (remote_remove_hw_breakpoint): Likewise.
4819 (remote_download_command_source): Likewise.
4820 (remote_download_tracepoint): Likewise.
4821 (remote_download_trace_state_variable): Likewise.
4822 (remote_disable_tracepoint): Likewise.
4823 (remote_trace_set_readonly_regions): Likewise.
4824 (remote_get_tracepoint_status): Likewise.
4825 (remote_trace_find): Likewise.
4826 (remote_get_trace_state_variable_value): Likewise.
4827 (remote_set_disconnected_tracing): Likewise.
4828 (remote_set_circular_trace_buffer): Likewise.
4829 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4830 (remote_use_agent): Likewise.
4831 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4834 2012-03-07 Pedro Alves <palves@redhat.com>
4836 * NEWS: Mention QProgramSignals.
4837 * inferior.h (update_signals_program_target): Declare.
4838 * infrun.c: (update_signals_program_target): New.
4839 (handle_command): Update the target of the new program signals
4841 * remote.c (PACKET_QProgramSignals): New enum.
4842 (last_program_signals_packet): New global.
4843 (remote_program_signals): New.
4844 (remote_start_remote): Update the target with the program signals
4846 (remote_protocol_features): Add entry for QPassSignals.
4847 (remote_open_1): Free anc clear last_program_signals_packet.
4848 (init_remote_ops): Install remote_program_signals.
4849 * target.c (update_current_target): Adjust.
4850 (target_program_signals): New.
4851 * target.h (struct target_ops) <to_program_signals>: New field.
4852 (target_program_signals): Declare.
4854 2012-03-07 Pedro Alves <palves@redhat.com>
4856 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4859 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4861 * m68klinux-nat.c (getregs_supplies): Make static.
4862 (getfpregs_supplies): Likewise.
4863 (have_ptrace_getregs): Likewise.
4865 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4867 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4868 in call to get_die_type_at_offset.
4870 2012-03-06 Stan Shebs <stan@codesourcery.com>
4872 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4873 * mi/mi-cmd-disas.c: Ditto.
4874 * mi/mi-cmd-env.c: Ditto.
4875 * mi/mi-cmd-file.c: Ditto.
4876 * mi/mi-cmd-stack.c: Ditto.
4877 * mi/mi-cmd-target.c: Ditto.
4878 * mi/mi-cmd-var.c: Ditto.
4879 * mi/mi-cmds.c: Ditto.
4880 * mi/mi-cmds.h: Ditto.
4881 * mi/mi-console.c: Ditto.
4882 * mi/mi-getopt.c: Ditto.
4883 * mi/mi-getopt.h: Ditto.
4884 * mi/mi-interp.c: Ditto.
4885 * mi/mi-main.c: Ditto.
4886 * mi/mi-out.c: Ditto.
4887 * mi/mi-parse.c: Ditto.
4888 * mi/mi-parse.h: Ditto.
4889 * mi/mi-symbol-cmds.c: Ditto.
4891 * mi/mi-getopt.h: Move mi_opt struct up.
4892 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4894 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4896 2012-03-06 Tom Tromey <tromey@redhat.com>
4898 * proc-service.c (ps_pglobal_lookup): Set the current program
4901 2012-03-06 Pedro Alves <palves@redhat.com>
4903 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4905 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4907 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4909 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4912 * common/linux-osdata.c (linux_common_core_of_thread): New function
4914 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4915 call by linux_common_core_of_thread.
4916 (linux_nat_core_of_thread_1): Remove.
4917 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4918 * linux-thread-db.c: Include linux-osdata.h.
4919 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4920 linux_common_core_of_thread.
4922 2012-03-05 Tom Tromey <tromey@redhat.com>
4924 * value.c (value_primitive_field): Don't fetch contents for
4927 2012-03-05 Tom Tromey <tromey@redhat.com>
4929 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4931 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4933 * s390-nat.c: Include "gregset.h".
4935 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4937 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4938 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4939 (libunwind_load): New variable so_error, use it for dlerror. Try to
4940 load also LIBUNWIND_SO_7.
4942 2012-03-05 Pedro Alves <palves@redhat.com>
4944 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4945 is not NULL, and remove resulting dead code.
4947 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4949 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4950 prologue to sh_analyze_prologue.
4951 (sh_analyze_prologue): Make better use of such an upper limit, and
4952 generally be more cautious about accessing memory.
4954 2012-03-05 Tom Tromey <tromey@redhat.com>
4956 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4957 _initialize_ia64_hpux_tdep.
4959 2012-03-05 Pedro Alves <palves@redhat.com>
4963 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4964 the register state is clear, supply explicit zero, instead of
4965 marking the register unavailable.
4967 2012-03-05 Tristan Gingold <gingold@adacore.com>
4969 * NEWS: Mention OpenVMS ia64 new target.
4971 2012-03-05 Tristan Gingold <gingold@adacore.com>
4973 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4974 (ia64_unw_accessors, ia64_unw_rse_accessors)
4975 (ia64_libunwind_descr): Declare.
4976 * ia64-vms-tdep.c: New file.
4977 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4978 (ia64_libunwind_descr): Make them public.
4979 * configure.tgt: Add ia64-*-*vms*.
4980 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4981 (ALLDEPFILES): Add ia64-vms-tdep.c
4983 2012-03-05 Tristan Gingold <gingold@adacore.com>
4985 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4986 * remote.c (PACKET_qXfer_uib): New enum value.
4987 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4988 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4989 (_initialize_remote): Call add_packet_config_cmd for
4992 2012-03-05 Tristan Gingold <gingold@adacore.com>
4994 * osabi.c (gdb_osabi_names): Add OpenVMS.
4995 (generic_elf_osabi_sniffer): Likewise.
4996 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4998 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5000 Removed unused code.
5001 * libunwind-frame.c (libunwind_frame_unwind)
5002 (libunwind_frame_base_address): Remove.
5003 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
5005 2012-03-04 Yao Qi <yao@codesourcery.com>
5007 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
5008 remove trailing new line.
5009 (agent_run_command, agent_run_command): Add _ markup.
5010 (agent_capability_check): Likewise.
5012 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5014 * breakpoint.c (set_condition_evaluation_mode): Set
5015 CONDITION_EVALUATION_MODE unconditionally.
5017 2012-03-03 Yao Qi <yao@codesourcery.com>
5019 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
5020 * common/agent.h: Update declaration.
5021 * inf-child.c (inf_child_use_agent): New.
5022 (inf_child_can_use_agent): New.
5023 (inf_child_target): Initialize fields `to_use_agent'
5024 and `to_can_use_agent'.
5025 * agent.c (agent_new_objfile): New.
5026 (_initialize_agent): Add agent_new_objfile to new_objfile
5029 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5031 (linux_target_install_ops): Initialize field
5032 `to_static_tracepoint_markers_by_strid'.
5033 * remote.c (free_current_marker): Move it to ...
5034 * tracepoint.c (free_current_marker): ... here. New.
5035 (cleanup_target_stop): New.
5036 * tracepoint.h: Declare free_current_marker.
5037 * NEWS: Add one entry about `info static-tracepoint-marker'.
5039 2012-03-03 Yao Qi <yao@codesourcery.com>
5041 * common/agent.c (agent_loaded_p): New.
5042 (agent_look_up_symbols): New global.
5043 * common/agent.h: Declare agent_loaded_p.
5045 2012-03-03 Yao Qi <yao@codesourcery.com>
5047 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
5048 (agent_capability_check, agent_capability_invalidate): New.
5049 (symbol_list): New array element.
5050 * common/agent.h (enum agent_capa): New.
5051 * target.c (target_pre_inferior): Call agent_capability_invalidate.
5053 2012-03-03 Yao Qi <yao@codesourcery.com>
5055 * target.h (struct target_ops) <to_use_agent>: New field.
5056 (struct target_ops) <to_can_use_agent>: New field.
5057 (target_use_agent, target_can_use_agent): New macro.
5058 * target.c (update_current_target): Update.
5059 * remote.c: New enum `PACKET_QAgent'.
5060 (remote_protocol_features): Add a new element.
5061 (remote_use_agent, remote_can_use_agent): New.
5062 (init_remote_ops): Initialize field `can_use_agent' with
5063 remote_can_use_agent. Intiailize field `use_agent' with
5065 * common/agent.c (use_agent): New global.
5066 * common/agent.h: Declare it.
5067 * tracepoint.c (info_static_tracepoint_markers_command): Add
5069 * Makefile.in (SFILES): Add common/agent.c and agent.c.
5070 (COMMON_OBS): Add common/agent.o and agent.o
5071 (common-agent.o): New rule.
5074 2012-03-03 Yao Qi <yao@codesourcery.com>
5076 * common/agent.c: New.
5077 * common/agent.h: New.
5078 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5080 * configure, configh.in: Regenerated.
5082 2012-03-02 Kevin Buettner <kevinb@redhat.com>
5084 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5085 unless it exists for this architecture.
5087 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5089 * language.h (struct language_defn): New "method" la_read_var_value.
5090 * findvar.c: #include "language.h".
5091 (default_read_var_value): Renames read_var_value. Rewrite
5092 function description.
5093 (read_var_value): New function.
5094 * value.h (default_read_var_value): Add prototype.
5095 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5097 (ada_language_defn): Add entry for la_read_var_value.
5098 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5099 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5100 language_defn structures to add entry for new la_read_var_value
5103 2012-03-02 Tom Tromey <tromey@redhat.com>
5104 Pedro Alves <palves@redhat.com>
5106 PR breakpoints/13776:
5107 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5109 (delete_longjmp_breakpoint_at_next_stop): New.
5110 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5111 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5112 before deleting the inferior. Add comments.
5113 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5114 breakpoints immediately, but only on next stop. Move that code
5115 next to where we mark other breakpoints for deletion.
5117 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5119 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5121 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5124 2012-03-02 Pedro Alves <palves@redhat.com>
5126 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5128 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5130 Fix -Wmissing-prototypes build.
5131 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5132 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5133 (gdbsim_has_memory): Likewise.
5135 2012-03-02 Yao Qi <yao@codesourcery.com>
5137 Fix -Wmissing-prototypes build.
5138 * charset.c (phony_iconv_open): Make static.
5139 (phony_iconv_close, phony_iconv): Likewise.
5140 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5141 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5143 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5144 * ser-mingw.c (create_select_thread): Make static.
5145 * windows-termcap.c (tgetent): New prototype.
5146 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5148 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5150 Fix -Wmissing-prototypes build.
5151 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5152 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5153 (_initialize_loadable): New prototypes.
5155 2012-03-02 Doug Evans <dje@google.com>
5157 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5158 abbrev table, read_comp_unit will do it.
5160 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5162 Fix -Wmissing-prototypes build.
5163 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5164 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5165 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5166 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5167 (_initialize_arm_symbian_tdep): New prototype.
5168 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5169 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5170 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5172 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5173 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5175 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5176 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5177 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5179 * moxie-tdep.c (moxie_process_record): Likewise.
5180 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5181 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5182 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5183 (_initialize_rl78_tdep): New prototype.
5184 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5185 (_initialize_rx_tdep): New prototype.
5186 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5187 (_initialize_darwin_solib): New prototype.
5188 * solib-spu.c: Include solib-spu.h.
5189 (_initialize_spu_solib): New prototype.
5190 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5191 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5192 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5193 (tic6x_software_single_step): Make it static.
5194 (_initialize_tic6x_tdep): New prototype.
5196 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5198 Fix -Wmissing-prototypes build.
5199 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5200 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5202 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5204 Fix -Wmissing-prototypes build.
5205 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5206 (frv_have_stopped_data_address): Remove.
5208 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5210 Fix -Wmissing-prototypes build.
5211 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5212 * sh-tdep.c: Include sh64-tdep.h.
5213 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5214 * sh64-tdep.c: Include sh64-tdep.h.
5215 * sh64-tdep.h: New file.
5217 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5219 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5221 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5223 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5224 sp_regnum once the gdbarch_init_osabi hook has been called.
5226 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5228 * mips-tdep.c (mips32_bc1_pc): New function.
5229 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5230 BPOSGE32 and BPOSGE64 instructions.
5231 (deal_with_atomic_sequence): Likewise.
5232 (mips32_instruction_has_delay_slot): Likewise.
5234 2012-03-01 Maciej W. Rozycki <macro@mips.com>
5235 Chris Dearman <chris@mips.com>
5236 Maciej W. Rozycki <macro@codesourcery.com>
5237 Joseph Myers <joseph@codesourcery.com>
5239 * features/mips-dsp.xml: New file.
5240 * features/mips64-dsp.xml: New file.
5241 * features/mips-dsp-linux.xml: New file.
5242 * features/mips64-dsp-linux.xml: New file.
5243 * features/Makefile (WHICH): Add mips-dsp-linux and
5245 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5246 * features/mips-dsp-linux.c: New file.
5247 * features/mips64-dsp-linux.c: New file.
5248 * regformats/mips-dsp-linux.dat: New file.
5249 * regformats/mips64-dsp-linux.dat: New file.
5250 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5252 (mips64_linux_register_addr): Likewise.
5253 (mips64_linux_regsets_fetch_registers): Likewise.
5254 (mips64_linux_regsets_store_registers): Likewise.
5255 (mips64_linux_fetch_registers): Update call to
5256 mips64_linux_regsets_fetch_registers.
5257 (mips64_linux_store_registers): Update call to
5258 mips64_linux_regsets_store_registers.
5259 (mips_linux_read_description): Probe for DSP registers.
5260 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5261 and initialize_tdesc_mips64_dsp_linux.
5262 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5263 Remove padding of no longer used embedded register slots.
5264 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5265 (MIPS_RESTART_REGNUM): Redefine enum value.
5266 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5268 (mips_tx39_reg_names): Likewise.
5269 (mips_linux_reg_names): New array of register names for Linux
5271 (mips_register_name): Check for a null pointer in
5272 mips_processor_reg_names and return an empty string.
5273 (mips_register_type): Exclude embedded registers for the IRIX
5275 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5276 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5278 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5279 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5280 (mips_gdbarch_init): Likewise. Initialize internal register
5281 indices for the Linux ABI. Use dynamic numbers to refer to
5282 registers, as applicable, while parsing the target description.
5283 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5285 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5287 * frame.h (read_frame_register_unsigned): Fix typo in function
5290 2012-03-01 Pedro Alves <palves@redhat.com>
5292 * jit-reader.in [!__cplusplus]
5293 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5295 2012-03-01 Pedro Alves <palves@redhat.com>
5297 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5298 * configure: Regenerate.
5300 2012-03-01 Pedro Alves <palves@redhat.com>
5302 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5303 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5304 (ftrace_command, strace_command): Make static.
5305 * d-lang.c (_initialize_d_language): Declare.
5306 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5307 * dwarf2loc.c (_initialize_dwarf2loc):
5308 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5309 * exec.c (exec_get_section_table): Make static.
5310 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5311 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5312 * inferior.c (remove_inferior_command, add_inferior_command)
5313 (clone_inferior_command): Make static.
5314 * linux-nat.c (linux_nat_thread_address_space)
5315 (linux_nat_core_of_thread): Make static.
5316 * linux-tdep.c (_initialize_linux_tdep): Declare.
5317 * objc-lang.c (_initialize_objc_lang): Declare.
5318 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5320 (_initialize_opencl_language): Declare.
5321 * record.c (_initialize_record): Declare.
5322 * remote.c (demand_private_info, remote_get_tib_address)
5323 (remote_supports_cond_tracepoints)
5324 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5326 * skip.c (_initialize_step_skip): Declare.
5327 * symtab.c (skip_prologue_using_lineinfo): Make static.
5328 * tracepoint.c (delete_trace_state_variable)
5329 (trace_variable_command, delete_trace_variable_command)
5330 (get_uploaded_tsv, find_matching_tracepoint_location)
5331 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5333 * value.c (pack_unsigned_long): Make static.
5334 * varobj.c (varobj_ensure_python_env): Make static.
5335 * windows-tdep.c (_initialize_windows_tdep): Declare.
5336 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5338 2012-03-01 Pedro Alves <palves@redhat.com>
5340 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5342 (linux_init_abi): Install it as has_shared_address_space gdbarch
5345 2012-03-01 Pedro Alves <palves@redhat.com>
5347 * observer.c (observer_test_first_notification_function)
5348 (observer_test_second_notification_function)
5349 (observer_test_third_notification_function): Add declarations.
5351 2012-03-01 Pedro Alves <palves@redhat.com>
5353 * common/signals.c (default_target_signal_to_host)
5354 (default_target_signal_from_host): Move ...
5355 * arch-utils.c: ... here.
5356 * arch-utils.h (default_target_signal_to_host)
5357 (default_target_signal_from_host): Declare.
5359 * common/signals.c (target_signal_from_command): Move ...
5360 * infrun.c: ... here.
5361 * inferior.h (target_signal_from_command): Declare.
5362 * target.h (target_signal_from_command)
5363 (default_target_signal_from_host, default_target_signal_to_host):
5364 Delete declarations.
5366 * common/signals.c (_initialize_signals): Delete.
5368 2012-03-01 Pedro Alves <palves@redhat.com>
5370 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5371 both __cplusplus and !__cplusplus.
5373 2012-03-01 Pedro Alves <palves@redhat.com>
5375 * psymtab.c (find_and_open_source): Delete declaration.
5376 * source.c (find_and_open_source): Move comment ...
5377 * source.h (find_and_open_source): ... to this new declaration.
5379 2012-03-01 Pedro Alves <palves@redhat.com>
5381 * inline-frame.c: Include inline-frame.h.
5383 2012-03-01 Pedro Alves <palves@redhat.com>
5385 * tui/tui-data.c (set_gen_win_origin): Delete.
5386 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5387 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5389 2012-03-01 Pedro Alves <palves@redhat.com>
5391 * remote.c (encode_actions): Delete declaration.
5392 * tracepoint.c (encode_actions): Make extern.
5393 * tracepoint.h (encode_actions): Declare.
5395 2012-03-01 Pedro Alves <palves@redhat.com>
5397 * python/py-breakpoint.c: Include python.h.
5398 * python/py-continueevent.c (create_continue_event_object): Make
5400 * python/py-lazy-string.c (stpy_get_type): Make static.
5401 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5403 * python/py-utils.c (unicode_to_target_python_string): Make
5405 * python/py-value.c: Include python.h.
5407 2012-03-01 Pedro Alves <palves@redhat.com>
5409 * inferior.c (delete_threads_of_inferior): Delete.
5411 2012-03-01 Pedro Alves <palves@redhat.com>
5413 Import fallback definitions from glibc.
5415 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5416 ps_prochandle): Forward declare.
5417 (ps_err_e): Use glibc's comments.
5418 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5419 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5420 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5421 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5422 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5423 (struct ps_prochandle): Adjust comment.
5425 2012-03-01 Pedro Alves <palves@redhat.com>
5427 * ada-lang.c (ada_modulus_from_name): Delete.
5428 * ada-lex.l (lexer_init): Make static.
5430 2012-03-01 Pedro Alves <palves@redhat.com>
5434 * frame.c (read_frame_register_unsigned): New.
5435 * frame.h (read_frame_register_unsigned): Declare.
5436 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5438 (print_i387_control_word): New parameter `control_p'. Handle it.
5439 (i387_print_float_info): Handle unavailable float registers.
5441 2012-03-01 Keith Seitz <keiths@redhat.com>
5443 * linespec.c (decode_line_2): Sort the list of methods
5444 alphabetically before presenting the user with a selection
5447 2012-03-01 Doug Evans <dje@google.com>
5449 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5451 (dwarf2_read_abbrevs): Remove corresponding initialization.
5453 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5455 * NEWS: Mention new python command class gdb.COMMAND_USER.
5456 * cli/cli-cmds.c (show_user): Print error when used on a python
5458 (init_cli_cmds): Update documentation strings for "show user" and
5459 "set/show max-user-call-depth" to clarify that it does not apply to
5461 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5463 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5465 * top.c (execute_command): Only execute a user-defined command as a
5466 legacy macro if c->user_commands is set.
5468 2012-03-01 Tom Tromey <tromey@redhat.com>
5470 * valprint.h (struct generic_val_print_decorations): New.
5471 (generic_val_print): Declare.
5472 * valprint.c (generic_val_print): New function.
5473 * p-valprint.c (p_decorations): New global.
5474 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5475 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5476 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5477 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5478 * m2-valprint.c (m2_decorations): New global.
5479 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5480 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5481 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5482 TYPE_CODE_ERROR>: Call generic_val_print.
5483 * f-valprint.c (f_decorations): New global.
5484 (f_val_print): Use print_function_pointer_address.
5485 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5486 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5487 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5489 * c-valprint.c (c_decorations): New global.
5490 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5491 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5492 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5493 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5494 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5495 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5498 2012-03-01 Tom Tromey <tromey@redhat.com>
5500 * valprint.c (val_print): Update.
5501 * p-valprint (pascal_val_print): Return void.
5502 * p-lang.h (pascal_val_print): Return void.
5503 * m2-valprint.c (m2_val_print): Return void.
5504 * m2-lang.h (m2_val_print): Return void.
5505 * language.h (struct language_defn) <la_val_print>: Return void.
5506 * language.c (unk_lang_val_print): Return void.
5507 * jv-valprint.c (java_val_print): Return void.
5508 * jv-lang.h (java_val_print): Return void.
5509 * f-valprint.c (f_val_print): Return void.
5510 * f-lang.h (f_val_print): Return void.
5511 * d-valprint.c (d_val_print): Return void.
5512 (dynamic_array_type): Update.
5513 * d-lang.h (d_val_print): Return void.
5514 * c-valprint.c (c_val_print): Return void.
5515 * c-lang.h (c_val_print): Return void.
5516 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5518 * ada-lang.h (ada_val_print): Return void.
5520 2012-03-01 Tom Tromey <tromey@redhat.com>
5522 * value.h (val_print): Return void.
5523 * valprint.c (val_print): Return void.
5525 2012-03-01 Tom Tromey <tromey@redhat.com>
5527 * value.h (common_val_print): Return void.
5528 * valprint.c (common_val_print): Return void.
5530 2012-03-01 Tom Tromey <tromey@redhat.com>
5532 * value.h (value_print): Return void.
5533 * valprint.c (value_print): Return void.
5534 * p-valprint.c (pascal_value_print): Return void.
5535 * p-lang.h (pascal_value_print): Return void.
5536 * language.h (struct language_defn) <la_value_print>: Return
5538 * language.c (unk_lang_value_print): Return void.
5539 * jv-valprint.c (java_value_print): Return void.
5540 * jv-lang.h (java_value_print): Return void.
5541 * f-valprint.c (c_value_print): Don't declare.
5543 * c-valprint.c (c_value_print): Return void.
5544 * c-lang.h (c_value_print): Return void.
5545 * ada-valprint.c (ada_value_print): Return void.
5546 * ada-lang.h (ada_value_print): Return void.
5548 2012-03-01 Tom Tromey <tromey@redhat.com>
5550 * value.c (value_primitive_field): Handle virtual base classes.
5552 2012-03-01 Tom Tromey <tromey@redhat.com>
5554 * gdbtypes.h (struct vbase): Remove.
5556 2012-03-01 Tom Tromey <tromey@redhat.com>
5558 * c-valprint.c (print_function_pointer_address): Move...
5559 * valprint.c: ... here. Make non-static.
5560 * m2-valprint.c (print_function_pointer_address): Remove.
5561 * valprint.h (print_function_pointer_address): Declare.
5563 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5565 * NEWS: Document the fact that one can provide a condition when
5566 creating an Ada exception catchpoint.
5568 2012-03-01 Tom Tromey <tromey@redhat.com>
5570 * valprint.c (val_print_type_code_flags): Fix placement of
5573 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5575 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5576 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5577 environment variable before calling update-copyright.
5579 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5581 * gnulib/extra/update-copyright: Update to the latest from
5582 gnulib's git repository.
5583 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5584 variable to 2 instead of 1.
5586 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5588 * varobj.c (c_value_of_variable): Remove dead code.
5590 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5592 * ada-lex.p (processId): Do not modify already encoded IDs.
5593 Update function documentation.
5595 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5597 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5598 "name" with "struct symbol *name_sym".
5599 * ada-exp.y (write_var_or_type): Update call to
5600 ada_find_renaming_symbol.
5601 "name" with "struct symbol *name_sym". Adjust Implementation
5602 accordingly. Adjust the function documentation.
5604 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5606 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5607 * ada-lang.c (ada_find_any_type): Add advance declaration.
5608 Make static. Replace ada_find_any_symbol by
5609 ada_find_any_type_symbol.
5610 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5611 Improve function description. Make static.
5612 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5613 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5615 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5617 * ada-lang.c (struct tag_args): Delete.
5618 (ada_get_tsd_type): Function body moved up in source file.
5619 (ada_tag_name_1, ada_tag_name_2): Delete.
5620 (ada_get_tsd_from_tag): New function.
5621 (ada_tag_name_from_tsd): New function.
5622 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5623 to determine the tag name.
5625 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5627 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5629 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5632 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5634 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5636 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5638 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5641 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5643 * ada-lang.c (constrained_packed_array_type): If there is a
5644 parallel XA type, use it to determine the array index type.
5646 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5648 * ada-valprint.c (ada_val_print_1): If our value is a reference
5649 to an array descriptor, dereference it before converting it
5652 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5654 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5655 creating fixed value.
5656 (ada_value_ind, ada_coerce_ref, assign_component)
5657 (ada_evaluate_subexp): Remove call to unwrap_value before
5658 call to ada_to_fixed_value.
5660 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5662 * ada-lang.c (to_fixed_array_type): Set result's type name.
5664 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5666 * ada-lang.c (catch_ada_exception_command_split): Add new
5667 argument cond_string. Add support for condition at end of
5668 "catch exception" commands.
5669 (ada_decode_exception_location): Add new argument cond_string.
5670 Update call to catch_ada_exception_command_split.
5671 (create_ada_exception_catchpoint): Add new argument cond_string.
5672 Set the breakpoint condition if needed.
5673 (catch_ada_exception_command): Update call to
5674 ada_decode_exception_location.
5675 (ada_decode_assert_location): Add function documentation.
5676 Add support for condition at end of "catch assert" command.
5677 (catch_assert_command): Update calls to ada_decode_assert_location
5678 and create_ada_exception_catchpoint.
5680 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5682 Fix disp-step-syscall.exp: fork: single step over fork.
5683 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5684 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5685 comment, change parameters gdbarch and ptid to regcache. Remove
5686 parameter regcache, initialize gdbarch from regcache here.
5687 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5689 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5691 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5692 'syscall'. Make the 'int' check more strict.
5694 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5696 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5697 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5698 (i386_linux_intx80_sysenter_syscall_record): ... here.
5699 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5700 Use the renamed function name.
5702 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5704 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5705 * breakpoint.c (until_break_command): Likewise.
5706 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5707 * infcall.c (call_function_by_hand): Likewise.
5708 * infcmd.c (finish_forward): Likewise.
5709 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5711 2012-02-28 Tristan Gingold <gingold@adacore.com>
5713 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5714 avoid variable assignments inside condition.
5716 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5718 Fix static analysis issue found by cppcheck.
5719 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5720 uninitialized BUF for size 2.
5722 2012-02-27 Chris Dearman <chris@mips.com>
5723 Nathan Froyd <froydnj@codesourcery.com>
5724 Maciej W. Rozycki <macro@codesourcery.com>
5726 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5727 (mips16_instruction_has_delay_slot): Likewise.
5728 (mips_segment_boundary): Likewise.
5729 (mips_adjust_breakpoint_address): Likewise.
5730 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5732 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5733 Maciej W. Rozycki <macro@codesourcery.com>
5735 * infrun.c (handle_inferior_event): Don't proceed through
5736 shared library trampolines if stepping at the machine
5739 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5741 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5744 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5746 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5747 (sh_stub_unwind_sniffer): New functions.
5748 (sh_stub_unwind): New variable.
5749 (sh_gdbarch_init): Wire everything.
5751 2012-02-27 Pedro Alves <palves@redhat.com>
5753 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5754 (linux_nat_post_attach_wait): Adjust to use
5755 linux_proc_pid_is_stopped.
5756 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5757 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5758 based on pid_is_stopped from both linux-nat.c and
5759 gdbserver/linux-low.c, and renamed.
5761 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5763 * remote.c (remote_watchpoint_addr_within_range): New function.
5764 (init_remote_ops): Use it.
5766 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5768 * target.h (target_watchpoint_addr_within_range): Document macro.
5770 2012-02-24 Pedro Alves <palves@redhat.com>
5772 * stack.c (set_last_displayed_sal): Issue internal_error instead
5773 of warning, and issue it after clearing the last displayed sal.
5775 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5776 Pedro Alves <palves@redhat.com>
5778 * breakpoint.c (until_break_command): Install breakpoints after
5779 all frame manipulations.
5781 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5783 * remote.c (remote_supports_cond_breakpoints): New forward
5785 (remote_add_target_side_condition): New function.
5786 (remote_insert_breakpoint): Add target-side breakpoint
5787 conditional if supported.
5788 (remote_insert_hw_breakpoint): Likewise.
5789 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5792 * target.c (update_current_target): Inherit
5793 to_supports_evaluation_of_breakpoint_conditions.
5794 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5796 * target.h (struct target_ops)
5797 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5798 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5800 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5801 (condition_evaluation_both, condition_evaluation_auto,
5802 condition_evaluation_host, condition_evaluation_target,
5803 condition_evaluation_enums, condition_evaluation_mode_1,
5804 condition_evaluation_mode): New static globals.
5805 (translate_condition_evaluation_mode): New function.
5806 (breakpoint_condition_evaluation_mode): New function.
5807 (gdb_evaluates_breakpoint_condition_p): New function.
5808 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5809 (mark_breakpoint_modified): New function.
5810 (mark_breakpoint_location_modified): New function.
5811 (set_condition_evaluation_mode): New function.
5812 (show_condition_evaluation_mode): New function.
5813 (bp_location_compare_addrs): New function.
5814 (get_first_location_gte_addr): New helper function.
5815 (set_breakpoint_condition): Free condition bytecode if locations
5816 has become unconditional. Call mark_breakpoint_modified (...).
5817 (condition_command): Call update_global_location_list (1) for
5819 (breakpoint_xfer_memory): Use is_breakpoint (...).
5820 (is_breakpoint): New function.
5821 (parse_cond_to_aexpr): New function.
5822 (build_target_condition_list): New function.
5823 (insert_bp_location): Handle target-side conditional
5824 breakpoints and call build_target_condition_list (...).
5825 (update_inserted_breakpoint_locations): New function.
5826 (insert_breakpoint_locations): Handle target-side conditional
5828 (bpstat_check_breakpoint_conditions): Add comment.
5829 (bp_condition_evaluator): New function.
5830 (bp_location_condition_evaluator): New function.
5831 (print_breakpoint_location): Print information on where the condition
5833 (print_one_breakpoint_location): Likewise.
5834 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5835 breakpoint location.
5836 (force_breakpoint_reinsertion): New functions.
5837 (update_global_location_list): Handle target-side breakpoint
5839 Reinsert locations that are already inserted if conditions have
5841 (bp_location_dtor): Free agent expression bytecode.
5842 (disable_breakpoint): Call mark_breakpoint_modified (...).
5843 Call update_global_location_list (...) with parameter 1 for breakpoints.
5844 (disable_command): Call mark_breakpoint_location_modified (...).
5845 Call update_global_location_list (...) with parameter 1 for breakpoints.
5846 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5847 (enable_command): mark_breakpoint_location_modified (...).
5848 (_initialize_breakpoint): Update documentation and add
5849 condition-evaluation breakpoint subcommand.
5851 * breakpoint.h: Include ax.h.
5852 (condition_list): New data structure.
5853 (condition_status): New enum.
5854 (bp_target_info) <cond_list>: New field.
5855 (bp_location) <condition_changed, cond_bytecode>: New fields.
5856 (is_breakpoint): New prototype.
5858 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5860 * remote.c (remote_state) <cond_breakpoints>: New field.
5861 (PACKET_ConditionalBreakpoints): New enum.
5862 (remote_cond_breakpoint_feature): New function.
5863 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5864 (remote_supports_cond_breakpoints): New function.
5865 (_initialize_remote): Add new packet configuration for
5866 target-side conditional breakpoints.
5868 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5870 * NEWS: Mention target-side conditional breakpoint support,
5871 new condition-evaluation breakpoint subcommand and remote
5874 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5876 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5879 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5881 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5882 (after_prologue): Remove.
5884 2012-02-23 Tom Tromey <tromey@redhat.com>
5886 * jv-valprint.c (java_val_print): Remove dead code.
5888 2012-02-23 Tristan Gingold <gingold@adacore.com>
5890 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5891 known_tasks_element and known_tasks_length fields.
5892 (read_known_tasks_array): Change argument type. Use pointer type
5893 and number of elements from DATA. Adjust.
5894 (read_known_tasks_list): Likewise.
5895 (get_known_tasks_addr): Remove.
5896 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5897 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5898 type and array length. Merge former get_known_tasks_addr code.
5900 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5903 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5904 it after set_momentary_breakpoint.
5906 2012-02-22 Sterling Augustine <saugustine@google.com>
5909 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5911 2012-02-22 Gary Benson <gbenson@redhat.com>
5913 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5914 (find_slot_in_mapped_hash): Likewise.
5916 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5919 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5920 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5921 * configure: Regenerate.
5923 2012-02-21 Tristan Gingold <gingold@adacore.com>
5924 Pedro Alves <palves@redhat.com>
5926 * ia64-tdep.c: Do not include libunwind-ia64.h.
5927 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5928 Include libunwind-ia64.h instead of libunwind.h.
5929 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5930 for libunwind.h existence.
5931 * configure, config.in: Regenerate.
5933 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5935 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5936 instead of value_rtti_target_type.
5937 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5938 instead of value_rtti_target_type.
5939 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5940 value_rtti_target_type.
5941 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5942 (value_rtti_target_type): Rename to ...
5943 (value_rtti_indirect_type): ... here and make it indirect. Update
5945 * value.c (readjust_indirect_value_type): New function.
5946 (coerce_ref): Support for enclosing type setting for references
5947 with readjust_indirect_value_type.
5948 * value.h (readjust_value_type): New declaration.
5949 (value_rtti_target_type): Rename to ...
5950 (value_rtti_indirect_type): ... here.
5952 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5954 * MAINTAINERS (Write After Approval): Add myself to the list.
5956 2012-02-20 Doug Evans <dje@google.com>
5958 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5959 Rename objfile_p_char parameter to objfilep.
5960 (build_objfile_section_table): Result is now void. All callers
5962 * objfiles.h (struct objfile): Tweak comments, whitespace.
5963 (build_objfile_section_table): Update.
5965 * elfread.c (elf_symfile_segments): Fix warning text.
5967 2012-02-20 Tom Tromey <tromey@redhat.com>
5970 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5971 particular set of file names once.
5972 (dw2_map_symbol_filenames): Likewise.
5974 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5977 * main.c (write_files): Remove the declaration.
5978 (external_editor_command): Move the declaration ...
5979 [GDBTK] (external_editor_command): ... here. Fix the comment.
5981 2012-02-20 Tom Tromey <tromey@redhat.com>
5983 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5986 2012-02-20 Tristan Gingold <gingold@adacore.com>
5988 * darwin-nat.h (enum darwin_msg_state): Add comments.
5990 2012-02-20 Tristan Gingold <gingold@adacore.com>
5992 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5995 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5997 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5998 between function description and implementation.
6000 2012-02-17 Tom Tromey <tromey@redhat.com>
6003 * python/py-event.c (event_object_getset): New global.
6004 (event_object_type): Reference it.
6005 * python/py-type.c (field_object_getset): New global.
6006 (field_object_type): Reference it.
6007 * python/python-internal.h (gdb_py_generic_dict): Declare.
6008 * python/py-utils.c (gdb_py_generic_dict): New function.
6010 2012-02-17 Tristan Gingold <gingold@adacore.com>
6012 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6014 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
6016 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
6017 TYPE_CALLING_CONVENTION annotation.
6019 2012-02-16 Kevin Buettner <kevinb@redhat.com>
6021 * MAINTAINERS: Add rx to target ISA section.
6022 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
6023 (ALLDEPFILES): Add rx-tdep.c.
6025 2012-02-16 Tom Tromey <tromey@redhat.com>
6027 * symfile.c (symbol_file_add_main_1): Use inferior's
6029 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
6030 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
6032 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
6034 (follow_exec): Use inferior's symfile_flags.
6035 * inferior.h (struct inferior) <symfile_flags>: New field.
6037 2012-02-16 Mike Frysinger <vapier@gentoo.org>
6040 * remote-sim.c (gdbsim_create_inferior): Call error() when
6041 sim_create_inferior() fails.
6043 2012-02-16 Josh Matthews <josh@joshmatthews.net>
6045 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
6047 2012-02-16 Tom Tromey <tromey@redhat.com>
6050 * thread.c (struct current_thread_cleanup) <was_removable>: New
6052 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
6053 (make_cleanup_restore_current_thread): Initialize new field.
6055 2012-02-15 Kevin Buettner <kevinb@redhat.com>
6057 * MAINTAINERS: Add rl78 to target ISA section.
6058 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
6059 (ALLDEPFILES): Add rl78-tdep.c.
6060 * NEWS: Mention rl78 as a new target.
6062 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
6064 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6066 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6068 2012-02-15 Tom Tromey <tromey@redhat.com>
6071 * infcmd.c (registers_info): Print just the current register's
6074 2012-02-15 Tom Tromey <tromey@redhat.com>
6076 * python/py-symbol.c (sympy_value): Use _().
6078 2012-02-15 Pedro Alves <palves@redhat.com>
6080 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6081 output to be like native targets'.
6082 (remote_pid_to_str): Special case the null ptid.
6084 2012-02-14 Stan Shebs <stan@codesourcery.com>
6086 * NEWS: Mention enable count command.
6087 * breakpoint.h (struct breakpoint): New field enable_count.
6088 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6089 (enable_breakpoint): Add arg to call.
6090 (struct disp_data): New struct.
6091 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6092 (do_map_enable_once_breakpoint): Create a struct and pass it.
6093 (do_map_enable_delete_breakpoint): Ditto.
6094 (do_map_enable_count_breakpoint): New function.
6095 (enable_count_command): New function.
6096 (bpstat_stop_status): Decrement enable_count.
6097 (print_one_breakpoint_location): Report enable count.
6098 (_initialize_breakpoint): Add enable count command.
6100 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6102 * rl78-tdep.c (reggroups.h): Include.
6103 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6104 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6105 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6106 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6107 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6108 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6109 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6110 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6111 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6112 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6113 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6114 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6115 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6116 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6117 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6118 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6119 beginning of register list.
6120 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6121 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6122 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6123 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6124 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6125 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6126 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6127 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6128 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6129 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6130 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6131 the pseudo registers. Rearrange other pseudo registers too so
6132 that the bank registers appear at the end.
6133 (rl78_register_type): Account for the fact that the byte sized
6134 bank registers are now pseudo-registers.
6135 (rl78_register_name): Rearrange the register name array. Make
6136 initial set of raw banked registers inaccessible.
6137 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6138 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6139 case for copying bytes back and forth between raw and pseudo
6140 versions of the banked registers. Update other cases to reflect
6142 (rl78_return_value): Update to account for changed names of
6144 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6145 rl78_register_sim_regno().
6147 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6149 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6150 the name parameter being passed to find_pc_partial_function().
6152 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6154 * MAINTAINERS: Step down from being ia64 target maintainer.
6156 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6158 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6159 compilation warning.
6161 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6163 Fix crash on loaded shlibs without loaded exec_bfd.
6164 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6165 (set_section_command): Replace exec_bfd by p->bfd.
6167 2012-02-10 Tom Tromey <tromey@redhat.com>
6169 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6170 when we have a C++ qualified name.
6172 2012-02-10 Pedro Alves <palves@redhat.com>
6174 * inferior.c (inferior_pid_to_str): New.
6175 (print_inferior, inferior_command): Use it.
6177 2012-02-10 Pedro Alves <palves@redhat.com>
6179 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6181 * configure: Regenerate.
6183 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6185 * linespec.c (decode_line_internal): Fix comment correctness.
6187 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
6190 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6191 * amd64bsd-nat.c: Add support for debug registers (adapted from
6193 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6194 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6195 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6196 (amd64bsd_dr_get_control): New functions.
6197 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6198 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6199 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6200 watchpoints initialization.
6201 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6203 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6205 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6207 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6209 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6211 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6213 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6215 * language.h (symbol_name_cmp_ftype): Renames
6216 symbol_name_match_p_ftype.
6217 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6218 la_get_symbol_name_match_p.
6219 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6220 ada_get_symbol_name_match_p. Update comment.
6221 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6222 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6223 Renames symbol_name_match_p. Update field type.
6224 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6225 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6226 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6227 "la_get_symbol_name_cmp" in comments.
6228 * language.c: Likewise.
6230 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6232 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6234 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6235 (amd64_sol2_gregset32_reg_offs): Likewise.
6237 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6239 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6240 of the returned BFD is allocated by GDB.
6242 2012-02-07 Tom Tromey <tromey@redhat.com>
6245 * python/python-internal.h (frame_object_type): Declare.
6246 * python/py-symbol.c (sympy_needs_frame): New function.
6247 (sympy_value): New function.
6248 (symbol_object_getset): Add "needs_frame".
6249 (symbol_object_methods): Add "value".
6250 * python/py-frame.c (frame_object_type): No longer static.
6252 2012-02-07 Tom Tromey <tromey@redhat.com>
6255 * python/py-symbol.c (sympy_line): New function.
6256 (symbol_object_getset): Add "line".
6258 2012-02-07 Tom Tromey <tromey@redhat.com>
6260 * charset.c (find_charset_names): Check 'in' against NULL.
6262 2012-02-06 Doug Evans <dje@google.com>
6264 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6265 and fields.name members from char * to const char *. All uses updated.
6266 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6267 from char * to const char *. All uses updated.
6268 (type_name_no_tag): Update.
6269 (lookup_unsigned_typename, lookup_signed_typename): Update.
6270 * gdbtypes.c (type_name_no_tag): Change result type
6271 from char * to const char *. All callers updated.
6272 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6273 name parameter from char * to const char *.
6274 * symtab.h (struct cplus_specific): Change type of demangled_name
6275 member from char * to const char *. All uses updated.
6276 (struct general_symbol_info): Change type of name and
6277 mangled_lang.demangled_name members from char * to const char *.
6279 (symbol_get_demangled_name, symbol_natural_name): Update.
6280 (symbol_demangled_name, symbol_search_name): Update.
6281 * symtab.c (symbol_get_demangled_name): Change result type
6282 from char * to const char *. All callers updated.
6283 (symbol_natural_name, symbol_demangled_name): Ditto.
6284 (symbol_search_name): Ditto.
6285 (completion_list_add_name): Change type of symname,sym_text,
6286 text,word parameters from char * to const char *.
6287 (completion_list_objc_symbol): Change type of sym_text,
6288 text,word parameters from char * to const char *.
6289 * ada-lang.c (find_struct_field): Change type of name parameter
6290 from char * to const char *.
6291 (encoded_ordered_before): Similarly for N0,N1 parameters.
6292 (old_renaming_is_invisible): Similarly for function_name parameter.
6293 (ada_type_name): Change result type from char * to const char *.
6294 All callers updated.
6295 * ada-lang.h (ada_type_name): Update.
6296 * buildsym.c (hashname): Change type of name parameter
6297 from char * to const char *.
6298 * buildsym.h (hashname): Update.
6299 * dbxread.c (end_psymtab): Change type of include_list parameter
6300 from char ** to const char **.
6301 * dwarf2read.c (determine_prefix): Change result type
6302 from char * to const char *. All callers updated.
6303 * f-lang.c (find_common_for_function): Change type of name, funcname
6304 parameters from char * to const char *.
6305 * f-lang.c (find_common_for_function): Update.
6306 * f-valprint.c (list_all_visible_commons): Change type of funcname
6307 parameters from char * to const char *.
6308 * gdbarch.sh (static_transform_name): Change type of name parameter
6309 and result from char * to const char *.
6310 * gdbarch.c: Regenerate.
6311 * gdbarch.h: Regenerate.
6312 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6313 of name parameter from char * to const char *.
6314 * jv-lang.c (java_primitive_type_from_name): Ditto.
6315 (java_demangled_signature_length): Similarly for signature parameter.
6316 (java_demangled_signature_copy): Ditto.
6317 (java_demangle_type_signature): Ditto.
6318 * jv-lang.h (java_primitive_type_from_name): Update.
6319 (java_demangle_type_signature): Update.
6320 * objc-lang.c (specialcmp): Change type of a,b parameters
6321 from char * to const char *.
6322 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6323 from char * to const char *. All callers updated.
6324 * p-lang.h (is_pascal_string_type): Update.
6325 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6326 of name parameter from char * to const char *.
6327 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6328 * utils.c (fprintf_symbol_filtered): Ditto.
6329 * defs.h (fprintf_symbol_filtered): Update.
6330 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6331 * stabsread.h (end_psymtab): Update.
6332 * stack.c (find_frame_funname): Change type of funname parameter
6333 from char ** to const char **.
6334 * stack.h (find_frame_funname): Update.
6335 * typeprint.c (type_print): Change type of varstring parameter
6336 from char * to const char *.
6337 * value.h (type_print): Update.
6338 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6339 from char * to const char *. All callers updated.
6340 (xcoff_end_psymtab): Change type of include_list parameter
6341 from char ** to const char **. All callers updated.
6342 (swap_sym): Similarly for name parameter. All callers updated.
6343 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6345 (process_coff_symbol): Use xstrdup.
6346 * stabsread.c (stabs_method_name_from_physname): Renamed from
6347 update_method_name_from_physname. Change result type from void
6348 to char *. All callers updated.
6349 (read_member_functions): In has_destructor case, store name in objfile
6350 obstack instead of malloc space. In !has_stub case, fix mem leak.
6352 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6354 * configure: Rebuild.
6355 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6358 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6360 * configure.tgt (rl78-*-elf): New target.
6361 * rl78-tdep.c: New file.
6363 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6365 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6366 and continue the loop. Add QUIT statement.
6368 2012-02-03 Tom Tromey <tromey@redhat.com>
6371 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6372 bfd_lookup_symbol_from_symtab.
6373 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6374 gdb_bfd_lookup_symbol_from_symtab.
6376 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6378 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6379 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6380 symbol. Add assertion that sym2 is never NULL.
6382 2012-02-02 Doug Evans <dje@google.com>
6384 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6385 "name" parameter to const char ** from char **. All callers updated.
6386 (find_pc_partial_function): Ditto.
6387 (cache_pc_function_name): Change type to const char * from char *.
6388 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6389 (find_pc_partial_function): Update.
6390 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6391 type of "name" parameter to const char * from char *.
6393 * arch-utils.c (generic_in_solib_return_trampoline): Change
6394 type of "name" parameter to const char * from char *.
6395 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6396 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6397 type of "name" parameter to const char * from char *.
6398 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6399 * gdbarch.c: Regenerate.
6400 * gdbarch.h: Regenerate.
6401 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6402 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6403 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6404 type of "name" parameter to const char * from char *.
6405 * skip.c (skip_function_pc): Ditto.
6406 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6407 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6408 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6409 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6410 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6411 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6412 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6413 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6414 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6416 2012-02-02 Pedro Alves <palves@redhat.com>
6418 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6419 the current inferior has no execution. Make sure the current
6420 remote process matches gdb's current inferior.
6422 2012-02-02 Tom Tromey <tromey@redhat.com>
6425 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6428 2012-02-02 Tom Tromey <tromey@redhat.com>
6431 * symtab.c (lookup_language_this): Set block_found.
6433 2012-02-01 Tom Tromey <tromey@redhat.com>
6436 * jit.c (struct jit_inferior_data): Rewrite.
6437 (struct jit_objfile_data): New.
6438 (get_jit_objfile_data): New function.
6439 (add_objfile_entry): Update.
6440 (jit_read_descriptor): Return int. Replace descriptor_addr
6441 argument with inf_data. Update. Don't call error.
6442 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6444 (jit_inferior_init): Don't look up descriptor. Don't call error.
6445 (jit_reset_inferior_data_and_breakpoints)
6446 (jit_inferior_created_observer): Remove.
6447 (jit_inferior_exit_hook): Update.
6448 (jit_executable_changed_observer): Remove.
6449 (jit_event_handler): Update.
6450 (free_objfile_data): Reset inferior data if needed.
6451 (_initialize_jit): Update.
6453 2012-02-01 Tom Tromey <tromey@redhat.com>
6455 * jit.c (bfd_open_from_target_memory): Move higher in file.
6457 2012-02-01 Tristan Gingold <gingold@adacore.com>
6459 * libunwind-frame.c (libunwind_load): Display message if dlopen
6462 2012-02-01 Gary Benson <gbenson@redhat.com>
6464 * symtab.h (symbol_found_callback_ftype): New typedef.
6465 (iterate_over_symbols): Use the above.
6466 * symtab.c (iterate_over_symbols): Likewise.
6467 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6468 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6469 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6470 (iterate_name_matcher): Document return values.
6471 (collect_one_symbol): Likewise.
6472 (collect_function_symbols): Likewise.
6473 (collect_symbols): Likewise.
6475 2012-02-01 Tom Tromey <tromey@redhat.com>
6477 * ada-lang.c (resolve_subexp): Update.
6478 (ada_lookup_symbol_list): Add 'full_search' argument.
6479 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6480 ada_lookup_symbol_list.
6481 (ada_lookup_encoded_symbol): Update.
6482 (get_var_value): Update.
6483 * ada-exp.y (block_lookup): Update.
6484 (write_var_or_type): Update.
6485 (write_name_assoc): Update.
6486 * ada-lang.h (ada_lookup_symbol_list): Update.
6488 2012-01-31 Tom Tromey <tromey@redhat.com>
6490 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6493 2012-01-31 Doug Evans <dje@google.com>
6495 * symtab.h: Remove outdated comment.
6496 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6498 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6500 Fix build error in Darwin port.
6501 * i386-darwin-nat.c: Include i386-nat.h.
6503 2012-01-30 Tom Tromey <tromey@redhat.com>
6505 PR breakpoints/13568:
6506 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6507 argument. Check for recursive includes.
6508 (dwarf_decode_macros): Create an include hash.
6510 2012-01-30 Michael Eager <eager@eagercon.com>
6512 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6513 * ppc-linux-tdep.c: Include glibc-tdep.h.
6514 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6515 (powerpc_linux_in_plt_stub): New function.
6516 (powerpc_linux_in_dynsym_resolve_code): New function.
6517 (ppc_skip_trampoline_code): New function.
6518 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6519 Use glibc_skip_solib_resolver.
6521 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6523 Code cleanup: Make 1440 bytes of data segment read-only.
6524 * arch-utils.c (endian_enum): Make it const char *const [].
6525 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6527 * breakpoint.c (always_inserted_enums): Likewise.
6528 * cli/cli-cmds.c (script_ext_enums): Likewise.
6529 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6530 enumlist parameter const char *const *.
6531 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6532 const char *const *.
6533 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6534 parameter const char *const *.
6535 * cris-tdep.c (cris_modes): Make it const char *const [].
6536 * filesystem.c (target_file_system_kinds): Likewise.
6537 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6538 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6539 (can_use_displaced_stepping_enum, scheduler_enums)
6540 (exec_direction_names): Likewise.
6541 * language.c (_initialize_language): Make the type_or_range_names and
6542 case_sensitive_names variables const char *const [].
6543 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6544 * python/python.c (python_excp_enums): Likewise.
6545 * remote.c (interrupt_sequence_modes): Likewise.
6546 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6547 * serial.c (logbase_enums): Likewise.
6548 * sh-tdep.c (sh_cc_enum): Likewise.
6549 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6551 * symtab.c (multiple_symbols_modes): Likewise.
6552 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6554 * utils.c (internal_problem_modes): Likewise.
6556 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6558 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6559 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6562 2012-01-27 Doug Evans <dje@google.com>
6564 * configure.ac (with_python): Fix absolute path handling for win32.
6565 * configure: Regenerate.
6567 2012-01-26 Doug Evans <dje@google.com>
6569 * symtab.c: Whitespace cleanup, no code changes.
6571 * symtab.c (lookup_symbol_in_language): Improve comment.
6572 (lookup_symbol_aux): Fix comment.
6574 * psymtab.c (add_psymbol_to_list): Result is now "void".
6575 * psympriv.h (add_psymbol_to_list): Update.
6577 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6579 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6581 Do not open script filenames twice.
6582 * cli/cli-cmds.c (source_script_from_stream): Pass to
6583 source_python_script also STREAM.
6584 * python/py-auto-load.c (source_section_scripts): Pass to
6585 source_python_script_for_objfile also STREAM.
6586 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6588 * python/python-internal.h (source_python_script_for_objfile): New
6589 parameter file, rename parameter file to filename.
6590 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6591 instead if !_WIN32. Update the function comment.
6592 (source_python_script, source_python_script_for_objfile)
6593 (source_python_script): New parameter file, rename parameter file to
6594 filename. Pass FILENAME to python_run_simple_file.
6595 * python/python.h (source_python_script): New parameter file, rename
6596 parameter file to filename.
6598 2012-01-26 Pedro Alves <palves@redhat.com>
6600 * corelow.c (core_has_fake_pid): Delete.
6601 (core_close): Delete references to `core_has_fake_pid'.
6602 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6603 (core_open): Delete references to `core_has_fake_pid'.
6604 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6607 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6609 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6610 Remove language parameter from name_matcher. Adjust the comment.
6611 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6612 Remove language parameter.
6613 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6614 * linespec.c (iterate_name_matcher): Likewise.
6615 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6616 name_matcher. Adjust call accordingly.
6617 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6618 (maintenance_check_symtabs): Adjust type of parameter "fun".
6619 * psymtab.h (maintenance_check_symtabs): Likewise.
6621 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6623 * language.h (symbol_name_match_p_ftype): New typedef.
6624 (struct language_defn): Replace field la_symbol_name_compare
6625 by la_get_symbol_name_match_p.
6626 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6627 (ada_language_defn): Use it.
6628 * linespec.c (struct symbol_matcher_data): New type.
6629 (iterate_name_matcher): Rewrite.
6630 (iterate_over_all_matching_symtabs): Pass a pointer to
6631 a symbol_matcher_data struct to expand_symtabs_matching
6632 instead of just the lookup name.
6633 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6634 opencl-lang.c, p-lang.c, language.c: Delete field
6635 la_symbol_name_compare, and replace by NULL for new field
6636 la_get_symbol_name_match_p.
6637 * symfile.h (struct quick_symbol_functions): Update comment.
6639 2012-01-25 Tom Tromey <tromey@redhat.com>
6641 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6644 2012-01-24 Tom Tromey <tromey@redhat.com>
6647 * solib.c (update_solib_list): Update the program space's
6648 added_solibs and deleted_solibs fields.
6649 * progspace.h (struct program_space) <added_solibs,
6650 deleted_solibs>: New fields.
6651 (clear_program_space_solib_cache): Declare.
6652 * progspace.c (release_program_space): Call
6653 clear_program_space_solib_cache.
6654 (clear_program_space_solib_cache): New function.
6655 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6656 bpstat_stop_status. Use handle_solib_event.
6657 * breakpoint.c: Include gdb_regex.h.
6658 (print_solib_event): New function.
6659 (bpstat_print): Use print_solib_event.
6660 (bpstat_stop_status): Add special case for bp_shlib_event.
6661 (handle_solib_event): New function.
6662 (bpstat_what): Use handle_solib_event.
6663 (struct solib_catchpoint): New.
6664 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6665 (breakpoint_hit_catch_solib, check_status_catch_solib)
6666 (print_it_catch_solib, print_one_catch_solib)
6667 (print_mention_catch_solib, print_recreate_catch_solib): New
6669 (catch_solib_breakpoint_ops): New global.
6670 (catch_load_or_unload, catch_load_command_1)
6671 (catch_unload_command_1): New functions.
6672 (internal_bkpt_check_status): Add special case for
6674 (internal_bkpt_print_it): Use print_solib_event.
6675 (initialize_breakpoint_ops): Initialize
6676 catch_solib_breakpoint_ops.
6677 (_initialize_breakpoint): Register "catch load" and "catch
6679 * breakpoint.h (handle_solib_event): Declare.
6680 * NEWS: Add entry for "catch load" and "catch unload".
6682 2012-01-24 Tom Tromey <tromey@redhat.com>
6684 * ada-lang.c: Include gdb_vecs.h.
6685 * charset.c: Include gdb_vecs.h.
6686 * tracepoint.h: Include gdb_vecs.h.
6687 * gdb_vecs.h: New file.
6689 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6691 * breakpoint.c (breakpoint_hit_catch_fork)
6692 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6693 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6694 * infrun.c (inferior_has_forked, inferior_has_vforked)
6695 (inferior_has_execd, inferior_has_called_syscall): Delete.
6696 (handle_syscall_event): Get syscall_number from the execution
6697 control state's wait status.
6698 (wait_for_inferior): Don't clear syscall_number.
6700 2012-01-24 Pedro Alves <palves@redhat.com>
6702 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6703 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6704 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6705 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6707 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6708 false for events other than TARGET_SIGNAL_TRAP.
6709 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6711 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6712 events other than TARGET_SIGNAL_TRAP.
6713 (tracepoint_breakpoint_hit): Add `ws' parameter.
6714 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6716 (bpstat_stop_status): Same.
6717 (pc_at_non_inline_function): Same.
6718 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6719 to pass the current event's waitstatus to bpstat_stop_status
6720 and pc_at_non_inline_function.
6722 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6725 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6726 Update the function comment for it.
6727 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6728 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6731 2012-01-24 Pedro Alves <palves@redhat.com>
6733 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6734 outside `bs->stop' block.
6735 (bpstat_what): Rework bp_shlib_event handling.
6736 (internal_bkpt_check_status): If the breakpoint is a
6737 bp_shlib_event, then set bs->stop and bs->print if
6738 stop_on_solib_events is set.
6740 2012-01-24 Gary Benson <gbenson@redhat.com>
6742 Delete #if 0'd out code.
6743 * stack.c (print_frame_label_vars): Remove.
6744 (catch_info): Likewise.
6745 (_initialize_stack): Remove "info catch" command.
6746 * NEWS: Mention the above.
6748 2012-01-24 Pedro Alves <palves@redhat.com>
6750 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6752 (remote_notice_new_inferior): If the remote end doesn't support
6753 the multiprocess extensions, then the PID is fake.
6754 (add_current_inferior_and_thread): New.
6755 (remote_start_remote): Use it.
6756 (extended_remote_attach_1): Adjust.
6757 (extended_remote_create_inferior_1): Use
6758 add_current_inferior_and_thread.
6760 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6762 Fix watchpoints to be specific for each inferior.
6763 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6764 current_program_space.
6765 * i386-nat.c (i386_inferior_data_cleanup): New.
6766 (i386_inferior_data_get): Replace variable inf_data_local by an
6768 (i386_use_watchpoints): Initialize i386_inferior_data.
6769 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6770 specific iterate_over_lwps.
6772 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6774 Fix watchpoints across inferior fork.
6775 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6776 comment for linux_nat_iterate_watchpoint_lwps.
6777 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6778 linux_nat_iterate_watchpoint_lwps.
6779 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6780 * i386-linux-nat.c (update_debug_registers_callback): Update the
6781 comment for linux_nat_iterate_watchpoint_lwps.
6782 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6783 linux_nat_iterate_watchpoint_lwps.
6784 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6785 * i386-nat.c: Include inferior.h.
6786 (dr_mirror): Remove.
6787 (i386_inferior_data, struct i386_inferior_data)
6788 (i386_inferior_data_get): New.
6789 (i386_debug_reg_state): Use i386_inferior_data_get.
6790 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6791 (i386_insert_watchpoint, i386_remove_watchpoint)
6792 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6793 (i386_remove_hw_breakpoint): New variable state, use
6794 i386_debug_reg_state instead of DR_MIRROR.
6795 * linux-nat.c (delete_lwp): New declaration.
6796 (num_lwps): Move here from downwards.
6797 (delete_lwp_cleanup): New.
6798 (linux_child_follow_fork): Create new child_lp, call
6799 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6801 (num_lwps): Move upwards.
6802 (linux_nat_iterate_watchpoint_lwps): New.
6803 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6804 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6806 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6810 2012-01-23 Pedro Alves <palves@redhat.com>
6812 * top.c (caution): Rename to ...
6813 (confirm): ... this.
6814 (show_caution): Rename to ...
6815 (show_confirm): ... this.
6816 (quit_cover): Adjust.
6817 (init_main): Adjust.
6818 * top.h (caution): Rename to ...
6819 (confirm): ... this.
6820 * utils.c (internal_vproblem, defaulted_query): Adjust.
6822 2012-01-23 Pedro Alves <palves@redhat.com>
6824 * top.c (caution): Update comment.
6825 (execute_command): Don't consider the current value of `caution'.
6827 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6829 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6831 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6833 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6834 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6835 * target.c (target_fileio_pwrite): Remove buffer address from
6837 (target_fileio_pread): Likewise.
6839 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6841 * NEWS: Document remote "info proc" and "generate-core-file".
6843 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6845 * gdbarch.sh (find_memory_regions): New callback.
6846 * gdbarch.c, gdbarch.h: Regenerate.
6848 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6849 callback before falling back to target method.
6851 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6852 (linux_target_install_ops): No longer install it.
6854 * linux-tdep.c (linux_find_memory_regions): New function.
6855 (linux_init_abi): Install it.
6857 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6859 * gdbarch.sh (make_corefile_notes): New architecture callback.
6860 * gdbarch.c: Regenerate.
6861 * gdbarch.h: Likewise.
6863 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6864 before target_make_corefile_notes. If NULL is returned, the
6865 target does not support core file generation.
6867 * linux-nat.c: Include "linux-tdep.h".
6868 (find_signalled_thread, find_stop_signal): Remove.
6869 (linux_nat_do_thread_registers): Likewise.
6870 (struct linux_nat_corefile_thread_data): Likewise.
6871 (linux_nat_corefile_thread_callback): Likewise.
6872 (iterate_over_spus): Likewise.
6873 (struct linux_spu_corefile_data): Likewise.
6874 (linux_spu_corefile_callback): Likewise.
6875 (linux_spu_make_corefile_notes): Likewise.
6876 (linux_nat_collect_thread_registers): New function.
6877 (linux_nat_make_corefile_notes): Replace contents by call to
6878 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6879 as native-only callback.
6881 * linux-tdep.h: Include "bfd.h".
6882 (struct regcache): Add forward declaration.
6883 (linux_collect_thread_registers_ftype): New typedef.
6884 (linux_make_corefile_notes): Add prototype.
6885 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6886 "regset.h", and "elf-bfd.h".
6887 (find_signalled_thread, find_stop_signal): New functions.
6888 (linux_spu_make_corefile_notes): Likewise.
6889 (linux_collect_thread_registers): Likewise.
6890 (struct linux_corefile_thread_data): New data structure.
6891 (linux_corefile_thread_callback): New funcion.
6892 (linux_make_corefile_notes): Likewise.
6893 (linux_make_corefile_notes_1): Likewise.
6894 (linux_init_abi): Install it.
6896 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6898 * gdbarch.sh (info_proc): New callback.
6899 * gdbarch.c, gdbarch.h: Regenerate.
6901 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6902 before falling back to the target info_proc callback.
6904 * linux-nat.c: Do not include "cli/cli-utils.h".
6905 (linux_nat_info_proc): Remove.
6906 (linux_target_install_ops): No longer install it.
6908 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6909 (read_mapping): New function.
6910 (linux_info_proc): Likewise.
6911 (linux_init_abi): Install it.
6913 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6915 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6916 * infcmd.c: (info_proc_cmd_1): New function.
6917 (info_proc_cmd): New function, moved here from equivalent routine
6918 orignally in linux-nat.c.
6919 (info_proc_cmd_mappings): Likewise.
6920 (info_proc_cmd_stat): Likewise.
6921 (info_proc_cmd_status): Likewise.
6922 (info_proc_cmd_cwd): Likewise.
6923 (info_proc_cmd_cmdline): Likewise.
6924 (info_proc_cmd_exe): Likewise.
6925 (info_proc_cmd_all): Likewise.
6926 (_initialize_infcmd): Install "info proc" command and subcommands.
6928 * target.h (struct target_ops): Add to_info_proc.
6929 (target_info_proc): Add prototype.
6930 * target.c (target_info_proc): New function.
6932 * procfs.c (procfs_info_proc): Add prototype.
6933 (info_proc_cmd): Rename into ...
6934 (procfs_info_proc): ... this. Update argument types as appropriate
6935 for a to_info_proc implementation. Handle "what" argument.
6936 (procfs_target): Install procfs_info_proc.
6937 (_initialize_procfs): No longer install "info proc" command.
6939 * linux-nat.c: (enum info_proc_what): Remove.
6940 (linux_nat_info_proc_cmd_1): Rename into ...
6941 (linux_nat_info_proc): ... this. Update argument types as appropriate
6942 for a to_info_proc implementation.
6943 (linux_nat_info_proc_cmd): Remove.
6944 (linux_nat_info_proc_cmd_mappings): Likewise.
6945 (linux_nat_info_proc_cmd_stat): Likewise.
6946 (linux_nat_info_proc_cmd_status): Likewise.
6947 (linux_nat_info_proc_cmd_cwd): Likewise.
6948 (linux_nat_info_proc_cmd_cmdline): Likewise.
6949 (linux_nat_info_proc_cmd_exe): Likewise.
6950 (linux_nat_info_proc_cmd_all): Likewise.
6951 (linux_target_install_ops): Install linux_nat_info_proc.
6952 (_initialize_linux_nat): No longer install "info proc" command
6955 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6957 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6958 * config.in, configure: Regenerate.
6960 * target.h (struct target_ops): Add to_fileio_readlink.
6961 (target_fileio_readlink): Add prototype.
6962 * target.c (target_fileio_readlink): New function.
6964 * inf-child.c: Conditionally include <sys/param.h>.
6965 (inf_child_fileio_readlink): New function.
6966 (inf_child_target): Install it.
6968 * remote.c (PACKET_vFile_readlink): New enum value.
6969 (remote_hostio_readlink): New function.
6970 (init_remote_ops): Install it.
6971 (_initialize_remote): Handle vFile:readlink packet type.
6973 2012-01-20 Pedro Alves <palves@redhat.com>
6974 Ulrich Weigand <ulrich.weigand@linaro.org>
6976 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6977 * config.in, configure: Regenerate.
6979 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6980 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6981 (target_fileio_open): Add prototype.
6982 (target_fileio_pwrite): Likewise.
6983 (target_fileio_pread): Likewise.
6984 (target_fileio_close): Likewise.
6985 (target_fileio_unlink): Likewise.
6986 (target_fileio_read_alloc): Likewise.
6987 (target_fileio_read_stralloc): Likewise.
6989 * target.c: Include "gdb/fileio.h".
6990 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6991 (default_fileio_target): New function.
6992 (target_fileio_open): Likewise.
6993 (target_fileio_pwrite): Likewise.
6994 (target_fileio_pread): Likewise.
6995 (target_fileio_close): Likewise.
6996 (target_fileio_unlink): Likewise.
6997 (target_fileio_close_cleanup): Likewise.
6998 (target_fileio_read_alloc_1): Likewise.
6999 (target_fileio_read_alloc): Likewise.
7000 (target_fileio_read_stralloc): Likewise.
7002 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
7003 <fcntl.h>, and <unistd.h>.
7004 (inf_child_fileio_open_flags_to_host): New function.
7005 (inf_child_errno_to_fileio_error): Likewise.
7006 (inf_child_fileio_open): Likewise.
7007 (inf_child_fileio_pwrite): Likewise.
7008 (inf_child_fileio_pread): Likewise.
7009 (inf_child_fileio_close): Likewise.
7010 (inf_child_fileio_unlink): Likewise.
7011 (inf_child_target): Install to_fileio routines.
7013 * remote.c (init_remote_ops): Install to_fileio routines.
7015 2012-01-20 Pedro Alves <palves@redhat.com>
7016 Ulrich Weigand <ulrich.weigand@linaro.org>
7018 * remote.c (remote_multi_process_p): Only check for multi-process
7019 protocol feature, do not check for extended protocol.
7020 (remote_supports_multi_process): Check for extended protocol here.
7021 (set_general_process): Likewise.
7022 (extended_remote_kill): Likewise.
7023 (remote_pid_to_str): Likewise.
7024 (remote_query_supported): Always query multiprocess mode.
7026 2012-01-20 Pedro Alves <palves@redhat.com>
7027 Ulrich Weigand <ulrich.weigand@linaro.org>
7029 * inferior.h (struct inferior): Add fake_pid_p.
7030 * inferior.c (exit_inferior_1): Clear fake_pid_p.
7031 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
7032 magic_null_ptid since the remote side doesn't provide a real PID.
7034 2012-01-19 Tom Tromey <tromey@redhat.com>
7036 * NEWS: Combine the two Python sections.
7038 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7040 * target.h (target_close): Update comment on the target's unpush state.
7042 2012-01-19 Pedro Alves <palves@redhat.com>
7044 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
7045 linux_nat_async directly instead of going through the target
7047 * target.c (unpush_target): Close target after unpushing it, not
7050 2012-01-19 Gary Benson <gbenson@redhat.com>
7052 * mdebugread.c (sort_blocks): Replace integer constants with ones
7053 derived from FIRST_LOCAL_BLOCK.
7055 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
7056 Jan Kratochvil <jan.kratochvil@redhat.com>
7059 * symfile.c (find_separate_debug_file): New function.
7060 (terminate_after_last_dir_separator): Likewise.
7061 (find_separate_debug_file_by_debuglink): Also try realpath.
7062 * configure.ac (AC_CHECK_FUNCS): Add lstat.
7063 * configure: Regenerate.
7064 * config.in: Regenerate.
7066 2012-01-18 Doug Evans <dje@google.com>
7068 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7069 (main.o): Remove rule.
7070 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7071 (--with-sysroot): Rewrite.
7072 * configure: Regenerate.
7073 * config.in: Regenerate.
7075 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
7077 * parse.c (initialize_expout): New function.
7078 (reallocate_expout): Likewise.
7079 (parse_exp_in_context): Use `initialize_expout' and
7080 `reallocate_expout' when appropriate.
7082 2012-01-18 Pedro Alves <palves@redhat.com>
7084 * record.c (struct record_breakpoint, record_breakpoint_p)
7085 (record_breakpoints): New.
7086 (record_insert_breakpoint, record_remove_breakpoint): Manage
7087 record breakpoints list. Only remove breakpoints from the
7088 inferior if they had been inserted there in the first place.
7090 2012-01-17 Doug Evans <dje@google.com>
7092 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7093 if we know we don't have a file name to look for.
7095 2012-01-17 Pedro Alves <palves@redhat.com>
7097 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7098 the frame's stop reason is UNWIND_UNAVAILABLE.
7100 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7102 Fix compilation error.
7103 * m2-exp.y (yyerror): Use ANSI C prototype.
7105 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7107 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7108 (growbuf_by_size): Likewise.
7109 (yyerror): Likewise.
7110 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7111 (modblock): Remove variable (was #if 0'ed).
7112 (parse_number): Convert prototype from K&R to ANSI C.
7113 (yyerror): Likewise.
7114 * objc-exp.y (parse_number): Likewise.
7115 (yyerror): Likewise.
7116 (yylex): Remove #if 0'ed code.
7117 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7118 (yyerror): Likewise.
7120 2012-01-16 Tom Tromey <tromey@redhat.com>
7123 * symtab.h (compare_filenames_for_search): Declare.
7124 * symtab.c (compare_filenames_for_search): New function.
7125 (iterate_over_some_symtabs): Use it.
7126 * symfile.h (struct quick_symbol_functions)
7127 <map_symtabs_matching_filename>: Change spec.
7128 * psymtab.c (partial_map_symtabs_matching_filename): Use
7129 compare_filenames_for_search. Update for new spec.
7130 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7131 compare_filenames_for_search. Update for new spec.
7132 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7134 2012-01-16 Tom Tromey <tromey@redhat.com>
7137 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7138 (struct main_type) <flag_flag_enum>: New field.
7139 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7140 * NEWS: Add entries.
7141 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7143 * python/lib/gdb/printing.py (_EnumInstance): New class.
7144 (FlagEnumerationPrinter): Likewise.
7146 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7148 * breakpoint.c (create_sals_from_address_default): New function.
7149 (create_breakpoints_sal_default): Likewise.
7150 (decode_linespec_default): Likewise.
7151 (is_marker_spec): Removed.
7152 (strace_marker_p): New function.
7153 (init_breakpoint_sal): Using `strace_marker_p' instead of
7155 (create_breakpoint): Call method `create_sals_from_address' from
7156 breakpoint_ops, replacing code that created SALs conditionally
7157 on the type of the breakpoint. Call method `create_breakpoints_sal',
7158 replacing code that created breakpoints conditionally on the type
7160 (base_breakpoint_create_sals_from_address): New function.
7161 (base_breakpoint_create_breakpoints_sal): Likewise.
7162 (base_breakpoint_decode_linespec): Likewise.
7163 (base_breakpoint_ops): Add methods
7164 `base_breakpoint_create_sals_from_address',
7165 `base_breakpoint_create_breakpoints_sal' and
7166 `base_breakpoint_decode_linespec'.
7167 (bkpt_create_sals_from_address): New function.
7168 (bkpt_create_breakpoints_sal): Likewise.
7169 (bkpt_decode_linespec): Likewise.
7170 (tracepoint_create_sals_from_address): Likewise.
7171 (tracepoint_create_breakpoints_sal): Likewise.
7172 (tracepoint_decode_linespec): Likewise.
7173 (strace_marker_create_sals_from_address): Likewise.
7174 (strace_marker_create_breakpoints_sal): Likewise.
7175 (strace_marker_decode_linespec): Likewise.
7176 (strace_marker_breakpoint_ops): New variable.
7177 (addr_string_to_sals): Remove `marker_spec'. Call method
7178 `decode_linespec' from breakpoint_ops, replacing code that decoded
7179 an address string into a SAL. Use `strace_marker_p' instead of
7181 (strace_command): Decide whether we are dealing with a static
7182 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7183 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7184 * breakpoint.h (linespec_result, linespec_sals): New forward
7186 (breakpoint_ops) <create_sals_from_address>,
7187 <create_breakpoints_sal>, <decode_linespec>: New methods.
7189 2012-01-14 Doug Evans <dje@google.com>
7191 * NEWS: Update text for "maint set python print-stack".
7192 It is deprecated in gdb 7.4 and deleted in 7.5.
7194 2012-01-13 Eli Zaretskii <eliz@gnu.org>
7196 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7199 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7201 * configure: Regenerate.
7202 * config.in: Regenerate.
7204 2012-01-12 Keith Seitz <keiths@redhat.com>
7207 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7208 (ANONYMOUS_UNION_NAME): Define.
7209 (is_path_expr_parent): New function.
7210 (get_path_expr_parent): New function.
7211 (is_anonymous_child): New function.
7212 (create_child_with_value): If the child is anonymous and without
7213 a name, assign an object name to it.
7214 (c_describe_child): Use get_path_expr_parent to determine
7215 the parent expression.
7216 If there field represents an anonymous struct or union and
7217 has no name, set an appropriate display name and expression.
7218 (cplus_describe_child): Likewise.
7220 2012-01-12 Pedro Alves <palves@redhat.com>
7222 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7223 available when %ebp is found to be zero (outermost).
7225 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
7227 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7228 an internal gdb_static_assert.
7229 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7231 2012-01-11 Tom Tromey <tromey@redhat.com>
7234 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7235 catch" and "catch throw".
7237 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7239 * blockframe.c (block_innermost_frame): Start search from selected
7240 frame, if present, or otherwise the current frame.
7242 * c-exp.y (variable): Update innermost_block for
7243 'block COLONCOLON NAME' clause.
7244 * m2-exp.y (variable): Ditto.
7245 * objc-exp.y (variable): Ditto.
7247 2012-01-10 Tom Tromey <tromey@redhat.com>
7250 * python/python.c (finish_python_initialization): Set sys.argv.
7252 2012-01-10 Doug Evans <dje@google.com>
7254 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7255 "want_line_info". All callers updated.
7256 (dwarf_decode_lines_1): New function.
7257 (handle_DW_AT_stmt_list): Add function comment.
7258 New arg "want_line_info". All callers updated.
7259 (read_file_scope,read_type_unit_scope): Move comment from
7260 handle_DW_AT_stmt_list to here.
7262 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7264 Fix regression after libiberty/ update for GCC PR 6057 and others.
7265 * c-exp.y (operator) <OPERATOR DELETE>
7266 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7267 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7268 (make_builtin_type, make_name): New variable i, add gdb_assert.
7269 (operator) <OPERATOR NEW>: Update ARGS to 3.
7270 (operator) <OPERATOR DELETE>: Add trailing space.
7271 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7272 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7273 * cp-support.c (cp_canonicalize_string): Check NULL from
7274 cp_comp_to_string, call warning and return.
7276 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7278 Fix duplicate .o files after omitting libbfd.a.
7279 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7280 (SFILES): Add corelow.c.
7281 (COMMON_OBS): Add corelow.o.
7282 (ALLDEPFILES): Remove corelow.c.
7283 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7284 * config/alpha/alpha-osf3.mh: Likewise.
7285 * config/alpha/fbsd.mh: Likewise.
7286 * config/arm/nbsdaout.mh: Likewise.
7287 * config/arm/nbsdelf.mh: Likewise.
7288 * config/i386/i386gnu.mh: Likewise.
7289 * config/ia64/hpux.mh: Likewise.
7290 * config/ia64/linux.mh: Likewise.
7291 * config/m32r/linux.mh: Likewise.
7292 * config/m68k/linux.mh: Likewise.
7293 * config/mips/irix5.mh: Likewise.
7294 * config/mips/irix6.mh: Likewise.
7295 * config/pa/hpux.mh: Likewise.
7296 * config/pa/linux.mh: Likewise.
7297 * config/powerpc/aix.mh: Likewise.
7298 * config/sparc/linux.mh: Likewise.
7299 * config/sparc/linux64.mh: Likewise.
7300 * config/sparc/sol2.mh: Likewise.
7301 * config/vax/vax.mh: Likewise.
7302 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7303 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7304 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7305 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7306 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7307 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7308 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7309 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7310 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7311 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7312 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7313 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7314 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7315 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7316 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7317 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7318 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7319 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7320 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7321 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7322 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7323 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7324 corelow.o from gdb_target_obs.
7325 * corefile.c (core_target): Update the comment on NULL value.
7326 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7327 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7328 MATCHES. Drop YUMMY set on NULL.
7329 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7330 reclaim CORE_DATA if it is already NULL.
7332 2012-01-09 Doug Evans <dje@google.com>
7334 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7335 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7337 2012-01-09 Keith Seitz <keiths@redhat.com>
7339 * breakpoint.c (wrapper.h): Don't include.
7341 2012-01-09 Keith Seitz <keiths@redhat.com>
7343 * Makefile.in (SFILES): Remove wrapper.c.
7344 (HFILES_NO_SRCDIR): Remove wrapper.h.
7345 (COMMON_OBS): Remove wrapper.o.
7346 * cli/cli-interp.c: Don't inlude wrapper.h.
7347 * corelow.c: Likewise.
7348 (core_open): Replace gdb_target_find_new_threads with
7349 TRY_CATCH around target_find_new_threads.
7350 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7351 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7352 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7353 evaluate_expression.
7354 (varobj_set_value): Likewise for evaluate_expression and
7356 (install_new_variable): Likewise for value_fetch_lazy.
7357 (adjust_value_for_child_access): Likewise for value_ind.
7358 (c_describe_child): Likewise for value_subscript and
7360 (c_value_of_root): Likewise for evaluate_expression.
7361 * wrapper.c: Remove.
7362 * wrapper.h: Remove.
7364 2012-01-09 Doug Evans <dje@google.com>
7366 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7367 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7368 "abfd" args with "section". All callers updated.
7369 Error checking code moved ...
7370 (error_check_comp_unit_head): ... here. New function.
7371 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7372 Delete arg "abfd". New arg "type_offset". All callers updated.
7373 (create_debug_types_hash_table): Simplify by using
7374 read_and_check_type_unit_head.
7376 * parser-defs.h (namecopy): Delete.
7377 * parse.c (namecopy, namecopy_size): Move into copy_name.
7379 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7381 Partially fix duplicate .o files after omitting libbfd.a.
7382 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7383 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7384 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7385 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7386 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7387 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7388 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7390 2012-01-09 Pedro Alves <palves@redhat.com>
7392 * MAINTAINERS: Update my email address.
7394 2012-01-08 Doug Evans <dje@google.com>
7396 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7397 n_type_units. Rename type_comp_units to all_type_units.
7399 (add_signatured_type_cu_to_table): Renamed from
7400 add_signatured_type_cu_to_list. All callers updated.
7402 * gdbtypes.h (struct cplus_struct_type): Delete member
7403 nfn_fields_total. All uses removed.
7405 2012-01-06 Doug Evans <dje@google.com>
7407 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7409 (dwarf2_find_comp_unit): Delete.
7410 (process_psymtab_comp_unit): Make result "void".
7411 Delete args buffer, info_ptr, buffer_size, and replace with
7412 "section". All callers updated.
7413 (dwarf2_build_psymtabs_hard): Simplify.
7415 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7416 Thiago Jung Bauermann <bauerman@br.ibm.com>
7418 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7419 before `struct gdb_exception'.
7420 * breakpoint.c (update_global_location_list_nothrow)
7421 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7422 * cp-abi.c (value_rtti_type): Likewise.
7423 * cp-support.c (cp_validate_operator): Likewise.
7424 * infrun.c (insert_exception_resume_breakpoint)
7425 (check_exception_resume, keep_going): Likewise.
7426 * mi-interp.c (mi_breakpoint_created)
7427 (mi_breakpoint_modified): Likewise.
7428 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7429 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7430 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7432 2012-01-05 Doug Evans <dje@google.com>
7434 * dwarf2read.c (statement_prologue): Delete, unused.
7436 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7437 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7439 * dwarf2read.c (comp_unit_header): Delete, unused.
7441 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7443 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7444 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7446 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7448 * infrun.c (normal_stop): Don't skip calling the normal_stop
7449 observers if the thread was doing a multi-step, but stopped for
7450 some reason other than stepping.
7452 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7454 * cli/cli-decode.h: Add comments.
7455 (CMD_LIST_AMBIGUOUS): Moved to command.h
7456 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7457 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7458 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7459 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7460 (add_com, add_com_alias, add_info, add_info_alias)
7461 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7463 * command.h: Add and adjust comments.
7464 (CMD_LIST_AMBIGUOUS): Moved here.
7465 (help_cmd, help_cmd_list): Delete declarations.
7467 2012-01-04 Doug Evans <dje@google.com>
7469 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7470 All callers updated.
7471 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7472 Replace all arguments with "per_cu". All callers updated.
7474 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7476 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7477 New arg "per_cu". All callers updated.
7479 Delete #if 0'd out code.
7480 * language.c (binop_result_type): Delete.
7481 (simple_type, ordered_type, same_type, integral_type): Delete.
7482 (numeric_type, character_type, string_type, boolean_type): Delete.
7483 (float_type, structured_type): Delete.
7484 * language.h: Update.
7486 2012-01-04 Tom Tromey <tromey@redhat.com>
7488 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7490 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7492 * corefile.c (close_exec_file): Delete.
7493 (reopen_exec_file): Remove commented out code that seems related
7494 to close_exec_file, which is being deleted here.
7495 * inferior.h (close_exec_file): Delete.
7496 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7498 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7500 * ada-lang.c: #include "cli/cli-utils.h".
7501 (get_selections): Use skip_spaces.
7502 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7503 (catch_ada_exception_command_split): Use skip_spaces.
7504 (ada_decode_assert_location): Likewise.
7506 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7508 * linespec.c (decode_line_internal): Check for C++ or Java
7509 compound constructs only if the current language is C, C++
7512 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7515 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7516 Joel Brobecker <brobecker@adacore.com>
7517 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7518 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7520 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7521 fall through into AT_ENTRY_POINT.
7522 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7524 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7525 PPC_INSN_SIZE skip to 3 times.
7527 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7529 * linespec.c (add_minsym): Preserve function descriptors.
7531 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7533 * breakpoint.c (all_locations_are_pending): Consider locations
7534 in program spaces executing during startup pending as well.
7536 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7538 Copyright year update in most files of the GDB Project.
7540 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7542 * copyright.sh: Delete.
7543 * copyright.py: Rewrite.
7545 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7547 * gnulib/extra/update-copyright: New file, imported from gnulib.
7549 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7551 * README (Copyright and License Notices): New section.
7553 2012-01-03 Tom Tromey <tromey@redhat.com>
7556 * python/py-value.c (valpy_dereference, valpy_get_address
7557 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7558 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7559 (valpy_absolute, valpy_richcompare): Free intermediate values.
7561 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7563 * ada-lang.c: Reformat the copyright notice.
7565 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7567 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7568 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7569 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7570 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7571 Revert this part of:
7572 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7573 Build gdb directly from *.o files not using libgdb.a.
7574 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7576 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7578 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7579 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7580 Reformat the copyright header.
7582 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7584 Revert this part of:
7585 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7586 Remove the gdbtui binary.
7587 * gdb.c (main): Remove args.interpreter_p initialization.
7588 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7589 * main.h (struct captured_main_args): Remove interpreter_p.
7591 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7593 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7595 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7597 * top.c (print_gdb_version): Update copyright year.
7599 2012-01-02 Yao Qi <yao@codesourcery.com>
7601 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7603 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7604 Joel Brobecker <brobecker@adacore.com>
7606 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7607 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7609 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7610 fall through into AT_ENTRY_POINT.
7611 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7613 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7614 PPC_INSN_SIZE skip to 3 times.
7616 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7618 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7620 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7622 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7624 Build gdb directly from *.o files not using libgdb.a.
7625 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7626 (COMMON_OBS): Remove solib-target.o.
7627 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7628 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7629 (LIBGDB_OBS, libgdb.a): Move it above.
7630 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7631 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7632 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7633 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7634 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7635 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7636 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7637 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7638 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7639 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7640 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7641 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7642 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7643 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7644 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7645 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7646 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7647 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7648 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7649 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7650 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7651 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7652 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7653 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7654 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7655 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7656 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7658 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7660 Remove the gdbtui binary.
7661 * .gitignore (/gdbtui): Remove.
7662 * Makefile.in (TUI): Remove.
7663 (SUBDIR_TUI_OBS): Remove tui-main.o.
7664 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7665 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7666 (tui-main.o): Remove.
7667 (all_object_files): Remove tui-main.o.
7668 * NEWS: New note for the gdbtui removal.
7669 * configure: Rebuilt.
7670 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7671 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7672 CONFIG_UNINSTALL respectively.
7673 * gdb.c (main): Remove args.interpreter_p initialization.
7674 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7675 * main.h (struct captured_main_args): Remove interpreter_p.
7676 * tui/tui-main.c: Remove.
7678 2012-01-01 Doug Evans <dje@google.com>
7680 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7681 (dwarf2_physname, read_import_statement): Ditto.
7682 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7683 (process_structure_scope read_subroutine_type): Ditto.
7684 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7685 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7686 (dwarf2_fetch_die_location_block): Ditto.
7687 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7689 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7690 All callers updated.
7691 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7692 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7693 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7695 * dwarf2read.c (load_cu): Move assert to more useful location.
7697 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7698 All callers updated.
7700 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7701 (dwarf2_elf_names): Minor reformat.
7702 (dwarf2_per_cu_data): Tweak comment.
7703 (dwarf2_read_section): Fix comment.
7704 (create_all_comp_units): Fix comment.
7705 (load_full_comp_unit): Fix comment.
7706 (process_full_comp_unit): Fix comment.
7707 (read_signatured_type): Fix comment.
7709 For older changes see ChangeLog-2011.
7715 version-control: never