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