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