1 2013-01-22 Pedro Alves <palves@redhat.com>
3 * annotate.c (breakpoint_changed): Skip if breakpoint is not
6 2013-01-22 Pedro Alves <palves@redhat.com>
8 * annotate.c (annotate_breakpoints_changed): Rename to ...
9 (annotate_breakpoints_invalid): ... this. Make static.
10 (breakpoint_changed): Adjust.
11 (_initialize_annotate): Always install the observers. Install a
12 "breakpoint_created" observer.
13 * annotate.h (annotate_breakpoints_changed): Delete declaration.
14 * breakpoint.c (set_breakpoint_condition)
15 (breakpoint_set_commands, do_map_commands_command)
16 (init_raw_breakpoint, clear_command, set_ignore_count)
17 (enable_breakpoint_disp): No longer call
18 annotate_breakpoints_changed.
20 2013-01-22 Pedro Alves <palves@redhat.com>
22 * annotate.c: Include "inferior.h".
23 (frames_invalid_emitted)
24 (breakpoints_invalid_emitted): New globals.
25 (async_background_execution_p): New function.
26 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
27 emitting the annotation if it has already been emitted.
28 (annotate_display_prompt): New function.
29 * annotate.h (annotate_display_prompt): New declaration.
30 * event-top.c: Include annotate.h.
31 (display_gdb_prompt): Call annotate_display_prompt.
33 2013-01-22 Pedro Alves <palves@redhat.com>
35 * annotate.c (ignore_count_changed): Delete.
36 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
37 (annotate_ignore_count_change): Delete.
38 (annotate_stopped): Don't emit a delayed breakpoints-changed
40 * annotate.h (annotate_ignore_count_change): Delete.
41 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
42 annotate_ignore_count_change.
44 2013-01-22 Tom Tromey <tromey@redhat.com>
46 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
47 require_rvalue for a register location.
49 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
51 * breakpoint.c (print_one_breakpoint_location): Add MI
52 field 'thread-groups' when printing a breakpoint.
53 (output_thread_groups): New function.
55 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
57 * python/lib/gdb/commands/explore.py
58 (CompoundExplorer.explore_expr): Correct the name of a method
60 (ExploreTypeCommand.invoke): Add a missing 'return'.
62 2013-01-21 Tom Tromey <tromey@redhat.com>
64 * gdb_obstack.h (obconcat): Move declaration here, from...
65 * symfile.h (obconcat): ... here.
66 * gdb_obstack.c: New file.
67 (obconcat): Move from...
68 * symfile.c (obconcat): ... here.
69 * Makefile.in (SFILES): Add gdb_obstack.c.
70 (COMMON_OBS): Add gdb_obstack.o.
72 2013-01-21 Tom Tromey <tromey@redhat.com>
74 * symfile.h (obsavestring): Don't declare.
75 * symfile.c (obsavestring): Remove.
76 * ada-exp.y: Use obstack_copy0, not obsavestring.
77 * ada-lang.c: Use obstack_copy0, not obsavestring.
78 * coffread.c: Use obstack_copy0, not obsavestring.
79 * cp-namespace.c: Use obstack_copy0, not obsavestring.
80 * dbxread.c: Use obstack_copy0, not obsavestring.
81 * dwarf2read.c: Use obstack_copy0, not obsavestring.
82 * jit.c: Use obstack_copy0, not obsavestring.
83 * mdebugread.c: Use obstack_copy0, not obsavestring.
84 * psymtab.c: Use obstack_copy0, not obsavestring.
85 * stabsread.c: Use obstack_copy0, not obsavestring.
86 * xcoffread.c: Use obstack_copy0, not obsavestring.
88 2013-01-21 Tom Tromey <tromey@redhat.com>
90 * dwarf2read.c (fixup_go_packaging): Save package name
92 * gdbtypes.c (init_type): Don't copy name.
94 2013-01-21 Tom Tromey <tromey@redhat.com>
96 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
98 (struct attribute) <u.str>: Now const.
99 (struct fnfieldlist) <name>: Now const.
100 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
101 (partial_die_parent_scope): Make return type const.
102 (partial_die_full_name, add_partial_symbol): Update.
103 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
105 (find_file_and_directory): Make 'name' and 'comp_dir' const.
106 (read_file_scope, read_func_scope, dwarf2_add_field)
107 (dwarf2_add_member_fn, read_structure_type)
108 (process_enumeration_scope, read_array_type, read_module_type)
109 (read_base_type, read_subrange_type): Update.
110 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
111 (new_symbol_full, guess_full_die_structure_name): Update.
112 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
113 (dwarf2_name): Return const type.
114 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
117 2013-01-21 Tom Tromey <tromey@redhat.com>
119 * gdbtypes.c (init_type): Make 'name' const.
120 * gdbtypes.h (init_type): Update.
122 2013-01-21 Tom Tromey <tromey@redhat.com>
124 * buildsym.c (patch_subfile_names): Use set_last_source_file.
125 (start_symtab): Make 'name' and 'dirname' const. Use
126 set_last_source_file.
127 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
128 (last_source_file): Define. Now static.
129 (set_last_source_file, get_last_source_file): New functions.
130 * buildsym.h (last_source_file): Don't declare.
131 (start_symtab): Update.
132 (set_last_source_file, get_last_source_file): Declare.
133 * coffread.c (complete_symtab): Use set_last_source_file.
134 (coff_end_symtab): Likewise.
135 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
136 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
137 set_last_source_file.
138 (process_one_symbol): Use get_last_source_file.
139 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
140 (psymtab_to_symtab_1): Use get_last_source_file.
141 * xcoffread.c (process_linenos): Use get_last_source_file.
142 (complete_symtab): Use set_last_source_file.
143 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
144 (scan_xcoff_symtab): Use set_last_source_file.
146 2013-01-21 Tom Tromey <tromey@redhat.com>
148 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
149 (symbol_set_names): Remove casts. Handle field const-ness.
151 2013-01-21 Tom Tromey <tromey@redhat.com>
153 * dwarf2read.c (new_symbol_full): Remove cast.
154 * symtab.c (symbol_set_demangled_name): Make 'name' const.
155 * symtab.h (symbol_set_demangled_name): Update.
157 2013-01-21 Tom Tromey <tromey@redhat.com>
159 * main.c (captured_main): Call bfd_init.
161 2013-01-21 Tom Tromey <tromey@redhat.com>
163 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
164 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
165 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
168 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
170 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
172 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
174 Fix gdb.fortran/common-block.exp crash in PIE mode.
175 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
177 * f-valprint.c (info_common_command_for_block): Expect
178 LOC_COMMON_BLOCK in gdb_assert.
179 * symtab.h (struct general_symbol_info): Update comment for the
181 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
182 (enum address_class): New member LOC_COMMON_BLOCK.
184 2013-01-18 David Blaikie <dblaikie@gmail.com>
186 * MAINTAINERS (Write After Approval): Add "David Blaikie".
188 2013-01-18 Tom Tromey <tromey@redhat.com>
191 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
194 2013-01-18 Yao Qi <yao@codesourcery.com>
196 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
197 (dbx_read_symtab): New declaration.
198 (dbx_psymtab_to_symtab): Delete.
199 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
200 Rename parameter PST to SELF. Exchanged two parameters.
201 (start_psymtab): Caller update.
202 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
203 (dwarf2_read_symtab): New declaration.
204 (dwarf2_psymtab_to_symtab): Delete.
205 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
206 Rename parameter PST to SELF. Exchanged two parameters.
207 (create_partial_symtab): Caller update.
208 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
209 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
210 Rename parameter PST to SELF. Exchanged two parameters.
211 (parse_partial_symbols, new_psymtab): Caller update.
212 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
214 * psymtab.c (psymtab_to_symtab): Caller update.
215 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
216 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
217 Rename parameter PST to SELF. Exchanged two parameters.
218 (xcoff_start_psymtab): Caller update.
220 2013-01-18 Yao Qi <yao@codesourcery.com>
222 * infrun.c (proceed): Rename local variable 'oneproc' to
225 2013-01-17 Doug Evans <dje@google.com>
227 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
228 (dw2_build_type_unit_groups): Delete. All uses updated.
230 * symtab.h (struct symbol_search): Add comment.
232 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
234 * symtab.c (compare_filenames_for_search): New comment for
237 2013-01-17 Tom Tromey <tromey@redhat.com>
239 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
241 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
243 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
244 initialize it by existing make_cleanup. Call new do_cleanups.
246 2013-01-17 Tom Tromey <tromey@redhat.com>
248 * cp-abi.c (cp_abi_completer): New function.
249 (_initialize_cp_abi): Set completer for "set cp-abi".
251 2013-01-17 Tom Tromey <tromey@redhat.com>
253 * mem-break.c: Remove obsolete comment.
254 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
256 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
258 * jit.c (jit_reader_load_command): Interpret the jit reader name
259 as an absolute path if it begins with a forward slash.
261 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
265 * jit.c (finalize_symtab): Ensure that only the global block has a
268 2013-01-17 Pedro Alves <palves@redhat.com>
270 * acinclude.m4: Include ../config/plugins.m4,
271 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
272 * Makefile.in (aclocal_m4_deps): Update.
273 * aclocal.m4: Renegerate.
275 2013-01-16 Doug Evans <dje@google.com>
277 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
279 2013-01-16 Pedro Alves <palves@redhat.com>
280 Tom Tromey <tromey@redhat.com>
283 * NEWS: Add "catch signal".
284 * breakpoint.c (base_breakpoint_ops): No longer static.
285 (bpstat_explains_signal): New function.
286 (init_catchpoint): No longer static.
287 (base_breakpoint_explains_signal): New function.
288 (base_breakpoint_ops): Initialize new field.
289 * breakpoint.h (enum bpstat_signal_value): New.
290 (struct breakpoint_ops) <explains_signal>: New field.
291 (bpstat_explains_signal): Remove macro, declare as function.
292 (base_breakpoint_ops, init_catchpoint): Declare.
293 * break-catch-sig.c: New file.
294 * inferior.h (signal_catch_update): Declare.
295 * infrun.c (signal_catch): New global.
296 (handle_syscall_event): Update for change to
297 bpstat_explains_signal.
298 (handle_inferior_event): Likewise. Always handle random signals
300 (signal_cache_update): Check signal_catch.
301 (signal_catch_update): New function.
302 (_initialize_infrun): Initialize signal_catch.
303 * Makefile.in (SFILES): Add break-catch-sig.c.
304 (COMMON_OBS): Add break-catch-sig.o.
306 2013-01-16 Tom Tromey <tromey@redhat.com>
308 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
309 (print_one_catch_solib, print_one_catch_syscall)
310 (print_one_catch_exec, print_one_exception_catchpoint): Emit
313 2013-01-16 Yao Qi <yao@codesourcery.com>
315 * printcmd.c (current_display_number): Make it static.
317 2013-01-16 Yao Qi <yao@codesourcery.com>
319 * infcmd.c (step_once): Don't check '!single_inst' as it was
322 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
324 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
326 2013-01-14 Tom Tromey <tromey@redhat.com>
328 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
330 * command.h (add_setshow_string_noescape_cmd): Update.
331 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
332 (complete_set_gnutarget): New function.
333 (_initialize_core): Set the "set gnutarget" completer.
335 2013-01-14 Tom Tromey <tromey@redhat.com>
338 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
339 (c_type_print_modifier): Likewise.
340 * dwarf2read.c (read_tag_restrict_type): New function.
341 (read_type_die_1): Handle DW_TAG_restrict_type.
342 * gdbtypes.c (make_restrict_type): New function.
343 (recursive_dump_type): Handle TYPE_RESTRICT.
344 * gdbtypes.h (enum type_flag_values): Renumber.
345 (enum type_instance_flag_value): Add
346 TYPE_INSTANCE_FLAG_RESTRICT.
347 (TYPE_RESTRICT): New macro.
348 (make_restrict_type): Declare.
350 2013-01-14 Tom Tromey <tromey@redhat.com>
353 * psymtab.c (struct psymtab_state): New.
354 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
356 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
357 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
359 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
360 Pedro Alves <palves@redhat.com>
364 * remote.c (remote_threads_info): Make a copy of the reply from
365 qfThreadInfo and use that instead of rs->buf.
367 2013-01-14 Yao Qi <yao@codesourcery.com>
369 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
370 (dbx_psymtab_to_symtab): Likewise.
371 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
372 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
373 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
375 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
377 * parse.c (parse_exp_in_context): New variable inner_chain. Call
378 make_cleanup_restore_current_language. Call set_language. Move
379 OLD_CHAIN and INNER_CHAIN cleanups.
380 * utils.c (do_restore_current_language)
381 (make_cleanup_restore_current_language): New functions.
382 * utils.h (make_cleanup_restore_current_language): New declaration.
384 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
386 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
389 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
390 non-existing files if FILENAME is already absolute.
392 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
394 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
395 fputs_filtered. Append trailing newline.
397 2013-01-11 Yao Qi <yao@codesourcery.com>
398 Stan Shebs <stan@codesourcery.com>
400 * psymtab.c (init_psymbol_list): Clarify the comment.
402 2013-01-11 Yao Qi <yao@codesourcery.com>
404 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
405 (update_dprintf_command_list): Assert that 'printf_line' is
406 non-null. Remove condition check.
408 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
411 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
413 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
415 * tui/tui-source.h (tui_source_is_displayed): Likewise.
417 2013-01-09 Anthony Green <green@moxielogic.com>
419 * cp-abi.c (cplus_print_vtable): Don't return value from void
421 * ada-lang.c (re_set_catch_assert): Ditto.
423 2013-01-09 Doug Evans <dje@google.com>
425 * symfile.h (quick_symbol_functions): Delete member
426 pre_expand_symtabs_matching. All uses removed.
427 * dwarf2read.c (dw2_lookup_symbol): Implement.
428 (dw2_do_expand_symtabs_matching): Delete.
429 (dw2_pre_expand_symtabs_matching): Delete.
430 (struct dw2_symtab_iterator): New type.
431 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
432 (dw2_expand_symtabs_for_function): Rewrite.
433 (dwarf2_gdb_index_functions): Update.
434 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
435 (psym_functions): Update.
437 2013-01-09 Tom Tromey <tromey@redhat.com>
439 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
440 * configure: Rebuild.
441 * configure.ac: Add somread.o to the build if BFD has SOM
443 * somread.c: Include som/aout.h, not syms.h.
444 (som_symtab_read): Use som_external_symbol_dictionary_record.
445 Unpack records manually.
446 (_initialize_somread): Declare.
448 2012-01-08 Mike Frysinger <vapier@gentoo.org>
450 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
451 Cast return_address to 64bits.
453 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
455 * printcmd.c: Remove define of function output_command.
456 * tracepoint.c: Remove extern of function output_command.
457 * valprint.h: (output_command): New extern.
459 2013-01-07 Tom Tromey <tromey@redhat.com>
461 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
463 (objc_language_defn): Use c_printchar, c_printstr,
466 2013-01-07 Tom Tromey <tromey@redhat.com>
470 * ada-valprint.c (printstr, print_field_values): Remove
472 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
474 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
476 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
477 * main.c (captured_main): Remove "epoch" argument.
478 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
479 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
480 * p-valprint.c (pascal_object_print_value_fields): Remove
482 * printcmd.c (print_command_1): Remove 'inspect' argument.
483 (print_command, call_command): Update.
484 (inspect_command): Remove.
485 (_initialize_printcmd): Make "inspect" an alias for "print".
486 * top.c (epoch_interface): Remove.
487 * top.h (epoch_interface): Remove.
488 * valprint.c (user_print_options): Update.
489 (print_converted_chars_to_obstack): Remove "inspect_it" code.
490 * valprint.h (struct value_print_options) <inspect_it>: Remove
493 2013-01-04 Tom Tromey <tromey@redhat.com>
495 * valprint.h (read_string): Add 'extern'.
497 2013-01-07 Joel Brobecker <brobecker@adacore.com>
499 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
500 used to decide whether to define darwin_read_dyld_info or not.
502 2013-01-03 Pierre Muller <muller@sourceware.org>
504 * main.c (relocate_gdb_directory): Avoid calling stat function
507 2013-01-03 Yao Qi <yao@codesourcery.com>
509 * psymtab.c (fixup_psymbol_section): Update declaration.
510 (fixup_psymbol_section): Remove code returning value.
512 2013-01-03 Yao Qi <yao@codesourcery.com>
514 * symtab.h: Remove some out of date comments.
515 (enum exception_event_kind): Move it ...
516 * breakpoint.c: ... here.
518 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
521 * darwin-nat.c (darwin_read_dyld_info): Only build if
522 TASK_DYLD_INFO_COUNT is defined.
523 (darwin_xfer_partial): Call darwin_read_dyld_info only if
524 TASK_DYLD_INFO_COUNT is defined.
526 2013-01-02 Tom Tromey <tromey@redhat.com>
528 * symfile.h (struct ecoff_debug_hack): Remove.
529 * objfiles.c: Don't include mdebugread.h.
531 2013-01-02 Tom Tromey <tromey@redhat.com>
533 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
534 * configure.ac: Check for Mach-O support in BFD. Update
536 * configure: Rebuild.
538 2013-01-02 Tom Tromey <tromey@redhat.com>
540 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
541 * configure.ac: Use GDB_AC_CHECK_BFD.
542 * configure: Rebuild.
544 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
546 * MAINTAINERS: Update my email.
548 2013-01-01 Joel Brobecker <brobecker@adacore.com>
550 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
552 2013-01-01 Joel Brobecker <brobecker@adacore.com>
554 * rs6000-nat.c (bss_data_overlap): New function.
555 (vmap_symtab): Use it to adjust the .bss section's offset.
557 2013-01-01 Joel Brobecker <brobecker@adacore.com>
559 Update year range in copyright notice of all files.
561 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
563 * top.c (print_gdb_version): Update copyright year.
565 For older changes see ChangeLog-2012.
571 version-control: never