* python/lib/gdb/commands/explore.py
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
2
3         * python/lib/gdb/commands/explore.py
4         (CompoundExplorer.explore_expr): Correct the name of a method
5         being invoked.
6         (ExploreTypeCommand.invoke): Add a missing 'return'.
7
8 2013-01-21  Tom Tromey  <tromey@redhat.com>
9
10         * gdb_obstack.h (obconcat): Move declaration here, from...
11         * symfile.h (obconcat): ... here.
12         * gdb_obstack.c: New file.
13         (obconcat): Move from...
14         * symfile.c (obconcat): ... here.
15         * Makefile.in (SFILES): Add gdb_obstack.c.
16         (COMMON_OBS): Add gdb_obstack.o.
17
18 2013-01-21  Tom Tromey  <tromey@redhat.com>
19
20         * symfile.h (obsavestring): Don't declare.
21         * symfile.c (obsavestring): Remove.
22         * ada-exp.y: Use obstack_copy0, not obsavestring.
23         * ada-lang.c: Use obstack_copy0, not obsavestring.
24         * coffread.c: Use obstack_copy0, not obsavestring.
25         * cp-namespace.c: Use obstack_copy0, not obsavestring.
26         * dbxread.c: Use obstack_copy0, not obsavestring.
27         * dwarf2read.c: Use obstack_copy0, not obsavestring.
28         * jit.c: Use obstack_copy0, not obsavestring.
29         * mdebugread.c: Use obstack_copy0, not obsavestring.
30         * psymtab.c: Use obstack_copy0, not obsavestring.
31         * stabsread.c: Use obstack_copy0, not obsavestring.
32         * xcoffread.c: Use obstack_copy0, not obsavestring.
33
34 2013-01-21  Tom Tromey  <tromey@redhat.com>
35
36         * dwarf2read.c (fixup_go_packaging): Save package name
37         on objfile obstack.
38         * gdbtypes.c (init_type): Don't copy name.
39
40 2013-01-21  Tom Tromey  <tromey@redhat.com>
41
42         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
43         const.
44         (struct attribute) <u.str>: Now const.
45         (struct fnfieldlist) <name>: Now const.
46         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
47         (partial_die_parent_scope): Make return type const.
48         (partial_die_full_name, add_partial_symbol): Update.
49         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
50         'name' const.
51         (find_file_and_directory): Make 'name' and 'comp_dir' const.
52         (read_file_scope, read_func_scope, dwarf2_add_field)
53         (dwarf2_add_member_fn, read_structure_type)
54         (process_enumeration_scope, read_array_type, read_module_type)
55         (read_base_type, read_subrange_type): Update.
56         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
57         (new_symbol_full, guess_full_die_structure_name): Update.
58         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
59         (dwarf2_name): Return const type.
60         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
61         const.
62
63 2013-01-21  Tom Tromey  <tromey@redhat.com>
64
65         * gdbtypes.c (init_type): Make 'name' const.
66         * gdbtypes.h (init_type): Update.
67
68 2013-01-21  Tom Tromey  <tromey@redhat.com>
69
70         * buildsym.c (patch_subfile_names): Use set_last_source_file.
71         (start_symtab): Make 'name' and 'dirname' const.  Use
72         set_last_source_file.
73         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
74         (last_source_file): Define.  Now static.
75         (set_last_source_file, get_last_source_file): New functions.
76         * buildsym.h (last_source_file): Don't declare.
77         (start_symtab): Update.
78         (set_last_source_file, get_last_source_file): Declare.
79         * coffread.c (complete_symtab): Use set_last_source_file.
80         (coff_end_symtab): Likewise.
81         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
82         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
83         set_last_source_file.
84         (process_one_symbol): Use get_last_source_file.
85         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
86         (psymtab_to_symtab_1): Use get_last_source_file.
87         * xcoffread.c (process_linenos): Use get_last_source_file.
88         (complete_symtab): Use set_last_source_file.
89         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
90         (scan_xcoff_symtab): Use set_last_source_file.
91
92 2013-01-21  Tom Tromey  <tromey@redhat.com>
93
94         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
95         (symbol_set_names): Remove casts.  Handle field const-ness.
96
97 2013-01-21  Tom Tromey  <tromey@redhat.com>
98
99         * dwarf2read.c (new_symbol_full): Remove cast.
100         * symtab.c (symbol_set_demangled_name): Make 'name' const.
101         * symtab.h (symbol_set_demangled_name): Update.
102
103 2013-01-21  Tom Tromey  <tromey@redhat.com>
104
105         * main.c (captured_main): Call bfd_init.
106
107 2013-01-21  Tom Tromey  <tromey@redhat.com>
108
109         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
110         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
111         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
112         * NEWS: Update.
113
114 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
115
116         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
117
118 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
119
120         Fix gdb.fortran/common-block.exp crash in PIE mode.
121         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
122         LOC_COMMON_BLOCK.
123         * f-valprint.c (info_common_command_for_block): Expect
124         LOC_COMMON_BLOCK in gdb_assert.
125         * symtab.h (struct general_symbol_info): Update comment for the
126         common_block member.
127         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
128         (enum address_class): New member LOC_COMMON_BLOCK.
129
130 2013-01-18  David Blaikie  <dblaikie@gmail.com>
131
132         * MAINTAINERS (Write After Approval): Add "David Blaikie".
133
134 2013-01-18  Tom Tromey  <tromey@redhat.com>
135
136         PR c++/14999:
137         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
138         Call require_rvalue.
139
140 2013-01-18  Yao Qi  <yao@codesourcery.com>
141
142         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
143         (dbx_read_symtab): New declaration.
144         (dbx_psymtab_to_symtab): Delete.
145         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
146         Rename parameter PST to SELF.  Exchanged two parameters.
147         (start_psymtab): Caller update.
148         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
149         (dwarf2_read_symtab): New declaration.
150         (dwarf2_psymtab_to_symtab): Delete.
151         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
152         Rename parameter PST to SELF.  Exchanged two parameters.
153         (create_partial_symtab): Caller update.
154         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
155         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
156         Rename parameter PST to SELF.  Exchanged two parameters.
157         (parse_partial_symbols, new_psymtab): Caller update.
158         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
159         two parameters.
160         * psymtab.c (psymtab_to_symtab): Caller update.
161         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
162         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
163         Rename parameter PST to SELF.  Exchanged two parameters.
164         (xcoff_start_psymtab): Caller update.
165
166 2013-01-18  Yao Qi  <yao@codesourcery.com>
167
168         * infrun.c (proceed): Rename local variable 'oneproc' to
169         'force_step'.
170
171 2013-01-17  Doug Evans  <dje@google.com>
172
173         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
174         (dw2_build_type_unit_groups): Delete.  All uses updated.
175
176         * symtab.h (struct symbol_search): Add comment.
177
178 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
179
180         * symtab.c (compare_filenames_for_search): New comment for
181         HAS_DRIVE_SPEC.
182
183 2013-01-17  Tom Tromey  <tromey@redhat.com>
184
185         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
186
187 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
188
189         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
190         initialize it by existing make_cleanup.  Call new do_cleanups.
191
192 2013-01-17  Tom Tromey  <tromey@redhat.com>
193
194         * cp-abi.c (cp_abi_completer): New function.
195         (_initialize_cp_abi): Set completer for "set cp-abi".
196
197 2013-01-17  Tom Tromey  <tromey@redhat.com>
198
199         * mem-break.c: Remove obsolete comment.
200         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
201
202 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
203
204         * jit.c (jit_reader_load_command): Interpret the jit reader name
205         as an absolute path if it begins with a forward slash.
206
207 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
208
209         PR gdb/14550
210
211         * jit.c (finalize_symtab): Ensure that only the global block has a
212         NULL superblock.
213
214 2013-01-17  Pedro Alves  <palves@redhat.com>
215
216         * acinclude.m4: Include ../config/plugins.m4,
217         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
218         * Makefile.in (aclocal_m4_deps): Update.
219         * aclocal.m4: Renegerate.
220
221 2013-01-16  Doug Evans  <dje@google.com>
222
223         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
224
225 2013-01-16  Pedro Alves  <palves@redhat.com>
226             Tom Tromey  <tromey@redhat.com>
227
228         PR cli/7221:
229         * NEWS: Add "catch signal".
230         * breakpoint.c (base_breakpoint_ops): No longer static.
231         (bpstat_explains_signal): New function.
232         (init_catchpoint): No longer static.
233         (base_breakpoint_explains_signal): New function.
234         (base_breakpoint_ops): Initialize new field.
235         * breakpoint.h (enum bpstat_signal_value): New.
236         (struct breakpoint_ops) <explains_signal>: New field.
237         (bpstat_explains_signal): Remove macro, declare as function.
238         (base_breakpoint_ops, init_catchpoint): Declare.
239         * break-catch-sig.c: New file.
240         * inferior.h (signal_catch_update): Declare.
241         * infrun.c (signal_catch): New global.
242         (handle_syscall_event): Update for change to
243         bpstat_explains_signal.
244         (handle_inferior_event): Likewise.  Always handle random signals
245         via bpstats.
246         (signal_cache_update): Check signal_catch.
247         (signal_catch_update): New function.
248         (_initialize_infrun): Initialize signal_catch.
249         * Makefile.in (SFILES): Add break-catch-sig.c.
250         (COMMON_OBS): Add break-catch-sig.o.
251
252 2013-01-16  Tom Tromey  <tromey@redhat.com>
253
254         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
255         (print_one_catch_solib, print_one_catch_syscall)
256         (print_one_catch_exec, print_one_exception_catchpoint): Emit
257         "catch-type".
258
259 2013-01-16  Yao Qi  <yao@codesourcery.com>
260
261         * printcmd.c (current_display_number): Make it static.
262
263 2013-01-16  Yao Qi  <yao@codesourcery.com>
264
265         * infcmd.c (step_once): Don't check '!single_inst' as it was
266         checked before.
267
268 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
269
270         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
271
272 2013-01-14  Tom Tromey  <tromey@redhat.com>
273
274         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
275         set command.
276         * command.h (add_setshow_string_noescape_cmd): Update.
277         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
278         (complete_set_gnutarget): New function.
279         (_initialize_core): Set the "set gnutarget" completer.
280
281 2013-01-14  Tom Tromey  <tromey@redhat.com>
282
283         PR symtab/14442:
284         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
285         (c_type_print_modifier): Likewise.
286         * dwarf2read.c (read_tag_restrict_type): New function.
287         (read_type_die_1): Handle DW_TAG_restrict_type.
288         * gdbtypes.c (make_restrict_type): New function.
289         (recursive_dump_type): Handle TYPE_RESTRICT.
290         * gdbtypes.h (enum type_flag_values): Renumber.
291         (enum type_instance_flag_value): Add
292         TYPE_INSTANCE_FLAG_RESTRICT.
293         (TYPE_RESTRICT): New macro.
294         (make_restrict_type): Declare.
295
296 2013-01-14  Tom Tromey  <tromey@redhat.com>
297
298         PR symtab/14931:
299         * psymtab.c (struct psymtab_state): New.
300         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
301         functions.
302         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
303         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
304
305 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
306             Pedro Alves  <palves@redhat.com>
307
308         PR remote/14786
309
310         * remote.c (remote_threads_info): Make a copy of the reply from
311         qfThreadInfo and use that instead of rs->buf.
312
313 2013-01-14  Yao Qi  <yao@codesourcery.com>
314
315         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
316         (dbx_psymtab_to_symtab): Likewise.
317         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
318         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
319         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
320
321 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
322
323         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
324         make_cleanup_restore_current_language.  Call set_language.  Move
325         OLD_CHAIN and INNER_CHAIN cleanups.
326         * utils.c (do_restore_current_language)
327         (make_cleanup_restore_current_language): New functions.
328         * utils.h (make_cleanup_restore_current_language): New declaration.
329
330 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
331
332         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
333         non-existing files.
334
335         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
336         non-existing files if FILENAME is already absolute.
337
338 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
339
340         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
341         fputs_filtered.  Append trailing newline.
342
343 2013-01-11  Yao Qi  <yao@codesourcery.com>
344             Stan Shebs  <stan@codesourcery.com>
345
346         * psymtab.c (init_psymbol_list): Clarify the comment.
347
348 2013-01-11  Yao Qi  <yao@codesourcery.com>
349
350         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
351         (update_dprintf_command_list): Assert that 'printf_line' is
352         non-null.  Remove condition check.
353
354 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
355
356         Code cleanup.
357         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
358         type const char *.
359         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
360         const char *.
361         * tui/tui-source.h (tui_source_is_displayed): Likewise.
362
363 2013-01-09  Anthony Green  <green@moxielogic.com>
364
365         * cp-abi.c (cplus_print_vtable): Don't return value from void
366         function.
367         * ada-lang.c (re_set_catch_assert): Ditto.
368
369 2013-01-09  Doug Evans  <dje@google.com>
370
371         * symfile.h (quick_symbol_functions): Delete member
372         pre_expand_symtabs_matching.  All uses removed.
373         * dwarf2read.c (dw2_lookup_symbol): Implement.
374         (dw2_do_expand_symtabs_matching): Delete.
375         (dw2_pre_expand_symtabs_matching): Delete.
376         (struct dw2_symtab_iterator): New type.
377         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
378         (dw2_expand_symtabs_for_function): Rewrite.
379         (dwarf2_gdb_index_functions): Update.
380         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
381         (psym_functions): Update.
382
383 2013-01-09  Tom Tromey  <tromey@redhat.com>
384
385         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
386         * configure: Rebuild.
387         * configure.ac: Add somread.o to the build if BFD has SOM
388         support.
389         * somread.c: Include som/aout.h, not syms.h.
390         (som_symtab_read): Use som_external_symbol_dictionary_record.
391         Unpack records manually.
392         (_initialize_somread): Declare.
393
394 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
395
396         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
397         Cast return_address to 64bits.
398
399 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
400
401         * printcmd.c: Remove define of function output_command.
402         * tracepoint.c: Remove extern of function output_command.
403         * valprint.h: (output_command): New extern.
404
405 2013-01-07  Tom Tromey  <tromey@redhat.com>
406
407         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
408         Remove.
409         (objc_language_defn): Use c_printchar, c_printstr,
410         c_emit_char.
411
412 2013-01-07  Tom Tromey  <tromey@redhat.com>
413
414         PR cli/7719:
415         * NEWS: Update.
416         * ada-valprint.c (printstr, print_field_values): Remove
417         "inspect_it" code.
418         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
419         code.
420         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
421         code.
422         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
423         * main.c (captured_main): Remove "epoch" argument.
424         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
425         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
426         * p-valprint.c (pascal_object_print_value_fields): Remove
427         "inspect_it" code.
428         * printcmd.c (print_command_1): Remove 'inspect' argument.
429         (print_command, call_command): Update.
430         (inspect_command): Remove.
431         (_initialize_printcmd): Make "inspect" an alias for "print".
432         * top.c (epoch_interface): Remove.
433         * top.h (epoch_interface): Remove.
434         * valprint.c (user_print_options): Update.
435         (print_converted_chars_to_obstack): Remove "inspect_it" code.
436         * valprint.h (struct value_print_options) <inspect_it>: Remove
437         field.
438
439 2013-01-04  Tom Tromey  <tromey@redhat.com>
440
441         * valprint.h (read_string): Add 'extern'.
442
443 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
444
445         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
446         used to decide whether to define darwin_read_dyld_info or not.
447
448 2013-01-03  Pierre Muller  <muller@sourceware.org>
449
450         * main.c (relocate_gdb_directory): Avoid calling stat function
451         if DIR is empty.
452
453 2013-01-03  Yao Qi  <yao@codesourcery.com>
454
455         * psymtab.c (fixup_psymbol_section): Update declaration.
456         (fixup_psymbol_section): Remove code returning value.
457
458 2013-01-03  Yao Qi  <yao@codesourcery.com>
459
460         * symtab.h: Remove some out of date comments.
461          (enum exception_event_kind): Move it ...
462         * breakpoint.c: ... here.
463
464 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
465
466         PR gdb/14405
467         * darwin-nat.c (darwin_read_dyld_info): Only build if
468         TASK_DYLD_INFO_COUNT is defined.
469         (darwin_xfer_partial): Call darwin_read_dyld_info only if
470         TASK_DYLD_INFO_COUNT is defined.
471
472 2013-01-02  Tom Tromey  <tromey@redhat.com>
473
474         * symfile.h (struct ecoff_debug_hack): Remove.
475         * objfiles.c: Don't include mdebugread.h.
476
477 2013-01-02  Tom Tromey  <tromey@redhat.com>
478
479         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
480         * configure.ac: Check for Mach-O support in BFD.  Update
481         CONFIG_OBS.
482         * configure: Rebuild.
483
484 2013-01-02  Tom Tromey  <tromey@redhat.com>
485
486         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
487         * configure.ac: Use GDB_AC_CHECK_BFD.
488         * configure: Rebuild.
489
490 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
491
492         * MAINTAINERS: Update my email.
493
494 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
495
496         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
497
498 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
499
500         * rs6000-nat.c (bss_data_overlap): New function.
501         (vmap_symtab): Use it to adjust the .bss section's offset.
502
503 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
504
505         Update year range in copyright notice of all files.
506
507 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
508
509         * top.c (print_gdb_version): Update copyright year.
510
511 For older changes see ChangeLog-2012.
512 \f
513 Local Variables:
514 mode: change-log
515 left-margin: 8
516 fill-column: 74
517 version-control: never
518 coding: utf-8
519 End: