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