1 2012-06-30 Doug Evans <dje@google.com>
3 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
7 2012-06-29 Doug Evans <dje@google.com>
9 * linespec.c: #include "stack.h".
10 (decode_line_with_current_source): Moved here from symtab.c and
11 renamed from decode_line_spec. All callers updated.
12 (decode_line_with_last_displayed): Moved here from breakpoint.c and
13 renamed from decode_line_spec_1. All callers updated.
14 * linespec.h (decode_line_with_current_source): Move declaration here
15 from symtab.h and renamed from decode_line_spec.
16 (decode_line_with_last_displayed): Move declaration here from symtab.h
17 and renamed from decode_line_spec_1.
18 * macrocmd.c: #include "linespec.h".
19 * symtab.c: Remove #include "linespec.h".
21 2012-06-28 Doug Evans <dje@google.com>
23 * dwarf2read.c (get_cu_length): New function.
24 (offset_in_cu_p, error_check_comp_unit_head): Call it.
25 (create_debug_types_hash_table): Ditto.
26 (init_cutu_and_read_dies): Ditto.
27 (init_cutu_and_read_dies_no_follow): Ditto.
29 * dwarf2read.c (dwarf2_find_base_address): Move definition.
31 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
32 (struct abbrev_table): Define.
33 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
35 (init_cutu_and_read_dies): Update.
36 (abbrev_table_alloc_abbrev): New function. Replaces
37 dwarf_alloc_abbrev. All callers updated.
38 (abbrev_table_add_abbrev): New function.
39 (abbrev_table_lookup_abbrev): New function. Replaces
40 dwarf2_lookup_abbrev. All callers updated.
41 (abbrev_table_read_table): New function. Contents moved here from
43 (dwarf2_read_abbrevs): Call it.
44 (abbrev_table_free): New function.
45 (dwarf2_free_abbrev_table): Call it.
47 2012-06-28 Stan Shebs <stan@codesourcery.com>
49 * osdata.c (info_osdata_command): Filter out "Title" columns
51 * common/linux-osdata.c (struct osdata_type): Add title field.
52 (osdata_table): Add titles to each entry.
53 (linux_command_xfer_osdata): Add a column for title data.
55 2012-06-28 Stan Shebs <stan@codesourcery.com>
57 Make logging work for MI.
59 * interps.h (interp_set_logging_ftype): New typedef.
60 (struct interp_procs): New field set_logging_proc.
61 (current_interp_set_logging): Declare.
62 * interps.c (current_interp_set_logging): New function.
63 * cli/cli-logging.c: Include interps.h.
64 (set_logging_redirect): Call current_interp_set_logging.
65 (pop_output_files): Ditto.
66 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
67 * mi/mi-console.h (mi_console_set_raw): Declare.
68 * mi/mi-console.c (mi_console_set_raw): New function.
69 * mi/mi-interp.c (saved_raw_stdout): New global.
70 (mi_set_logging): New function.
71 (_initialize_mi_interp): Add it to interp procs.
73 2012-06-28 Doug Evans <dje@google.com>
75 * symtab.c (lookup_symbol_aux_objfile): Use
76 ALL_OBJFILE_PRIMARY_SYMTABS.
78 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
80 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
82 * common/buffer.c: Include inttypes.h and stdint.h.
83 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
85 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
86 Pedro Alves <palves@redhat.com>
88 * gdbthread.h (ALL_THREADS): New macro.
89 (thread_list): Declare.
90 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
91 going, but instead fall through to the stepping handling.
92 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
93 the passed in signal. Adjust debug output.
94 (resume_callback): Rename to ...
95 (linux_nat_resume_callback): ... this. Pass the thread's last
96 stop signal, if in "pass" state.
97 (linux_nat_resume): Adjust to rename.
98 (stop_wait_callback): New assertion. Don't respawn signals;
99 instead let the LWP remain with SIGNALLED set.
100 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
101 * remote.c (append_pending_thread_resumptions): New.
102 (remote_vcont_resume): Call it.
103 * target.h (target_resume): Extend comment.
105 2012-06-28 Iain Sandoe <iain@codesourcery.com>
107 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
109 2012-06-27 Doug Evans <dje@google.com>
111 * dwarf2read.c (dwarf2_cu): Add ranges_base.
112 Delete have_addr_base, unused. All uses updated.
113 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
114 (dwarf2_get_pc_bounds): Add ranges_base.
115 (dwarf2_record_block_ranges): Ditto.
117 2012-06-27 Tom Tromey <tromey@redhat.com>
120 * varobj.c (varobj_create): Update.
121 (varobj_set_value): Update.
122 * tracepoint.c (validate_actionline): Update.
123 (encode_actions_1): Update.
124 * parse.c (parse_exp_1): Add 'pc' argument.
125 (parse_exp_in_context): Add 'pc' argument. Change how
126 expression_context_pc is set.
127 (parse_expression): Update.
128 (parse_field_expression): Update.
129 * expression.h (parse_exp_1): Update.
130 * eval.c (parse_to_comma_and_eval): Update.
131 * breakpoint.c (set_breakpoint_condition): Update.
132 (update_watchpoint): Update.
133 (init_breakpoint_sal): Update
134 (find_condition_and_thread): Update.
135 (watch_command_1): Update.
136 (update_breakpoint_locations): Update.
137 * ada-lang.c (ada_read_renaming_var_value): Update.
138 (create_excep_cond_exprs): Update.
140 2012-06-27 Doug Evans <dje@google.com>
142 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
145 2012-06-26 Doug Evans <dje@google.com>
147 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
149 (error_check_comp_unit_head): New arg abbrev_section. All callers
151 (read_and_check_comp_unit_head): Ditto.
152 (read_and_check_type_unit_head): Ditto.
154 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
156 New attribute 'last' for gdb.Symtab_and_line.
157 * NEWS (Python Scripting): Add entry about the new attribute.
158 * python/py-symtab.c (salpy_get_last): New function which
159 implements the get method for the 'last' attribute of
161 (sal_object_getset): Add entry for the 'last' attribute.
163 2012-06-26 Doug Evans <dje@google.com>
165 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
166 (dwo_sections): Add macinfo, macro.
167 (dwarf2_locate_dwo_sections): Watch for macro sections.
168 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
169 All callers updated. Handle DWO files.
171 * NEWS: Mention new options "set debug dwarf2-read" and
172 "set debug symtab-create".
173 * dwarf2read.c (dwarf2_read_debug): New static global.
174 (dwarf2_build_psymtabs_hard): Add debugging printfs.
175 (process_queue): Ditto.
176 (process_full_comp_unit): Ditto.
177 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
178 * elfread.c (elf_symfile_read): Add debugging printf.
179 * minsyms.c (install_minimal_symbols): Ditto.
180 * psymtab.c (allocate_psymtab): Ditto.
181 * symfile.c (allocate_symtab): Ditto.
182 * symtab.c (symtab_create_debug): New global.
183 (_initialize_symtab): Add new option "set debug symtab-create".
184 * symtab.h (symtab_create_debug): Declare.
186 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
187 (lookup_dwo_type_unit): Ditto.
189 2012-06-26 Roland McGrath <roland@hack.frob.com>
190 H.J. Lu <hongjiu.lu@intel.com>
192 * amd64-linux-nat.c: Include <sys/user.h>.
193 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
194 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
195 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
197 * configure.ac: Check if the fs_base and gs_base members of
198 `struct user_regs_struct' exist.
199 * config.in: Regenerated.
200 * configure: Likewise.
202 2012-06-25 Michael Eager <eager@eagercon.com>
205 * python/python.c (gdbpy_write): Check for interrupted output.
207 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
209 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
210 register as a stack alignment in ARM mode.
212 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
214 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
215 * gnulib/config.in: Regenerate.
216 * gnulib/configure: Likewise.
217 * gnulib/import/m4/extensions.m4: Update it.
218 * gnulib/import/m4/gnulib-common.m4: Likewise.
219 * gnulib/import/m4/memmem.m4: Likewise.
220 * gnulib/import/m4/mmap-anon.m4: Likewise.
221 * gnulib/import/m4/multiarch.m4: Likewise.
222 * gnulib/import/stdint.in.h: Likewise.
224 2012-06-24 Yao Qi <yao@codesourcery.com>
226 * corefile.c (write_memory_with_notification): New.
227 * gdbcore.h: Declare write_memory_with_notification.
228 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
229 'observer_notify_memory_changed' with 'write_memory_with_notification'.
230 * valops.c (value_assign): Likewise.
231 * python/py-inferior.c (infpy_write_memory): Call
232 'write_memory_with_notification'.
234 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
236 * cc-with-index.sh: Use also -ex "set auto-load no".
238 2012-06-23 Doug Evans <dje@google.com>
241 * NEWS: Document additions to .gdb_index.
242 * dwarf2read.c: #include "gdb/gdb-index.h".
243 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
244 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
245 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
246 (dwarf2_read_index): Recognize version 7.
247 (dw2_do_expand_symtabs_matching): New args want_specific_block,
248 block_kind, domain): All callers updated.
249 (dw2_find_symbol_file): Handle new index CU values.
250 (dw2_expand_symtabs_matching): Match symbol kind if requested.
251 (add_index_entry): New args is_static, kind. All callers updated.
252 (offset_type_compare, uniquify_cu_indices): New functions
253 (symbol_kind): New function.
254 (write_psymtabs_to_index): Remove duplicate CU values.
255 (write_psymtabs_to_index): Write .gdb_index version 7.
257 2012-06-22 Joel Brobecker <brobecker@adacore.com>
259 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
260 * configure: Regenerate.
262 2012-06-20 Yao Qi <yao@codesourcery.com>
264 * python/py-inferior.c: Update comments of infpy_read_memory
265 and infpy_write_memory.
267 2012-06-19 Tom Tromey <tromey@redhat.com>
270 * parser-defs.h (insert_type, insert_type_address_space): Declare.
271 (push_type_address_space): Remove.
272 * parse.c (insert_into_type_stack): New function.
273 (insert_type): Likewise.
274 (insert_type_address_space): Rename from push_type_address_space.
275 Insert tp_space_identifier.
276 * c-exp.y (ptr_operator): New production.
277 (abs_decl): Use ptr_operator.
278 (space_identifier): Call insert_type_address_space.
279 (ptype): Don't use const_or_volatile_or_space_identifier.
280 (const_or_volatile_noopt): Call insert_type.
281 (conversion_type_id, conversion_declarator): New productions.
282 (operator): Use conversion_type_id.
284 2012-06-18 Doug Evans <dje@google.com>
286 * symtab.h (minimal_symbol): New member created_by_gdb.
287 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
289 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
290 (search_symbols): Call it instead of lookup_symbol.
291 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
293 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
294 Adjust address for DW_OP_GNU_addr_index.
295 * dwarf2expr.h (dwarf_expr_context): Update comment.
296 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
297 all callers updated. Handle TLS vars described with
298 DW_OP_GNU_const_index.
299 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
300 and DW_OP_GNU_const_index.
301 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
303 * block.c (find_block_in_blockvector): Make explicit the fact that we
306 2012-06-18 Tom Tromey <tromey@redhat.com>
308 * c-exp.y (operator): Remove trailing space after "delete" and
311 2012-06-18 Mark Kettenis <kettenis@gnu.org>
312 Jan Kratochvil <jan.kratochvil@redhat.com>
314 Switch i386 and derived targets to ON_STACK.
315 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
316 (amd64_dicos_init_abi): Remove its installment.
317 * dicos-tdep.c (dicos_init_abi): Remove the
318 set_gdbarch_call_dummy_location call. Update the comment here.
319 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
320 (i386_dicos_init_abi): Remove its installment.
321 * i386-tdep.c (i386_push_dummy_code): New function.
322 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
323 i386_push_dummy_code.
325 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
327 Remove stale dummy frames.
328 * breakpoint.c: Include dummy-frame.h.
329 (longjmp_breakpoint_ops): New variable.
330 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
331 bp_longjmp_call_dummy.
332 (bpstat_what, bptype_string, print_one_breakpoint_location)
333 (init_bp_location): Support bp_longjmp_call_dummy.
334 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
335 (set_longjmp_breakpoint_for_call_dummy)
336 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
338 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
339 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
340 FIXME comment and extend the other comment for bp_call_dummy.
341 (set_longjmp_breakpoint_for_call_dummy)
342 (check_longjmp_breakpoint_for_call_dummy): New declarations.
343 * dummy-frame.c: Include gdbthread.h.
344 (pop_dummy_frame_bpt): New function.
345 (pop_dummy_frame): Call pop_dummy_frame_bpt.
346 (dummy_frame_discard): New function.
347 (cleanup_dummy_frames): Update the comment about longjmps.
348 * dummy-frame.h (dummy_frame_discard): New declaration.
349 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
350 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
351 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
352 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
353 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
354 keep_going if IS_LONGJMP and there is no other reason to stop.
356 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
358 * remote-sim.c (sim_command_completer): Initialize
361 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
363 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
364 * dwarf2loc.c (call_site_parameter_matches): Support
365 CALL_SITE_PARAMETER_PARAM_OFFSET.
366 (needs_dwarf_reg_entry_value): Push stub value.
367 * dwarf2read.c (read_call_site_scope): New variable origin. Support
368 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
369 * gdbtypes.h (enum call_site_parameter_kind): New item
370 CALL_SITE_PARAMETER_PARAM_OFFSET.
371 (struct call_site.parameter.u): New field param_offset.
373 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
375 Code cleanup: Generalize call_site.parameter key.
376 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
377 variable dwarf_reg. New variable kind_u. Update parameters to
378 push_dwarf_reg_entry_value.
379 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
380 * dwarf2expr.h (enum call_site_parameter_kind)
381 (union call_site_parameter_u): Forward declarations.
382 (struct dwarf_expr_context_funcs): Update parameters and their
383 description for push_dwarf_reg_entry_value.
384 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
385 * dwarf2loc.c (call_site_parameter_matches): New function.
386 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
387 description. Use call_site_parameter_matches.
388 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
389 Update parameters and their description.
390 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
391 New variable kind_u. Adjust the caller for updated parameters.
392 (needs_dwarf_reg_entry_value): Update parameters.
393 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
394 instead of attr. Update for the changed fields of struct
396 * gdbtypes.h: Include dwarf2expr.h.
397 (enum call_site_parameter_kind): New.
398 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
399 fb_offset into new union u.
401 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
403 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
404 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
407 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
409 * amd64-linux-nat.c (compat_x32_clock_t): New.
410 (compat_x32_siginfo_t): Likewise.
411 (compat_x32_siginfo_from_siginfo): Likewise.
412 (siginfo_from_compat_x32_siginfo): Likewise.
413 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
414 and siginfo_from_compat_x32_siginfo for x32.
416 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
418 * tracepoint.c (tfile_xfer_partial): Add a lseek.
420 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
422 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
423 instead of gdbarch_ptr_bit.
424 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
425 (amd64_supply_native_gregset): Likewise.
426 (amd64_collect_native_gregset): Likewise.
427 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
428 (amd64_supply_xsave): Likewise.
429 (amd64_collect_fxsave): Likewise.
430 (amd64_collect_xsave): Likewise.
432 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
434 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
435 (amd64_linux_read_description): Check DS segment register for
438 2012-06-15 Tom Tromey <tromey@redhat.com>
440 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
441 init_cutu_and_read_dies.
443 2012-06-15 Iain Sandoe <iain@codesourcery.com>
445 * MAINTAINERS (Write After Approval): Add myself to the list.
447 2012-06-15 Tom Tromey <tromey@redhat.com>
449 * valops.c (value_find_oload_method_list): Now static.
450 * value.h (value_find_oload_method_list): Don't declare.
452 2012-06-15 Tom Tromey <tromey@redhat.com>
454 * valops.c (find_overload_match): Use value_ind.
456 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
458 * infrun.c (handle_inferior_event): Correct indentation.
460 2012-06-14 Doug Evans <dje@google.com>
462 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
463 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
465 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
466 updated. Handle DEBUG_LOC_START_LENGTH.
467 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
468 (loclist_describe_location): Ditto.
470 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
473 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
474 after hiding inline functions.
476 2012-06-13 Joel Brobecker <brobecker@adacore.com>
478 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
479 _initialize_inf_ttrace.
481 2012-06-13 Joel Brobecker <brobecker@adacore.com>
483 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
484 _initialize_hppa_hpux_nat.
486 2012-06-13 Joel Brobecker <brobecker@adacore.com>
488 * remote-sim.c (sim_command_completer): Change type of return
489 value to "VEC (char_ptr) *". Adjust implementation accordingly.
491 2012-06-13 Mark Kettenis <kettenis@gnu.org>
492 Jan Kratochvil <jan.kratochvil@redhat.com>
495 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
496 stack on a 16-byte boundary.
498 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
500 * jit.c (finalize_symtab): Set function's return type to 'void' by
503 2012-06-13 Mark Kettenis <kettenis@gnu.org>
504 H.J. Lu <hongjiu.lu@intel.com>
506 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
507 Move bits common to both the classic LP64 and the new x32 ILP32
509 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
510 (amd64_x32_linux_init_abi): New function.
511 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
514 * i386-tdep.h (i386_pseudo_register_name): New prototype.
515 * i386-tdep.c (i386_pseudo_register_name): Make public.
516 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
517 * amd64-tdep.c (amd64_dword_names): Add "eip".
518 (amd64_x32_pseudo_register_type): New function
519 (amd64_x32_init_abi): New function.
521 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
524 * inferior.h (struct inferior_suspend_state): Comment out.
525 (struct inferior): Comment out the field suspend.
526 * infrun.c (struct infcall_suspend_state): Comment out the field
528 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
531 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
533 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
534 * c-exp.y (classify_inner_name): Remove caller assumptions in the
535 function comment. Return ERROR for unresolved cases. Implement
536 returning proper NAME.
537 (yylex): Accept also NAME from classify_inner_name.
538 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
539 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
541 * cp-support.h (cp_lookup_nested_type): Update its declaration.
543 2012-06-13 Tom Tromey <tromey@redhat.com>
545 * breakpoint.c (condition_completer): New function.
546 (_initialize_breakpoint): Use it.
547 * value.c (complete_internalvar): New function.
548 * value.h (complete_internalvar): Declare.
550 2012-06-13 Tom Tromey <tromey@redhat.com>
552 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
553 * breakpoint.c (catch_syscall_completer): Return a VEC.
554 * cli/cli-cmds.c (complete_command): Update.
555 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
556 (complete_on_enum): Likewise.
557 * command.h: Include gdb_vecs.h.
558 (completer_ftype): Change return type.
559 (complete_on_cmdlist, complete_on_enum): Likewise.
560 * completer.c (noop_completer, filename_completer)
561 (location_completer): Return a VEC.
562 (add_struct_fields): Remove 'nextp' argument. Change 'output'
564 (expression_completer, complete_line_internal, complete_line)
565 (command_completer): Return a VEC.
566 (gdb_completion_word_break_characters, line_completion_function):
568 * completer.h: Include gdb_vecs.h.
569 (complete_line, noop_completer, filename_completer)
570 (expression_completer, location_completer, command_completer):
572 * f-lang.c (f_word_break_characters): Return a VEC.
573 * interps.c (interpreter_completer): Return a VEC.
574 * language.h (struct language_defn)
575 <la_make_symbol_completion_list>: Return a VEC.
576 * python/py-cmd.c (cmdpy_completer): Return a VEC.
577 * symtab.c (free_completion_list): Take a VEC.
578 (return_val_size, return_val_index): Remove.
579 (return_val): Now a VEC.
580 (completion_list_add_name): Update.
581 (default_make_symbol_completion_list_break_on)
582 (default_make_symbol_completion_list, make_symbol_completion_list)
583 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
585 (add_filename_to_list): Update.
586 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
588 (maybe_add_partial_symtab_filename): Update.
589 (make_source_files_completion_list): Return a VEC.
590 * symtab.h (default_make_symbol_completion_list_break_on)
591 (default_make_symbol_completion_list, make_symbol_completion_list)
592 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
593 (make_source_files_completion_list): Update.
595 2012-06-13 Tom Tromey <tromey@redhat.com>
597 * breakpoint.c (add_catch_command): Use completer_ftype.
598 * breakpoint.h: Include command.h.
599 (add_catch_command): Use completer_ftype.
600 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
601 * cli/cli-decode.h (struct cmd_list_element) <completer>:
603 * command.h (completer_ftype): New typedef.
604 (set_cmd_completer): Use it.
605 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
608 2012-06-13 Pedro Alves <palves@redhat.com>
610 Partial revert of previous change.
612 * serial.c (scb_base): New global.
613 (serial_for_fd): New.
614 (serial_open, serial_fdopen_ops): Link new serial in open serials
616 (do_serial_close): Unlink serial from the open serials chain.
618 2012-06-12 Pedro Alves <palves@redhat.com>
620 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
622 (prepare_for_detach): No longer context switch here in non-stop
624 (fetch_inferior_event): Ditto.
625 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
626 to the event thread before removing breakpoints. Switch to the
627 event thread before inserting breakpoints and resuming.
628 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
629 event thread before resuming.
630 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
631 Switch to the event thread before removing breakpoints.
633 2012-06-12 Eli Zaretskii <eliz@gnu.org>
635 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
636 special characters correctly for the Windows shells. See
637 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
639 [!__MINGW32__]: Remove extra double quote character from special
642 2012-06-11 Stan Shebs <stan@codesourcery.com>
644 * ui-out.h: Remove #if 0 declarations.
645 * ui-out.c: Remove #if 0 functions.
647 2012-06-11 Pedro Alves <palves@redhat.com>
649 * ser-base.c (run_async_handler_and_reschedule): New.
650 (fd_event, push_event): Use it.
651 * serial.c (serial_open, serial_fdopen_ops): Set the initial
652 reference count to 1.
653 (do_serial_close): Set the bufp field to NULL. Use serial_unref
655 (serial_is_open, serial_ref, serial_unref): New.
656 * serial.h (serial_open): Adjust comment.
657 (serial_is_open): Declare.
658 (serial_close): Adjust comment.
659 (serial_ref, serial_unref) Declare.
660 (struct serial): New field 'refcnt'.
662 2012-06-11 Pedro Alves <palves@redhat.com>
664 Remove #if 0'd "connect" command, and unnecessary associated
665 refcounting and serial reuse bits.
667 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
668 * serial.c (last_serial_opened): Delete.
670 (serial_open): Adjust.
671 (serial_for_fd): Delete.
672 (serial_fdopen_ops, do_serial_close): Adjust.
673 (serial_fdopen_ops): Adjust.
675 2012-06-11 Pedro Alves <palves@redhat.com>
677 * serial.c (do_serial_close): Remove early return when SCB is
680 2012-06-11 Tom Tromey <tromey@redhat.com>
682 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
684 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
686 Fix regression by the "ambiguous linespec" series.
687 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
688 get_last_displayed_symtab and get_last_displayed_line and depending
691 2012-06-11 Tom Tromey <tromey@redhat.com>
693 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
694 (dw2_find_symbol_file): Use it.
696 2012-06-11 Michael Eager <eager@eagercon.com>
698 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
699 * mips-linux-tdep.h (mips_signals): New
701 2012-06-11 Tom Tromey <tromey@redhat.com>
703 * infrun.c (handle_inferior_event)
704 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
706 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
707 exception logic in all cases. Update comments.
708 (insert_longjmp_resume_breakpoint): Set the exception resume
711 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
713 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
715 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
717 * valarith.c (binop_types_user_defined_p): Fix a typo.
719 2012-06-08 Yao Qi <yao@codesourcery.com>
720 Chung-Lin Tang <cltang@codesourcery.com>
722 * arch-utils.c (default_return_in_first_hidden_param_p): New.
723 * arch-utils.h: Declare.
724 * gdbarch.sh: Add return_in_first_hidden_param_p.
725 * gdbarch.c, gdbarch.h: Regenerated.
726 * infcall.c (call_function_by_hand): Call
727 gdbarch_return_in_first_hidden_param_p instead of
728 language_pass_by_reference.
730 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
731 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
732 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
733 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
734 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
735 `cplus_return_struct_by_reference'.
736 (tic6x_return_value): Handle language cplusplus.
737 (tic6x_return_in_first_hidden_param_p): New.
738 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
740 2012-06-07 Doug Evans <dje@google.com>
742 * dwarf2read.c (dwarf2_cu): Add comment.
744 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
746 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
748 (mips_eabi_push_dummy_call): Likewise.
749 (mips_n32n64_push_dummy_call): Likewise.
750 (mips_o32_push_dummy_call): Likewise.
751 (mips_o64_push_dummy_call): Likewise.
753 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
755 * mips-tdep.c (mips_convert_register_p): Correct coding style.
757 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
759 * mips-tdep.c (mips_pseudo_register_type): Use
760 mips_float_register_p.
762 2012-06-06 Pedro Alves <palves@redhat.com>
764 * infrun.c (handle_inferior_event): Remove calls to
765 reinit_frame_cache that follow a context_switch call.
767 2012-06-06 Pedro Alves <palves@redhat.com>
769 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
770 context_switch and remove stale comment.
772 2012-06-06 Pedro Alves <palves@redhat.com>
774 * infrun.c (struct execution_control_state): Remove
775 `new_thread_event' field.
776 (handle_inferior_event): Simplify new threads handling; don't
777 resume the inferior if we find a new thread.
779 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
781 * NEWS: Document the deprecation of SH's 'regs' command.
782 * inferior.h (all_registers_info): Add function declaration.
783 * sh-tdep.c (sh_show_regs): Remove variable.
784 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
785 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
786 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
787 (sh_show_regs_command): Remove functions.
788 (sh_gdbarch_init): Don't set sh_show_regs.
789 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
790 'info all-registers'.
791 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
792 (sh64_show_regs): Remove functions.
793 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
795 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
797 * configure.ac: Move development=true below AC_INIT.
798 * configure: Regenerate.
800 2012-06-05 Stan Shebs <stan@codesourcery.com>
802 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
805 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
807 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
809 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
810 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
811 * target.c (target_read_stack, target_write_memory)
812 (target_write_raw_memory): Likewise.
813 * target.h (target_read_stack, target_write_memory)
814 (target_write_raw_memory): Likewise.
816 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
818 * symfile-mem.c: Change gdb_static_assert to ssize_t.
819 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
820 * target.c (target_read_memory): Change LEN to ssize_t.
821 * target.h (target_read_memory): Change LEN to ssize_t.
823 2012-06-05 Pedro Alves <palves@redhat.com>
827 * breakpoint.c (until_break_command): Only fetch the selected
828 frame after decode_line_1.
830 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
832 * solib-svr4.c (enable_break): Don't fallback to setting the solib
833 event breakpoint at _start, __start or main if a program
834 interpreter is not found.
836 2012-06-05 Joel Brobecker <brobecker@adacore.com>
838 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
840 * windows-tdep.c: #include "objfiles.h".
841 (windows_iterate_over_objfiles_in_search_order): New function.
842 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
843 iterate_over_objfiles_in_search_order gdbarch method to
844 windows_iterate_over_objfiles_in_search_order.
845 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
847 2012-06-05 Joel Brobecker <brobecker@adacore.com>
849 * gdbarch.sh: Add generation of
850 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
851 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
852 (iterate_over_objfiles_in_search_order): New gdbarch method.
853 * gdbarch.h, gdbarch.c: Regenerate.
854 * objfiles.h (default_iterate_over_objfiles_in_search_order):
856 * objfiles.c (default_iterate_over_objfiles_in_search_order):
858 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
859 out of lookup_symbol_aux_symtabs.
860 (lookup_symbol_aux_symtabs): Replace extracted-out code by
861 call to lookup_symbol_aux_objfile.
862 (struct global_sym_lookup_data): New type.
863 (lookup_symbol_global_iterator_cb): New function.
864 (lookup_symbol_global): Search for symbol using
865 gdbarch_iterate_over_objfiles_in_search_order and
866 lookup_symbol_global_iterator_cb.
867 * findvar.c (struct minsym_lookup_data): New type.
868 (minsym_lookup_iterator_cb): New function.
869 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
870 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
871 and minsym_lookup_iterator_cb.
873 2012-06-05 Joel Brobecker <brobecker@adacore.com>
875 Revert the following patch:
876 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
877 try locating the symbol in the symbol's own objfile first, before
878 extending the search to all objfiles.
879 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
880 out of lookup_symbol_aux_symtabs.
881 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
882 Replace extracted-out code by call to lookup_symbol_aux_objfile.
883 Do not search EXCLUDE_OBJFILE.
884 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
885 (lookup_symbol_global): Search for matches in the block's objfile
886 first, before searching all other objfiles.
888 2012-06-05 Joel Brobecker <brobecker@adacore.com>
890 * breakpoint.c (find_condition_and_thread): Stop parsing
891 as soon as the first invalid keyword is found.
893 2012-06-05 Joel Brobecker <brobecker@adacore.com>
895 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
897 2012-06-05 Joel Brobecker <brobecker@adacore.com>
899 * config/djgpp/djcheck.sh: Add copyright header.
901 2012-06-05 Joel Brobecker <brobecker@adacore.com>
903 * copyright.py (update_files, main): Fix path to update-copyright
906 2012-06-05 Joel Brobecker <brobecker@adacore.com>
908 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
909 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
910 for which a reminder to update by hand is printed.
912 2012-06-04 Doug Evans <dje@google.com>
914 * buildsym.c (make_blockvector): Add comment.
916 2012-06-04 Pedro Alves <palves@redhat.com>
918 * arch-utils.c (default_gdb_signal_from_target): Delete.
919 * arch-utils.h (default_gdb_signal_from_target): Delete.
920 * corelow.c (core_open) <signal mapping>: Extended comment. Check
921 gdbarch_gdb_signal_from_target_p.
922 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
924 * gdbarch.h: Regenerate.
925 * gdbarch.c: Regenerate.
927 2012-06-04 Pedro Alves <palves@redhat.com>
929 * gdbarch.sh (gdb_signal_from_target): Mention that the
930 implementation of the method must be host independent.
931 * gdbarch.h: Regenerate.
933 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
935 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
937 (target_read_memory_bfd): New function.
938 (symbol_file_add_from_memory): Use it.
940 2012-06-03 Doug Evans <dje@google.com>
942 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
944 (basic_lookup_transparent_type): Ditto.
946 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
947 (ALL_PRIMARY_SYMTABS): Use it.
948 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
949 * dwarf2read.c (dw2_find_symbol_file): Ditto.
950 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
951 * symtab.c (lookup_symbol_aux_objfile): Ditto.
952 (basic_lookup_transparent_type): Ditto.
954 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
956 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
957 it to optimize resolution of demangled name.
959 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
961 * configure.ac (development): Define new variable.
962 Call AC_CHECK_LIB for mcheck if $development.
963 (ERROR_ON_WARNING): Enable it by default only if $development.
964 * config.in: Regenerate.
965 * configure: Regenerate.
967 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
969 * target.c (target_read_memory): Make LEN argument as size_t.
970 * target.h (target_read_memory): Likewise.
972 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
974 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
976 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
978 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
979 BookE interface for PowerPC server processors if not available
982 2012-05-31 Keith Seitz <keiths@redhat.com>
984 * linespec.c (decode_objc): Add cleanup to free
986 (find_linespec_symbols): Add cleanup to free CLASSES.
987 * symfile.c (find_separate_debug_file_by_debuglink): Add
988 cleanup to free DEBUGLINK.
989 * ui-out.c (clear_header_list): No need to check if
990 HEADER_NEXT.COLHDR is NULL.
991 Free HEADER_NEXT.COL_NAME.
993 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
995 * ada-lang.c (standard_lookup): Prevent uninitialized variable
998 2012-05-30 Jeff Kenton <jkenton@tilera.com>
1000 * configure.host (gdb_host_cpu): Handle tilegx*.
1001 (gdb_host): Handle tilegx-*-linux*.
1002 * tilegx-linux-nat.c: New file.
1003 * config/tilegx/linux.mh: New file.
1005 2012-05-30 Jeff Kenton <jkenton@tilera.com>
1007 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
1008 tilegx-linux-tdep.o.
1009 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
1010 tilegx-linux-tdep.c.
1011 * configure.tgt: Handle tilegx-*-linux*.
1012 * tilegx-tdep.h: New file.
1013 * tilegx-tdep.c: New file.
1014 * tilegx-linux-tdep.c: New file.
1015 * regformats/reg-tilegx.dat: New file.
1017 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
1019 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
1020 accounting of hw watchpoints on ppc.
1022 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
1024 * source.c (openp): Expand tilde in path entries.
1026 2012-05-29 Doug Evans <dje@google.com>
1028 * buildsym.c (block_compar): Fix comment.
1029 (end_symtab): Fix and clarify some comments.
1031 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
1032 cleanup_undefined_types.
1033 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
1034 All callers updated.
1036 2012-05-29 Tom Tromey <tromey@redhat.com>
1038 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
1040 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
1041 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
1043 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
1046 2012-05-29 Tristan Gingold <gingold@adacore.com>
1048 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
1049 (struct darwin_info): ... New struct.
1050 (solib_darwin_pspace_data): New variable.
1051 (darwin_pspace_data_cleanup): New function.
1052 (get_darwin_info): Likewise.
1053 (darwin_dyld_version_ok, darwin_load_image_infos)
1054 (darwin_solib_get_all_image_info_addr_at_init)
1055 (darwin_solib_read_all_image_info_addr): Add info argument.
1057 (darwin_current_sos): Use per pspace structure.
1058 (darwin_solib_create_inferior_hook): Likewise.
1059 (darwin_clear_solib): Likewise.
1060 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
1062 2012-05-28 Pedro Alves <palves@redhat.com>
1064 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
1065 block that uses them. Clear ecss before handling each event.
1067 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1069 * solib-svr4.c (svr4_current_sos): New comment on
1070 svr4_current_sos_via_xfer_libraries fall back.
1072 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1074 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
1075 it as a fallback for TYPE_IS_OPAQUE.
1076 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1077 symbols for lookup_symbol.
1079 2012-05-24 John Steele Scott <toojays@toojays.net>
1081 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1082 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1083 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1084 (check_producer): ... this new function, which also checks for ICC
1085 and caches the result.
1086 (producer_is_icc): New function.
1087 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1090 2012-05-24 Pedro Alves <palves@redhat.com>
1094 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1095 (default_gdb_signal_to_target): ... this. Add comment.
1096 (default_gdb_signal_from_host): Rename to ...
1097 (default_gdb_signal_from_target): ... this. Add comment.
1098 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1099 (default_gdb_signal_to_target): ... this.
1100 (default_gdb_signal_from_host): Rename to ...
1101 (default_gdb_signal_from_target): ... this.
1102 * corelow.c (core_open): Adjust to naming change. Replace comment.
1103 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1104 (gdb_signal_from_target): ... this. Adjust to
1105 default_gdb_signal_from_host naming change. Extend comment.
1106 (gdb_signal_to_host): Rename to ...
1107 (gdb_signal_to_target): ... this. Adjust to
1108 default_gdb_signal_to_host naming change.
1109 * gdbarch.h, gdbarch.c: Renegerate.
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 Replace target_signal with gdb_signal throughout.
1123 2012-05-24 Pedro Alves <palves@redhat.com>
1127 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1128 string, instead of reusing the va_list argument.
1130 2012-05-24 Tom Tromey <tromey@redhat.com>
1132 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1135 2012-05-23 Doug Evans <dje@google.com>
1137 * symtab.c (search_symbols): Formatting fixes.
1138 (print_symbol_info): Formatting fixes.
1140 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1141 int64_t change to leb128 API.
1142 (read_encoded_value, decode_frame_entry_1): Ditto.
1143 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1144 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1145 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1146 (execute_stack_op): Ditto.
1147 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1148 (safe_read_uleb128, safe_read_sleb128): Ditto.
1149 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1150 (dwarf2_compile_expr_to_ax): Ditto.
1151 (locexpr_describe_location_piece): Ditto.
1152 (disassemble_dwarf_expression): Ditto.
1153 (locexpr_describe_location_1): Ditto.
1155 2012-05-23 Stan Shebs <stan@codesourcery.com>
1156 Kwok Cheung Yeung <kcy@codesourcery.com>
1158 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1159 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1160 (mi-cmd-info.o): New rule.
1161 * osdata.h (info_osdata_command): New declaration.
1162 * osdata.c (info_osdata_command): Change to non-static.
1163 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1164 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1165 * mi/mi-cmd-info.c: New file.
1167 2012-05-23 Doug Evans <dje@google.com>
1169 * symtab.c (search_symbols): Pass NULL for file_matcher to
1170 expand_symtabs_matching if there are no files to match.
1172 * gdbtypes.c (lookup_typename): Simplify.
1174 2012-05-23 Pedro Alves <palves@redhat.com>
1176 * arch-utils.h (default_target_signal_to_host): Delete.
1177 * arch-utils.c (default_target_signal_to_host): Delete.
1178 * gdbarch.sh (target_signal_to_host): Remove.
1179 * gdbarch.h, gdbarch.c: Regenerate.
1181 2012-05-22 Doug Evans <dje@google.com>
1183 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1185 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1186 (execute_cfa_program): Update to match API of leb128 functions.
1187 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1189 (read_unsigned_leb128, read_signed_leb128): Delete.
1190 (read_initial_length): Change type of buf argument to
1192 (read_encoded_value): Update to match API of leb128 functions.
1193 (decode_frame_entry): Change result to "const gdb_byte *", and
1194 similarly for "start" parameter.
1195 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1196 (dwarf2_build_frame_info): Change local frame_ptr to
1198 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1199 read_uleb128, read_sleb128. All callers updated.
1200 (safe_skip_leb128): New function.
1201 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1202 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1203 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1204 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1205 read_uleb128, read_sleb128.
1206 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1207 (execute_stack_op): Update to match API of leb128 functions.
1208 * dwarf2expr.h: #include "leb128.h".
1209 (read_uleb128, read_sleb128): Delete.
1210 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1211 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1212 * dwarf2loc.c (debug_loc_kind): New enum.
1213 (decode_debug_loc_addresses): New function.
1214 (decode_debug_loc_dwo_addresses): New function.
1215 (dwarf2_find_location_expression): Rewrite.
1216 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1217 (locexpr_describe_location_piece): Ditto.
1218 (disassemble_dwarf_expression): Ditto.
1219 (locexpr_describe_location_1): Ditto.
1220 (loclist_describe_location): Rewrite.
1221 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1222 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1223 (dwarf2_section_buffer_overflow_complaint): Renamed from
1224 dwarf2_macros_too_long_complaint. All callers updated.
1225 (skip_leb128): Delete.
1226 (init_cu_die_reader): Initialize reader->buffer_end.
1227 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1228 (skip_form_bytes): New arg buffer_end. All callers updated.
1229 Replace call to skip_leb128 with gdb_skip_leb128.
1230 (skip_unknown_opcode): New arg mac_end. All callers updated.
1231 (fill_in_loclist_baton): Initialize baton->from_dwo.
1233 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1235 * mips-linux-nat.c (mips_linux_read_description): Use a more
1236 verbose error message.
1238 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1240 * NEWS: Add MIPS/Linux DSP support.
1241 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1242 (SIGCONTEXT_DSPCTL): New macro.
1243 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1244 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1245 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1246 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1247 (N64_SIGCONTEXT_HI3): Likewise.
1248 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1249 (N64_SIGCONTEXT_LO3): Likewise.
1250 (N64_SIGCONTEXT_DSPCTL): Likewise.
1251 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1252 (mips_linux_o32_sigframe_init): Handle DSP registers.
1253 (mips_linux_n32n64_sigframe_init): Likewise.
1255 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1257 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1260 2012-05-22 Pedro Alves <palves@redhat.com>
1262 * target.h (store_waitstatus): Move declaration ...
1263 * inf-child.h (store_waitstatus): ... here.
1264 * target.c: Move inclusion of gdb_wait.h, and ...
1265 (store_waitstatus): ... this ...
1266 * inf-child.c: ... here.
1267 * linux-nat.c: Include inf-child.h.
1268 * rs6000-nat.c: Include inf-child.h.
1269 * spu-linux-nat.c: Include inf-child.h.
1271 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1273 * tracepoint.c (start_tracing): Add missing i18n markup.
1274 (stop_tracing, set_trace_user): Ditto.
1275 (set_trace_notes, set_trace_stop_notes): Ditto.
1277 2012-05-21 Tom Tromey <tromey@redhat.com>
1280 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1282 * value.h (value_cast_pointers): Update.
1283 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1284 (value_cast): Update.
1285 (update_search_result): New function.
1286 (do_search_struct_field): New, from search_struct_field. Check
1287 for ambiguous results.
1288 (search_struct_field): Rewrite.
1289 * infcall.c (value_arg_coerce): Update.
1290 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1291 value_cast_pointers.
1292 * ada-lang.c (ada_convert_actual): Update.
1294 2012-05-21 Tom Tromey <tromey@redhat.com>
1296 * macroexp.c (macro_stringify): Terminate the string.
1298 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1300 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1302 * auto-load.c (auto_load_expand_dir_vars): New function.
1303 (auto_load_safe_path_vec_update): Use it, remove the
1304 substitute_path_component call thanks to it.
1305 (auto_load_objfile_script): Remove the debug_file_directory processing.
1306 Use auto_load_expand_dir_vars, remove the substitute_path_component
1308 * configure: Regenerate.
1309 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1310 path. Escape $ also for $debugdir.
1311 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1312 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1314 2012-05-20 Doug Evans <dje@google.com>
1316 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1317 before use. Check for symtab->includes == NULL before scanning it.
1319 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1321 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1323 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1325 * NEWS: Add microMIPS support and "set mips compression",
1326 "show mips compression" commands.
1327 * mips-tdep.h (mips_isa): New enum.
1328 (gdbarch_tdep): Add mips_isa.
1329 (mips_pc_is_mips16): Update prototype.
1330 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1331 * mips-tdep.c (mips_compression_mips16): New variable.
1332 (mips_compression_micromips): Likewise.
1333 (mips_compression_strings): Likewise.
1334 (mips_compression_string): Likewise.
1335 (is_mips16_isa, is_micromips_isa): New functions.
1336 (is_mips16_addr): Rename to...
1337 (is_compact_addr): ... this.
1338 (unmake_mips16_addr): Likewise to...
1339 (unmake_compact_addr): ... this.
1340 (make_mips16_addr): Likewise to...
1341 (make_compact_addr): ... this.
1342 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1344 (mips_elf_make_msymbol_special): Handle microMIPS code.
1345 (msymbol_is_special): Rename to...
1346 (msymbol_is_mips16): ... this.
1347 (mips_make_symbol_special, mips_pc_is_mips16): Update
1349 (msymbol_is_mips, msymbol_is_micromips): New functions.
1350 (mips16_to_32_reg): Rename to...
1351 (mips_reg3_to_reg): ... this.
1352 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1353 (mips_pc_isa): Likewise.
1354 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1356 (mips_fetch_instruction): Pass return status instead of printing
1357 an error message if requested. Handle microMIPS code. Bail out
1359 (micromips_op): New macro.
1360 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1361 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1362 (b6s4_op, b7s3_reg): Likewise.
1363 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1364 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1365 (mips_insn_size): New function.
1366 (mips32_next_pc): Update mips_fetch_instruction call.
1367 (micromips_relative_offset7): New function.
1368 (micromips_relative_offset10): Likewise.
1369 (micromips_relative_offset16): Likewise.
1370 (micromips_pc_insn_size): Likewise.
1371 (micromips_bc1_pc): Likewise.
1372 (micromips_next_pc): Likewise.
1373 (unpack_mips16): Update mips_fetch_instruction call.
1374 (extended_mips16_next_pc): Update according to change to
1376 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1378 (mips16_scan_prologue): Update mips_fetch_instruction call.
1379 Update according to change to mips16_to_32_reg.
1380 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1381 (mips_insn16_frame_base_sniffer): Likewise.
1382 (micromips_decode_imm9): New function.
1383 (micromips_scan_prologue): Likewise.
1384 (mips_micro_frame_cache): Likewise.
1385 (mips_micro_frame_this_id): Likewise.
1386 (mips_micro_frame_prev_register): Likewise.
1387 (mips_micro_frame_sniffer): Likewise.
1388 (mips_micro_frame_unwind): New variable.
1389 (mips_micro_frame_base_address): New function.
1390 (mips_micro_frame_base): New variable.
1391 (mips_micro_frame_base_sniffer): New function.
1392 (mips32_scan_prologue): Update mips_fetch_instruction call.
1393 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1394 rather than for MIPS16.
1395 (mips_insn32_frame_base_sniffer): Likewise.
1396 (mips_addr_bits_remove): Handle microMIPS code.
1397 (deal_with_atomic_sequence): Rename to...
1398 (mips_deal_with_atomic_sequence): ... this. Update the type
1399 of the variable used to hold an instruction. Remove the ISA bit
1400 check. Update mips_fetch_instruction call.
1401 (micromips_deal_with_atomic_sequence): New function.
1402 (deal_with_atomic_sequence): Likewise.
1403 (mips_about_to_return): Handle microMIPS code. Update
1404 mips_fetch_instruction call.
1405 (heuristic_proc_start): Check for the standard MIPS ISA rather
1406 than for MIPS16. Update mips_pc_is_mips16 and
1407 mips_fetch_instruction calls. Handle microMIPS code.
1408 (mips_push_dummy_code): Handle microMIPS code.
1409 (mips_eabi_push_dummy_call): Likewise.
1410 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1411 (mips_o64_push_dummy_call): Handle microMIPS code.
1412 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1413 (is_delayed): Remove function.
1414 (mips_single_step_through_delay): Replace the call to is_delayed
1415 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1416 Handle microMIPS code.
1417 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1419 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1421 (micromips_in_function_epilogue_p): New function.
1422 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1424 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1426 (gdb_print_insn_mips): Likewise.
1427 (mips_breakpoint_from_pc): Likewise.
1428 (mips_remote_breakpoint_from_pc): New function.
1429 (mips32_instruction_has_delay_slot): Simplify making use of the
1430 updated mips_fetch_instruction interface.
1431 (micromips_instruction_has_delay_slot): New function.
1432 (mips16_instruction_has_delay_slot): Simplify making use of the
1433 updated mips_fetch_instruction interface.
1434 (mips_adjust_breakpoint_address): Check for the standard MIPS
1435 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1436 calls. Handle microMIPS code.
1437 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1438 (mips_skip_trampoline_code): Handle microMIPS code.
1439 (global_mips_compression): New function.
1440 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1441 file flags. Register the microMIPS remote breakpoint handler
1442 and heuristic frame unwinder.
1443 (show_mips_compression): New function.
1444 (_initialize_mips_tdep): Add the "set mips compression" and
1445 "show mips compression" commands.
1447 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1452 * amd64-darwin-tdep.c:
1453 * arm-symbian-tdep.c:
1457 * bfin-linux-tdep.c:
1464 * dwarf2-frame-tailcall.c:
1493 * microblaze-tdep.c:
1494 * mips-linux-tdep.c:
1502 * python/py-finishbreakpoint.c:
1503 * python/py-inferior.c:
1504 * python/py-infthread.c:
1508 * remote-m32r-sdi.c:
1512 * rs6000-aix-tdep.c:
1538 * amd64-darwin-tdep.c:
1539 * arm-symbian-tdep.c:
1540 * arm-tdep.c: Delete unused variables.
1542 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1544 Rename $ddir to $datadir.
1545 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1546 * auto-load.c (auto_load_safe_path_vec_update)
1547 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1548 * configure: Regenerate.
1549 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1550 Likewise. Remove the 'use $ddir' help string.
1552 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1554 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1555 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1557 2012-05-18 Tom Tromey <tromey@redhat.com>
1560 * valprint.h (struct value_print_options) <symbol_print>: New
1562 * valprint.c (user_print_options): Add default for symbol_print.
1563 (show_symbol_print): New function.
1564 (generic_val_print): Respect symbol_print.
1565 (_initialize_valprint): Add "print symbol" setting.
1566 * f-valprint.c (f_val_print): Respect symbol_print.
1567 * c-valprint.c (c_val_print): Respect symbol_print.
1569 * printcmd.c (print_address_symbolic): Return int. Ignore some
1571 (print_address_demangle): Return int.
1572 * defs.h: (print_address_symbolic): Return int.
1573 * value.h (print_address_demangle): Return int.
1575 2012-05-18 Tom Tromey <tromey@redhat.com>
1577 * valprint.c (val_print_string): Don't print leading space.
1578 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1579 print space before string or vtbl.
1580 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1582 * jv-valprint.c (java_value_print): Print space before string.
1583 * go-valprint.c (print_go_string): Print space before string.
1584 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1585 space before string.
1586 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1587 space before string or vtbl.
1588 * auxv.c (fprint_target_auxv): Print space after address.
1590 2012-05-18 Tom Tromey <tromey@redhat.com>
1592 * printcmd.c (print_address_demangle): Remove special case for 0.
1594 2012-05-18 Tom Tromey <tromey@redhat.com>
1596 * printcmd.c (print_address_demangle): Add 'opts' argument.
1597 * p-valprint.c (pascal_val_print): Update.
1598 * jv-valprint.c (java_val_print): Update.
1600 * valprint.c (generic_val_print): Update.
1601 (print_function_pointer_address): Add 'options' argument. Remove
1602 'addressprint' argument. Update.
1603 * m2-valprint.c (print_unpacked_pointer): Update.
1604 * gnu-v3-abi.c (print_one_vtable): Update.
1605 (gnuv3_print_method_ptr): Update.
1606 * f-valprint.c (f_val_print): Update.
1607 * cp-valprint.c (cp_print_value_fields): Update.
1608 * valprint.h (print_function_pointer_address): Update.
1609 * c-valprint.c (c_val_print): Update.
1611 2012-05-18 Tom Tromey <tromey@redhat.com>
1613 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1614 directly corresponding to the found psymtab.
1615 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1616 (dw2_find_pc_sect_symtab): Use it.
1617 * block.h (blockvector_contains_pc): Declare.
1618 * block.c (find_block_in_blockvector): New function.
1619 (blockvector_for_pc_sect): Use it.
1620 (blockvector_contains_pc): New function.
1622 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1624 * mips-tdep.h (mips_write_pc): New prototype.
1625 * mips-tdep.c (mips_write_pc): Make external, add description.
1626 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1629 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1631 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1633 (mips_unwind_pc, mips_write_pc): Likewise.
1634 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1637 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1639 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1640 proc_warn, proc_error, proc_get_status, proc_flags,
1641 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1642 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1643 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1644 proc_stop_process, proc_wait_for_stop, proc_run_process,
1645 proc_set_traced_signals, proc_set_traced_faults,
1646 proc_set_traced_sysentry, proc_set_traced_sysexit,
1647 proc_set_held_signals, proc_get_held_signals,
1648 proc_get_traced_signals, proc_get_traced_faults,
1649 proc_get_traced_sysentry, proc_get_traced_sysexit,
1650 proc_clear_current_fault, proc_set_current_signal,
1651 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1652 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1653 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1654 proc_get_current_thread, proc_get_current_thread,
1655 proc_get_current_thread, proc_update_threads,
1656 proc_update_threads, proc_update_threads, proc_update_threads,
1657 proc_iterate_over_threads, procfs_find_new_threads,
1658 procfs_pid_to_str): Make static. Remove advance declaration.
1659 (proc_cursig): Make static. Conditionalized defintion on
1660 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1661 (proc_syscall, proc_set_kill_on_last_close,
1662 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1663 proc_get_pending_signals, proc_get_signal_actions,
1664 proc_trace_signal, proc_ignore_signal): Delete.
1666 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1668 * coffread.c (cs_section_address): Passing proper argument for
1669 `bfd_get_section_vma'.
1670 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1671 `bfd_get_section_flags'.
1672 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1673 `bfd_get_section_vma'.
1675 2012-05-16 Tom Tromey <tromey@redhat.com>
1678 * macrotab.h: (macro_define_special): Declare.
1679 (enum macro_special_kind): New.
1680 (struct macro_definition) <argc, replacement>: Update comments.
1681 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1682 (macro_define_object_internal): New function.
1683 (macro_define_object): Use it.
1684 (macro_define_special): New function.
1685 (fixup_definition): New function.
1686 (macro_lookup_definition, foreach_macro_in_scope)
1687 (foreach_macro): Use fixup_definition.
1688 * macroexp.h (macro_stringify): Declare.
1689 * macroexp.c (free_buffer_return_text): New function.
1690 (stringify): Constify "arg".
1691 (macro_stringify): New function.
1692 * dwarf2read.c (macro_start_file): Call macro_define_special.
1694 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1695 Maciej W. Rozycki <macro@mips.com>
1697 * breakpoint.h (bp_location): Add related_address member.
1698 * inferior.h (get_return_value): Take a pointer to struct value
1699 instead of struct type for the function requested.
1700 * value.h (using_struct_return): Likewise.
1701 * gdbarch.sh (return_value): Take a pointer to struct value
1702 instead of struct type for the function requested.
1703 * breakpoint.c (set_breakpoint_location_function): Initialize
1704 related_address for bp_gnu_ifunc_resolver breakpoints.
1705 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1706 requested function's address to gdbarch_return_value.
1707 * eval.c (evaluate_subexp_standard): Pass the requested
1708 function's address to using_struct_return.
1709 * infcall.c (call_function_by_hand): Pass the requested
1710 function's address to using_struct_return and
1711 gdbarch_return_value.
1712 * infcmd.c (get_return_value): Take a pointer to struct value
1713 instead of struct type for the function requested.
1714 (print_return_value): Update accordingly.
1715 (finish_command_continuation): Likewise.
1716 * stack.c (return_command): Pass the requested function's
1717 address to using_struct_return and gdbarch_return_value.
1718 * value.c (using_struct_return): Take a pointer to struct value
1719 instead of struct type for the function requested. Pass the
1720 requested function's address to gdbarch_return_value.
1721 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1722 New function_value member, replacing function_type.
1723 (bpfinishpy_dealloc): Update accordingly.
1724 (bpfinishpy_pre_stop_hook): Likewise.
1725 (bpfinishpy_init): Likewise. Record the requested function's
1727 * mips-tdep.c (mips_fval_reg): New enum.
1728 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1729 words put in GP registers.
1730 (mips_o64_push_dummy_call): Update a comment.
1731 (mips_o32_return_value): Take a pointer to struct value instead
1732 of struct type for the function requested and use it to check if
1733 using the MIPS16 calling convention. Return the designated
1734 general purpose registers for floating-point values returned in
1736 (mips_o64_return_value): Likewise.
1737 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1738 (ppc_sysv_abi_broken_return_value): Likewise.
1739 (ppc64_sysv_abi_return_value): Likewise.
1740 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1741 value instead of struct type for the function requested.
1742 * amd64-tdep.c (amd64_return_value): Likewise.
1743 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1744 * arm-tdep.c (arm_return_value): Likewise.
1745 * avr-tdep.c (avr_return_value): Likewise.
1746 * bfin-tdep.c (bfin_return_value): Likewise.
1747 * cris-tdep.c (cris_return_value): Likewise.
1748 * frv-tdep.c (frv_return_value): Likewise.
1749 * h8300-tdep.c (h8300_return_value): Likewise.
1750 (h8300h_return_value): Likewise.
1751 * hppa-tdep.c (hppa32_return_value): Likewise.
1752 (hppa64_return_value): Likewise.
1753 * i386-tdep.c (i386_return_value): Likewise.
1754 * ia64-tdep.c (ia64_return_value): Likewise.
1755 * iq2000-tdep.c (iq2000_return_value): Likewise.
1756 * lm32-tdep.c (lm32_return_value): Likewise.
1757 * m32c-tdep.c (m32c_return_value): Likewise.
1758 * m32r-tdep.c (m32r_return_value): Likewise.
1759 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1760 * m68k-tdep.c (m68k_return_value): Likewise.
1761 (m68k_svr4_return_value): Likewise.
1762 * m88k-tdep.c (m88k_return_value): Likewise.
1763 * mep-tdep.c (mep_return_value): Likewise.
1764 * microblaze-tdep.c (microblaze_return_value): Likewise.
1765 * mn10300-tdep.c (mn10300_return_value): Likewise.
1766 * moxie-tdep.c (moxie_return_value): Likewise.
1767 * mt-tdep.c (mt_return_value): Likewise.
1768 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1769 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1770 (ppc_sysv_abi_broken_return_value): Likewise.
1771 (ppc64_sysv_abi_return_value): Likewise.
1772 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1773 * rl78-tdep.c (rl78_return_value): Likewise.
1774 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1775 * rx-tdep.c (rx_return_value): Likewise.
1776 * s390-tdep.c (s390_return_value): Likewise.
1777 * score-tdep.c (score_return_value): Likewise.
1778 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1779 (sh_return_value_fpu): Likewise.
1780 * sh64-tdep.c (sh64_return_value): Likewise.
1781 * sparc-tdep.c (sparc32_return_value): Likewise.
1782 * sparc64-tdep.c (sparc64_return_value): Likewise.
1783 * spu-tdep.c (spu_return_value): Likewise.
1784 * tic6x-tdep.c (tic6x_return_value): Likewise.
1785 * v850-tdep.c (v850_return_value): Likewise.
1786 * vax-tdep.c (vax_return_value): Likewise.
1787 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1788 * xtensa-tdep.c (xtensa_return_value): Likewise.
1789 * gdbarch.c: Regenerate.
1790 * gdbarch.h: Regenerate.
1792 2012-05-15 Tom Tromey <tromey@redhat.com>
1794 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1796 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1798 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1799 of command in two error message.
1801 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1803 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1805 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1807 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1809 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1811 * NEWS (show auto-load scripts-directory): Add forgotten command.
1813 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1815 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1818 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1820 * amd64-tdep.c: Include features/i386/x32.c and
1821 features/i386/x32-avx.c.
1822 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1823 initialize_tdesc_x32_avx.
1825 2012-05-14 Stan Shebs <stan@codesourcery.com>
1828 * breakpoint.h (enum bptype): New type bp_dprintf.
1829 (struct breakpoint): New field extra_string.
1830 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1831 (create_breakpoint): Add extra_string arg.
1832 * breakpoint.c (dprintf_breakpoint_ops): New.
1833 (is_breakpoint): Add bp_dprintf.
1834 (bpstat_what): Add dprintf case.
1835 (bptype_string): Ditto.
1836 (print_one_breakpoint_location): Ditto.
1837 (init_bp_location): Ditto.
1838 (bkpt_print_mention): Ditto.
1839 (dprintf_style_enums): New array.
1840 (dprintf_style): New global.
1841 (dprintf_function): New global.
1842 (dprintf_channel): New global.
1843 (update_dprintf_command_list): New function.
1844 (update_dprintf_commands): New function.
1845 (init_breakpoint_sal): Add extra_string argument, handle it.
1846 (create_breakpoint_sal): Add extra_string argument.
1847 (create_breakpoints_sal): Add extra_string argument, update callers.
1848 (find_condition_and_thread): Add extra argument.
1849 (create_breakpoint): Add extra_string argument, record it.
1850 (dprintf_command): New function.
1851 (break_command_1): Add arg to create_breakpoint call.
1852 (handle_gnu_v3_exceptions): Ditto.
1853 (trace_command): Ditto.
1854 (ftrace_command): Ditto.
1855 (strace_command): Ditto.
1856 (bkpt_print_mention): Add dprintf case.
1857 (create_breakpoint_sal_default): Add extra_string argument.
1858 (_initialize_breakpoint): Add new commands.
1859 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1860 * python/py-breakpoint.c (bppy_init): Ditto.
1861 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1863 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1865 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1867 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1869 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1872 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1874 Add a new function gdb.find_pc_line to the Python API.
1875 * NEWS (Python Scripting): Add entry about the new function.
1876 * python/python.c (gdbpy_find_pc_line): New function which
1877 implements gdb.find_pc_line.
1878 (GdbMethods): Add entry for the new function.
1880 2012-05-12 Pedro Alves <palves@redhat.com>
1882 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1883 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1885 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1887 * inferior.c: Include completer.h
1888 (initialize_inferiors): Set completer of add-inferior to
1891 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1893 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1894 gdbarch_ptr_bit for x32 core dump.
1896 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1898 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1899 and features/i386/x32-avx-linux.c.
1901 2012-05-11 Stan Shebs <stan@codesourcery.com>
1902 Kwok Cheung Yeung <kcy@codesourcery.com>
1904 * NEWS: Describe new info os commands.
1905 * common/linux-osdata.c (PID_T, TIME_T): Define.
1906 (MAX_PID_T_STRLEN): New.
1907 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1909 (command_from_pid): Add comment. Change to use PID_T.
1910 (commandline_from_pid): Change to use PID_T.
1911 (user_from_pid): Add comment.
1912 (get_process_owner): Add comment. Change to use PID_T and
1914 (get_number_of_cpu_cores): Add comment.
1915 (get_cores_used_by_process): Add comment. Change to use PID_T and
1917 (linux_xfer_osdata_processes): Change to use PID_T and
1919 (compare_processes): New function.
1920 (linux_xfer_osdata_processgroups): New function.
1921 (linux_xfer_osdata_threads): Change to use PID_T.
1922 (linux_xfer_osdata_fds): New function.
1923 (format_socket_state, print_sockets): New functions.
1924 (union socket_addr): New union.
1925 (linux_xfer_osdata_isockets): New function.
1926 (time_from_time_t, group_from_gid): New functions.
1927 (linux_xfer_osdata_shm): New function.
1928 (linux_xfer_osdata_sem): New function.
1929 (linux_xfer_osdata_msg): New function.
1930 (linux_xfer_osdata_modules): New function.
1931 (osdata_table): Add new entries.
1932 * common/buffer.c (buffer_xml_printf): Add support for long and
1933 long long format specifiers.
1935 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1937 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1938 (tdesc_x32_avx_linux): Likewise.
1940 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1942 Implement multi-component --with-auto-load-dir.
1943 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1945 (--with-auto-load-safe-path): Update the default value description.
1946 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1948 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1949 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1950 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1951 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1952 "set auto-load scripts-directory".
1953 * config.in: Regenerate.
1954 * configure: Regenerate.
1955 * configure.ac (--with-auto-load-dir): New configure option.
1956 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1958 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1960 Provide $ddir substitution for --with-auto-load-safe-path.
1961 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1963 * auto-load.c: Include observer.h.
1964 (auto_load_safe_path_vec_update): Call substitute_path_component for
1965 each component. New variable ddir_subst.
1966 (auto_load_gdb_datadir_changed): New function.
1967 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1968 AUTO_LOAD_SAFE_PATH. New comment.
1969 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1970 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1971 * config.in: Regenerate.
1972 * configure: Regenerate.
1973 * configure.ac (--auto-load-safe-path): Rename
1974 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1975 GDB_DATADIR/auto-load.
1976 * defs.h (substitute_path_component): New declaration.
1977 * top.c: Include observer.h.
1978 (set_gdb_datadir): New function.
1979 (init_main): Install it for "set data-directory".
1980 * utils.c (substitute_path_component): New function.
1982 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1984 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1985 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1986 DEBUG_FILE_DIRECTORY. Handle multiple components of
1987 DEBUG_FILE_DIRECTORY.
1989 2012-05-10 Tom Tromey <tromey@redhat.com>
1991 * dwarf2read.c (recursively_write_psymbols): New function.
1992 (write_psymtabs_to_index): Use it.
1994 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1996 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1997 (load_partial_comp_unit): Update.
1998 (queue_comp_unit): Add argument 'pretend_language'.
1999 (process_queue): Update.
2000 (psymtab_to_symtab_1): Skip dependencies that have a user.
2001 (load_partial_comp_unit_reader): Give meaning to the 'data'
2003 (load_full_comp_unit): Add 'pretend_language' argument.
2004 (process_full_comp_unit): Add 'pretend_language' argument. Set
2006 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
2008 (maybe_queue_comp_unit): Add 'pretend_language' argument.
2009 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
2011 (prepare_one_comp_unit): Add 'pretend_language' argument.
2013 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
2014 (struct dwarf2_per_objfile) <just_read_cus>: New field.
2015 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
2016 (dw2_do_instantiate_symtab): Check whether symtab was read in
2018 (dw2_instantiate_symtab): Add assertion. Call
2019 process_cu_includes.
2020 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
2021 (partial_symtab_p): New typedef.
2022 (set_partial_user): New function.
2023 (dwarf2_build_psymtabs_hard): Use set_partial_user.
2024 (scan_partial_symbols): Add imported CU to imported_symtabs.
2025 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
2026 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
2027 (get_symtab, recursively_compute_inclusions)
2028 (compute_symtab_includes, process_cu_includes)
2029 (process_imported_unit_die): New functions.
2030 (process_die) <DW_TAG_imported_unit>: New case.
2031 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
2033 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
2035 (struct partial_die_info) <locdesc>: Remove.
2037 (process_psymtab_comp_unit): Add 'read_partial' argument.
2039 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
2040 (scan_partial_symbols): Handle DW_TAG_imported_unit.
2041 (add_partial_symbol): Update.
2042 (process_die): Handle DW_TAG_partial_unit.
2043 (read_file_scope): Update comment.
2044 (load_partial_dies): Handle DW_TAG_imported_unit.
2045 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
2046 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
2048 2012-05-10 Tom Tromey <tromey@redhat.com>
2050 * cc-with-dwz.sh: New file.
2052 2012-05-10 Tom Tromey <tromey@redhat.com>
2054 * symtab.h (struct symtab) <includes, user>: New fields.
2055 * block.h (struct block_iterator) <d, idx, which>: New fields.
2056 * block.c (initialize_block_iterator, find_iterator_symtab)
2057 (block_iterator_step, block_iter_name_step)
2058 (block_iter_match_step): New functions.
2059 (block_iterator_first, block_iterator_next)
2060 (block_iter_name_first, block_iter_name_next)
2061 (block_iter_match_first, block_iter_match_next): Rewrite.
2062 (get_block_symtab): New function.
2064 2012-05-10 Tom Tromey <tromey@redhat.com>
2066 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
2068 * jit.c (finalize_symtab): Use allocate_global_block,
2070 * buildsym.c (finish_block_internal): New function, from old
2072 (finish_block): Rewrite.
2073 (end_symtab): Use finish_block_internal, set_block_symtab.
2074 * block.h (struct global_block): New.
2075 (allocate_global_block, set_block_symtab): Declare.
2076 * block.c (allocate_global_block, set_block_symtab): New
2079 2012-05-10 Tom Tromey <tromey@redhat.com>
2081 * psymtab.c (partial_map_expand_apply): Add assertion.
2082 (partial_map_symtabs_matching_filename): Skip included psymtabs.
2083 (psymtab_to_symtab): Find unshared psymtab.
2084 (dump_psymtab): Print including psymtabs.
2085 (recursively_search_psymtabs): New function.
2086 (expand_symtabs_matching_via_partial): Use it.
2087 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2089 (enum psymtab_search_status): New.
2091 2012-05-10 Tom Tromey <tromey@redhat.com>
2093 * tracepoint.c (scope_info): Update.
2094 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2095 (find_pc_sect_symtab, search_symbols)
2096 (default_make_symbol_completion_list_break_on)
2097 (make_file_symbol_completion_list): Update.
2098 * symmisc.c (dump_symtab_1): Update.
2099 * stack.c (print_frame_args, iterate_over_block_locals)
2100 (print_frame_labels, iterate_over_block_arg_vars): Update.
2101 * python/py-block.c (block_object) <dict>: Remove.
2103 <iter>: Change type.
2104 (blpy_iter): Update.
2105 (blpy_block_syms_iternext): Update.
2106 * psymtab.c (map_block): Use block iterators.
2107 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2108 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2109 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2110 * infrun.c (check_exception_resume): Update.
2111 * cp-support.c (make_symbol_overload_list_block): Update.
2112 * coffread.c (patch_opaque_types): Update.
2113 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2114 * block.h (struct block_iterator): New.
2115 (block_iterator_first, block_iterator_next, block_iter_name_first)
2116 (block_iter_name_next, block_iter_match_first)
2117 (block_iter_match_next): Declare.
2118 (ALL_BLOCK_SYMBOLS): Redefine.
2119 * block.c (block_iterator_first, block_iterator_next)
2120 (block_iter_name_first, block_iter_name_next)
2121 (block_iter_match_first, block_iter_match_next): New functions.
2122 * ada-lang.c (ada_add_block_symbols)
2123 (ada_make_symbol_completion_list): Use block iterator.
2125 2012-05-10 Tom Tromey <tromey@redhat.com>
2127 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2128 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2129 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2130 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2131 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2134 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2136 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2137 print-file-var-lib2.c, print-file-var-main.c and
2138 print-file-var.exp (located in gdb/testsuite/gdb.base).
2140 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2142 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2143 try locating the symbol in the symbol's own objfile first, before
2144 extending the search to all objfiles.
2145 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2146 out of lookup_symbol_aux_symtabs.
2147 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2148 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2149 Do not search EXCLUDE_OBJFILE.
2150 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2151 (lookup_symbol_global): Search for matches in the block's objfile
2152 first, before searching all other objfiles.
2154 2012-05-10 Tristan Gingold <gingold@adacore.com>
2156 * printcmd.c (set_command): Add pre/post inc/dec.
2158 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
2160 * gdb.1: Document -ex option.
2162 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2164 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2165 * inferior.h (AT_SYMBOL): Delete.
2167 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2169 * mips-tdep.c (mips_push_dummy_code): New function.
2170 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2171 ON_STACK and install mips_push_dummy_code as our gdbarch
2172 push_dummy_code routine.
2174 2012-05-09 Pedro Alves <palves@redhat.com>
2176 * target.c (set_maintenance_target_async_permitted): Rename to ...
2177 (set_target_async_command): ... this.
2178 (show_maintenance_target_async_permitted): Rename to ...
2179 (show_target_async_command): ... this.
2180 (initialize_targets): Adjust.
2182 2012-05-08 Doug Evans <dje@google.com>
2184 * go-exp.y (classify_name): Add missing assignment of fields of
2187 2012-05-08 Eli Zaretskii <eliz@gnu.org>
2189 Display the ">" prompt in interactive mode while reading canned
2190 commands, even when the current interpreter is MI.
2192 * interps.c (interp_set_temp): New function.
2194 * interps.h (interp_set_temp): Add prototype.
2196 * cli/cli-script.c (restore_interp): New cleanup function.
2197 (read_command_lines): Temporarily override the current interpreter
2198 with CLI and arrange for restoring the original one.
2200 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2202 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2204 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2206 * probe.c (parse_probes): Move conditional to check for
2207 debuginfo files from here...
2208 * stap-probe.c (stap_get_probes): ... to here.
2210 2012-05-07 Mark Kettenis <kettenis@gnu.org>
2211 H.J. Lu <hongjiu.lu@intel.com>
2213 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2214 `movl %esp, %ebp' for the X32 ABI.
2216 2012-05-07 Tom Tromey <tromey@redhat.com>
2218 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2220 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2221 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2222 (dwarf_stack_op_name): Remove.
2223 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2224 (decode_locdesc): Use get_DW_OP_name.
2225 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2226 (dwarf2_compile_expr_to_ax): Likewise.
2227 (disassemble_dwarf_expression): Likewise.
2228 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2230 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2232 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2233 (sh_linux_sigtramp_cache): New function.
2234 (sh_linux_sigreturn_init): New function.
2235 (sh_linux_rt_sigreturn_init): New function.
2236 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2238 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2240 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2241 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2242 (sh_linux_init_abi): Add init calls to register new tramp_frame
2243 definitions under 32-bit SH, update comments.
2245 2012-05-07 Pedro Alves <palves@redhat.com>
2249 * amd64-linux-tdep.c: Include glibc-tdep.h.
2250 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2251 gdbarch_skip_solib_resolver callback.
2253 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2255 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2256 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2257 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2258 (add_auto_load_safe_path): Change the error message.
2259 (_initialize_auto_load): Change the "safe-path" help text.
2260 * configure: Regenerate
2261 * configure.ac (--without-auto-load-safe-path): Set
2262 WITH_AUTO_LOAD_SAFE_PATH to /.
2264 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2266 * stap-probe.h: Do not include unecessary `probe.h'.
2268 2012-05-05 Alan Modra <amodra@gmail.com>
2270 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2271 bfd_und_section_ptr.
2272 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2273 and bfd_com_section_ptr.
2275 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2277 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2279 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2281 * windows-nat.h (segment_register_p_ftype): New typedef.
2282 (windows_set_segment_register_p): Add declaration.
2283 * windows-nat.c (segment_register_p): New static global.
2284 (windows_set_segment_register_p): New function.
2285 (do_windows_fetch_inferior_registers): Add special handling
2286 for segment registers.
2287 * amd64-windows-nat.c: #include "amd64-tdep.h".
2288 (amd64_windows_segment_register_p): New function.
2289 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2290 * i386-windows-nat.c: #include "i386-tdep.h".
2291 (i386_windows_segment_register_p): New function.
2292 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2294 2012-05-04 Tristan Gingold <gingold@adacore.com>
2296 * printcmd.c (set_command): Emit a warning if the expression is not
2299 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2301 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2304 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2306 * stap-probe.c (stap_is_operator): Change declaration.
2307 (stap_get_opcode): Change return value.
2308 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2309 `stap_parse_argument_1'.
2311 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2313 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2316 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2318 Add two new methods global_block and static_block to gdb.Symtab
2320 * NEWS (Python scripting): Add entry about the new methods.
2321 * python/py-symtab.c (stpy_global_block): New function which
2322 implements the gdb.Symtab.global_block() method.
2323 (stpy_static_block): New function which implements the
2324 gdb.Symtab.static_block() method.
2325 (symtab_object_methods): Add entries for the two new methods.
2327 2012-05-03 Doug Evans <dje@google.com>
2329 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2332 2012-05-03 Yao Qi <yao@codesourcery.com>
2334 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2336 (i386_process_record): Ditto.
2338 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2340 * infcall.c (unwind_on_signal_p): Make static.
2342 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2344 * sol-thread.c (solaris_pid_to_str): Make static.
2345 (_initialize_sol_thread): Add prototype.
2347 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2349 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2351 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2353 * MAINTAINERS: Remove myself.
2355 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2357 Fix --without-auto-load-safe-path for MS-Windows host platform.
2358 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2360 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2362 * gdb_curses.h: Undefine KEY_EVENT before including curses
2363 headers. Move "#undef MOUSE_MOVED" before any curses header
2366 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2368 * features/i386/i386-mmx-linux.c: Regenerate.
2369 * features/rs6000/powerpc-32.c: Likewise.
2370 * features/rs6000/powerpc-32l.c: Likewise.
2371 * features/rs6000/powerpc-403.c: Likewise.
2372 * features/rs6000/powerpc-403gc.c: Likewise.
2373 * features/rs6000/powerpc-405.c: Likewise.
2374 * features/rs6000/powerpc-505.c: Likewise.
2375 * features/rs6000/powerpc-601.c: Likewise.
2376 * features/rs6000/powerpc-602.c: Likewise.
2377 * features/rs6000/powerpc-603.c: Likewise.
2378 * features/rs6000/powerpc-604.c: Likewise.
2379 * features/rs6000/powerpc-64.c: Likewise.
2380 * features/rs6000/powerpc-64l.c: Likewise.
2381 * features/rs6000/powerpc-750.c: Likewise.
2382 * features/rs6000/powerpc-860.c: Likewise.
2383 * features/rs6000/powerpc-e500.c: Likewise.
2384 * features/rs6000/powerpc-e500l.c: Likewise.
2385 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2386 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2387 * features/rs6000/rs6000.c: Likewise.
2389 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2391 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2393 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2394 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2395 (stap_parse_argument) <e>: Likewise.
2396 (handle_stap_probe) <byte_order>: Likewise.
2398 2012-04-30 Doug Evans <dje@google.com>
2400 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2401 init_and_read_dies_worker. All callers updated.
2402 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2403 replaced with init_cutu_and_read_dies.
2404 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2405 (find_partial_die): Remove FIXME. Don't free current CU.
2407 2012-04-30 Sterling Augustine <saugustine@google.com>
2409 * contrib: New directory.
2410 * contrib/test_pubnames_and_indexes.py: New file.
2412 2012-04-30 Doug Evans <dje@google.com>
2414 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2415 All callers updated.
2416 (init_cu_die_reader): Verify the section is non-empty.
2417 (dwarf_decode_line_header): Don't dereference section->asection
2418 until we know the section is present.
2420 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2422 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2425 2012-04-29 Yao Qi <yao@codesourcery.com>
2427 * gdb-code-style.el: New hook gdb-markup-hook
2428 and gdb-comment-hook.
2430 2012-04-28 Doug Evans <dje@google.com>
2432 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2433 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2435 * symfile.h (dwarf2_debug_sections): New member addr.
2436 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2437 (ctx_no_get_addr_index): New function.
2438 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2439 (ctx_no_get_addr_index): Declare.
2440 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2441 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2442 (dwarf_expr_ctx_funcs): Update.
2443 (needs_get_addr_index): New function.
2444 (needs_frame_ctx_funcs): Update.
2445 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2446 * dwarf2read.c: #include "gdbcore.h".
2447 (dwarf2_per_objfile): New members addr, dwo_files.
2448 (dwarf2_elf_names): Add entry for addr.
2449 (struct dwo_section_names): New type.
2450 (dwo_section_names): New static global.
2451 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2452 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2453 old debug_types_section member updated to use this.
2454 Rename member debug_types_section to info_or_types_section,
2456 (signatured_type): Rename member type_offset to type_offset_in_tu,
2457 all uses updated. New member type_offset_in_section.
2458 (struct dwo_sections): New type.
2459 (struct dwo_unit): New type.
2460 (struct dwo_file): New type.
2461 (die_reader_specs): New member dwo_file.
2462 (dwarf2_locate_sections): Watch for .debug_addr.
2463 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2464 (dwarf2_read_section): Get bfd of section from bfd's asection,
2466 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2467 (create_signatured_type_table_from_index): Initialize
2468 sig_type->info_or_types_section.
2469 (dw2_get_file_names): Statement lists for type units with DWO files
2470 live in the DWO file.
2471 (create_debug_types_hash_table): New function.
2472 (create_all_type_units): Rewrite.
2473 (init_cu_die_reader): New arg dwo_file, all callers updated.
2474 (init_and_read_dies_worker): Get section from
2475 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2476 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2477 continue reading the CU/TU from there.
2478 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2479 updated. Get section from this_cu->info_or_types_section.
2480 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2481 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2482 DW_FORM_GNU_str_index.
2483 (hash_dwo_file, eq_dwo_file): New functions.
2484 (allocate_dwo_file_hash_table): New function.
2485 (hash_dwo_unit, eq_dwo_unit): New functions.
2486 (allocate_dwo_unit_table): New function.
2487 (dwarf2_locate_dwo_sections): New function.
2488 (struct create_dwo_info_table_data): New type.
2489 (create_debug_info_hash_table_reader): New function.
2490 (create_debug_info_hash_table): New function.
2491 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2492 (lookup_dwo_file): New function.
2493 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2494 (free_dwo_file, free_dwo_file_cleanup): New functions.
2495 (free_dwo_file_from_slot, free_dwo_files): New functions.
2496 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2497 (dwarf2_record_block_ranges): Ditto.
2498 (read_partial_die): Ditto.
2499 (process_enumeration_scope): Update to use type_offset_in_section.
2500 (read_full_die_1): New function.
2501 (read_full_die): Rewrite.
2502 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2503 DW_FORM_GNU_str_index.
2504 (read_addr_index_1, read_addr_index): New functions.
2505 (read_addr_index_from_leb128): New function.
2506 (struct dwarf2_read_addr_index_data): New type.
2507 (dwarf2_read_addr_index_reader): New function.
2508 (dwarf2_read_addr_index): New function.
2509 (read_str_index): New function.
2510 (leb128_size): New function.
2511 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2512 If processing a type unit from a DWO file, get the line section
2514 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2515 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2516 DW_FORM_GNU_str_index.
2517 (lookup_die_type): Check whether section offset of type's die is
2518 known before looking it up. Remove assert. Condition can
2519 legimately happen for inter-cu type references.
2520 (dwarf_attr_name): Handle Fission attributes.
2521 (dwarf_form_name): Handle Fission forms.
2522 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2523 DW_FORM_GNU_str_index.
2524 (follow_die_sig): Update to use type_offset_in_section.
2525 (decode_locdesc): New case DW_OP_GNU_addr_index.
2526 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2527 DW_FORM_GNU_str_index.
2528 (cu_debug_loc_section): New function.
2529 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2530 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2531 Free DWO files if present.
2532 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2534 Refactor DIE reading.
2535 * dwarf2read.c (dwarf2_per_objfile): Replace members
2536 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2537 (die_reader_specs): New member "die_section". Temporarily make
2538 member "buffer" non-const, pending constifying all info_ptr uses.
2539 (die_reader_func_ftype): New typedef.
2540 (dw2_get_file_names_reader): New function.
2541 (dw2_get_file_names): Rewrite.
2542 (read_and_check_type_unit_head): Rename arg type_offset to
2544 (create_all_type_units): Improve debugging message.
2545 Improve dummy type unit check.
2546 (init_cu_die_reader): New arg "section". All callers updated.
2547 (init_and_read_dies_worker): New function.
2548 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2549 (init_cutu_and_read_dies_no_follow): New function.
2550 (init_cutu_and_read_dies_simple): New function.
2551 (process_psymtab_comp_unit_reader): New function.
2552 (process_psymtab_comp_unit): Delete args section,
2553 is_debug_types_section. Rewrite. All callers updated.
2554 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2555 All callers updated. Rewrite.
2556 (load_partial_comp_unit_reader): New function.
2557 (load_partial_comp_unit): Rewrite.
2558 (skip_children): New arg reader. Delete args buffer, cu.
2559 All callers updated.
2560 (skip_one_die): New arg reader. Delete args buffer, cu.
2561 All callers updated.
2562 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2563 All callers updated.
2564 (load_full_comp_unit_reader): New function.
2565 (load_full_comp_unit): Rewrite.
2566 (read_comp_unit): Delete.
2567 (read_die_and_children_1): Delete, contents moved ...
2568 (read_die_and_children): ... here.
2569 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2570 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2571 All callers updated.
2572 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2573 All callers updated.
2574 (find_partial_die): Rewrite load_all_dies support.
2575 (read_attribute_value): New arg reader. Delete args abfd, cu.
2576 All callers updated.
2577 (read_attribute): New arg reader. Delete args abfd, cu.
2578 All callers updated.
2579 (load_full_type_unit): Add assert.
2580 (read_signatured_type_reader): New function.
2581 (read_signatured_type): Rewrite.
2582 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2583 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2584 All callers updated. Set per_cu->cu = NULL after freeing it.
2585 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2586 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2587 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2588 (set_die_type): Update.
2589 (get_die_type_at_offset): Update.
2590 (read_file_scope): Call prepare_one_comp_unit.
2591 (read_type_unit_scope): Ditto.
2592 (prepare_one_comp_unit): Set producer if present.
2594 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2596 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2597 gettext function on `error'.
2599 2012-04-27 Doug Evans <dje@google.com>
2601 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2604 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2605 Tom Tromey <tromey@redhat.com>
2607 * breakpoint.c (struct breakpoint_objfile_data)
2608 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2609 <exception_probes>: New fields.
2610 (free_breakpoint_probes): New function.
2611 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2612 `_Unwind_DebugHook'.
2613 (create_exception_master_breakpoint): Likewise.
2614 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2615 * infrun.c: Including necessary header files for handling SystemTap
2617 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2618 via SystemTap probes.
2619 (check_exception_resume): Remove `func' argument. Handle exception
2620 unwinding breakpoint set via a SystemTap probe.
2621 (insert_exception_resume_from_probe): New function.
2623 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2624 Tom Tromey <tromey@redhat.com>
2625 Jan Kratochvil <jan.kratochvil@redhat.com>
2627 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2628 (COMMON_OBS): Likewise.
2629 (HFILES_NO_SRCDIR): Add `probe'.
2630 * NEWS: Mention support for static and SystemTap probes.
2631 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2632 SystemTap probes' arguments parser.
2633 * arm-linux-tdep.c: Including headers needed to perform the parsing
2634 of SystemTap probes' arguments.
2635 (arm_stap_is_single_operand): New function.
2636 (arm_stap_parse_special_token): Likewise.
2637 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2638 probes' arguments parser.
2639 * ax-gdb.c (require_rvalue): Removing static declaration.
2640 (gen_expr): Likewise.
2641 * ax-gdb.h (gen_expr): Declaring function.
2642 (require_rvalue): Likewise.
2643 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2644 (bkpt_probe_breakpoint_ops): New variable.
2645 (momentary_breakpoint_from_master): Set the `probe' value.
2646 (add_location_to_breakpoint): Likewise.
2647 (break_command_1): Using proper breakpoint_ops according to the
2648 argument passed by the user in the command line.
2649 (bkpt_probe_insert_location): New function.
2650 (bkpt_probe_remove_location): Likewise.
2651 (bkpt_probe_create_sals_from_address): Likewise.
2652 (bkpt_probe_decode_linespec): Likewise.
2653 (tracepoint_probe_create_sals_from_address): Likewise.
2654 (tracepoint_probe_decode_linespec): Likewise.
2655 (tracepoint_probe_breakpoint_ops): New variable.
2656 (trace_command): Using proper breakpoint_ops according to the
2657 argument passed by the user in the command line.
2658 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2659 static probes on breakpoints and tracepoints.
2660 * breakpoint.h (struct bp_location) <probe>: New field.
2661 * cli-utils.c (skip_spaces_const): New function.
2662 (extract_arg): Likewise.
2663 * cli-utils.h (skip_spaces_const): Likewise.
2664 (extract_arg): Likewise.
2665 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2666 * configure.ac: Append `stap-probe.o' to be generated when ELF
2668 * configure: Regenerate.
2669 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2670 * elfread.c: Include `probe.h' and `arch-utils.h'.
2671 (probe_key): New variable.
2672 (elf_get_probes): New function.
2673 (elf_get_probe_argument_count): Likewise.
2674 (elf_evaluate_probe_argument): Likewise.
2675 (elf_compile_to_ax): Likewise.
2676 (elf_symfile_relocate_probe): Likewise.
2677 (stap_probe_key_free): Likewise.
2678 (elf_probe_fns): New variable.
2679 (elf_sym_fns): Add `sym_probe_fns' value.
2680 (elf_sym_fns_lazy_psyms): Likewise.
2681 (elf_sym_fns_gdb_index): Likewise.
2682 (_initialize_elfread): Initialize objfile cache for static
2684 * gdb_vecs.h (struct probe): New forward declaration.
2685 (probe_p): New VEC declaration.
2686 * gdbarch.c: Regenerate.
2687 * gdbarch.h: Regenerate.
2688 * gdbarch.sh (stap_integer_prefix): New variable.
2689 (stap_integer_suffix): Likewise.
2690 (stap_register_prefix): Likewise.
2691 (stap_register_suffix): Likewise.
2692 (stap_register_indirection_prefix): Likewise.
2693 (stap_register_indirection_suffix): Likewise.
2694 (stap_gdb_register_prefix): Likewise.
2695 (stap_gdb_register_suffix): Likewise.
2696 (stap_is_single_operand): New function.
2697 (stap_parse_special_token): Likewise.
2698 (struct stap_parse_info): Forward declaration.
2699 * i386-tdep.c: Including headers needed to perform the parsing
2700 of SystemTap probes' arguments.
2701 (i386_stap_is_single_operand): New function.
2702 (i386_stap_parse_special_token): Likewise.
2703 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2704 probes' arguments parser.
2705 * i386-tdep.h (i386_stap_is_single_operand): New function.
2706 (i386_stap_parse_special_token): Likewise.
2707 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2708 * mipsread.c (ecoff_sym_fns): Likewise.
2709 * objfiles.c (objfile_relocate1): Support relocation for static
2711 * parse.c (prefixify_expression): Remove static declaration.
2712 (initialize_expout): Likewise.
2713 (reallocate_expout): Likewise.
2714 * parser-defs.h (initialize_expout): Declare function.
2715 (reallocate_expout): Likewise.
2716 (prefixify_expression): Likewise.
2717 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2718 of SystemTap probes' arguments.
2719 (ppc_stap_is_single_operand): New function.
2720 (ppc_stap_parse_special_token): Likewise.
2721 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2722 probes' arguments parser.
2723 * probe.c: New file, for generic statically defined probe support.
2724 * probe.h: Likewise.
2725 * s390-tdep.c: Including headers needed to perform the parsing of
2726 SystemTap probes' arguments.
2727 (s390_stap_is_single_operand): New function.
2728 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2729 probes' arguments parser.
2730 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2731 * stap-probe.c: New file, for SystemTap probe support.
2732 * stap-probe.h: Likewise.
2733 * symfile.h: Include `gdb_vecs.h'.
2734 (struct sym_probe_fns): New struct.
2735 (struct sym_fns) <sym_probe_fns>: New field.
2736 * symtab.c (init_sal): Initialize `probe' field.
2737 * symtab.h (struct probe): Forward declaration.
2738 (struct symtab_and_line) <probe>: New field.
2739 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2741 (stop_tracing): Likewise.
2742 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2744 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2745 Tom Tromey <tromey@redhat.com>
2747 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2748 and to compile agent expressions.
2749 * infrun.c (siginfo_make_value): New argument `ignore'.
2750 (siginfo_funcs): New struct.
2751 (_initialize_infrun): New argument when calling
2752 `create_internalvar_type_lazy'.
2753 * thread.c (thread_id_make_value): New argument `ignore'.
2754 (thread_funcs): New struct.
2755 (_initialize_thread): New argument when calling
2756 `create_internalvar_type_lazy'.
2757 * tracepoint.c (sdata_make_value): New argument `ignore'.
2758 (sdata_funcs): New struct.
2759 (_initialize_tracepoint): New argument when calling
2760 `create_internalvar_type_lazy'.
2761 * value.c (make_value): New struct.
2762 (create_internalvar_type_lazy): New argument `data'.
2763 (compile_internalvar_to_ax): New function.
2764 (value_of_internalvar): Properly handling `make_value' case.
2765 (clear_internalvar): Likewise.
2766 (show_convenience): Adding `TRY_CATCH' block.
2767 * value.h (internalvar_make_value): Delete, replace by...
2768 (struct internalvar_funcs): ... this.
2769 (create_internalvar_type_lazy) <fun>: Delete argument.
2770 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2771 (compile_internalvar_to_ax): New function.
2772 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2773 (tlb_funcs): New struct.
2774 (_initialize_windows_tdep): New argument when calling
2775 `create_internalvar_type_lazy'.
2777 2012-04-27 Mark Wielaard <mjw@redhat.com>
2779 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2780 see whether it is an address or a constant offset from DW_AT_low_pc.
2781 (dwarf2_record_block_ranges): Likewise.
2782 (read_partial_die): Likewise.
2784 2012-04-26 Mark Wielaard <mjw@redhat.com>
2786 * MAINTAINERS (Write After Approval): Add myself to the list.
2788 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2790 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2791 (proc_prettyprint_signal): Likewise.
2792 (proc_prettyprint_faultset): Likewise.
2793 (proc_prettyprint_fault): Likewise.
2794 (proc_prettyprint_actionset): Likewise.
2795 (proc_prettyprint_flags): Move to new proc-flags.c section.
2796 (proc_prettyfprint_flags): New prototype.
2797 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2798 (proc_syscall, proc_cursig): Likewise.
2799 (proc_set_kill_on_last_close): Likewise.
2800 (proc_unset_kill_on_last_close): Likewise.
2801 (proc_set_watchpoint): Make static.
2802 (proc_delete_dead_threads): Likewise.
2803 (procfs_set_watchpoint): Likewise.
2804 (_initialize_procfs): Add prototype.
2805 * proc-events.c: Include proc-utils.h.
2806 (init_syscall_table): Make static.
2807 * proc-api.c (_initialize_proc_api): Add prototype.
2808 * proc-flags.c: Include proc-utils.h.
2810 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2812 * configure.ac: Add AC_ARG_PROGRAM.
2813 * configure: Regenerate.
2815 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2817 Fix DW_AT_lower_bound defaults for DWARF-4+.
2818 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2819 high. New variable low_default_is_valid. Implement DWARF-4+
2820 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2821 no default by the DWARF standard.
2823 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2824 Maciej W. Rozycki <macro@codesourcery.com>
2826 * infrun.c (handle_inferior_event): Move the check for return
2827 trampolines ahead of the check for function trampolines.
2828 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2829 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2830 (mips_str_mips16_ret_stub): Likewise.
2831 (mips_str_call_fp_stub): Likewise.
2832 (mips_str_call_stub): Likewise.
2833 (mips_str_fn_stub): Likewise.
2834 (mips_str_pic): Likewise.
2835 (mips_in_frame_stub): New function.
2836 (mips_unwind_pc): Return the return address rather than the PC
2837 if the PC of an intermediate frame is inside a call thunk.
2838 (mips_is_stub_suffix): New function.
2839 (mips_is_stub_mode): Likewise.
2840 (mips_get_mips16_fn_stub_pc): Likewise.
2841 (mips_skip_mips16_trampoline_code): Update to handle all the
2842 currently generated stub types. Don't recurse into __fn_stub
2843 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2844 Use cooked register accesses.
2845 (mips_in_return_stub): Reintroduce function.
2846 (mips_skip_trampoline_code): Traverse trampolines recursively.
2847 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2849 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2853 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2855 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2856 * features/arm-with-m-vfp-d16.xml: New file. Describes
2857 Cortex-M with VFPv4-sp-d16 FPU register layout.
2858 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2859 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2860 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2861 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2862 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2864 2012-04-25 Doug Evans <dje@google.com>
2866 * cli/cli-decode.c (print_doc_line): Use stream instead of
2869 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2871 * features/arm-with-iwmmxt.c: Regenerate.
2872 * features/arm-with-m-fpa-layout.c: Likewise.
2873 * features/arm-with-m.c: Likewise.
2874 * features/arm-with-neon.c: Likewise.
2875 * features/arm-with-vfpv2.c: Likewise.
2876 * features/arm-with-vfpv3.c: Likewise.
2877 * features/mips-dsp-linux.c: Likewise.
2878 * features/mips-linux.c: Likewise.
2879 * features/mips64-dsp-linux.c: Likewise.
2880 * features/mips64-linux.c: Likewise.
2881 * features/s390-linux32.c: Likewise.
2882 * features/s390-linux32v1.c: Likewise.
2883 * features/s390-linux32v2.c: Likewise.
2884 * features/s390-linux64.c: Likewise.
2885 * features/s390-linux64v1.c: Likewise.
2886 * features/s390-linux64v2.c: Likewise.
2887 * features/s390x-linux64.c: Likewise.
2888 * features/s390x-linux64v1.c: Likewise.
2889 * features/s390x-linux64v2.c: Likewise.
2890 * features/tic6x-c62x-linux.c: Likewise.
2891 * features/tic6x-c62x.c: Likewise.
2892 * features/tic6x-c64x-linux.c: Likewise.
2893 * features/tic6x-c64x.c: Likewise.
2894 * features/tic6x-c64xp-linux.c: Likewise.
2895 * features/tic6x-c64xp.c: Likewise.
2896 * target-descriptions.c: Only generate `field_type' and `type'
2897 variables when needed.
2899 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2901 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2903 2012-04-25 Doug Evans <dje@google.com>
2905 Initial pass at Go language support.
2907 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2909 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2910 (YYFILES): Add go-exp.c.
2911 (YYOBJ): Add go-exp.o.
2912 (local-maintainer-clean): Delete go-exp.c.
2913 * defs.h (enum language): Add language_go.
2914 * dwarf2read.c: #include "go-lang.h".
2915 (fixup_go_packaging): New function.
2916 (process_full_comp_unit): Call it when processing Go CUs.
2917 (dwarf2_physname): Add Go support.
2918 (read_file_scope): Handle missing language spec for GNU Go.
2919 (set_cu_language): Handle DW_LANG_Go.
2920 * go-exp.y: New file.
2921 * go-lang.h: New file.
2922 * go-lang.c: New file.
2923 * go-typeprint.c: New file.
2924 * go-valprint.c: New file.
2925 * symtab.c: #include "go-lang.h".
2926 (symbol_set_language): Handle language_go.
2927 (symbol_find_demangled_name, symbol_set_names): Ditto.
2928 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2930 2012-04-24 Jim Meyering <meyering@redhat.com>
2932 avoid a few strncpy-induced buffer overruns
2933 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2934 fname and psargs before trying to concatenate.
2935 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2936 "name" before applying strchr.
2938 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2940 * CONTRIBUTE: Use unified diff instead of context diff when
2943 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2945 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2946 code. Handle JR.HB correctly.
2948 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2951 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2952 with the other MIPS16 helpers.
2954 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2956 * observer.sh: Conditionally declare `args', thus cleaning up
2957 unused instances of this variable.
2959 2012-04-24 Yao Qi <yao@codesourcery.com>
2961 Revert this patch to allow breakpoint always-inserted
2963 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2964 * breakpoint.c: Include record.h.
2965 (breakpoints_always_inserted_mode): Return false when the record
2968 * breakpoint.c (iterate_over_bp_locations): New.
2969 * breakpoint.h: Declare.
2970 New typedef walk_bp_location_callback.
2971 * record.c (record_open): Call record_init_record_breakpoints.
2972 (record_sync_record_breakpoints): New.
2973 (record_init_record_breakpoints): New.
2974 * NEWS: Mention supporting breakpoint always-inserted mode in
2977 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2979 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2982 2012-04-24 Yao Qi <yao@codesourcery.com>
2984 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2985 (is_catchpoint): ... it.
2986 (print_one_breakpoint_location): Caller update.
2987 * breakpoint.h: Update declaration.
2989 2012-04-23 David S. Miller <davem@davemloft.net>
2991 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2993 2012-04-23 Tom Tromey <tromey@redhat.com>
2995 * buildsym.c (add_free_pendings): Remove.
2996 * buildsym.h (add_free_pendings): Remove.
2998 2012-04-23 Doug Evans <dje@google.com>
3000 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
3001 attr.u.unsnd instead of attr.u.addr.
3002 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
3003 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
3005 (dump_die_shallow): Update cases DW_FORM_ref_addr,
3006 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
3008 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
3010 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
3012 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
3013 (mips_o32_return_value): Likewise.
3014 (mips_o64_return_value): Likewise.
3016 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
3018 * ada-lang.c (ada_evaluate_subexp): Add cases for
3019 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
3020 their treatment in eval.c.
3022 2012-04-21 David S. Miller <davem@davemloft.net>
3024 * sparc-tdep.c (X_DISP10): Define.
3025 (sparc_analyze_control_transfer): Handle compare-and-branch.
3027 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
3029 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
3030 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
3032 2012-04-20 Nigel Stephens <nigel@mips.com>
3033 Maciej W. Rozycki <macro@codesourcery.com>
3035 * mips-tdep.c (mips_float_register_p): New function.
3036 (mips_convert_register_float_case_p): Use mips_float_register_p.
3037 (mips_register_type): Likewise.
3038 (mips_print_register): Likewise.
3039 (print_gp_register_row): Likewise.
3040 (mips_print_registers_info): Likewise.
3042 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
3044 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
3047 2012-04-20 Andrew Pinski <apinski@cavium.com>
3049 * MAINTAINERS (Write After Approval): Add myself to the list.
3051 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3053 * MAINTAINERS: Update my e-mail address.
3055 2012-04-20 Pedro Alves <palves@redhat.com>
3057 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
3059 * configure: Regenerate.
3061 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3063 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
3065 * gdb_vecs.h: Declare `const_char_ptr' VEC.
3067 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3069 Fix compilation compatibility with python-2.4
3070 * python/py-type.c (convert_field): Cast ADDRSTRING for
3071 PyObject_SetAttrString as non-const. New comment.
3073 2012-04-19 Tom Tromey <tromey@redhat.com>
3075 * top.c (quit_target): Use all_cleanups.
3076 * main.c (captured_command_loop): Use all_cleanups.
3077 * exceptions.c (throw_exception): Use all_cleanups.
3079 2012-04-19 Pedro Alves <palves@redhat.com>
3081 * Makefile.in (GNULIB_BUILDDIR): New.
3082 (LIBGNU, INCGNU, GNULIB_H): Adjust.
3083 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3084 (CLEANDIRS). Remove gnulib/import.
3085 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3087 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3088 (gnulib/import/Makefile): Replace gnulib/import with
3089 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3090 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3091 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3092 acx_configure_dir.m4.
3093 * acinclude.m4: Include acx_configure_dir.m4.
3094 * acx_configure_dir.m4: New file.
3095 * aclocal.m4: Regenerate.
3096 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3097 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3098 (GNULIB): New variable.
3099 (GNULIB_STDINT_H): Adjust.
3100 (AC_OUTPUT): Don't output gnulib/Makefile.
3101 * gdb/defs.h: Include build-gnulib/config.h.
3102 * aclocal.m4: Regenerate.
3103 * config.in: Regenerate.
3104 * configure: Regenerate.
3106 * gnulib/Makefile.in: New file.
3107 * gnulib/configure.ac: New file.
3108 * gnulib/aclocal.m4: New file.
3109 * gnulib/config.in: New file.
3110 * gnulib/configure: New file.
3111 * gnulib/: Re-run gnulib-tool to adjust.
3113 2012-04-19 Doug Evans <dje@google.com>
3115 * cleanups.h (struct cleanup): Move to cleanups.c.
3116 (make_cleanup_dtor_ftype): New typedef.
3117 (make_cleanup_dtor): Use it.
3118 (ALL_CLEANUPS): Replace with ...
3119 (all_cleanups): ... this. Declare. All uses updated.
3120 * cleanups.c: #include "gdb_assert.h".
3121 (sentinel_cleanup): New static global.
3122 (SENTINEL_CLEANUP): Define.
3123 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3124 (make_my_cleanup2): Assert result is non-NULL.
3125 (all_cleanups): New function.
3126 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3129 2012-04-19 Pedro Alves <palves@redhat.com>
3131 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3132 Adjust paths to gnulib imported files.
3134 2012-04-19 Pedro Alves <palves@redhat.com>
3136 * gnulib/: Move whole directory ...
3137 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3138 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3139 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3140 (aclocal_m4_deps): Adjust.
3141 * aclocal.m4: Regenerate.
3142 * configure: Regenerate.
3143 * configure.ac: Adjust AC_OUTPUT output.
3145 2012-04-19 Yao Qi <yao@codesourcery.com>
3147 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3149 * vec.c: Move it ...
3150 * common/vec.c: ... here.
3151 * vec.h: Move it ...
3152 * common/vec.h: ... here.
3154 2012-04-19 Yao Qi <yao@codesourcery.com>
3156 * gdb-code-style.el: New.
3158 2012-04-18 Pedro Alves <palves@redhat.com>
3160 Update gnulib from latest git.
3161 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3163 * gnulib/Makefile.am: Update.
3164 * gnulib/dummy.c: Update.
3165 * gnulib/extra/arg-nonnull.h: Update.
3166 * gnulib/extra/c++defs.h: Update.
3167 * gnulib/extra/update-copyright: Update.
3168 * gnulib/extra/warn-on-use.h: Update.
3169 * gnulib/inttypes.in.h: Update.
3170 * gnulib/m4/00gnulib.m4: Update.
3171 * gnulib/m4/extensions.m4: Update.
3172 * gnulib/m4/gnulib-cache.m4: Update.
3173 * gnulib/m4/gnulib-common.m4: Update.
3174 * gnulib/m4/gnulib-comp.m4: Update.
3175 * gnulib/m4/gnulib-tool.m4: Update.
3176 * gnulib/m4/include_next.m4: Update.
3177 * gnulib/m4/inttypes-pri.m4: Update.
3178 * gnulib/m4/inttypes.m4: Update.
3179 * gnulib/m4/longlong.m4: Update.
3180 * gnulib/m4/memchr.m4: Update.
3181 * gnulib/m4/memmem.m4: Update.
3182 * gnulib/m4/mmap-anon.m4: Update.
3183 * gnulib/m4/multiarch.m4: Update.
3184 * gnulib/m4/onceonly.m4: Update.
3185 * gnulib/m4/stddef_h.m4: Update.
3186 * gnulib/m4/stdint.m4: Update.
3187 * gnulib/m4/string_h.m4: Update.
3188 * gnulib/m4/warn-on-use.m4: Update.
3189 * gnulib/m4/wchar_h.m4: Update.
3190 * gnulib/m4/wchar_t.m4: Update.
3191 * gnulib/m4/wint_t.m4: Update.
3192 * gnulib/memchr.c: Update.
3193 * gnulib/memmem.c: Update.
3194 * gnulib/stddef.in.h: Update.
3195 * gnulib/stdint.in.h: Update.
3196 * gnulib/str-two-way.h: Update.
3197 * gnulib/string.in.h: Update.
3198 * gnulib/wchar.in.h: Update.
3200 * gnulib/extra/arg-nonnull.h: Delete.
3201 * gnulib/extra/c++defs.h: Delete.
3202 * gnulib/extra/warn-on-use.h: Delete.
3203 * gnulib/m4/wchar_h.m4: Delete.
3204 * gnulib/m4/wint_t.m4: Delete.
3205 * gnulib/wchar.in.h: Delete.
3207 * gnulib/extra/snippets/arg-nonnull.h: New.
3208 * gnulib/extra/snippets/c++defs.h: New.
3209 * gnulib/extra/snippets/warn-on-use.h: New.
3211 * aclocal.m4: Regenerate.
3212 * config.in: Regenerate.
3213 * configure: Regenerate.
3214 * gnulib/Makefile.in: Regenerate.
3216 2012-04-18 Pedro Alves <palves@redhat.com>
3218 Reimport the update-copyright module from gnulib
3219 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3221 * configure: Regenerate.
3222 * gnulib/Makefile.am: Update.
3223 * gnulib/Makefile.in: Regenerate.
3224 * gnulib/extra/update-copyright: Update.
3225 * gnulib/m4/gnulib-cache.m4: Update.
3226 * gnulib/m4/gnulib-comp.m4: Update.
3228 2012-04-18 Tristan Gingold <gingold@adacore.com>
3230 * configure.ac (aix): Put -lpthread into libs.
3231 * configure: Regenerate.
3233 2012-04-18 Tom Tromey <tromey@redhat.com>
3235 * linespec.c (convert_linespec_to_sals): Don't use
3237 (compare_msymbols): Arguments are minsym_and_objfile, not
3238 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3240 2012-04-18 Pedro Alves <palves@redhat.com>
3242 Revert gnulib/ part of:
3243 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3244 Copyright year update in most files (performed by copyright.sh).
3246 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3248 Fix 64-bit constants on 32-bit hosts.
3249 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3250 from unsigned long to ULONGEST.
3251 (read_signed_leb128): Change declaration return type from long to
3253 (dwarf2_const_value_attr): Change declaration parameter value from long
3255 (dwarf2_compute_name): Change variable value from long to LONGEST.
3256 (read_unsigned_leb128): Change return type, variable result and some
3257 casts from unsigned long to ULONGEST.
3258 (read_signed_leb128): Change return type, variable result and some
3259 casts from long to LONGEST.
3260 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3261 value from long to LONGEST.
3262 (dwarf2_const_value): Change variable value from long to LONGEST.
3263 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3264 plongest and hex_string.
3265 * symtab.h (struct general_symbol_info): Change ivalue from long to
3266 LONGEST, remove the comment.
3267 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3268 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3270 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3273 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3274 * ada-lang.c (ada_discrete_type_high_bound)
3275 (ada_discrete_type_low_bound): Fix function comment. Use
3276 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3277 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3278 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3279 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3280 Use TYPE_FIELD_ENUMVAL.
3281 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3282 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3283 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3284 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3286 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3287 * dwarf2read.c (process_enumeration_scope): Likewise.
3288 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3290 (class StructMainTypePrettyPrinter): Support also
3291 FIELD_LOC_KIND_ENUMVAL.
3292 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3294 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3295 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3296 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3297 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3299 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3300 accommodate enumval.
3301 (struct call_site): Adjust loc_kind to accommodate enumval.
3302 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3303 (TYPE_FIELD_ENUMVAL): New macros.
3304 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3305 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3307 * p-typeprint.c (pascal_type_print_base): Likewise.
3308 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3310 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3311 * python/py-type.c (convert_field): New variable addrstring. Use
3312 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3313 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3314 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3315 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3317 * valprint.c (generic_val_print): Likewise.
3319 2012-04-17 Doug Evans <dje@google.com>
3321 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3323 * dwarf2read.c: Whitespace fixes.
3324 (lookup_signatured_type): Tweak comment.
3325 (get_die_type_at_offset): Fix comment.
3327 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3329 * xcoffread.c (xcoff_secnum_to_sections): New function.
3330 (secnum_to_section, secnum_to_bfd_section): Reimplement
3331 using xcoff_secnum_to_sections. Rename "secnum" parameter
3333 (RECORD_MINIMAL_SYMBOL): Delete.
3334 (record_minimal_symbol): New function.
3335 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3336 by call to record_minimal_symbol and set misc_func_recorded
3337 to 1. Set last_csect_sec to the XCOFF section index instead
3338 of GDB's section_offset index. Update calls to
3339 prim_record_minimal_symbol_and_info to pass the BFD section
3342 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3344 * xcoffread.c (read_xcoff_symtab): Delete variables
3345 last_csect_val and last_csect_sec and associated code.
3347 2012-04-17 Doug Evans <dje@google.com>
3349 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3350 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3351 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3352 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3354 * cleanups.h: New file.
3355 * cleanups.c: New file.
3356 * Makefile.in (SFILES): Add cleanups.c.
3357 (HFILES_NO_SRCDIR): Add cleanups.h.
3358 (COMMON_OBS): Add cleanups.o.
3359 * defs.h (struct cleanup): Moved to cleanups.h.
3360 (do_cleanups,do_final_cleanups): Ditto.
3361 (discard_cleanups,discard_final_cleanups): Ditto
3362 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3363 (save_cleanups,save_final_cleanups): Ditto.
3364 (restore_cleanups,restore_final_cleanups): Ditto.
3365 (null_cleanup): Ditto.
3366 (make_my_cleanup,make_my_cleanup2): Ditto.
3367 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3368 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3369 (do_cleanups,do_final_cleanups): Ditto.
3370 (discard_cleanups,discard_final_cleanups): Ditto
3371 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3372 (save_cleanups,save_final_cleanups): Ditto.
3373 (restore_cleanups,restore_final_cleanups): Ditto.
3374 (null_cleanup): Ditto.
3375 (make_my_cleanup,make_my_cleanup2): Ditto.
3376 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3378 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3380 (make_cleanup_dyn_string_delete): Ditto.
3381 (make_cleanup_ui_file_delete): Ditto.
3382 (make_cleanup_ui_out_redirect_pop): Ditto.
3383 (make_cleanup_free_section_addr_info): Ditto.
3384 (make_cleanup_restore_integer): Ditto.
3385 (make_cleanup_unpush_target): Ditto.
3386 (make_cleanup_value_free_to_mark): Ditto.
3387 (make_cleanup_value_free): Ditto.
3388 (make_cleanup_free_so): Ditto.
3390 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3392 New option "set debug auto-load".
3393 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3394 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3395 (auto_load_safe_path_vec_update)
3396 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3398 (file_is_auto_load_safe): New parameters debug_fmt and ....
3399 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3400 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3401 caller by explanatory string.
3402 (_initialize_auto_load): Register "set debug auto-load".
3403 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3405 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3406 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3407 by explanatory string.
3408 * main.c (captured_main): Likewise.
3409 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3410 (source_section_scripts): Likewise.
3412 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3414 New option "set auto-load safe-path".
3415 * NEWS: New commands "set auto-load safe-path"
3416 and "show auto-load safe-path".
3417 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3418 (auto_load_safe_path, auto_load_safe_path_vec)
3419 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3420 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3421 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3422 (source_gdb_script_for_objfile): New variable is_safe. Call
3423 file_is_auto_load_safe. Return if it is not.
3424 (struct loaded_script): New field loaded.
3425 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3426 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3427 output "Missing" to "No".
3428 (_initialize_auto_load): New variable cmd. Initialize
3429 auto_load_safe_path. Register "set auto-load safe-path",
3430 "show auto-load safe-path" and "add-auto-load-safe-path".
3431 * auto-load.h (maybe_add_script): Add parameter loaded.
3432 (file_is_auto_load_safe): New declaration.
3433 * config.in: Regenerate.
3434 * configure: Regenerate.
3435 * configure.ac: New parameters --with-auto-load-safe-path
3436 and --without-auto-load-safe-path.
3437 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3438 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3439 * main.c (captured_main): Check file_is_auto_load_safe for
3441 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3442 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3443 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3446 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3448 auto-load: Implementation.
3449 * NEWS: New descriptions for "info auto-load",
3450 "info auto-load gdb-scripts", "info auto-load python-scripts",
3451 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3452 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3453 and "show auto-load-scripts". New description for "set auto-load",
3454 "show auto-load", "set auto-load gdb-scripts",
3455 "show auto-load gdb-scripts", "set auto-load python-scripts",
3456 "show auto-load python-scripts", "set auto-load local-gdbinit",
3457 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3458 "show auto-load libthread-db".
3459 * auto-load.c: Remove include python/python-internal.h. Add includes
3460 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3462 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3463 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3464 (gdbpy_global_auto_load): Rename to ...
3465 (global_auto_load): ... here.
3466 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3467 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3468 (script_language_gdb, source_gdb_script_for_objfile): New.
3469 (struct loaded_script): New field language.
3470 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3472 (maybe_add_script): Add parameter language. Drop redundant
3473 entry.full_path initialization. Initialize entry.language and
3475 (auto_load_objfile_script): Change parameter suffix to language.
3476 Remove the call of maybe_add_script.
3477 Call language->source_script_for_objfile.
3478 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3480 (collect_matching_scripts): Adjust it for
3481 struct collect_matching_scripts_data.
3482 (auto_load_info_scripts_pattern_nl): New variable.
3483 (info_auto_load_scripts): Rename to ...
3484 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3485 for struct collect_matching_scripts_data.
3486 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3487 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3488 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3489 (auto_load_info_cmdlist_get): New.
3490 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3491 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3492 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3493 "info auto-load local-gdbinit".
3494 * auto-load.h (struct script_language): New.
3495 (gdbpy_global_auto_load): Rename to ...
3496 (global_auto_load): ... here.
3497 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3498 (auto_load_local_gdbinit_loaded): New declarations.
3499 (maybe_add_script): New parameter language.
3500 (auto_load_objfile_script): Change parameter suffix to language.
3501 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3502 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3503 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3505 * linux-thread-db.c: Include auto-load.h and ctype.h.
3506 (auto_load_thread_db, show_auto_load_thread_db): New.
3507 (struct thread_db_info): New field filename.
3508 (delete_thread_db_info): Call xfree for FILENAME.
3509 (try_thread_db_load): Initialize FILENAME.
3510 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3511 if !AUTO_LOAD_THREAD_DB.
3512 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3513 (_initialize_thread_db): Install auto_load_thread_db
3514 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3515 as "info auto-load libthread-db".
3516 * main.c (captured_main): Rename gdbpy_global_auto_load to
3517 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3518 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3519 (print_gdb_help): Extend the help for 'local init file'.
3520 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3521 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3522 (auto_load_scripts): Rename to ...
3523 (auto_load_python_scripts): ... here, update the comment.
3524 (gdbpy_load_auto_script_for_objfile): New declaration.
3525 (show_auto_load_python_scripts, script_language_python)
3526 (gdbpy_load_auto_script_for_objfile): New.
3527 (source_section_scripts): Refactor the code.
3528 (load_auto_scripts_for_objfile): Rename to ...
3529 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3530 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3531 (info_auto_load_python_scripts): New.
3532 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3533 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3534 Register "set auto-load-scripts" as its deprecated alias. Register
3535 "info auto-load python-scripts". Register "info auto-load-scripts" as
3536 its deprecated alias.
3537 (load_auto_scripts_for_objfile): Rename to ...
3538 (gdbpy_load_auto_scripts_for_objfile): ... here.
3539 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3540 (gdbpy_load_auto_scripts_for_objfile): ... here.
3542 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3544 auto-load: Move files.
3545 * Makefile.in (SFILES): Add auto-load.c.
3546 (HFILES_NO_SRCDIR): Add auto-load.h.
3547 (COMMON_OBS): Add auto-load.o.
3548 (distclean): Change .gdbinit for gdb-gdb.gdb.
3549 * auto-load.c: New file, with parts from python/py-auto-load.c.
3550 * auto-load.h: New file, with parts from python/python.h.
3551 * configure: Regenerate.
3552 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3553 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3554 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3555 * main.c: Include auto-load.h.
3556 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3557 command.h, observer.h and progspace.h to auto-load.c. Add include
3559 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3560 (struct loaded_script, auto_load_pspace_data)
3561 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3562 (hash_loaded_script_entry, eq_loaded_script_entry)
3563 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3564 (maybe_add_script): Move to auto-load.c.
3565 (source_section_scripts): Change maybe_add_script parameters passing,
3566 use script_not_found_warning_print.
3567 (clear_section_scripts, auto_load_objfile_script)
3568 (auto_load_new_objfile, loaded_script_ptr)
3569 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3570 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3571 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3572 auto_load_new_objfile and info_auto_load_scripts initizations to
3574 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3576 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3579 * charset.c (find_charset_names): Remove variables ix and elt.
3580 Use free_char_ptr_vec.
3581 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3582 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3583 debugdir_end. New variable debugdir_len.
3584 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3585 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3587 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3588 and elt. Use free_char_ptr_vec.
3589 * source.c (add_path): Remove variables argv, arg and argv_index.
3590 New variables dir_vec, back_to, ix and name.
3591 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3592 make_cleanup_freeargv. Remove variable separator. Simplify the code
3593 no longer expecting DIRNAME_SEPARATOR.
3594 (openp): Remove variable p, p1 and len. New variables dir_vec,
3595 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3596 no longer expecting DIRNAME_SEPARATOR.
3597 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3598 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3600 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3601 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3602 (dirnames_to_char_ptr_vec): New functions.
3604 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3607 * source.c (add_path): Remove always true conditional 'p == 0' and
3608 unindent its code block.
3610 2012-04-17 Pedro Alves <palves@redhat.com>
3612 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3613 (FIELD_BITPOS_LVAL): ... this.
3614 (FIELD_BITPOS): New.
3615 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3616 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3617 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3619 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3621 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3622 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3623 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3626 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3628 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3629 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3630 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3631 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3632 * jv-lang.c (java_link_class_type): Likewise, once.
3633 * stabsread.c (read_enum_type): Likewise.
3635 2012-04-16 Yao Qi <yao@codesourcery.com>
3637 * common/agent.c (agent_run_command): Add one more parameter `len'.
3639 * common/agent.h: Update declaration.
3640 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3642 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3644 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3647 * value.c (value_actual_type): New function.
3648 * value.h (value_actual_type): New declaration.
3649 * varobj.c (update_type_if_necessary): New function.
3650 (varobj_create): Call value_actual_type instead of
3652 (install_dynamic_child): distinct changed and type changed MI variable
3654 (update_dynamic_varobj_children): Updated for install_dynamic_child
3655 change. All callers updated.
3656 (varobj_update): Support for MI variable object type change if
3657 the value changed and RTTI is used to determine the type.
3658 (create_child_with_value): Call value_actual_type instead of
3660 (adjust_value_for_child_access): Extended with a new parameter which
3661 specify whether the given value should be casted to enclosing type.
3662 All callers updated.
3664 2012-04-14 Yao Qi <yao@codesourcery.com>
3666 Import gnulib module inttypes from git
3667 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3668 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3669 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3670 gnulib/m4/inttypes-pri.m4
3671 * aclocal.m4, config.in, configure: Regenerated.
3672 * gnulib/Makefile.am: Update.
3673 * gnulib/Makefile.in: Update.
3674 * gnulib/m4/gnulib-cache.m4: Update.
3675 * gnulib/m4/gnulib-comp.m4: Update.
3676 * gnulib/inttypes.in.h: New.
3677 * gnulib/m4/inttypes-pri.m4: New.
3678 * gnulib/m4/inttypes.m4: New.
3680 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3682 * infrun.c (resume): Update PC address to the real PC after
3683 preparing to do displaced stepping.
3685 2012-04-12 Doug Evans <dje@google.com>
3687 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3688 All callers updated.
3690 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3692 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3694 2012-04-12 Doug Evans <dje@google.com>
3696 * dwarf2read.c (create_all_type_units): Renamed from
3697 create_debug_types_hash_table. All callers updated.
3699 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3700 local type_sig to sig_type, type_offset to type_offset_in_tu.
3701 (hash_signatured_type): Renamed from hash_type_signature,
3702 all callers updated.
3703 (eq_signatured_type): Renamed from eq_type_signature,
3704 all callers updated.
3705 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3706 (process_enumeration_scope): Ditto.
3707 (lookup_signatured_type_at_offset): Ditto.
3708 (load_full_type_unit, read_signatured_type): Ditto.
3710 2012-04-12 Yao Qi <yao@codesourcery.com>
3712 * remote.c (async_remote_interrupt): Correct function name in
3714 (async_remote_interrupt_twice): Ditto.
3716 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3718 * source.c (find_and_open_source): Consistently pass resulting
3719 full path through xfullpath.
3721 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3723 Provide more specific displaced-stepping memory error message.
3724 * infrun.c (displaced_step_prepare): New variable status. Call
3725 target_read_memory instead of read_memory, provide more specific
3728 2012-04-11 Tristan Gingold <gingold@adacore.com>
3731 * darwin-nat.c (darwin_execvp): Revert previous patch.
3733 2012-04-11 Tristan Gingold <gingold@adacore.com>
3736 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3739 2012-04-11 Tristan Gingold <gingold@adacore.com>
3741 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3744 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3746 New command 'explore' which helps explore values and types in
3748 * NEWS: Add an entry about the new 'explore' command.
3749 * data-directory/Makefile.in: Add gdb/command/explore.py
3750 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3751 command using the GDB Python API.
3753 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3755 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3756 extension in jump target calculation.
3758 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3760 * mips-tdep.c (mips32_next_pc): Handle JALX.
3762 2012-04-10 Yao Qi <yao@codesourcery.com>
3764 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3766 2012-04-10 Yao Qi <yao@codesourcery.com>
3768 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3769 and gnulib/m4/gnulib-tool.m4.
3771 2012-04-10 Doug Evans <dje@google.com>
3773 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3774 (load_partial_dies): Clarify comment.
3775 (find_partial_die): Support rereading type units.
3776 Clarify CU handling, if we know offset is in CU, don't search for the
3777 containing CU. Add comment regarding memory waste.
3779 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3781 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3782 i386/x32-avx and i386/x32-avx-linux.
3783 (i386/x32-expedite): New.
3784 (i386/x32-linux-expedite): Likewise.
3785 (i386/x32-avx-expedite): Likewise.
3786 (i386/x32-avx-linux-expedite): Likewise.
3787 ($(outdir)/i386/x32.dat): Likewise.
3788 ($(outdir)/i386/x32-linux.dat): Likewise.
3789 ($(outdir)/i386/x32-avx.dat): Likewise.
3790 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3792 * features/i386/x32-avx-linux.xml: New file.
3793 * features/i386/x32-avx.xml: Likewise.
3794 * features/i386/x32-core.xml: Likewise.
3795 * features/i386/x32-linux.xml: Likewise.
3796 * features/i386/x32.xml: Likewise.
3798 * features/i386/x32-avx-linux.c: New. Generated.
3799 * features/i386/x32-avx.c: Likewise.
3800 * features/i386/x32-linux.c: Likewise.
3801 * features/i386/x32.c: Likewise.
3802 * regformats/i386/x32-avx-linux.dat: Likewise.
3803 * regformats/i386/x32-avx.dat: Likewise.
3804 * regformats/i386/x32-linux.dat: Likewise.
3805 * regformats/i386/x32.dat: Likewise.
3807 2012-04-10 Tristan Gingold <gingold@adacore.com>
3809 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3810 code to kill the inferior.
3812 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3814 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3816 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3818 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3819 (yyvsp): New defines.
3820 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3822 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3824 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3826 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3828 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3831 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3833 * sparc64-tdep.c (sparc64_store_arguments)
3834 (sparc64_store_arguments): Fix coding style.
3836 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3838 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3839 complex floats, adjust some related comments and tighten a related
3841 (sparc64_extract_return_value): Handle complex floats.
3843 2012-04-07 Doug Evans <dje@google.com>
3845 * dwarf2read.c (load_partial_dies): Change condition to assert.
3847 2012-04-06 Doug Evans <dje@google.com>
3849 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3852 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3854 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3856 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3857 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3860 2012-04-05 Keith Seitz <keiths@redhat.com>
3862 * linespec.c (decode_compound): Remove.
3863 (enum offset_relative_sign): New enum.
3864 (struct line_offset): New struct.
3865 (struct linespec): New struct.
3866 (struct linespec_state): Move file_symtabs,
3867 user_filename, and user_function into struct linespec.
3868 Make result an anonymous struct holding vectors of
3869 symbolp and minsym_and_objfile_d.
3870 Add language member.
3871 (enum ls_token_type): New enum.
3872 (linespec_keywords): New array.
3873 (struct ls_token): New struct.
3874 (struct ls_parser): New struct.
3875 (linespec_lexer_lex_number): New function.
3876 (linespec_lexer_lex_keyword): New function.
3877 (is_ada_operator): New function.
3878 (skip_quote_char): New function.
3879 (copy_token_string): New function.
3880 (is_closing_quote_enclosed): New function.
3881 (find_parameter_list_end): New function.
3882 (linespec_lexer_lex_string): New function.
3883 (linespec_lexer_lex_one): New function.
3884 (linespec_lexer_consume_token): New function.
3885 (linespec_lexer_peek_token): New function.
3886 (cplusplus_error): Remove unused function.
3887 (find_methods): Update comment.
3888 (find_toplevel_char): Return const.
3889 (is_objc_method_format): Remove unused function.
3890 (find_toplevel_string): New function.
3891 (is_linespec_boundary): Remove.
3892 (symbol_not_found_error): New function.
3893 (find_method_overload_end): Remove function.
3894 (unexpected_linespec_error): New function.
3895 (keep_name_info): Remove.
3896 (linespec_parse_line_offset): New function.
3897 (linespec_parse_basic): New function.
3898 (canonicalize_linespec): New function.
3899 (decode_line_internal): Remove.
3900 (create_sals_line_offset): New function adapted from
3902 (convert_linespec_to_sals): New function.
3903 (parse_linespec): New function.
3904 (linespec_parser_new): New function.
3905 (linespec_state_destructor): Change parameter type to
3906 struct linespec_state *.
3907 Add language parameter.
3908 Remove freeing of moved members.
3909 (linespec_parser_delete): New function.
3910 (decode_line_full): Use parse_linespec and linespec_parser_new.
3911 (decode_line_1): Likewise.
3912 (decode_indirect): Rename to ...
3913 (linespec_expression_to_pc): ... this and rewrite
3914 to simply find CORE_ADDR, storing this result for later
3916 (locate_first_half): Remove.
3917 (deocde_objc): Add parameter LS.
3918 Initialize new struct collect_info members.
3919 Handle minimal symbols, too.
3920 (decode_compound): Delete.
3921 (lookup_prefix_sym): Rewrite.
3922 (compare_msymbols): New function.
3923 (find_method): Rewrite.
3924 Do not call cplusplus_error.
3925 (symtabs_from_filename): Rewrite.
3926 (collect_function_symbols): Delete.
3927 (find_function_symbols): Rewrite without ARGPTR-style
3929 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3930 (decode_dollar): Adapted and renamed to ...
3931 (linespec_parse_variable): ... this.
3932 (find_linespec_symbols): New function.
3933 (decode_label): Adapted and renamed to ...
3934 (find_label_symbols): ... this.
3935 (decode_digits_list_mode): Add and use LS argument.
3936 (decode_digits_ordinary): Likewise.
3937 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3938 If in list mode, allow any symbol class. Otherwise, only
3939 permit LOC_BLOCK symbols.
3940 (minsym_found): Update comments.
3941 (search_minsyms_for_name): Do not convert the matching symbol
3942 into a SAL. Simply push the symbol and objfile into the
3944 (decode_variable): Delete. Contents adapted into
3945 find_linespec_symbols.
3947 * cp-support.c (SKIP_SPACE): Remove.
3948 (operator_tokens): Remove unused global.
3949 (cp_validate_operator): Remove.
3950 * cp-support.h (cp_validate_operator): Remove declaration.
3952 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3954 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3955 for TYPE_VPTR_FIELDNO.
3956 * valprint.c (valprint_check_validity): Make it global, move the
3957 function comment ...
3958 * value.h (valprint_check_validity): ... to this new declaration.
3960 2012-04-02 Tristan Gingold <gingold@adacore.com>
3962 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3963 the STATE32 api for i386 state.
3964 (i386_darwin_store_inferior_registers): Likewise.
3966 2012-04-02 Tristan Gingold <gingold@adacore.com>
3968 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3970 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3973 2012-04-02 Tristan Gingold <gingold@adacore.com>
3976 * darwin-nat.c (darwin_execvp): Set binary preference.
3978 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3980 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3982 2012-03-30 Tom Tromey <tromey@redhat.com>
3984 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3985 of TRY_CATCH. Fix error handling.
3986 * python/py-value.c (convert_value_from_python): Move 'old'
3987 declaration to innermost scope.
3989 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3990 Andrey Smirnov <andrew.smirnov@gmail.com>
3992 -Wshadow warning fix.
3993 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3994 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3995 Adjust code accordingly.
3997 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3999 * ada-lang.c (symbol_completion_add): Rename parameter
4000 "encoded" into "encoded_p". Ajust code and documentation
4003 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4004 Andrey Smirnov <andrew.smirnov@gmail.com>
4006 -Wshadow warning fix.
4007 * ada-lang.c (symbol_completion_add): Rename parameter
4008 "wild_match" into wild_match_p. Update code and documentation
4011 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4013 * ada-lang.c (symbol_completion_match): Rename parameter
4014 "encoded" into "encoded_p". Ajust code and documentation
4017 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4018 Andrey Smirnov <andrew.smirnov@gmail.com>
4020 -Wshadow warning fix.
4021 * ada-lang.c (symbol_completion_match): Rename parameter
4022 "wild_match" into "wild_match_p". Adjust code and function
4023 documentation accordingly.
4025 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4026 Andrey Smirnov <andrew.smirnov@gmail.com>
4028 -Wshadow warning fix.
4029 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
4030 "symbol_info" into "info". Adjust code accordingly.
4031 (ada_lookup_symbol): Likewise.
4033 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4035 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
4036 of this function's documentation.
4038 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4039 Andrey Smirnov <andrew.smirnov@gmail.com>
4041 -Wshadow warning fix.
4042 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
4043 variable into "wild_match_p". Adjust code accordingly.
4045 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4046 Andrey Smirnov <andrew.smirnov@gmail.com>
4048 -Wshadow warning fix.
4049 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
4050 parameter into "wild_match_p". Adjust code accordingly.
4051 Document this parameter in the function description.
4053 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4054 Andrey Smirnov <andrew.smirnov@gmail.com>
4056 -Wshadow warning fix.
4057 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
4058 "wild_match" parameter to "wild_match_p" (-Wshadow).
4060 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4062 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4063 in function documentation.
4065 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4066 Andrey Smirnov <andrew.smirnov@gmail.com>
4068 -Wshadow warning fix.
4069 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
4070 variable into wild_match_p. Adjust code accordingly.
4072 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4073 Andrey Smirnov <andrew.smirnov@gmail.com>
4075 * ada-valprint.c (ada_val_print_1): Move the code handling
4076 TYPE_CODE_ENUM inside its own lexical block. Declare
4077 variables len and val there, instead of in the function's
4078 top level block. Avoid declaring deref_val again in a way
4079 that shadows another variable of the same name declared
4080 in one of the up-level blocks. Just re-use the up-level
4083 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4085 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4086 Replace block_found argument by symbol_info. Adjust
4087 implementation accordingly. Add function documentation.
4088 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4090 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4091 * ada-exp.y (write_object_renaming): Adjust to new
4092 ada_lookup_encoded_symbol API.
4094 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4096 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4099 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
4101 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4102 (v850_register_name): Add the mpu and fpu register names.
4103 (v850e_register_name): Add the mpu and fpu register names.
4104 (v850e2_register_name): New function.
4105 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
4108 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4110 * NEWS: Add entry for Ada varobj support.
4112 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4114 * varobj.c (default_value_is_changeable_p): New function,
4115 extracted from varobj_value_is_changeable_p. Add declaration.
4116 (ada_value_is_changeable_p): New function, extracted from
4117 varobj_value_is_changeable_p. Add declaration.
4118 (struct language_specific): New field "value_is_changeable_p".
4119 (languages): Add entries for new field.
4120 (varobj_create): Set language before calling install_new_value.
4121 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4122 "value_is_changeable_p" language callback.
4124 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4126 * ada-varobj.h, ada-varobj.c: New files.
4127 * Makefile.in (SFILES): Add ada-varobj.c.
4128 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4129 (COMMON_OBS): Add ada-varobj.o.
4131 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4133 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4134 (struct language_specific): New field "value_has_mutated".
4135 (languages): Set field "value_has_mutated" in each entry of array.
4136 (varobj_value_has_mutated): New function.
4137 (varobj_udpdate): Add handling of type mutation.
4138 (value_of_root): Add handling of type mutation.
4139 (ada_value_has_mutated): New function.
4141 2012-03-28 Pedro Alves <palves@redhat.com>
4143 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4144 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4146 2012-03-28 Tom Tromey <tromey@redhat.com>
4148 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4149 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4152 2012-03-28 Tom Tromey <tromey@redhat.com>
4154 * .dir-locals.el: New file.
4156 2012-03-28 Pedro Alves <palves@redhat.com>
4158 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4160 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4162 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4165 2012-03-27 Pedro Alves <palves@redhat.com>
4167 Eliminate struct ui_stream.
4169 * ui-out.h (struct ui_stream): Delete.
4170 (ui_out_field_stream): Adjust prototype.
4171 (ui_out_stream_new, ui_out_stream_delete)
4172 (make_cleanup_ui_out_stream_delete): Delete declarations.
4173 * ui-out.c (ui_out_field_stream): Change prototype to take a
4174 ui_file instead of a ui_stream. Adjust.
4175 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4176 (make_cleanup_ui_out_stream_delete): Delete.
4177 * breakpoint.c (print_breakpoint_location)
4178 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4179 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4180 * disasm.c (dump_insns): Ditto.
4181 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4183 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4184 ui_stream/ui_out_stream_new.
4185 * infcmd.c (print_return_value): Ditto.
4186 * osdata.c (info_osdata_command): Don't allocate a local
4188 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4189 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4190 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4191 allocate a local ui_stream.
4192 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4193 instead of ui_stream/ui_out_stream_new.
4194 (list_args_or_locals): Don't allocate a local ui_stream.
4195 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4196 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4197 ui_stream/ui_out_stream_new.
4198 * cli/cli-setshow.c (do_setshow_command): Ditto.
4200 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
4202 * arm-linux-tdep.c (arm_linux_init_abi): Call
4203 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4204 * arm-tdep.c (arm_process_record): New function.
4205 (deallocate_reg_mem): New function.
4206 (decode_insn): New function.
4207 (thumb_record_branch): New function.
4208 (thumb_record_ldm_stm_swi(): New function.
4209 (thumb_record_misc): New function.
4210 (thumb_record_ld_st_stack): New function.
4211 (thumb_record_ld_st_imm_offset): New function.
4212 (thumb_record_ld_st_reg_offset(): New function.
4213 (thumb_record_add_sub_cmp_mov): New function.
4214 (thumb_record_shift_add_sub): New function.
4215 (arm_record_coproc_data_proc): New function.
4216 (arm_record_coproc): New function.
4217 (arm_record_b_bl): New function.
4218 (arm_record_ld_st_multiple): New function.
4219 (arm_record_ld_st_reg_offset): New function.
4220 (arm_record_ld_st_imm_offset): New function.
4221 (arm_record_data_proc_imm): New function.
4222 (arm_record_data_proc_misc_ld_str): New function.
4223 (arm_record_extension_space): New function.
4224 (arm_record_strx): New function.
4225 (sbo_sbz): New function.
4226 (struct insn_decode_record): New structure for arm insn record.
4227 (REG_ALLOC): New macro for reg allocations.
4228 (MEM_ALLOC): New macro for memory allocations.
4229 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4231 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4233 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4234 (store_register): Likewise.
4236 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
4238 * MAINTAINERS (Write After Approval): Add myself to the list.
4240 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4242 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4243 Describe also the option "auto".
4245 2012-03-22 Richard Henderson <rth@redhat.com>
4247 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4248 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4250 2012-03-22 Richard Henderson <rth@redhat.com>
4252 * jit.c (jit_read_code_entry): Compute alignment and offset of
4253 int64_t member before computing entry_size.
4255 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4257 Python scripting: Add new method Value.referenced_value to
4258 gdb.Value which can dereference pointer as well as reference
4260 * NEWS: Add entry under 'Python scripting' about the new method
4261 Value.referenced_value on gdb.Value objects.
4262 * python/py-value.c (valpy_referenced_value): New function
4263 defining a new method on gdb.Value objects which can dereference
4264 pointer and reference values.
4266 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4268 * MAINTAINERS (Write After Approval): Add myself to the list.
4270 2012-03-21 Kevin Buettner <kevinb@redhat.com>
4272 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4273 in addition to "main".
4275 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4277 * expression.h (op_name): Add declaration.
4278 * expprint.c (op_name): Remove declaration. Make non-static.
4279 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4281 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4283 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4285 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4286 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4287 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4288 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4289 (linux_nat_get_siginfo): Likewise.
4290 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4291 (linux_nat_get_siginfo): Likewise.
4292 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4293 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4294 * procfs.c (gdb_siginfo_t): Likewise.
4296 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4298 * .gitignore: Ignore more files.
4300 2012-03-20 Pedro Alves <palves@redhat.com>
4302 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4305 2012-03-20 Yao Qi <yao@codesourcery.com>
4307 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4310 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4312 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4313 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4314 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4316 * dwarf2expr.h (cu_offset, sect_offset): New types.
4317 (struct dwarf_expr_context_funcs) <dwarf_call>
4318 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4320 (struct dwarf_expr_context) <len>: Improve the comment.
4321 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4322 cu_offset and sect_offset.
4323 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4324 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4325 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4326 * dwarf2loc.h: Include dwarf2expr.h.
4327 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4329 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4330 Improve the comment.
4331 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4332 (struct signatured_type, struct line_header, struct partial_die_info)
4333 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4334 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4335 (get_die_type_at_offset, create_cus_from_index)
4336 (create_signatured_type_table_from_index, dw2_get_file_names)
4337 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4338 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4339 (create_debug_types_hash_table, process_psymtab_comp_unit)
4340 (load_partial_comp_unit, create_all_comp_units)
4341 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4342 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4343 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4344 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4345 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4346 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4347 (find_partial_die, read_attribute_value, lookup_die_type)
4348 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4349 (is_ref_attr): New function comment.
4350 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4351 Use cu_offset and sect_offset.
4352 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4353 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4354 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4355 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4356 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4357 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4358 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4361 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4364 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4365 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4367 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4369 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4371 * NEWS: Describe new options --init-command=FILE, -ix and
4372 --init-eval-command=COMMAND, -iex.
4373 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4374 CMDARG_INIT_COMMAND.
4375 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4376 "init-command", "init-eval-command", "ix" and "iex" to the variable
4377 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4378 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4379 (print_gdb_help): Describe --init-command=FILE, -ix and
4380 --init-eval-command=COMMAND, -iex.
4382 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4385 * main.c (struct cmdarg): Move it here from main. Add more comments.
4386 (cmdarg_s, VEC (cmdarg_s)): New.
4387 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4388 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4389 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4390 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4393 2012-03-19 Tom Tromey <tromey@redhat.com>
4395 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4397 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4400 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4403 2012-03-16 Chris January <chris.january@allinea.com>
4405 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4408 2012-03-16 Chris January <chris.january@allinea.com>
4410 * source.c (add_path): Use memmove instead of strcpy because the
4413 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4415 * value.h (set_value_parent): Add declaration.
4416 * value.c (set_value_parent): New function.
4417 (value_address): If VALUE->PARENT is not NULL, then use it as
4418 the base address instead of VALUE->LOCATION.address.
4419 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4420 the same as OBJ's address. Adjust V's offset accordingly.
4423 2012-03-16 Gary Benson <gbenson@redhat.com>
4425 PR breakpoints/10738
4426 * dwarf2read.c (use_deprecated_index_sections): New global.
4427 (struct partial_die_info): New member may_be_inlined.
4428 (read_partial_die): Set may_be_inlined where appropriate.
4429 (add_partial_subprogram): Add partial symbols for partial
4430 DIEs that may be inlined.
4431 (new_symbol_full): Add inlined subroutines to the current
4433 (write_psymtabs_to_index): Bump version number.
4434 (dwarf2_read_index): Read only version 6 indices unless
4435 use_deprecated_index_sections is set.
4436 * linespec.c (symbol_and_data_callback): New structure.
4437 (iterate_inline_only): New function.
4438 (iterate_over_all_matching_symtabs): New argument
4439 "include_inline". If nonzero, also call the callback for
4440 symbols representing inlined subroutines.
4441 (lookup_prefix_sym): Pass extra argument to the above.
4442 (find_function_symbols): Likewise.
4443 (add_matching_symbols_to_info): Likewise.
4444 * NEWS: Mention that GDB can now set breakpoints on inlined
4447 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4449 * p-typeprint.c (pascal_type_print_method_args):
4450 Fix display of parameter of methods.
4452 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4454 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4455 Add missing prototype.
4457 2012-03-16 Yao Qi <yao@codesourcery.com>
4458 Jan Kratochvil <jan.kratochvil@redhat.com>
4460 Fix false compilation warning.
4461 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4463 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4464 Pedro Alves <pedro@codesourcery.com>
4466 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4467 (arm_register_g_packet_guesses): New function.
4468 (arm_gdbarch_init): Don't force a target description with
4469 registers when the executable is detected as M-profile. Instead
4470 set gdbarch->tdep->is_m. Register `g' packet guesses.
4471 (_initialize_arm_tdep): Initialize the new target description.
4472 * features/arm-with-m-fpa-layout.xml: New description.
4473 * features/arm-with-m-fpa-layout.c: New, generated.
4475 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4477 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4478 Update function description.
4479 (insert_bp_location): Do not wipe bl->target_info out.
4480 * mem-break.c: #include "gdb_string.h".
4481 (default_memory_insert_breakpoint): Do not call target_read_memory
4482 with a pointer to the breakpoint's shadow_contents buffer. Use
4483 a local buffer instead.
4484 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4486 2012-03-15 Tom Tromey <tromey@redhat.com>
4488 * NEWS: Mention "info vtbl", not "info vtable".
4489 * cp-support.c (info_vtbl_command): Fix comment.
4490 (_initialize_cp_support): Fix text.
4492 2012-03-15 Tom Tromey <tromey@redhat.com>
4494 * cp-valprint.c (cp_print_value_fields): Use
4495 print_function_pointer_address for vtable slot.
4497 2012-03-15 Tom Tromey <tromey@redhat.com>
4499 * gnu-v3-abi.c (struct value_and_voffset): New.
4500 (hash_value_and_voffset, eq_value_and_voffset)
4501 (compare_value_and_voffset, compute_vtable_size)
4502 (print_one_vtable, gnuv3_print_vtable): New functions.
4503 (init_gnuv3_ops): Initialize 'print_vtable' field.
4504 * cp-support.c (info_vtbl_command): New function.
4505 (_initialize_cp_support): Add "info vtbl".
4506 * cp-abi.h (cplus_print_vtable): Declare.
4507 (struct cp_abi_ops) <print_vtable>: New field.
4508 * cp-abi.c (cplus_print_vtable): New function.
4511 2012-03-15 Tom Tromey <tromey@redhat.com>
4513 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4514 iterate_over_symbols.
4516 2012-03-14 Doug Evans <dje@google.com>
4518 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4519 DW_OP_GNU_parameter_ref.
4521 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4523 Fix double prompt of 'interpreter-exec mi'.
4524 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4525 (mi_interpreter_resume): use it.
4526 (mi_execute_command_input_handler): New function.
4527 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4528 mi_execute_command_input_handler.
4530 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4532 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4534 (darwin_debug_port_info): Make static.
4535 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4536 * machoread.c (_initialize_machoread): Add prototype.
4537 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4538 (i386_darwin_set_control, i386_darwin_get_control)
4539 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4540 i386_darwin_get_status, i386_darwin_get_control):
4541 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4543 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4545 * ax-gdb.c (gen_usual_unary): Remove special handling of
4546 enum and bool types.
4548 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4550 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4552 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4554 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4556 2012-03-13 Chris January <chris.january@allinea.com>
4558 * aix-thread.c (fill_sprs): Store the floating point registers
4559 at the correct offsets into vals.
4561 2012-03-13 Doug Evans <dje@google.com>
4563 * NEWS: Mention symbol-reloading has been deleted.
4564 * symfile.c (symbol_reloading): Delete.
4565 (show_symbol_reloading): Delete.
4566 (_initialize_symfile): Delete set/show symbol-reloading.
4568 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4569 read_in_chain until we have successfully read it in.
4570 (load_full_comp_unit): Ditto.
4571 (read_signatured_type): Add comment.
4573 2012-03-13 Chris January <chris.january@allinea.com>
4575 * stabsread.c (fix_common_block): Change type of valu argument
4578 2012-03-13 Chris January <chris.january@allinea.com>
4580 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4583 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4585 * common/linux-procfs.c (linux_proc_get_int): New, from
4586 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4588 (linux_proc_get_tgid): Only call linux_proc_get_int.
4589 (linux_proc_get_tracerpid): New.
4590 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4591 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4592 linux_proc_pid_has_state.
4593 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4594 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4595 (linux_ptrace_attach_warnings): New.
4596 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4598 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4599 (linux_nat_attach): New variables ex, buffer, message and message_s.
4600 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4602 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4604 * Makefile.in (linux-ptrace.o): New.
4605 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4607 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4608 * common/linux-ptrace.c: New file.
4609 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4610 * config/arm/linux.mh: Likewise.
4611 * config/i386/linux.mh: Likewise.
4612 * config/i386/linux64.mh: Likewise.
4613 * config/ia64/linux.mh: Likewise.
4614 * config/m32r/linux.mh: Likewise.
4615 * config/m68k/linux.mh: Likewise.
4616 * config/mips/linux.mh: Likewise.
4617 * config/pa/linux.mh: Likewise.
4618 * config/powerpc/linux.mh: Likewise.
4619 * config/powerpc/ppc64-linux.mh: Likewise.
4620 * config/powerpc/spu-linux.mh: Likewise.
4621 * config/s390/s390.mh: Likewise.
4622 * config/sparc/linux.mh: Likewise.
4623 * config/sparc/linux64.mh: Likewise.
4624 * config/xtensa/linux.mh: Likewise.
4625 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4626 common/linux-procfs.c.
4627 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4629 2012-03-13 Hui Zhu <teawater@gmail.com>
4630 Pedro Alves <palves@redhat.com>
4632 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4633 CREATE_BREAKPOINT_FLAGS_INSERTED.
4634 (create_breakpoint_sal, create_breakpoints_sal)
4635 (base_breakpoint_create_breakpoints_sal)
4636 (tracepoint_create_breakpoints_sal)
4637 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4639 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4640 (ftrace_command, strace_command): Adjust.
4641 (create_tracepoint_from_upload): Pass
4642 CREATE_BREAKPOINT_FLAGS_INSERTED.
4643 * breakpoint.h (enum breakpoint_create_flags): New.
4644 (create_breakpoint): New flags parameter.
4645 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4646 * python/py-breakpoint.c (bppy_init): Adjust.
4647 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4648 * spu-tdep.c (spu_catch_start): Adjust.
4650 2012-03-13 Pedro Alves <palves@redhat.com>
4651 Hui Zhu <teawater@gmail.com>
4652 Yao Qi <yao@codesourcery.com>
4654 * remote.c (struct remote_state): New field `starting_up'.
4655 (remote_start_remote): Set and clear it.
4656 (remote_can_download_tracepoint): If starting up, return false.
4658 2012-03-13 Yao Qi <yao@codesourcery.com>
4660 * inferior.h (struct inferior): Remove fields any_syscall_count,
4661 syscalls_counts and total_syscalls_count. Move them to new
4662 struct catch_syscall_inferior_data in breakpoint.c.
4663 * breakpoint.c: Call DEF_VEC_I(int).
4664 (struct catch_syscall_inferior_data): New.
4665 (get_catch_syscall_inferior_data): New.
4666 (catch_syscall_inferior_data_cleanup): New.
4667 (insert_catch_syscall): Update to access data in
4668 struct catch_syscall_inferior_data.
4669 (insert_catch_syscall): Likewise.
4670 (remove_catch_syscall): Likewise.
4671 (remove_catch_syscall): Likewise.
4672 (is_syscall_catchpoint_enabled): Likewise.
4673 (add_catch_command): Likewise.
4674 (_initialize_breakpoint): Register cleanup.
4675 * breakpoint.h: Removed DEF_VEC_I(int).
4676 * dwarf2loc.c: Call DEF_VEC_I(int).
4677 * mi/mi-main.c: Likewise.
4679 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4681 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4683 2012-03-12 Chris January <chris.january@allinea.com>
4685 * aix-thread.c (_initialize_aix_thread): Add prototype.
4686 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4687 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4689 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4691 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4692 include of "amd64-nat.h".
4694 2012-03-12 Tom Tromey <tromey@redhat.com>
4696 * buildsym.c (record_pending_block): Now static.
4697 * buildsym.h: (record_pending_block): Remove.
4699 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4701 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4703 2012-03-09 Tom Tromey <tromey@redhat.com>
4705 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4706 producer_is_gxx_lt_4_6>: New fields.
4707 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4709 2012-03-09 Tom Tromey <tromey@redhat.com>
4711 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4713 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4715 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4718 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4720 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4722 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4724 Fix -Wmissing-prototypes build.
4725 * arm-linux-nat.c (get_thread_id): Make it static.
4726 * xtensa-linux-nat.c (get_thread_id): Likewise.
4728 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4730 * server.c (process_point_options): If a conditional expression
4731 is found, only print a message if remote_debug is nonzero.
4733 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4735 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4736 of internal error for unknown/unsupported types.
4738 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4740 Fix CU relative vs. absolute DIE offsets.
4741 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4742 offset to offset_in_cu.
4743 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4745 (dwarf2_fetch_die_location_block): Rename parameter offset to
4746 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4748 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4750 * libunwind-frame.c: Rename to ...
4751 * ia64-libunwind-tdep.c: ... here.
4752 * libunwind-frame.h: Rename to ...
4753 * ia64-libunwind-tdep.h: ... here.
4754 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4755 ia64-libunwind-tdep.h.
4756 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4757 * README (--with-libunwind): Rename to ...
4758 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4759 * config.in: Regenerate.
4760 * configure: Regenerate.
4761 * configure.ac: New option --with-libunwind-ia64, make the
4762 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4763 Remove AC_DEFINE for HAVE_LIBUNWIND.
4764 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4765 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4766 Rename libunwind-frame in the general comment.
4767 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4768 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4769 Move forward declarations inside #ifndef. Rename libunwind-frame in
4770 the general comment.
4771 * ia64-tdep.c: Rename libunwind-frame.h #include to
4772 ia64-libunwind-tdep.h.
4773 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4774 (ia64_libunwind_descr): Rename libunwind-frame to
4775 ia64-libunwind-tdep in these function comments.
4776 * ia64-tdep.h: Rename libunwind-frame.h #include to
4777 ia64-libunwind-tdep.h.
4778 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4779 ia64-libunwind-tdep in that data comment.
4781 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4783 * libunwind-frame.h (struct frame_unwind): New declaration.
4785 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4787 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4788 "set breakpoint condition-evaluation" command.
4790 2012-03-08 Tristan Gingold <gingold@adacore.com>
4792 * sparc-stub.c: Move to stubs/
4793 * sh-stub.c: Likewise.
4794 * m68k-stub.c: Likewise.
4795 * m32r-stub.c: Likewise.
4796 * i386-stub.c: Likewise.
4798 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4800 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4801 linux_get_siginfo_type.
4803 * m68klinux-nat.c: Include "gdb_proc_service.h".
4804 (PTRACE_GET_THREAD_AREA): Define.
4805 (ps_get_thread_area): New function.
4807 2012-03-08 Yao Qi <yao@codesourcery.com>
4809 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4811 (remote_query_attached): Likewise.
4812 (remote_static_tracepoint_marker_at): Likewise.
4813 (remote_set_permissions): Likewise.
4814 (remote_detach_1, extended_remote_attach_1): Likewise.
4815 (send_g_packet, remote_vkill): Likewise.
4816 (extended_remote_disable_randomization): Likewise.
4817 (remote_add_target_side_condition): Likewise.
4818 (remote_insert_breakpoint): Likewise.
4819 (remote_remove_breakpoint): Likewise.
4820 (remote_insert_watchpoint): Likewise.
4821 (remote_remove_watchpoint): Likewise.
4822 (remote_insert_hw_breakpoint): Likewise.
4823 (remote_insert_hw_breakpoint): Likewise.
4824 (remote_remove_hw_breakpoint): Likewise.
4825 (remote_download_command_source): Likewise.
4826 (remote_download_tracepoint): Likewise.
4827 (remote_download_trace_state_variable): Likewise.
4828 (remote_disable_tracepoint): Likewise.
4829 (remote_trace_set_readonly_regions): Likewise.
4830 (remote_get_tracepoint_status): Likewise.
4831 (remote_trace_find): Likewise.
4832 (remote_get_trace_state_variable_value): Likewise.
4833 (remote_set_disconnected_tracing): Likewise.
4834 (remote_set_circular_trace_buffer): Likewise.
4835 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4836 (remote_use_agent): Likewise.
4837 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4840 2012-03-07 Pedro Alves <palves@redhat.com>
4842 * NEWS: Mention QProgramSignals.
4843 * inferior.h (update_signals_program_target): Declare.
4844 * infrun.c: (update_signals_program_target): New.
4845 (handle_command): Update the target of the new program signals
4847 * remote.c (PACKET_QProgramSignals): New enum.
4848 (last_program_signals_packet): New global.
4849 (remote_program_signals): New.
4850 (remote_start_remote): Update the target with the program signals
4852 (remote_protocol_features): Add entry for QPassSignals.
4853 (remote_open_1): Free anc clear last_program_signals_packet.
4854 (init_remote_ops): Install remote_program_signals.
4855 * target.c (update_current_target): Adjust.
4856 (target_program_signals): New.
4857 * target.h (struct target_ops) <to_program_signals>: New field.
4858 (target_program_signals): Declare.
4860 2012-03-07 Pedro Alves <palves@redhat.com>
4862 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4865 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4867 * m68klinux-nat.c (getregs_supplies): Make static.
4868 (getfpregs_supplies): Likewise.
4869 (have_ptrace_getregs): Likewise.
4871 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4873 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4874 in call to get_die_type_at_offset.
4876 2012-03-06 Stan Shebs <stan@codesourcery.com>
4878 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4879 * mi/mi-cmd-disas.c: Ditto.
4880 * mi/mi-cmd-env.c: Ditto.
4881 * mi/mi-cmd-file.c: Ditto.
4882 * mi/mi-cmd-stack.c: Ditto.
4883 * mi/mi-cmd-target.c: Ditto.
4884 * mi/mi-cmd-var.c: Ditto.
4885 * mi/mi-cmds.c: Ditto.
4886 * mi/mi-cmds.h: Ditto.
4887 * mi/mi-console.c: Ditto.
4888 * mi/mi-getopt.c: Ditto.
4889 * mi/mi-getopt.h: Ditto.
4890 * mi/mi-interp.c: Ditto.
4891 * mi/mi-main.c: Ditto.
4892 * mi/mi-out.c: Ditto.
4893 * mi/mi-parse.c: Ditto.
4894 * mi/mi-parse.h: Ditto.
4895 * mi/mi-symbol-cmds.c: Ditto.
4897 * mi/mi-getopt.h: Move mi_opt struct up.
4898 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4900 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4902 2012-03-06 Tom Tromey <tromey@redhat.com>
4904 * proc-service.c (ps_pglobal_lookup): Set the current program
4907 2012-03-06 Pedro Alves <palves@redhat.com>
4909 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4911 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4913 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4915 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4918 * common/linux-osdata.c (linux_common_core_of_thread): New function
4920 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4921 call by linux_common_core_of_thread.
4922 (linux_nat_core_of_thread_1): Remove.
4923 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4924 * linux-thread-db.c: Include linux-osdata.h.
4925 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4926 linux_common_core_of_thread.
4928 2012-03-05 Tom Tromey <tromey@redhat.com>
4930 * value.c (value_primitive_field): Don't fetch contents for
4933 2012-03-05 Tom Tromey <tromey@redhat.com>
4935 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4937 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4939 * s390-nat.c: Include "gregset.h".
4941 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4943 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4944 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4945 (libunwind_load): New variable so_error, use it for dlerror. Try to
4946 load also LIBUNWIND_SO_7.
4948 2012-03-05 Pedro Alves <palves@redhat.com>
4950 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4951 is not NULL, and remove resulting dead code.
4953 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4955 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4956 prologue to sh_analyze_prologue.
4957 (sh_analyze_prologue): Make better use of such an upper limit, and
4958 generally be more cautious about accessing memory.
4960 2012-03-05 Tom Tromey <tromey@redhat.com>
4962 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4963 _initialize_ia64_hpux_tdep.
4965 2012-03-05 Pedro Alves <palves@redhat.com>
4969 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4970 the register state is clear, supply explicit zero, instead of
4971 marking the register unavailable.
4973 2012-03-05 Tristan Gingold <gingold@adacore.com>
4975 * NEWS: Mention OpenVMS ia64 new target.
4977 2012-03-05 Tristan Gingold <gingold@adacore.com>
4979 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4980 (ia64_unw_accessors, ia64_unw_rse_accessors)
4981 (ia64_libunwind_descr): Declare.
4982 * ia64-vms-tdep.c: New file.
4983 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4984 (ia64_libunwind_descr): Make them public.
4985 * configure.tgt: Add ia64-*-*vms*.
4986 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4987 (ALLDEPFILES): Add ia64-vms-tdep.c
4989 2012-03-05 Tristan Gingold <gingold@adacore.com>
4991 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4992 * remote.c (PACKET_qXfer_uib): New enum value.
4993 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4994 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4995 (_initialize_remote): Call add_packet_config_cmd for
4998 2012-03-05 Tristan Gingold <gingold@adacore.com>
5000 * osabi.c (gdb_osabi_names): Add OpenVMS.
5001 (generic_elf_osabi_sniffer): Likewise.
5002 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
5004 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5006 Removed unused code.
5007 * libunwind-frame.c (libunwind_frame_unwind)
5008 (libunwind_frame_base_address): Remove.
5009 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
5011 2012-03-04 Yao Qi <yao@codesourcery.com>
5013 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
5014 remove trailing new line.
5015 (agent_run_command, agent_run_command): Add _ markup.
5016 (agent_capability_check): Likewise.
5018 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5020 * breakpoint.c (set_condition_evaluation_mode): Set
5021 CONDITION_EVALUATION_MODE unconditionally.
5023 2012-03-03 Yao Qi <yao@codesourcery.com>
5025 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
5026 * common/agent.h: Update declaration.
5027 * inf-child.c (inf_child_use_agent): New.
5028 (inf_child_can_use_agent): New.
5029 (inf_child_target): Initialize fields `to_use_agent'
5030 and `to_can_use_agent'.
5031 * agent.c (agent_new_objfile): New.
5032 (_initialize_agent): Add agent_new_objfile to new_objfile
5035 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5037 (linux_target_install_ops): Initialize field
5038 `to_static_tracepoint_markers_by_strid'.
5039 * remote.c (free_current_marker): Move it to ...
5040 * tracepoint.c (free_current_marker): ... here. New.
5041 (cleanup_target_stop): New.
5042 * tracepoint.h: Declare free_current_marker.
5043 * NEWS: Add one entry about `info static-tracepoint-marker'.
5045 2012-03-03 Yao Qi <yao@codesourcery.com>
5047 * common/agent.c (agent_loaded_p): New.
5048 (agent_look_up_symbols): New global.
5049 * common/agent.h: Declare agent_loaded_p.
5051 2012-03-03 Yao Qi <yao@codesourcery.com>
5053 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
5054 (agent_capability_check, agent_capability_invalidate): New.
5055 (symbol_list): New array element.
5056 * common/agent.h (enum agent_capa): New.
5057 * target.c (target_pre_inferior): Call agent_capability_invalidate.
5059 2012-03-03 Yao Qi <yao@codesourcery.com>
5061 * target.h (struct target_ops) <to_use_agent>: New field.
5062 (struct target_ops) <to_can_use_agent>: New field.
5063 (target_use_agent, target_can_use_agent): New macro.
5064 * target.c (update_current_target): Update.
5065 * remote.c: New enum `PACKET_QAgent'.
5066 (remote_protocol_features): Add a new element.
5067 (remote_use_agent, remote_can_use_agent): New.
5068 (init_remote_ops): Initialize field `can_use_agent' with
5069 remote_can_use_agent. Intiailize field `use_agent' with
5071 * common/agent.c (use_agent): New global.
5072 * common/agent.h: Declare it.
5073 * tracepoint.c (info_static_tracepoint_markers_command): Add
5075 * Makefile.in (SFILES): Add common/agent.c and agent.c.
5076 (COMMON_OBS): Add common/agent.o and agent.o
5077 (common-agent.o): New rule.
5080 2012-03-03 Yao Qi <yao@codesourcery.com>
5082 * common/agent.c: New.
5083 * common/agent.h: New.
5084 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5086 * configure, configh.in: Regenerated.
5088 2012-03-02 Kevin Buettner <kevinb@redhat.com>
5090 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5091 unless it exists for this architecture.
5093 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5095 * language.h (struct language_defn): New "method" la_read_var_value.
5096 * findvar.c: #include "language.h".
5097 (default_read_var_value): Renames read_var_value. Rewrite
5098 function description.
5099 (read_var_value): New function.
5100 * value.h (default_read_var_value): Add prototype.
5101 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5103 (ada_language_defn): Add entry for la_read_var_value.
5104 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5105 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5106 language_defn structures to add entry for new la_read_var_value
5109 2012-03-02 Tom Tromey <tromey@redhat.com>
5110 Pedro Alves <palves@redhat.com>
5112 PR breakpoints/13776:
5113 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5115 (delete_longjmp_breakpoint_at_next_stop): New.
5116 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5117 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5118 before deleting the inferior. Add comments.
5119 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5120 breakpoints immediately, but only on next stop. Move that code
5121 next to where we mark other breakpoints for deletion.
5123 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5125 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5127 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5130 2012-03-02 Pedro Alves <palves@redhat.com>
5132 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5134 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5136 Fix -Wmissing-prototypes build.
5137 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5138 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5139 (gdbsim_has_memory): Likewise.
5141 2012-03-02 Yao Qi <yao@codesourcery.com>
5143 Fix -Wmissing-prototypes build.
5144 * charset.c (phony_iconv_open): Make static.
5145 (phony_iconv_close, phony_iconv): Likewise.
5146 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5147 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5149 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5150 * ser-mingw.c (create_select_thread): Make static.
5151 * windows-termcap.c (tgetent): New prototype.
5152 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5154 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5156 Fix -Wmissing-prototypes build.
5157 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5158 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5159 (_initialize_loadable): New prototypes.
5161 2012-03-02 Doug Evans <dje@google.com>
5163 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5164 abbrev table, read_comp_unit will do it.
5166 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5168 Fix -Wmissing-prototypes build.
5169 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5170 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5171 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5172 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5173 (_initialize_arm_symbian_tdep): New prototype.
5174 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5175 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5176 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5178 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5179 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5181 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5182 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5183 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5185 * moxie-tdep.c (moxie_process_record): Likewise.
5186 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5187 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5188 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5189 (_initialize_rl78_tdep): New prototype.
5190 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5191 (_initialize_rx_tdep): New prototype.
5192 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5193 (_initialize_darwin_solib): New prototype.
5194 * solib-spu.c: Include solib-spu.h.
5195 (_initialize_spu_solib): New prototype.
5196 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5197 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5198 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5199 (tic6x_software_single_step): Make it static.
5200 (_initialize_tic6x_tdep): New prototype.
5202 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5204 Fix -Wmissing-prototypes build.
5205 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5206 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5208 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5210 Fix -Wmissing-prototypes build.
5211 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5212 (frv_have_stopped_data_address): Remove.
5214 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5216 Fix -Wmissing-prototypes build.
5217 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5218 * sh-tdep.c: Include sh64-tdep.h.
5219 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5220 * sh64-tdep.c: Include sh64-tdep.h.
5221 * sh64-tdep.h: New file.
5223 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5225 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5227 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5229 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5230 sp_regnum once the gdbarch_init_osabi hook has been called.
5232 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5234 * mips-tdep.c (mips32_bc1_pc): New function.
5235 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5236 BPOSGE32 and BPOSGE64 instructions.
5237 (deal_with_atomic_sequence): Likewise.
5238 (mips32_instruction_has_delay_slot): Likewise.
5240 2012-03-01 Maciej W. Rozycki <macro@mips.com>
5241 Chris Dearman <chris@mips.com>
5242 Maciej W. Rozycki <macro@codesourcery.com>
5243 Joseph Myers <joseph@codesourcery.com>
5245 * features/mips-dsp.xml: New file.
5246 * features/mips64-dsp.xml: New file.
5247 * features/mips-dsp-linux.xml: New file.
5248 * features/mips64-dsp-linux.xml: New file.
5249 * features/Makefile (WHICH): Add mips-dsp-linux and
5251 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5252 * features/mips-dsp-linux.c: New file.
5253 * features/mips64-dsp-linux.c: New file.
5254 * regformats/mips-dsp-linux.dat: New file.
5255 * regformats/mips64-dsp-linux.dat: New file.
5256 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5258 (mips64_linux_register_addr): Likewise.
5259 (mips64_linux_regsets_fetch_registers): Likewise.
5260 (mips64_linux_regsets_store_registers): Likewise.
5261 (mips64_linux_fetch_registers): Update call to
5262 mips64_linux_regsets_fetch_registers.
5263 (mips64_linux_store_registers): Update call to
5264 mips64_linux_regsets_store_registers.
5265 (mips_linux_read_description): Probe for DSP registers.
5266 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5267 and initialize_tdesc_mips64_dsp_linux.
5268 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5269 Remove padding of no longer used embedded register slots.
5270 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5271 (MIPS_RESTART_REGNUM): Redefine enum value.
5272 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5274 (mips_tx39_reg_names): Likewise.
5275 (mips_linux_reg_names): New array of register names for Linux
5277 (mips_register_name): Check for a null pointer in
5278 mips_processor_reg_names and return an empty string.
5279 (mips_register_type): Exclude embedded registers for the IRIX
5281 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5282 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5284 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5285 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5286 (mips_gdbarch_init): Likewise. Initialize internal register
5287 indices for the Linux ABI. Use dynamic numbers to refer to
5288 registers, as applicable, while parsing the target description.
5289 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5291 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5293 * frame.h (read_frame_register_unsigned): Fix typo in function
5296 2012-03-01 Pedro Alves <palves@redhat.com>
5298 * jit-reader.in [!__cplusplus]
5299 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5301 2012-03-01 Pedro Alves <palves@redhat.com>
5303 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5304 * configure: Regenerate.
5306 2012-03-01 Pedro Alves <palves@redhat.com>
5308 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5309 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5310 (ftrace_command, strace_command): Make static.
5311 * d-lang.c (_initialize_d_language): Declare.
5312 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5313 * dwarf2loc.c (_initialize_dwarf2loc):
5314 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5315 * exec.c (exec_get_section_table): Make static.
5316 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5317 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5318 * inferior.c (remove_inferior_command, add_inferior_command)
5319 (clone_inferior_command): Make static.
5320 * linux-nat.c (linux_nat_thread_address_space)
5321 (linux_nat_core_of_thread): Make static.
5322 * linux-tdep.c (_initialize_linux_tdep): Declare.
5323 * objc-lang.c (_initialize_objc_lang): Declare.
5324 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5326 (_initialize_opencl_language): Declare.
5327 * record.c (_initialize_record): Declare.
5328 * remote.c (demand_private_info, remote_get_tib_address)
5329 (remote_supports_cond_tracepoints)
5330 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5332 * skip.c (_initialize_step_skip): Declare.
5333 * symtab.c (skip_prologue_using_lineinfo): Make static.
5334 * tracepoint.c (delete_trace_state_variable)
5335 (trace_variable_command, delete_trace_variable_command)
5336 (get_uploaded_tsv, find_matching_tracepoint_location)
5337 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5339 * value.c (pack_unsigned_long): Make static.
5340 * varobj.c (varobj_ensure_python_env): Make static.
5341 * windows-tdep.c (_initialize_windows_tdep): Declare.
5342 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5344 2012-03-01 Pedro Alves <palves@redhat.com>
5346 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5348 (linux_init_abi): Install it as has_shared_address_space gdbarch
5351 2012-03-01 Pedro Alves <palves@redhat.com>
5353 * observer.c (observer_test_first_notification_function)
5354 (observer_test_second_notification_function)
5355 (observer_test_third_notification_function): Add declarations.
5357 2012-03-01 Pedro Alves <palves@redhat.com>
5359 * common/signals.c (default_target_signal_to_host)
5360 (default_target_signal_from_host): Move ...
5361 * arch-utils.c: ... here.
5362 * arch-utils.h (default_target_signal_to_host)
5363 (default_target_signal_from_host): Declare.
5365 * common/signals.c (target_signal_from_command): Move ...
5366 * infrun.c: ... here.
5367 * inferior.h (target_signal_from_command): Declare.
5368 * target.h (target_signal_from_command)
5369 (default_target_signal_from_host, default_target_signal_to_host):
5370 Delete declarations.
5372 * common/signals.c (_initialize_signals): Delete.
5374 2012-03-01 Pedro Alves <palves@redhat.com>
5376 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5377 both __cplusplus and !__cplusplus.
5379 2012-03-01 Pedro Alves <palves@redhat.com>
5381 * psymtab.c (find_and_open_source): Delete declaration.
5382 * source.c (find_and_open_source): Move comment ...
5383 * source.h (find_and_open_source): ... to this new declaration.
5385 2012-03-01 Pedro Alves <palves@redhat.com>
5387 * inline-frame.c: Include inline-frame.h.
5389 2012-03-01 Pedro Alves <palves@redhat.com>
5391 * tui/tui-data.c (set_gen_win_origin): Delete.
5392 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5393 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5395 2012-03-01 Pedro Alves <palves@redhat.com>
5397 * remote.c (encode_actions): Delete declaration.
5398 * tracepoint.c (encode_actions): Make extern.
5399 * tracepoint.h (encode_actions): Declare.
5401 2012-03-01 Pedro Alves <palves@redhat.com>
5403 * python/py-breakpoint.c: Include python.h.
5404 * python/py-continueevent.c (create_continue_event_object): Make
5406 * python/py-lazy-string.c (stpy_get_type): Make static.
5407 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5409 * python/py-utils.c (unicode_to_target_python_string): Make
5411 * python/py-value.c: Include python.h.
5413 2012-03-01 Pedro Alves <palves@redhat.com>
5415 * inferior.c (delete_threads_of_inferior): Delete.
5417 2012-03-01 Pedro Alves <palves@redhat.com>
5419 Import fallback definitions from glibc.
5421 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5422 ps_prochandle): Forward declare.
5423 (ps_err_e): Use glibc's comments.
5424 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5425 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5426 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5427 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5428 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5429 (struct ps_prochandle): Adjust comment.
5431 2012-03-01 Pedro Alves <palves@redhat.com>
5433 * ada-lang.c (ada_modulus_from_name): Delete.
5434 * ada-lex.l (lexer_init): Make static.
5436 2012-03-01 Pedro Alves <palves@redhat.com>
5440 * frame.c (read_frame_register_unsigned): New.
5441 * frame.h (read_frame_register_unsigned): Declare.
5442 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5444 (print_i387_control_word): New parameter `control_p'. Handle it.
5445 (i387_print_float_info): Handle unavailable float registers.
5447 2012-03-01 Keith Seitz <keiths@redhat.com>
5449 * linespec.c (decode_line_2): Sort the list of methods
5450 alphabetically before presenting the user with a selection
5453 2012-03-01 Doug Evans <dje@google.com>
5455 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5457 (dwarf2_read_abbrevs): Remove corresponding initialization.
5459 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5461 * NEWS: Mention new python command class gdb.COMMAND_USER.
5462 * cli/cli-cmds.c (show_user): Print error when used on a python
5464 (init_cli_cmds): Update documentation strings for "show user" and
5465 "set/show max-user-call-depth" to clarify that it does not apply to
5467 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5469 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5471 * top.c (execute_command): Only execute a user-defined command as a
5472 legacy macro if c->user_commands is set.
5474 2012-03-01 Tom Tromey <tromey@redhat.com>
5476 * valprint.h (struct generic_val_print_decorations): New.
5477 (generic_val_print): Declare.
5478 * valprint.c (generic_val_print): New function.
5479 * p-valprint.c (p_decorations): New global.
5480 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5481 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5482 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5483 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5484 * m2-valprint.c (m2_decorations): New global.
5485 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5486 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5487 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5488 TYPE_CODE_ERROR>: Call generic_val_print.
5489 * f-valprint.c (f_decorations): New global.
5490 (f_val_print): Use print_function_pointer_address.
5491 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5492 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5493 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5495 * c-valprint.c (c_decorations): New global.
5496 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5497 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5498 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5499 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5500 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5501 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5504 2012-03-01 Tom Tromey <tromey@redhat.com>
5506 * valprint.c (val_print): Update.
5507 * p-valprint (pascal_val_print): Return void.
5508 * p-lang.h (pascal_val_print): Return void.
5509 * m2-valprint.c (m2_val_print): Return void.
5510 * m2-lang.h (m2_val_print): Return void.
5511 * language.h (struct language_defn) <la_val_print>: Return void.
5512 * language.c (unk_lang_val_print): Return void.
5513 * jv-valprint.c (java_val_print): Return void.
5514 * jv-lang.h (java_val_print): Return void.
5515 * f-valprint.c (f_val_print): Return void.
5516 * f-lang.h (f_val_print): Return void.
5517 * d-valprint.c (d_val_print): Return void.
5518 (dynamic_array_type): Update.
5519 * d-lang.h (d_val_print): Return void.
5520 * c-valprint.c (c_val_print): Return void.
5521 * c-lang.h (c_val_print): Return void.
5522 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5524 * ada-lang.h (ada_val_print): Return void.
5526 2012-03-01 Tom Tromey <tromey@redhat.com>
5528 * value.h (val_print): Return void.
5529 * valprint.c (val_print): Return void.
5531 2012-03-01 Tom Tromey <tromey@redhat.com>
5533 * value.h (common_val_print): Return void.
5534 * valprint.c (common_val_print): Return void.
5536 2012-03-01 Tom Tromey <tromey@redhat.com>
5538 * value.h (value_print): Return void.
5539 * valprint.c (value_print): Return void.
5540 * p-valprint.c (pascal_value_print): Return void.
5541 * p-lang.h (pascal_value_print): Return void.
5542 * language.h (struct language_defn) <la_value_print>: Return
5544 * language.c (unk_lang_value_print): Return void.
5545 * jv-valprint.c (java_value_print): Return void.
5546 * jv-lang.h (java_value_print): Return void.
5547 * f-valprint.c (c_value_print): Don't declare.
5549 * c-valprint.c (c_value_print): Return void.
5550 * c-lang.h (c_value_print): Return void.
5551 * ada-valprint.c (ada_value_print): Return void.
5552 * ada-lang.h (ada_value_print): Return void.
5554 2012-03-01 Tom Tromey <tromey@redhat.com>
5556 * value.c (value_primitive_field): Handle virtual base classes.
5558 2012-03-01 Tom Tromey <tromey@redhat.com>
5560 * gdbtypes.h (struct vbase): Remove.
5562 2012-03-01 Tom Tromey <tromey@redhat.com>
5564 * c-valprint.c (print_function_pointer_address): Move...
5565 * valprint.c: ... here. Make non-static.
5566 * m2-valprint.c (print_function_pointer_address): Remove.
5567 * valprint.h (print_function_pointer_address): Declare.
5569 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5571 * NEWS: Document the fact that one can provide a condition when
5572 creating an Ada exception catchpoint.
5574 2012-03-01 Tom Tromey <tromey@redhat.com>
5576 * valprint.c (val_print_type_code_flags): Fix placement of
5579 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5581 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5582 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5583 environment variable before calling update-copyright.
5585 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5587 * gnulib/extra/update-copyright: Update to the latest from
5588 gnulib's git repository.
5589 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5590 variable to 2 instead of 1.
5592 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5594 * varobj.c (c_value_of_variable): Remove dead code.
5596 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5598 * ada-lex.p (processId): Do not modify already encoded IDs.
5599 Update function documentation.
5601 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5603 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5604 "name" with "struct symbol *name_sym".
5605 * ada-exp.y (write_var_or_type): Update call to
5606 ada_find_renaming_symbol.
5607 "name" with "struct symbol *name_sym". Adjust Implementation
5608 accordingly. Adjust the function documentation.
5610 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5612 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5613 * ada-lang.c (ada_find_any_type): Add advance declaration.
5614 Make static. Replace ada_find_any_symbol by
5615 ada_find_any_type_symbol.
5616 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5617 Improve function description. Make static.
5618 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5619 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5621 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5623 * ada-lang.c (struct tag_args): Delete.
5624 (ada_get_tsd_type): Function body moved up in source file.
5625 (ada_tag_name_1, ada_tag_name_2): Delete.
5626 (ada_get_tsd_from_tag): New function.
5627 (ada_tag_name_from_tsd): New function.
5628 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5629 to determine the tag name.
5631 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5633 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5635 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5638 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5640 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5642 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5644 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5647 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5649 * ada-lang.c (constrained_packed_array_type): If there is a
5650 parallel XA type, use it to determine the array index type.
5652 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5654 * ada-valprint.c (ada_val_print_1): If our value is a reference
5655 to an array descriptor, dereference it before converting it
5658 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5660 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5661 creating fixed value.
5662 (ada_value_ind, ada_coerce_ref, assign_component)
5663 (ada_evaluate_subexp): Remove call to unwrap_value before
5664 call to ada_to_fixed_value.
5666 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5668 * ada-lang.c (to_fixed_array_type): Set result's type name.
5670 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5672 * ada-lang.c (catch_ada_exception_command_split): Add new
5673 argument cond_string. Add support for condition at end of
5674 "catch exception" commands.
5675 (ada_decode_exception_location): Add new argument cond_string.
5676 Update call to catch_ada_exception_command_split.
5677 (create_ada_exception_catchpoint): Add new argument cond_string.
5678 Set the breakpoint condition if needed.
5679 (catch_ada_exception_command): Update call to
5680 ada_decode_exception_location.
5681 (ada_decode_assert_location): Add function documentation.
5682 Add support for condition at end of "catch assert" command.
5683 (catch_assert_command): Update calls to ada_decode_assert_location
5684 and create_ada_exception_catchpoint.
5686 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5688 Fix disp-step-syscall.exp: fork: single step over fork.
5689 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5690 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5691 comment, change parameters gdbarch and ptid to regcache. Remove
5692 parameter regcache, initialize gdbarch from regcache here.
5693 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5695 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5697 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5698 'syscall'. Make the 'int' check more strict.
5700 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5702 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5703 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5704 (i386_linux_intx80_sysenter_syscall_record): ... here.
5705 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5706 Use the renamed function name.
5708 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5710 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5711 * breakpoint.c (until_break_command): Likewise.
5712 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5713 * infcall.c (call_function_by_hand): Likewise.
5714 * infcmd.c (finish_forward): Likewise.
5715 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5717 2012-02-28 Tristan Gingold <gingold@adacore.com>
5719 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5720 avoid variable assignments inside condition.
5722 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5724 Fix static analysis issue found by cppcheck.
5725 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5726 uninitialized BUF for size 2.
5728 2012-02-27 Chris Dearman <chris@mips.com>
5729 Nathan Froyd <froydnj@codesourcery.com>
5730 Maciej W. Rozycki <macro@codesourcery.com>
5732 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5733 (mips16_instruction_has_delay_slot): Likewise.
5734 (mips_segment_boundary): Likewise.
5735 (mips_adjust_breakpoint_address): Likewise.
5736 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5738 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5739 Maciej W. Rozycki <macro@codesourcery.com>
5741 * infrun.c (handle_inferior_event): Don't proceed through
5742 shared library trampolines if stepping at the machine
5745 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5747 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5750 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5752 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5753 (sh_stub_unwind_sniffer): New functions.
5754 (sh_stub_unwind): New variable.
5755 (sh_gdbarch_init): Wire everything.
5757 2012-02-27 Pedro Alves <palves@redhat.com>
5759 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5760 (linux_nat_post_attach_wait): Adjust to use
5761 linux_proc_pid_is_stopped.
5762 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5763 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5764 based on pid_is_stopped from both linux-nat.c and
5765 gdbserver/linux-low.c, and renamed.
5767 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5769 * remote.c (remote_watchpoint_addr_within_range): New function.
5770 (init_remote_ops): Use it.
5772 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5774 * target.h (target_watchpoint_addr_within_range): Document macro.
5776 2012-02-24 Pedro Alves <palves@redhat.com>
5778 * stack.c (set_last_displayed_sal): Issue internal_error instead
5779 of warning, and issue it after clearing the last displayed sal.
5781 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5782 Pedro Alves <palves@redhat.com>
5784 * breakpoint.c (until_break_command): Install breakpoints after
5785 all frame manipulations.
5787 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5789 * remote.c (remote_supports_cond_breakpoints): New forward
5791 (remote_add_target_side_condition): New function.
5792 (remote_insert_breakpoint): Add target-side breakpoint
5793 conditional if supported.
5794 (remote_insert_hw_breakpoint): Likewise.
5795 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5798 * target.c (update_current_target): Inherit
5799 to_supports_evaluation_of_breakpoint_conditions.
5800 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5802 * target.h (struct target_ops)
5803 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5804 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5806 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5807 (condition_evaluation_both, condition_evaluation_auto,
5808 condition_evaluation_host, condition_evaluation_target,
5809 condition_evaluation_enums, condition_evaluation_mode_1,
5810 condition_evaluation_mode): New static globals.
5811 (translate_condition_evaluation_mode): New function.
5812 (breakpoint_condition_evaluation_mode): New function.
5813 (gdb_evaluates_breakpoint_condition_p): New function.
5814 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5815 (mark_breakpoint_modified): New function.
5816 (mark_breakpoint_location_modified): New function.
5817 (set_condition_evaluation_mode): New function.
5818 (show_condition_evaluation_mode): New function.
5819 (bp_location_compare_addrs): New function.
5820 (get_first_location_gte_addr): New helper function.
5821 (set_breakpoint_condition): Free condition bytecode if locations
5822 has become unconditional. Call mark_breakpoint_modified (...).
5823 (condition_command): Call update_global_location_list (1) for
5825 (breakpoint_xfer_memory): Use is_breakpoint (...).
5826 (is_breakpoint): New function.
5827 (parse_cond_to_aexpr): New function.
5828 (build_target_condition_list): New function.
5829 (insert_bp_location): Handle target-side conditional
5830 breakpoints and call build_target_condition_list (...).
5831 (update_inserted_breakpoint_locations): New function.
5832 (insert_breakpoint_locations): Handle target-side conditional
5834 (bpstat_check_breakpoint_conditions): Add comment.
5835 (bp_condition_evaluator): New function.
5836 (bp_location_condition_evaluator): New function.
5837 (print_breakpoint_location): Print information on where the condition
5839 (print_one_breakpoint_location): Likewise.
5840 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5841 breakpoint location.
5842 (force_breakpoint_reinsertion): New functions.
5843 (update_global_location_list): Handle target-side breakpoint
5845 Reinsert locations that are already inserted if conditions have
5847 (bp_location_dtor): Free agent expression bytecode.
5848 (disable_breakpoint): Call mark_breakpoint_modified (...).
5849 Call update_global_location_list (...) with parameter 1 for breakpoints.
5850 (disable_command): Call mark_breakpoint_location_modified (...).
5851 Call update_global_location_list (...) with parameter 1 for breakpoints.
5852 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5853 (enable_command): mark_breakpoint_location_modified (...).
5854 (_initialize_breakpoint): Update documentation and add
5855 condition-evaluation breakpoint subcommand.
5857 * breakpoint.h: Include ax.h.
5858 (condition_list): New data structure.
5859 (condition_status): New enum.
5860 (bp_target_info) <cond_list>: New field.
5861 (bp_location) <condition_changed, cond_bytecode>: New fields.
5862 (is_breakpoint): New prototype.
5864 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5866 * remote.c (remote_state) <cond_breakpoints>: New field.
5867 (PACKET_ConditionalBreakpoints): New enum.
5868 (remote_cond_breakpoint_feature): New function.
5869 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5870 (remote_supports_cond_breakpoints): New function.
5871 (_initialize_remote): Add new packet configuration for
5872 target-side conditional breakpoints.
5874 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5876 * NEWS: Mention target-side conditional breakpoint support,
5877 new condition-evaluation breakpoint subcommand and remote
5880 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5882 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5885 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5887 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5888 (after_prologue): Remove.
5890 2012-02-23 Tom Tromey <tromey@redhat.com>
5892 * jv-valprint.c (java_val_print): Remove dead code.
5894 2012-02-23 Tristan Gingold <gingold@adacore.com>
5896 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5897 known_tasks_element and known_tasks_length fields.
5898 (read_known_tasks_array): Change argument type. Use pointer type
5899 and number of elements from DATA. Adjust.
5900 (read_known_tasks_list): Likewise.
5901 (get_known_tasks_addr): Remove.
5902 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5903 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5904 type and array length. Merge former get_known_tasks_addr code.
5906 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5909 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5910 it after set_momentary_breakpoint.
5912 2012-02-22 Sterling Augustine <saugustine@google.com>
5915 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5917 2012-02-22 Gary Benson <gbenson@redhat.com>
5919 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5920 (find_slot_in_mapped_hash): Likewise.
5922 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5925 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5926 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5927 * configure: Regenerate.
5929 2012-02-21 Tristan Gingold <gingold@adacore.com>
5930 Pedro Alves <palves@redhat.com>
5932 * ia64-tdep.c: Do not include libunwind-ia64.h.
5933 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5934 Include libunwind-ia64.h instead of libunwind.h.
5935 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5936 for libunwind.h existence.
5937 * configure, config.in: Regenerate.
5939 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5941 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5942 instead of value_rtti_target_type.
5943 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5944 instead of value_rtti_target_type.
5945 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5946 value_rtti_target_type.
5947 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5948 (value_rtti_target_type): Rename to ...
5949 (value_rtti_indirect_type): ... here and make it indirect. Update
5951 * value.c (readjust_indirect_value_type): New function.
5952 (coerce_ref): Support for enclosing type setting for references
5953 with readjust_indirect_value_type.
5954 * value.h (readjust_value_type): New declaration.
5955 (value_rtti_target_type): Rename to ...
5956 (value_rtti_indirect_type): ... here.
5958 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5960 * MAINTAINERS (Write After Approval): Add myself to the list.
5962 2012-02-20 Doug Evans <dje@google.com>
5964 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5965 Rename objfile_p_char parameter to objfilep.
5966 (build_objfile_section_table): Result is now void. All callers
5968 * objfiles.h (struct objfile): Tweak comments, whitespace.
5969 (build_objfile_section_table): Update.
5971 * elfread.c (elf_symfile_segments): Fix warning text.
5973 2012-02-20 Tom Tromey <tromey@redhat.com>
5976 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5977 particular set of file names once.
5978 (dw2_map_symbol_filenames): Likewise.
5980 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5983 * main.c (write_files): Remove the declaration.
5984 (external_editor_command): Move the declaration ...
5985 [GDBTK] (external_editor_command): ... here. Fix the comment.
5987 2012-02-20 Tom Tromey <tromey@redhat.com>
5989 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5992 2012-02-20 Tristan Gingold <gingold@adacore.com>
5994 * darwin-nat.h (enum darwin_msg_state): Add comments.
5996 2012-02-20 Tristan Gingold <gingold@adacore.com>
5998 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
6001 2012-20-18 Joel Brobecker <brobecker@adacore.com>
6003 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
6004 between function description and implementation.
6006 2012-02-17 Tom Tromey <tromey@redhat.com>
6009 * python/py-event.c (event_object_getset): New global.
6010 (event_object_type): Reference it.
6011 * python/py-type.c (field_object_getset): New global.
6012 (field_object_type): Reference it.
6013 * python/python-internal.h (gdb_py_generic_dict): Declare.
6014 * python/py-utils.c (gdb_py_generic_dict): New function.
6016 2012-02-17 Tristan Gingold <gingold@adacore.com>
6018 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6020 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
6022 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
6023 TYPE_CALLING_CONVENTION annotation.
6025 2012-02-16 Kevin Buettner <kevinb@redhat.com>
6027 * MAINTAINERS: Add rx to target ISA section.
6028 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
6029 (ALLDEPFILES): Add rx-tdep.c.
6031 2012-02-16 Tom Tromey <tromey@redhat.com>
6033 * symfile.c (symbol_file_add_main_1): Use inferior's
6035 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
6036 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
6038 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
6040 (follow_exec): Use inferior's symfile_flags.
6041 * inferior.h (struct inferior) <symfile_flags>: New field.
6043 2012-02-16 Mike Frysinger <vapier@gentoo.org>
6046 * remote-sim.c (gdbsim_create_inferior): Call error() when
6047 sim_create_inferior() fails.
6049 2012-02-16 Josh Matthews <josh@joshmatthews.net>
6051 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
6053 2012-02-16 Tom Tromey <tromey@redhat.com>
6056 * thread.c (struct current_thread_cleanup) <was_removable>: New
6058 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
6059 (make_cleanup_restore_current_thread): Initialize new field.
6061 2012-02-15 Kevin Buettner <kevinb@redhat.com>
6063 * MAINTAINERS: Add rl78 to target ISA section.
6064 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
6065 (ALLDEPFILES): Add rl78-tdep.c.
6066 * NEWS: Mention rl78 as a new target.
6068 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
6070 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6072 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6074 2012-02-15 Tom Tromey <tromey@redhat.com>
6077 * infcmd.c (registers_info): Print just the current register's
6080 2012-02-15 Tom Tromey <tromey@redhat.com>
6082 * python/py-symbol.c (sympy_value): Use _().
6084 2012-02-15 Pedro Alves <palves@redhat.com>
6086 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6087 output to be like native targets'.
6088 (remote_pid_to_str): Special case the null ptid.
6090 2012-02-14 Stan Shebs <stan@codesourcery.com>
6092 * NEWS: Mention enable count command.
6093 * breakpoint.h (struct breakpoint): New field enable_count.
6094 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6095 (enable_breakpoint): Add arg to call.
6096 (struct disp_data): New struct.
6097 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6098 (do_map_enable_once_breakpoint): Create a struct and pass it.
6099 (do_map_enable_delete_breakpoint): Ditto.
6100 (do_map_enable_count_breakpoint): New function.
6101 (enable_count_command): New function.
6102 (bpstat_stop_status): Decrement enable_count.
6103 (print_one_breakpoint_location): Report enable count.
6104 (_initialize_breakpoint): Add enable count command.
6106 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6108 * rl78-tdep.c (reggroups.h): Include.
6109 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6110 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6111 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6112 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6113 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6114 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6115 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6116 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6117 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6118 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6119 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6120 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6121 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6122 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6123 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6124 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6125 beginning of register list.
6126 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6127 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6128 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6129 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6130 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6131 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6132 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6133 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6134 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6135 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6136 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6137 the pseudo registers. Rearrange other pseudo registers too so
6138 that the bank registers appear at the end.
6139 (rl78_register_type): Account for the fact that the byte sized
6140 bank registers are now pseudo-registers.
6141 (rl78_register_name): Rearrange the register name array. Make
6142 initial set of raw banked registers inaccessible.
6143 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6144 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6145 case for copying bytes back and forth between raw and pseudo
6146 versions of the banked registers. Update other cases to reflect
6148 (rl78_return_value): Update to account for changed names of
6150 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6151 rl78_register_sim_regno().
6153 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6155 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6156 the name parameter being passed to find_pc_partial_function().
6158 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6160 * MAINTAINERS: Step down from being ia64 target maintainer.
6162 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6164 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6165 compilation warning.
6167 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6169 Fix crash on loaded shlibs without loaded exec_bfd.
6170 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6171 (set_section_command): Replace exec_bfd by p->bfd.
6173 2012-02-10 Tom Tromey <tromey@redhat.com>
6175 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6176 when we have a C++ qualified name.
6178 2012-02-10 Pedro Alves <palves@redhat.com>
6180 * inferior.c (inferior_pid_to_str): New.
6181 (print_inferior, inferior_command): Use it.
6183 2012-02-10 Pedro Alves <palves@redhat.com>
6185 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6187 * configure: Regenerate.
6189 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6191 * linespec.c (decode_line_internal): Fix comment correctness.
6193 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
6196 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6197 * amd64bsd-nat.c: Add support for debug registers (adapted from
6199 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6200 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6201 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6202 (amd64bsd_dr_get_control): New functions.
6203 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6204 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6205 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6206 watchpoints initialization.
6207 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6209 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6211 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6213 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6215 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6217 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6219 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6221 * language.h (symbol_name_cmp_ftype): Renames
6222 symbol_name_match_p_ftype.
6223 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6224 la_get_symbol_name_match_p.
6225 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6226 ada_get_symbol_name_match_p. Update comment.
6227 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6228 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6229 Renames symbol_name_match_p. Update field type.
6230 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6231 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6232 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6233 "la_get_symbol_name_cmp" in comments.
6234 * language.c: Likewise.
6236 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6238 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6240 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6241 (amd64_sol2_gregset32_reg_offs): Likewise.
6243 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6245 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6246 of the returned BFD is allocated by GDB.
6248 2012-02-07 Tom Tromey <tromey@redhat.com>
6251 * python/python-internal.h (frame_object_type): Declare.
6252 * python/py-symbol.c (sympy_needs_frame): New function.
6253 (sympy_value): New function.
6254 (symbol_object_getset): Add "needs_frame".
6255 (symbol_object_methods): Add "value".
6256 * python/py-frame.c (frame_object_type): No longer static.
6258 2012-02-07 Tom Tromey <tromey@redhat.com>
6261 * python/py-symbol.c (sympy_line): New function.
6262 (symbol_object_getset): Add "line".
6264 2012-02-07 Tom Tromey <tromey@redhat.com>
6266 * charset.c (find_charset_names): Check 'in' against NULL.
6268 2012-02-06 Doug Evans <dje@google.com>
6270 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6271 and fields.name members from char * to const char *. All uses updated.
6272 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6273 from char * to const char *. All uses updated.
6274 (type_name_no_tag): Update.
6275 (lookup_unsigned_typename, lookup_signed_typename): Update.
6276 * gdbtypes.c (type_name_no_tag): Change result type
6277 from char * to const char *. All callers updated.
6278 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6279 name parameter from char * to const char *.
6280 * symtab.h (struct cplus_specific): Change type of demangled_name
6281 member from char * to const char *. All uses updated.
6282 (struct general_symbol_info): Change type of name and
6283 mangled_lang.demangled_name members from char * to const char *.
6285 (symbol_get_demangled_name, symbol_natural_name): Update.
6286 (symbol_demangled_name, symbol_search_name): Update.
6287 * symtab.c (symbol_get_demangled_name): Change result type
6288 from char * to const char *. All callers updated.
6289 (symbol_natural_name, symbol_demangled_name): Ditto.
6290 (symbol_search_name): Ditto.
6291 (completion_list_add_name): Change type of symname,sym_text,
6292 text,word parameters from char * to const char *.
6293 (completion_list_objc_symbol): Change type of sym_text,
6294 text,word parameters from char * to const char *.
6295 * ada-lang.c (find_struct_field): Change type of name parameter
6296 from char * to const char *.
6297 (encoded_ordered_before): Similarly for N0,N1 parameters.
6298 (old_renaming_is_invisible): Similarly for function_name parameter.
6299 (ada_type_name): Change result type from char * to const char *.
6300 All callers updated.
6301 * ada-lang.h (ada_type_name): Update.
6302 * buildsym.c (hashname): Change type of name parameter
6303 from char * to const char *.
6304 * buildsym.h (hashname): Update.
6305 * dbxread.c (end_psymtab): Change type of include_list parameter
6306 from char ** to const char **.
6307 * dwarf2read.c (determine_prefix): Change result type
6308 from char * to const char *. All callers updated.
6309 * f-lang.c (find_common_for_function): Change type of name, funcname
6310 parameters from char * to const char *.
6311 * f-lang.c (find_common_for_function): Update.
6312 * f-valprint.c (list_all_visible_commons): Change type of funcname
6313 parameters from char * to const char *.
6314 * gdbarch.sh (static_transform_name): Change type of name parameter
6315 and result from char * to const char *.
6316 * gdbarch.c: Regenerate.
6317 * gdbarch.h: Regenerate.
6318 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6319 of name parameter from char * to const char *.
6320 * jv-lang.c (java_primitive_type_from_name): Ditto.
6321 (java_demangled_signature_length): Similarly for signature parameter.
6322 (java_demangled_signature_copy): Ditto.
6323 (java_demangle_type_signature): Ditto.
6324 * jv-lang.h (java_primitive_type_from_name): Update.
6325 (java_demangle_type_signature): Update.
6326 * objc-lang.c (specialcmp): Change type of a,b parameters
6327 from char * to const char *.
6328 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6329 from char * to const char *. All callers updated.
6330 * p-lang.h (is_pascal_string_type): Update.
6331 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6332 of name parameter from char * to const char *.
6333 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6334 * utils.c (fprintf_symbol_filtered): Ditto.
6335 * defs.h (fprintf_symbol_filtered): Update.
6336 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6337 * stabsread.h (end_psymtab): Update.
6338 * stack.c (find_frame_funname): Change type of funname parameter
6339 from char ** to const char **.
6340 * stack.h (find_frame_funname): Update.
6341 * typeprint.c (type_print): Change type of varstring parameter
6342 from char * to const char *.
6343 * value.h (type_print): Update.
6344 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6345 from char * to const char *. All callers updated.
6346 (xcoff_end_psymtab): Change type of include_list parameter
6347 from char ** to const char **. All callers updated.
6348 (swap_sym): Similarly for name parameter. All callers updated.
6349 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6351 (process_coff_symbol): Use xstrdup.
6352 * stabsread.c (stabs_method_name_from_physname): Renamed from
6353 update_method_name_from_physname. Change result type from void
6354 to char *. All callers updated.
6355 (read_member_functions): In has_destructor case, store name in objfile
6356 obstack instead of malloc space. In !has_stub case, fix mem leak.
6358 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6360 * configure: Rebuild.
6361 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6364 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6366 * configure.tgt (rl78-*-elf): New target.
6367 * rl78-tdep.c: New file.
6369 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6371 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6372 and continue the loop. Add QUIT statement.
6374 2012-02-03 Tom Tromey <tromey@redhat.com>
6377 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6378 bfd_lookup_symbol_from_symtab.
6379 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6380 gdb_bfd_lookup_symbol_from_symtab.
6382 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6384 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6385 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6386 symbol. Add assertion that sym2 is never NULL.
6388 2012-02-02 Doug Evans <dje@google.com>
6390 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6391 "name" parameter to const char ** from char **. All callers updated.
6392 (find_pc_partial_function): Ditto.
6393 (cache_pc_function_name): Change type to const char * from char *.
6394 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6395 (find_pc_partial_function): Update.
6396 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6397 type of "name" parameter to const char * from char *.
6399 * arch-utils.c (generic_in_solib_return_trampoline): Change
6400 type of "name" parameter to const char * from char *.
6401 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6402 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6403 type of "name" parameter to const char * from char *.
6404 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6405 * gdbarch.c: Regenerate.
6406 * gdbarch.h: Regenerate.
6407 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6408 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6409 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6410 type of "name" parameter to const char * from char *.
6411 * skip.c (skip_function_pc): Ditto.
6412 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6413 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6414 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6415 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6416 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6417 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6418 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6419 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6420 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6422 2012-02-02 Pedro Alves <palves@redhat.com>
6424 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6425 the current inferior has no execution. Make sure the current
6426 remote process matches gdb's current inferior.
6428 2012-02-02 Tom Tromey <tromey@redhat.com>
6431 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6434 2012-02-02 Tom Tromey <tromey@redhat.com>
6437 * symtab.c (lookup_language_this): Set block_found.
6439 2012-02-01 Tom Tromey <tromey@redhat.com>
6442 * jit.c (struct jit_inferior_data): Rewrite.
6443 (struct jit_objfile_data): New.
6444 (get_jit_objfile_data): New function.
6445 (add_objfile_entry): Update.
6446 (jit_read_descriptor): Return int. Replace descriptor_addr
6447 argument with inf_data. Update. Don't call error.
6448 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6450 (jit_inferior_init): Don't look up descriptor. Don't call error.
6451 (jit_reset_inferior_data_and_breakpoints)
6452 (jit_inferior_created_observer): Remove.
6453 (jit_inferior_exit_hook): Update.
6454 (jit_executable_changed_observer): Remove.
6455 (jit_event_handler): Update.
6456 (free_objfile_data): Reset inferior data if needed.
6457 (_initialize_jit): Update.
6459 2012-02-01 Tom Tromey <tromey@redhat.com>
6461 * jit.c (bfd_open_from_target_memory): Move higher in file.
6463 2012-02-01 Tristan Gingold <gingold@adacore.com>
6465 * libunwind-frame.c (libunwind_load): Display message if dlopen
6468 2012-02-01 Gary Benson <gbenson@redhat.com>
6470 * symtab.h (symbol_found_callback_ftype): New typedef.
6471 (iterate_over_symbols): Use the above.
6472 * symtab.c (iterate_over_symbols): Likewise.
6473 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6474 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6475 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6476 (iterate_name_matcher): Document return values.
6477 (collect_one_symbol): Likewise.
6478 (collect_function_symbols): Likewise.
6479 (collect_symbols): Likewise.
6481 2012-02-01 Tom Tromey <tromey@redhat.com>
6483 * ada-lang.c (resolve_subexp): Update.
6484 (ada_lookup_symbol_list): Add 'full_search' argument.
6485 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6486 ada_lookup_symbol_list.
6487 (ada_lookup_encoded_symbol): Update.
6488 (get_var_value): Update.
6489 * ada-exp.y (block_lookup): Update.
6490 (write_var_or_type): Update.
6491 (write_name_assoc): Update.
6492 * ada-lang.h (ada_lookup_symbol_list): Update.
6494 2012-01-31 Tom Tromey <tromey@redhat.com>
6496 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6499 2012-01-31 Doug Evans <dje@google.com>
6501 * symtab.h: Remove outdated comment.
6502 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6504 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6506 Fix build error in Darwin port.
6507 * i386-darwin-nat.c: Include i386-nat.h.
6509 2012-01-30 Tom Tromey <tromey@redhat.com>
6511 PR breakpoints/13568:
6512 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6513 argument. Check for recursive includes.
6514 (dwarf_decode_macros): Create an include hash.
6516 2012-01-30 Michael Eager <eager@eagercon.com>
6518 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6519 * ppc-linux-tdep.c: Include glibc-tdep.h.
6520 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6521 (powerpc_linux_in_plt_stub): New function.
6522 (powerpc_linux_in_dynsym_resolve_code): New function.
6523 (ppc_skip_trampoline_code): New function.
6524 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6525 Use glibc_skip_solib_resolver.
6527 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6529 Code cleanup: Make 1440 bytes of data segment read-only.
6530 * arch-utils.c (endian_enum): Make it const char *const [].
6531 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6533 * breakpoint.c (always_inserted_enums): Likewise.
6534 * cli/cli-cmds.c (script_ext_enums): Likewise.
6535 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6536 enumlist parameter const char *const *.
6537 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6538 const char *const *.
6539 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6540 parameter const char *const *.
6541 * cris-tdep.c (cris_modes): Make it const char *const [].
6542 * filesystem.c (target_file_system_kinds): Likewise.
6543 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6544 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6545 (can_use_displaced_stepping_enum, scheduler_enums)
6546 (exec_direction_names): Likewise.
6547 * language.c (_initialize_language): Make the type_or_range_names and
6548 case_sensitive_names variables const char *const [].
6549 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6550 * python/python.c (python_excp_enums): Likewise.
6551 * remote.c (interrupt_sequence_modes): Likewise.
6552 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6553 * serial.c (logbase_enums): Likewise.
6554 * sh-tdep.c (sh_cc_enum): Likewise.
6555 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6557 * symtab.c (multiple_symbols_modes): Likewise.
6558 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6560 * utils.c (internal_problem_modes): Likewise.
6562 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6564 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6565 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6568 2012-01-27 Doug Evans <dje@google.com>
6570 * configure.ac (with_python): Fix absolute path handling for win32.
6571 * configure: Regenerate.
6573 2012-01-26 Doug Evans <dje@google.com>
6575 * symtab.c: Whitespace cleanup, no code changes.
6577 * symtab.c (lookup_symbol_in_language): Improve comment.
6578 (lookup_symbol_aux): Fix comment.
6580 * psymtab.c (add_psymbol_to_list): Result is now "void".
6581 * psympriv.h (add_psymbol_to_list): Update.
6583 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6585 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6587 Do not open script filenames twice.
6588 * cli/cli-cmds.c (source_script_from_stream): Pass to
6589 source_python_script also STREAM.
6590 * python/py-auto-load.c (source_section_scripts): Pass to
6591 source_python_script_for_objfile also STREAM.
6592 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6594 * python/python-internal.h (source_python_script_for_objfile): New
6595 parameter file, rename parameter file to filename.
6596 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6597 instead if !_WIN32. Update the function comment.
6598 (source_python_script, source_python_script_for_objfile)
6599 (source_python_script): New parameter file, rename parameter file to
6600 filename. Pass FILENAME to python_run_simple_file.
6601 * python/python.h (source_python_script): New parameter file, rename
6602 parameter file to filename.
6604 2012-01-26 Pedro Alves <palves@redhat.com>
6606 * corelow.c (core_has_fake_pid): Delete.
6607 (core_close): Delete references to `core_has_fake_pid'.
6608 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6609 (core_open): Delete references to `core_has_fake_pid'.
6610 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6613 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6615 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6616 Remove language parameter from name_matcher. Adjust the comment.
6617 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6618 Remove language parameter.
6619 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6620 * linespec.c (iterate_name_matcher): Likewise.
6621 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6622 name_matcher. Adjust call accordingly.
6623 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6624 (maintenance_check_symtabs): Adjust type of parameter "fun".
6625 * psymtab.h (maintenance_check_symtabs): Likewise.
6627 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6629 * language.h (symbol_name_match_p_ftype): New typedef.
6630 (struct language_defn): Replace field la_symbol_name_compare
6631 by la_get_symbol_name_match_p.
6632 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6633 (ada_language_defn): Use it.
6634 * linespec.c (struct symbol_matcher_data): New type.
6635 (iterate_name_matcher): Rewrite.
6636 (iterate_over_all_matching_symtabs): Pass a pointer to
6637 a symbol_matcher_data struct to expand_symtabs_matching
6638 instead of just the lookup name.
6639 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6640 opencl-lang.c, p-lang.c, language.c: Delete field
6641 la_symbol_name_compare, and replace by NULL for new field
6642 la_get_symbol_name_match_p.
6643 * symfile.h (struct quick_symbol_functions): Update comment.
6645 2012-01-25 Tom Tromey <tromey@redhat.com>
6647 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6650 2012-01-24 Tom Tromey <tromey@redhat.com>
6653 * solib.c (update_solib_list): Update the program space's
6654 added_solibs and deleted_solibs fields.
6655 * progspace.h (struct program_space) <added_solibs,
6656 deleted_solibs>: New fields.
6657 (clear_program_space_solib_cache): Declare.
6658 * progspace.c (release_program_space): Call
6659 clear_program_space_solib_cache.
6660 (clear_program_space_solib_cache): New function.
6661 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6662 bpstat_stop_status. Use handle_solib_event.
6663 * breakpoint.c: Include gdb_regex.h.
6664 (print_solib_event): New function.
6665 (bpstat_print): Use print_solib_event.
6666 (bpstat_stop_status): Add special case for bp_shlib_event.
6667 (handle_solib_event): New function.
6668 (bpstat_what): Use handle_solib_event.
6669 (struct solib_catchpoint): New.
6670 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6671 (breakpoint_hit_catch_solib, check_status_catch_solib)
6672 (print_it_catch_solib, print_one_catch_solib)
6673 (print_mention_catch_solib, print_recreate_catch_solib): New
6675 (catch_solib_breakpoint_ops): New global.
6676 (catch_load_or_unload, catch_load_command_1)
6677 (catch_unload_command_1): New functions.
6678 (internal_bkpt_check_status): Add special case for
6680 (internal_bkpt_print_it): Use print_solib_event.
6681 (initialize_breakpoint_ops): Initialize
6682 catch_solib_breakpoint_ops.
6683 (_initialize_breakpoint): Register "catch load" and "catch
6685 * breakpoint.h (handle_solib_event): Declare.
6686 * NEWS: Add entry for "catch load" and "catch unload".
6688 2012-01-24 Tom Tromey <tromey@redhat.com>
6690 * ada-lang.c: Include gdb_vecs.h.
6691 * charset.c: Include gdb_vecs.h.
6692 * tracepoint.h: Include gdb_vecs.h.
6693 * gdb_vecs.h: New file.
6695 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6697 * breakpoint.c (breakpoint_hit_catch_fork)
6698 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6699 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6700 * infrun.c (inferior_has_forked, inferior_has_vforked)
6701 (inferior_has_execd, inferior_has_called_syscall): Delete.
6702 (handle_syscall_event): Get syscall_number from the execution
6703 control state's wait status.
6704 (wait_for_inferior): Don't clear syscall_number.
6706 2012-01-24 Pedro Alves <palves@redhat.com>
6708 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6709 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6710 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6711 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6713 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6714 false for events other than TARGET_SIGNAL_TRAP.
6715 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6717 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6718 events other than TARGET_SIGNAL_TRAP.
6719 (tracepoint_breakpoint_hit): Add `ws' parameter.
6720 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6722 (bpstat_stop_status): Same.
6723 (pc_at_non_inline_function): Same.
6724 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6725 to pass the current event's waitstatus to bpstat_stop_status
6726 and pc_at_non_inline_function.
6728 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6731 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6732 Update the function comment for it.
6733 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6734 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6737 2012-01-24 Pedro Alves <palves@redhat.com>
6739 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6740 outside `bs->stop' block.
6741 (bpstat_what): Rework bp_shlib_event handling.
6742 (internal_bkpt_check_status): If the breakpoint is a
6743 bp_shlib_event, then set bs->stop and bs->print if
6744 stop_on_solib_events is set.
6746 2012-01-24 Gary Benson <gbenson@redhat.com>
6748 Delete #if 0'd out code.
6749 * stack.c (print_frame_label_vars): Remove.
6750 (catch_info): Likewise.
6751 (_initialize_stack): Remove "info catch" command.
6752 * NEWS: Mention the above.
6754 2012-01-24 Pedro Alves <palves@redhat.com>
6756 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6758 (remote_notice_new_inferior): If the remote end doesn't support
6759 the multiprocess extensions, then the PID is fake.
6760 (add_current_inferior_and_thread): New.
6761 (remote_start_remote): Use it.
6762 (extended_remote_attach_1): Adjust.
6763 (extended_remote_create_inferior_1): Use
6764 add_current_inferior_and_thread.
6766 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6768 Fix watchpoints to be specific for each inferior.
6769 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6770 current_program_space.
6771 * i386-nat.c (i386_inferior_data_cleanup): New.
6772 (i386_inferior_data_get): Replace variable inf_data_local by an
6774 (i386_use_watchpoints): Initialize i386_inferior_data.
6775 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6776 specific iterate_over_lwps.
6778 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6780 Fix watchpoints across inferior fork.
6781 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6782 comment for linux_nat_iterate_watchpoint_lwps.
6783 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6784 linux_nat_iterate_watchpoint_lwps.
6785 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6786 * i386-linux-nat.c (update_debug_registers_callback): Update the
6787 comment for linux_nat_iterate_watchpoint_lwps.
6788 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6789 linux_nat_iterate_watchpoint_lwps.
6790 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6791 * i386-nat.c: Include inferior.h.
6792 (dr_mirror): Remove.
6793 (i386_inferior_data, struct i386_inferior_data)
6794 (i386_inferior_data_get): New.
6795 (i386_debug_reg_state): Use i386_inferior_data_get.
6796 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6797 (i386_insert_watchpoint, i386_remove_watchpoint)
6798 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6799 (i386_remove_hw_breakpoint): New variable state, use
6800 i386_debug_reg_state instead of DR_MIRROR.
6801 * linux-nat.c (delete_lwp): New declaration.
6802 (num_lwps): Move here from downwards.
6803 (delete_lwp_cleanup): New.
6804 (linux_child_follow_fork): Create new child_lp, call
6805 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6807 (num_lwps): Move upwards.
6808 (linux_nat_iterate_watchpoint_lwps): New.
6809 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6810 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6812 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6816 2012-01-23 Pedro Alves <palves@redhat.com>
6818 * top.c (caution): Rename to ...
6819 (confirm): ... this.
6820 (show_caution): Rename to ...
6821 (show_confirm): ... this.
6822 (quit_cover): Adjust.
6823 (init_main): Adjust.
6824 * top.h (caution): Rename to ...
6825 (confirm): ... this.
6826 * utils.c (internal_vproblem, defaulted_query): Adjust.
6828 2012-01-23 Pedro Alves <palves@redhat.com>
6830 * top.c (caution): Update comment.
6831 (execute_command): Don't consider the current value of `caution'.
6833 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6835 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6837 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6839 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6840 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6841 * target.c (target_fileio_pwrite): Remove buffer address from
6843 (target_fileio_pread): Likewise.
6845 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6847 * NEWS: Document remote "info proc" and "generate-core-file".
6849 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6851 * gdbarch.sh (find_memory_regions): New callback.
6852 * gdbarch.c, gdbarch.h: Regenerate.
6854 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6855 callback before falling back to target method.
6857 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6858 (linux_target_install_ops): No longer install it.
6860 * linux-tdep.c (linux_find_memory_regions): New function.
6861 (linux_init_abi): Install it.
6863 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6865 * gdbarch.sh (make_corefile_notes): New architecture callback.
6866 * gdbarch.c: Regenerate.
6867 * gdbarch.h: Likewise.
6869 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6870 before target_make_corefile_notes. If NULL is returned, the
6871 target does not support core file generation.
6873 * linux-nat.c: Include "linux-tdep.h".
6874 (find_signalled_thread, find_stop_signal): Remove.
6875 (linux_nat_do_thread_registers): Likewise.
6876 (struct linux_nat_corefile_thread_data): Likewise.
6877 (linux_nat_corefile_thread_callback): Likewise.
6878 (iterate_over_spus): Likewise.
6879 (struct linux_spu_corefile_data): Likewise.
6880 (linux_spu_corefile_callback): Likewise.
6881 (linux_spu_make_corefile_notes): Likewise.
6882 (linux_nat_collect_thread_registers): New function.
6883 (linux_nat_make_corefile_notes): Replace contents by call to
6884 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6885 as native-only callback.
6887 * linux-tdep.h: Include "bfd.h".
6888 (struct regcache): Add forward declaration.
6889 (linux_collect_thread_registers_ftype): New typedef.
6890 (linux_make_corefile_notes): Add prototype.
6891 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6892 "regset.h", and "elf-bfd.h".
6893 (find_signalled_thread, find_stop_signal): New functions.
6894 (linux_spu_make_corefile_notes): Likewise.
6895 (linux_collect_thread_registers): Likewise.
6896 (struct linux_corefile_thread_data): New data structure.
6897 (linux_corefile_thread_callback): New funcion.
6898 (linux_make_corefile_notes): Likewise.
6899 (linux_make_corefile_notes_1): Likewise.
6900 (linux_init_abi): Install it.
6902 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6904 * gdbarch.sh (info_proc): New callback.
6905 * gdbarch.c, gdbarch.h: Regenerate.
6907 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6908 before falling back to the target info_proc callback.
6910 * linux-nat.c: Do not include "cli/cli-utils.h".
6911 (linux_nat_info_proc): Remove.
6912 (linux_target_install_ops): No longer install it.
6914 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6915 (read_mapping): New function.
6916 (linux_info_proc): Likewise.
6917 (linux_init_abi): Install it.
6919 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6921 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6922 * infcmd.c: (info_proc_cmd_1): New function.
6923 (info_proc_cmd): New function, moved here from equivalent routine
6924 orignally in linux-nat.c.
6925 (info_proc_cmd_mappings): Likewise.
6926 (info_proc_cmd_stat): Likewise.
6927 (info_proc_cmd_status): Likewise.
6928 (info_proc_cmd_cwd): Likewise.
6929 (info_proc_cmd_cmdline): Likewise.
6930 (info_proc_cmd_exe): Likewise.
6931 (info_proc_cmd_all): Likewise.
6932 (_initialize_infcmd): Install "info proc" command and subcommands.
6934 * target.h (struct target_ops): Add to_info_proc.
6935 (target_info_proc): Add prototype.
6936 * target.c (target_info_proc): New function.
6938 * procfs.c (procfs_info_proc): Add prototype.
6939 (info_proc_cmd): Rename into ...
6940 (procfs_info_proc): ... this. Update argument types as appropriate
6941 for a to_info_proc implementation. Handle "what" argument.
6942 (procfs_target): Install procfs_info_proc.
6943 (_initialize_procfs): No longer install "info proc" command.
6945 * linux-nat.c: (enum info_proc_what): Remove.
6946 (linux_nat_info_proc_cmd_1): Rename into ...
6947 (linux_nat_info_proc): ... this. Update argument types as appropriate
6948 for a to_info_proc implementation.
6949 (linux_nat_info_proc_cmd): Remove.
6950 (linux_nat_info_proc_cmd_mappings): Likewise.
6951 (linux_nat_info_proc_cmd_stat): Likewise.
6952 (linux_nat_info_proc_cmd_status): Likewise.
6953 (linux_nat_info_proc_cmd_cwd): Likewise.
6954 (linux_nat_info_proc_cmd_cmdline): Likewise.
6955 (linux_nat_info_proc_cmd_exe): Likewise.
6956 (linux_nat_info_proc_cmd_all): Likewise.
6957 (linux_target_install_ops): Install linux_nat_info_proc.
6958 (_initialize_linux_nat): No longer install "info proc" command
6961 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6963 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6964 * config.in, configure: Regenerate.
6966 * target.h (struct target_ops): Add to_fileio_readlink.
6967 (target_fileio_readlink): Add prototype.
6968 * target.c (target_fileio_readlink): New function.
6970 * inf-child.c: Conditionally include <sys/param.h>.
6971 (inf_child_fileio_readlink): New function.
6972 (inf_child_target): Install it.
6974 * remote.c (PACKET_vFile_readlink): New enum value.
6975 (remote_hostio_readlink): New function.
6976 (init_remote_ops): Install it.
6977 (_initialize_remote): Handle vFile:readlink packet type.
6979 2012-01-20 Pedro Alves <palves@redhat.com>
6980 Ulrich Weigand <ulrich.weigand@linaro.org>
6982 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6983 * config.in, configure: Regenerate.
6985 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6986 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6987 (target_fileio_open): Add prototype.
6988 (target_fileio_pwrite): Likewise.
6989 (target_fileio_pread): Likewise.
6990 (target_fileio_close): Likewise.
6991 (target_fileio_unlink): Likewise.
6992 (target_fileio_read_alloc): Likewise.
6993 (target_fileio_read_stralloc): Likewise.
6995 * target.c: Include "gdb/fileio.h".
6996 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6997 (default_fileio_target): New function.
6998 (target_fileio_open): Likewise.
6999 (target_fileio_pwrite): Likewise.
7000 (target_fileio_pread): Likewise.
7001 (target_fileio_close): Likewise.
7002 (target_fileio_unlink): Likewise.
7003 (target_fileio_close_cleanup): Likewise.
7004 (target_fileio_read_alloc_1): Likewise.
7005 (target_fileio_read_alloc): Likewise.
7006 (target_fileio_read_stralloc): Likewise.
7008 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
7009 <fcntl.h>, and <unistd.h>.
7010 (inf_child_fileio_open_flags_to_host): New function.
7011 (inf_child_errno_to_fileio_error): Likewise.
7012 (inf_child_fileio_open): Likewise.
7013 (inf_child_fileio_pwrite): Likewise.
7014 (inf_child_fileio_pread): Likewise.
7015 (inf_child_fileio_close): Likewise.
7016 (inf_child_fileio_unlink): Likewise.
7017 (inf_child_target): Install to_fileio routines.
7019 * remote.c (init_remote_ops): Install to_fileio routines.
7021 2012-01-20 Pedro Alves <palves@redhat.com>
7022 Ulrich Weigand <ulrich.weigand@linaro.org>
7024 * remote.c (remote_multi_process_p): Only check for multi-process
7025 protocol feature, do not check for extended protocol.
7026 (remote_supports_multi_process): Check for extended protocol here.
7027 (set_general_process): Likewise.
7028 (extended_remote_kill): Likewise.
7029 (remote_pid_to_str): Likewise.
7030 (remote_query_supported): Always query multiprocess mode.
7032 2012-01-20 Pedro Alves <palves@redhat.com>
7033 Ulrich Weigand <ulrich.weigand@linaro.org>
7035 * inferior.h (struct inferior): Add fake_pid_p.
7036 * inferior.c (exit_inferior_1): Clear fake_pid_p.
7037 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
7038 magic_null_ptid since the remote side doesn't provide a real PID.
7040 2012-01-19 Tom Tromey <tromey@redhat.com>
7042 * NEWS: Combine the two Python sections.
7044 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7046 * target.h (target_close): Update comment on the target's unpush state.
7048 2012-01-19 Pedro Alves <palves@redhat.com>
7050 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
7051 linux_nat_async directly instead of going through the target
7053 * target.c (unpush_target): Close target after unpushing it, not
7056 2012-01-19 Gary Benson <gbenson@redhat.com>
7058 * mdebugread.c (sort_blocks): Replace integer constants with ones
7059 derived from FIRST_LOCAL_BLOCK.
7061 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
7062 Jan Kratochvil <jan.kratochvil@redhat.com>
7065 * symfile.c (find_separate_debug_file): New function.
7066 (terminate_after_last_dir_separator): Likewise.
7067 (find_separate_debug_file_by_debuglink): Also try realpath.
7068 * configure.ac (AC_CHECK_FUNCS): Add lstat.
7069 * configure: Regenerate.
7070 * config.in: Regenerate.
7072 2012-01-18 Doug Evans <dje@google.com>
7074 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7075 (main.o): Remove rule.
7076 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7077 (--with-sysroot): Rewrite.
7078 * configure: Regenerate.
7079 * config.in: Regenerate.
7081 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
7083 * parse.c (initialize_expout): New function.
7084 (reallocate_expout): Likewise.
7085 (parse_exp_in_context): Use `initialize_expout' and
7086 `reallocate_expout' when appropriate.
7088 2012-01-18 Pedro Alves <palves@redhat.com>
7090 * record.c (struct record_breakpoint, record_breakpoint_p)
7091 (record_breakpoints): New.
7092 (record_insert_breakpoint, record_remove_breakpoint): Manage
7093 record breakpoints list. Only remove breakpoints from the
7094 inferior if they had been inserted there in the first place.
7096 2012-01-17 Doug Evans <dje@google.com>
7098 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7099 if we know we don't have a file name to look for.
7101 2012-01-17 Pedro Alves <palves@redhat.com>
7103 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7104 the frame's stop reason is UNWIND_UNAVAILABLE.
7106 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7108 Fix compilation error.
7109 * m2-exp.y (yyerror): Use ANSI C prototype.
7111 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7113 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7114 (growbuf_by_size): Likewise.
7115 (yyerror): Likewise.
7116 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7117 (modblock): Remove variable (was #if 0'ed).
7118 (parse_number): Convert prototype from K&R to ANSI C.
7119 (yyerror): Likewise.
7120 * objc-exp.y (parse_number): Likewise.
7121 (yyerror): Likewise.
7122 (yylex): Remove #if 0'ed code.
7123 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7124 (yyerror): Likewise.
7126 2012-01-16 Tom Tromey <tromey@redhat.com>
7129 * symtab.h (compare_filenames_for_search): Declare.
7130 * symtab.c (compare_filenames_for_search): New function.
7131 (iterate_over_some_symtabs): Use it.
7132 * symfile.h (struct quick_symbol_functions)
7133 <map_symtabs_matching_filename>: Change spec.
7134 * psymtab.c (partial_map_symtabs_matching_filename): Use
7135 compare_filenames_for_search. Update for new spec.
7136 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7137 compare_filenames_for_search. Update for new spec.
7138 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7140 2012-01-16 Tom Tromey <tromey@redhat.com>
7143 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7144 (struct main_type) <flag_flag_enum>: New field.
7145 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7146 * NEWS: Add entries.
7147 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7149 * python/lib/gdb/printing.py (_EnumInstance): New class.
7150 (FlagEnumerationPrinter): Likewise.
7152 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7154 * breakpoint.c (create_sals_from_address_default): New function.
7155 (create_breakpoints_sal_default): Likewise.
7156 (decode_linespec_default): Likewise.
7157 (is_marker_spec): Removed.
7158 (strace_marker_p): New function.
7159 (init_breakpoint_sal): Using `strace_marker_p' instead of
7161 (create_breakpoint): Call method `create_sals_from_address' from
7162 breakpoint_ops, replacing code that created SALs conditionally
7163 on the type of the breakpoint. Call method `create_breakpoints_sal',
7164 replacing code that created breakpoints conditionally on the type
7166 (base_breakpoint_create_sals_from_address): New function.
7167 (base_breakpoint_create_breakpoints_sal): Likewise.
7168 (base_breakpoint_decode_linespec): Likewise.
7169 (base_breakpoint_ops): Add methods
7170 `base_breakpoint_create_sals_from_address',
7171 `base_breakpoint_create_breakpoints_sal' and
7172 `base_breakpoint_decode_linespec'.
7173 (bkpt_create_sals_from_address): New function.
7174 (bkpt_create_breakpoints_sal): Likewise.
7175 (bkpt_decode_linespec): Likewise.
7176 (tracepoint_create_sals_from_address): Likewise.
7177 (tracepoint_create_breakpoints_sal): Likewise.
7178 (tracepoint_decode_linespec): Likewise.
7179 (strace_marker_create_sals_from_address): Likewise.
7180 (strace_marker_create_breakpoints_sal): Likewise.
7181 (strace_marker_decode_linespec): Likewise.
7182 (strace_marker_breakpoint_ops): New variable.
7183 (addr_string_to_sals): Remove `marker_spec'. Call method
7184 `decode_linespec' from breakpoint_ops, replacing code that decoded
7185 an address string into a SAL. Use `strace_marker_p' instead of
7187 (strace_command): Decide whether we are dealing with a static
7188 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7189 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7190 * breakpoint.h (linespec_result, linespec_sals): New forward
7192 (breakpoint_ops) <create_sals_from_address>,
7193 <create_breakpoints_sal>, <decode_linespec>: New methods.
7195 2012-01-14 Doug Evans <dje@google.com>
7197 * NEWS: Update text for "maint set python print-stack".
7198 It is deprecated in gdb 7.4 and deleted in 7.5.
7200 2012-01-13 Eli Zaretskii <eliz@gnu.org>
7202 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7205 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7207 * configure: Regenerate.
7208 * config.in: Regenerate.
7210 2012-01-12 Keith Seitz <keiths@redhat.com>
7213 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7214 (ANONYMOUS_UNION_NAME): Define.
7215 (is_path_expr_parent): New function.
7216 (get_path_expr_parent): New function.
7217 (is_anonymous_child): New function.
7218 (create_child_with_value): If the child is anonymous and without
7219 a name, assign an object name to it.
7220 (c_describe_child): Use get_path_expr_parent to determine
7221 the parent expression.
7222 If there field represents an anonymous struct or union and
7223 has no name, set an appropriate display name and expression.
7224 (cplus_describe_child): Likewise.
7226 2012-01-12 Pedro Alves <palves@redhat.com>
7228 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7229 available when %ebp is found to be zero (outermost).
7231 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
7233 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7234 an internal gdb_static_assert.
7235 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7237 2012-01-11 Tom Tromey <tromey@redhat.com>
7240 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7241 catch" and "catch throw".
7243 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7245 * blockframe.c (block_innermost_frame): Start search from selected
7246 frame, if present, or otherwise the current frame.
7248 * c-exp.y (variable): Update innermost_block for
7249 'block COLONCOLON NAME' clause.
7250 * m2-exp.y (variable): Ditto.
7251 * objc-exp.y (variable): Ditto.
7253 2012-01-10 Tom Tromey <tromey@redhat.com>
7256 * python/python.c (finish_python_initialization): Set sys.argv.
7258 2012-01-10 Doug Evans <dje@google.com>
7260 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7261 "want_line_info". All callers updated.
7262 (dwarf_decode_lines_1): New function.
7263 (handle_DW_AT_stmt_list): Add function comment.
7264 New arg "want_line_info". All callers updated.
7265 (read_file_scope,read_type_unit_scope): Move comment from
7266 handle_DW_AT_stmt_list to here.
7268 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7270 Fix regression after libiberty/ update for GCC PR 6057 and others.
7271 * c-exp.y (operator) <OPERATOR DELETE>
7272 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7273 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7274 (make_builtin_type, make_name): New variable i, add gdb_assert.
7275 (operator) <OPERATOR NEW>: Update ARGS to 3.
7276 (operator) <OPERATOR DELETE>: Add trailing space.
7277 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7278 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7279 * cp-support.c (cp_canonicalize_string): Check NULL from
7280 cp_comp_to_string, call warning and return.
7282 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7284 Fix duplicate .o files after omitting libbfd.a.
7285 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7286 (SFILES): Add corelow.c.
7287 (COMMON_OBS): Add corelow.o.
7288 (ALLDEPFILES): Remove corelow.c.
7289 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7290 * config/alpha/alpha-osf3.mh: Likewise.
7291 * config/alpha/fbsd.mh: Likewise.
7292 * config/arm/nbsdaout.mh: Likewise.
7293 * config/arm/nbsdelf.mh: Likewise.
7294 * config/i386/i386gnu.mh: Likewise.
7295 * config/ia64/hpux.mh: Likewise.
7296 * config/ia64/linux.mh: Likewise.
7297 * config/m32r/linux.mh: Likewise.
7298 * config/m68k/linux.mh: Likewise.
7299 * config/mips/irix5.mh: Likewise.
7300 * config/mips/irix6.mh: Likewise.
7301 * config/pa/hpux.mh: Likewise.
7302 * config/pa/linux.mh: Likewise.
7303 * config/powerpc/aix.mh: Likewise.
7304 * config/sparc/linux.mh: Likewise.
7305 * config/sparc/linux64.mh: Likewise.
7306 * config/sparc/sol2.mh: Likewise.
7307 * config/vax/vax.mh: Likewise.
7308 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7309 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7310 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7311 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7312 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7313 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7314 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7315 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7316 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7317 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7318 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7319 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7320 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7321 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7322 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7323 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7324 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7325 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7326 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7327 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7328 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7329 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7330 corelow.o from gdb_target_obs.
7331 * corefile.c (core_target): Update the comment on NULL value.
7332 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7333 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7334 MATCHES. Drop YUMMY set on NULL.
7335 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7336 reclaim CORE_DATA if it is already NULL.
7338 2012-01-09 Doug Evans <dje@google.com>
7340 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7341 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7343 2012-01-09 Keith Seitz <keiths@redhat.com>
7345 * breakpoint.c (wrapper.h): Don't include.
7347 2012-01-09 Keith Seitz <keiths@redhat.com>
7349 * Makefile.in (SFILES): Remove wrapper.c.
7350 (HFILES_NO_SRCDIR): Remove wrapper.h.
7351 (COMMON_OBS): Remove wrapper.o.
7352 * cli/cli-interp.c: Don't inlude wrapper.h.
7353 * corelow.c: Likewise.
7354 (core_open): Replace gdb_target_find_new_threads with
7355 TRY_CATCH around target_find_new_threads.
7356 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7357 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7358 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7359 evaluate_expression.
7360 (varobj_set_value): Likewise for evaluate_expression and
7362 (install_new_variable): Likewise for value_fetch_lazy.
7363 (adjust_value_for_child_access): Likewise for value_ind.
7364 (c_describe_child): Likewise for value_subscript and
7366 (c_value_of_root): Likewise for evaluate_expression.
7367 * wrapper.c: Remove.
7368 * wrapper.h: Remove.
7370 2012-01-09 Doug Evans <dje@google.com>
7372 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7373 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7374 "abfd" args with "section". All callers updated.
7375 Error checking code moved ...
7376 (error_check_comp_unit_head): ... here. New function.
7377 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7378 Delete arg "abfd". New arg "type_offset". All callers updated.
7379 (create_debug_types_hash_table): Simplify by using
7380 read_and_check_type_unit_head.
7382 * parser-defs.h (namecopy): Delete.
7383 * parse.c (namecopy, namecopy_size): Move into copy_name.
7385 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7387 Partially fix duplicate .o files after omitting libbfd.a.
7388 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7389 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7390 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7391 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7392 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7393 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7394 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7396 2012-01-09 Pedro Alves <palves@redhat.com>
7398 * MAINTAINERS: Update my email address.
7400 2012-01-08 Doug Evans <dje@google.com>
7402 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7403 n_type_units. Rename type_comp_units to all_type_units.
7405 (add_signatured_type_cu_to_table): Renamed from
7406 add_signatured_type_cu_to_list. All callers updated.
7408 * gdbtypes.h (struct cplus_struct_type): Delete member
7409 nfn_fields_total. All uses removed.
7411 2012-01-06 Doug Evans <dje@google.com>
7413 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7415 (dwarf2_find_comp_unit): Delete.
7416 (process_psymtab_comp_unit): Make result "void".
7417 Delete args buffer, info_ptr, buffer_size, and replace with
7418 "section". All callers updated.
7419 (dwarf2_build_psymtabs_hard): Simplify.
7421 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7422 Thiago Jung Bauermann <bauerman@br.ibm.com>
7424 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7425 before `struct gdb_exception'.
7426 * breakpoint.c (update_global_location_list_nothrow)
7427 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7428 * cp-abi.c (value_rtti_type): Likewise.
7429 * cp-support.c (cp_validate_operator): Likewise.
7430 * infrun.c (insert_exception_resume_breakpoint)
7431 (check_exception_resume, keep_going): Likewise.
7432 * mi-interp.c (mi_breakpoint_created)
7433 (mi_breakpoint_modified): Likewise.
7434 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7435 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7436 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7438 2012-01-05 Doug Evans <dje@google.com>
7440 * dwarf2read.c (statement_prologue): Delete, unused.
7442 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7443 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7445 * dwarf2read.c (comp_unit_header): Delete, unused.
7447 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7449 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7450 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7452 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7454 * infrun.c (normal_stop): Don't skip calling the normal_stop
7455 observers if the thread was doing a multi-step, but stopped for
7456 some reason other than stepping.
7458 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7460 * cli/cli-decode.h: Add comments.
7461 (CMD_LIST_AMBIGUOUS): Moved to command.h
7462 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7463 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7464 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7465 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7466 (add_com, add_com_alias, add_info, add_info_alias)
7467 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7469 * command.h: Add and adjust comments.
7470 (CMD_LIST_AMBIGUOUS): Moved here.
7471 (help_cmd, help_cmd_list): Delete declarations.
7473 2012-01-04 Doug Evans <dje@google.com>
7475 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7476 All callers updated.
7477 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7478 Replace all arguments with "per_cu". All callers updated.
7480 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7482 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7483 New arg "per_cu". All callers updated.
7485 Delete #if 0'd out code.
7486 * language.c (binop_result_type): Delete.
7487 (simple_type, ordered_type, same_type, integral_type): Delete.
7488 (numeric_type, character_type, string_type, boolean_type): Delete.
7489 (float_type, structured_type): Delete.
7490 * language.h: Update.
7492 2012-01-04 Tom Tromey <tromey@redhat.com>
7494 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7496 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7498 * corefile.c (close_exec_file): Delete.
7499 (reopen_exec_file): Remove commented out code that seems related
7500 to close_exec_file, which is being deleted here.
7501 * inferior.h (close_exec_file): Delete.
7502 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7504 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7506 * ada-lang.c: #include "cli/cli-utils.h".
7507 (get_selections): Use skip_spaces.
7508 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7509 (catch_ada_exception_command_split): Use skip_spaces.
7510 (ada_decode_assert_location): Likewise.
7512 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7514 * linespec.c (decode_line_internal): Check for C++ or Java
7515 compound constructs only if the current language is C, C++
7518 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7521 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7522 Joel Brobecker <brobecker@adacore.com>
7523 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7524 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7526 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7527 fall through into AT_ENTRY_POINT.
7528 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7530 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7531 PPC_INSN_SIZE skip to 3 times.
7533 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7535 * linespec.c (add_minsym): Preserve function descriptors.
7537 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7539 * breakpoint.c (all_locations_are_pending): Consider locations
7540 in program spaces executing during startup pending as well.
7542 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7544 Copyright year update in most files of the GDB Project.
7546 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7548 * copyright.sh: Delete.
7549 * copyright.py: Rewrite.
7551 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7553 * gnulib/extra/update-copyright: New file, imported from gnulib.
7555 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7557 * README (Copyright and License Notices): New section.
7559 2012-01-03 Tom Tromey <tromey@redhat.com>
7562 * python/py-value.c (valpy_dereference, valpy_get_address
7563 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7564 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7565 (valpy_absolute, valpy_richcompare): Free intermediate values.
7567 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7569 * ada-lang.c: Reformat the copyright notice.
7571 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7573 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7574 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7575 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7576 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7577 Revert this part of:
7578 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7579 Build gdb directly from *.o files not using libgdb.a.
7580 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7582 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7584 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7585 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7586 Reformat the copyright header.
7588 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7590 Revert this part of:
7591 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7592 Remove the gdbtui binary.
7593 * gdb.c (main): Remove args.interpreter_p initialization.
7594 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7595 * main.h (struct captured_main_args): Remove interpreter_p.
7597 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7599 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7601 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7603 * top.c (print_gdb_version): Update copyright year.
7605 2012-01-02 Yao Qi <yao@codesourcery.com>
7607 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7609 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7610 Joel Brobecker <brobecker@adacore.com>
7612 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7613 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7615 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7616 fall through into AT_ENTRY_POINT.
7617 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7619 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7620 PPC_INSN_SIZE skip to 3 times.
7622 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7624 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7626 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7628 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7630 Build gdb directly from *.o files not using libgdb.a.
7631 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7632 (COMMON_OBS): Remove solib-target.o.
7633 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7634 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7635 (LIBGDB_OBS, libgdb.a): Move it above.
7636 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7637 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7638 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7639 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7640 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7641 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7642 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7643 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7644 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7645 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7646 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7647 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7648 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7649 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7650 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7651 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7652 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7653 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7654 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7655 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7656 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7657 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7658 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7659 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7660 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7661 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7662 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7664 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7666 Remove the gdbtui binary.
7667 * .gitignore (/gdbtui): Remove.
7668 * Makefile.in (TUI): Remove.
7669 (SUBDIR_TUI_OBS): Remove tui-main.o.
7670 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7671 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7672 (tui-main.o): Remove.
7673 (all_object_files): Remove tui-main.o.
7674 * NEWS: New note for the gdbtui removal.
7675 * configure: Rebuilt.
7676 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7677 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7678 CONFIG_UNINSTALL respectively.
7679 * gdb.c (main): Remove args.interpreter_p initialization.
7680 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7681 * main.h (struct captured_main_args): Remove interpreter_p.
7682 * tui/tui-main.c: Remove.
7684 2012-01-01 Doug Evans <dje@google.com>
7686 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7687 (dwarf2_physname, read_import_statement): Ditto.
7688 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7689 (process_structure_scope read_subroutine_type): Ditto.
7690 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7691 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7692 (dwarf2_fetch_die_location_block): Ditto.
7693 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7695 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7696 All callers updated.
7697 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7698 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7699 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7701 * dwarf2read.c (load_cu): Move assert to more useful location.
7703 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7704 All callers updated.
7706 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7707 (dwarf2_elf_names): Minor reformat.
7708 (dwarf2_per_cu_data): Tweak comment.
7709 (dwarf2_read_section): Fix comment.
7710 (create_all_comp_units): Fix comment.
7711 (load_full_comp_unit): Fix comment.
7712 (process_full_comp_unit): Fix comment.
7713 (read_signatured_type): Fix comment.
7715 For older changes see ChangeLog-2011.
7721 version-control: never