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