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