PR c++/14998:
[external/binutils.git] / gdb / ChangeLog
1 2013-01-31  Tom Tromey  <tromey@redhat.com>
2
3         PR c++/14998:
4         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
5         TYPE_CODE_FUNC.
6
7 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
8
9         * target.c (target_read_string): Remove unused origlen.
10
11 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
12
13         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
14         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
15         * ax-general.c (ax_print): Remove unused is_float.
16         * blockframe.c (block_innermost_frame): Remove unused start, end.
17         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
18
19 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
20
21         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
22         (svr4_read_so_list): Remove unused lmo.
23         * solib-target.c (solib_target_relocate_section_addresses): Remove
24         unused flags.
25
26 2013-01-30  Tom Tromey  <tromey@redhat.com>
27
28         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
29
30 2013-01-30  Tom Tromey  <tromey@redhat.com>
31
32         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
33         * utils.c (gnu_debuglink_crc32): Remove.
34         * utils.h (gnu_debuglink_crc32): Don't declare.
35
36 2013-01-30  Tom Tromey  <tromey@redhat.com>
37
38         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
39         (read_structure_type, read_enumeration_type): Remove cast.
40
41 2013-01-30  Tom Tromey  <tromey@redhat.com>
42
43         * dwarf2read.c (read_namespace_type): Remove cast.
44         (read_typedef): Likewise.
45
46 2013-01-29  Tom Tromey  <tromey@redhat.com>
47
48         * dwarf2read.c (free_dwo_file): Remove assert.
49
50 2013-01-29  Tom Tromey  <tromey@redhat.com>
51
52         * value.c (deprecated_set_value_modifiable): Remove.
53         * value.h (deprecated_set_value_modifiable): Remove.
54
55 2013-01-28  Doug Evans  <dje@google.com>
56
57         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
58         to addresses from dwo files.
59
60 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
61
62         * valops.c (find_overload_match): Remove unused argument 'lax'.
63         * value.h: Remove unused argument 'lax' from the declaration of
64         find_overload_match.
65         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
66         to find_overload_match.
67         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
68         argument to find_overload_match.
69
70 2013-01-25  Tom Tromey  <tromey@redhat.com>
71
72         * dwarf2read.c (processing_has_namespace_info): Remove.
73         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
74         (process_die, read_func_scope, dwarf2_start_symtab)
75         (new_symbol_full): Update.
76
77 2013-01-25  Tom Tromey  <tromey@redhat.com>
78
79         * cp-namespace.c (cp_set_block_scope): Remove.
80         * cp-support.h (cp_set_block_scope): Remove.
81         * dbxread.c: Include block.h.
82         (cp_set_block_scope): New function.
83         (process_one_symbol): Update.
84         * dwarf2read.c (read_func_scope): Use block_set_scope.
85
86 2013-01-25  Pedro Alves  <palves@redhat.com>
87
88         * remote.c (add_current_inferior_and_thread): Tweak comment.
89
90 2013-01-25  Tom Tromey  <tromey@redhat.com>
91
92         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
93         (cp_add_using_directive): Add 'copy_names' argument.
94         * cp-support.h (cp_add_using_directive): Update.
95         (struct using_direct) <import_src, import_dest, alias,
96         declaration>: Now const.
97         * dwarf2read.c (read_import_statement): Use obconcat.
98         Don't copy names passed to cp_add_using_directive.
99
100 2013-01-25  Tom Tromey  <tromey@redhat.com>
101
102         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
103
104 2013-01-25  Pedro Alves  <palves@redhat.com>
105
106         * remote.c (stop_reply_extract_thread): New.
107         (add_current_inferior_and_thread): New parameter 'wait_status'.
108         Handle it.
109         (remote_start_remote): Pass wait status to
110         add_current_inferior_and_thread.
111         (extended_remote_run): Update comment.
112         (extended_remote_create_inferior_1): Pass wait status to
113         add_current_inferior_and_thread.
114
115 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
116             Ulrich Weigand  <uweigand@de.ibm.com>
117
118         * valarith.c (value_vector_widen): New function for replicating a
119         scalar into a vector.
120         (value_binop): Use value_vector_widen to widen scalar to vector
121         rather than casting, this better matches gcc C behaviour.
122         * valops.c (value_casst): Update logic for casting between vector
123         types, and for casting from scalar to vector, try to match gcc C
124         behaviour.
125         * value.h (value_vector_widen): Declare.
126         * opencl-lang.c (opencl_value_cast): New opencl specific casting
127         function, handle special case for casting scalar to vector.
128         (opencl_relop): Use opencl_value_cast.
129         (evaluate_subexp_opencl): Use opencl_value_cast instead of
130         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
131         in order to use opencl_value_cast.
132
133 2013-01-25  Yao Qi  <yao@codesourcery.com>
134
135         * event-loop.c: Include "queue.h".
136         (gdb_event_p): New typedef.
137         (DECLARE_QUEUE_P): Use.
138         (DEFINE_QUEUE_P): Use.
139         (async_queue_event): Remove.
140         (gdb_event_xfree): New.
141         (initialize_event_loop): New.
142         (process_event): Use QUEUE macros.
143         (event_queue): Remove.
144         (gdb_wait_for_event): Caller update.
145         (check_async_event_handlers): Likewise.
146         (poll_timers): Likewise.
147         * event-loop.h (initialize_event_loop): Declare.
148         * event-loop.c (gdb_event_xfree): New.
149         * top.c (gdb_init): Call initialize_event_loop.
150
151 2013-01-25  Yao Qi  <yao@codesourcery.com>
152
153         * event-loop.c (async_queue_event): Remove one parameter
154         'position'.  Remove code handling 'position' == TAIL.
155         (gdb_wait_for_event): Caller update.
156         (check_async_event_handlers): Caller update.
157         (poll_timers): Caller update.
158         * event-loop.h (enum queue_position): Remove.
159
160 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
161
162         * MAINTAINERS: Update my email.
163
164 2013-01-25  Yao Qi  <yao@codesourcery.com>
165
166         * main.c (print_gdb_help): Remove "--epoch" from the help
167         message.
168
169 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
170
171         * symtab.c (skip_prologue_using_sal): Consider a file
172         change the same as an increased line number
173
174 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
175
176         * MAINTAINERS (Write After Approval): Add myself to the list. 
177
178 2013-01-24  Tom Tromey  <tromey@redhat.com>
179
180         * ada-lang.h (ada_decode_symbol): Make return type const.
181         * ada-lang.c (ada_decode_symbol): Likewise.
182
183 2013-01-23  Doug Evans  <dje@google.com>
184
185         * linespec.c (find_linespec_symbols): Make static.
186
187 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
188
189         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
190         type on float conversion for complex type.
191
192 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
193
194         Add a new class gdb.Architecture which exposes GDB's
195         internal representation of architecture via GDB Python API.
196         * Makefile.in: Add entries corresponding to the new file
197         python/py-arch.c.
198         * NEWS (Python Scripting): Add entries for the new class
199         gdb.Architecture and the new method gdb.Frame.architecture.
200         * python/py-arch.c: Implement gdb.Architecture class.
201         * python/py-frame.c (frapy_arch): Implement the method
202         gdb.Frame.architecture().
203         (frame_object_methods): Add 'architecture' to the method table.
204         * python/python-internal.h: Add declarations of new utility
205         functions.
206         * python/python.c (_initialize_python): Initialize
207         gdb.Architecture class.
208
209 2013-01-23  Doug Evans  <dje@google.com>
210
211         Work around binutils/15021.
212         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
213         type_unit_group out of union s.  All uses updated.
214         (read_index_from_section): Watch for index version 8.
215         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
216         an imported symtab.
217         (write_psymtabs_to_index): Increment version number to 8.
218
219 2013-01-22  Pedro Alves  <palves@redhat.com>
220
221         * annotate.c (breakpoint_changed): Skip if breakpoint is not
222         user-visible.
223
224 2013-01-22  Pedro Alves  <palves@redhat.com>
225
226         * annotate.c (annotate_breakpoints_changed): Rename to ...
227         (annotate_breakpoints_invalid): ... this.  Make static.
228         (breakpoint_changed): Adjust.
229         (_initialize_annotate): Always install the observers.  Install a
230         "breakpoint_created" observer.
231         * annotate.h (annotate_breakpoints_changed): Delete declaration.
232         * breakpoint.c (set_breakpoint_condition)
233         (breakpoint_set_commands, do_map_commands_command)
234         (init_raw_breakpoint, clear_command, set_ignore_count)
235         (enable_breakpoint_disp): No longer call
236         annotate_breakpoints_changed.
237
238 2013-01-22  Pedro Alves  <palves@redhat.com>
239
240         * annotate.c: Include "inferior.h".
241         (frames_invalid_emitted)
242         (breakpoints_invalid_emitted): New globals.
243         (async_background_execution_p): New function.
244         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
245         emitting the annotation if it has already been emitted.
246         (annotate_display_prompt): New function.
247         * annotate.h (annotate_display_prompt): New declaration.
248         * event-top.c: Include annotate.h.
249         (display_gdb_prompt): Call annotate_display_prompt.
250
251 2013-01-22  Pedro Alves  <palves@redhat.com>
252
253         * annotate.c (ignore_count_changed): Delete.
254         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
255         (annotate_ignore_count_change): Delete.
256         (annotate_stopped): Don't emit a delayed breakpoints-changed
257         annotation.
258         * annotate.h (annotate_ignore_count_change): Delete.
259         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
260         annotate_ignore_count_change.
261
262 2013-01-22  Tom Tromey  <tromey@redhat.com>
263
264         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
265         require_rvalue for a register location.
266
267 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
268
269         * breakpoint.c (print_one_breakpoint_location): Add MI
270         field 'thread-groups' when printing a breakpoint.
271         (output_thread_groups): New function.
272
273 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
274
275         * python/lib/gdb/commands/explore.py
276         (CompoundExplorer.explore_expr): Correct the name of a method
277         being invoked.
278         (ExploreTypeCommand.invoke): Add a missing 'return'.
279
280 2013-01-21  Tom Tromey  <tromey@redhat.com>
281
282         * gdb_obstack.h (obconcat): Move declaration here, from...
283         * symfile.h (obconcat): ... here.
284         * gdb_obstack.c: New file.
285         (obconcat): Move from...
286         * symfile.c (obconcat): ... here.
287         * Makefile.in (SFILES): Add gdb_obstack.c.
288         (COMMON_OBS): Add gdb_obstack.o.
289
290 2013-01-21  Tom Tromey  <tromey@redhat.com>
291
292         * symfile.h (obsavestring): Don't declare.
293         * symfile.c (obsavestring): Remove.
294         * ada-exp.y: Use obstack_copy0, not obsavestring.
295         * ada-lang.c: Use obstack_copy0, not obsavestring.
296         * coffread.c: Use obstack_copy0, not obsavestring.
297         * cp-namespace.c: Use obstack_copy0, not obsavestring.
298         * dbxread.c: Use obstack_copy0, not obsavestring.
299         * dwarf2read.c: Use obstack_copy0, not obsavestring.
300         * jit.c: Use obstack_copy0, not obsavestring.
301         * mdebugread.c: Use obstack_copy0, not obsavestring.
302         * psymtab.c: Use obstack_copy0, not obsavestring.
303         * stabsread.c: Use obstack_copy0, not obsavestring.
304         * xcoffread.c: Use obstack_copy0, not obsavestring.
305
306 2013-01-21  Tom Tromey  <tromey@redhat.com>
307
308         * dwarf2read.c (fixup_go_packaging): Save package name
309         on objfile obstack.
310         * gdbtypes.c (init_type): Don't copy name.
311
312 2013-01-21  Tom Tromey  <tromey@redhat.com>
313
314         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
315         const.
316         (struct attribute) <u.str>: Now const.
317         (struct fnfieldlist) <name>: Now const.
318         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
319         (partial_die_parent_scope): Make return type const.
320         (partial_die_full_name, add_partial_symbol): Update.
321         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
322         'name' const.
323         (find_file_and_directory): Make 'name' and 'comp_dir' const.
324         (read_file_scope, read_func_scope, dwarf2_add_field)
325         (dwarf2_add_member_fn, read_structure_type)
326         (process_enumeration_scope, read_array_type, read_module_type)
327         (read_base_type, read_subrange_type): Update.
328         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
329         (new_symbol_full, guess_full_die_structure_name): Update.
330         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
331         (dwarf2_name): Return const type.
332         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
333         const.
334
335 2013-01-21  Tom Tromey  <tromey@redhat.com>
336
337         * gdbtypes.c (init_type): Make 'name' const.
338         * gdbtypes.h (init_type): Update.
339
340 2013-01-21  Tom Tromey  <tromey@redhat.com>
341
342         * buildsym.c (patch_subfile_names): Use set_last_source_file.
343         (start_symtab): Make 'name' and 'dirname' const.  Use
344         set_last_source_file.
345         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
346         (last_source_file): Define.  Now static.
347         (set_last_source_file, get_last_source_file): New functions.
348         * buildsym.h (last_source_file): Don't declare.
349         (start_symtab): Update.
350         (set_last_source_file, get_last_source_file): Declare.
351         * coffread.c (complete_symtab): Use set_last_source_file.
352         (coff_end_symtab): Likewise.
353         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
354         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
355         set_last_source_file.
356         (process_one_symbol): Use get_last_source_file.
357         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
358         (psymtab_to_symtab_1): Use get_last_source_file.
359         * xcoffread.c (process_linenos): Use get_last_source_file.
360         (complete_symtab): Use set_last_source_file.
361         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
362         (scan_xcoff_symtab): Use set_last_source_file.
363
364 2013-01-21  Tom Tromey  <tromey@redhat.com>
365
366         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
367         (symbol_set_names): Remove casts.  Handle field const-ness.
368
369 2013-01-21  Tom Tromey  <tromey@redhat.com>
370
371         * dwarf2read.c (new_symbol_full): Remove cast.
372         * symtab.c (symbol_set_demangled_name): Make 'name' const.
373         * symtab.h (symbol_set_demangled_name): Update.
374
375 2013-01-21  Tom Tromey  <tromey@redhat.com>
376
377         * main.c (captured_main): Call bfd_init.
378
379 2013-01-21  Tom Tromey  <tromey@redhat.com>
380
381         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
382         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
383         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
384         * NEWS: Update.
385
386 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
387
388         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
389
390 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
391
392         Fix gdb.fortran/common-block.exp crash in PIE mode.
393         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
394         LOC_COMMON_BLOCK.
395         * f-valprint.c (info_common_command_for_block): Expect
396         LOC_COMMON_BLOCK in gdb_assert.
397         * symtab.h (struct general_symbol_info): Update comment for the
398         common_block member.
399         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
400         (enum address_class): New member LOC_COMMON_BLOCK.
401
402 2013-01-18  David Blaikie  <dblaikie@gmail.com>
403
404         * MAINTAINERS (Write After Approval): Add "David Blaikie".
405
406 2013-01-18  Tom Tromey  <tromey@redhat.com>
407
408         PR c++/14999:
409         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
410         Call require_rvalue.
411
412 2013-01-18  Yao Qi  <yao@codesourcery.com>
413
414         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
415         (dbx_read_symtab): New declaration.
416         (dbx_psymtab_to_symtab): Delete.
417         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
418         Rename parameter PST to SELF.  Exchanged two parameters.
419         (start_psymtab): Caller update.
420         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
421         (dwarf2_read_symtab): New declaration.
422         (dwarf2_psymtab_to_symtab): Delete.
423         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
424         Rename parameter PST to SELF.  Exchanged two parameters.
425         (create_partial_symtab): Caller update.
426         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
427         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
428         Rename parameter PST to SELF.  Exchanged two parameters.
429         (parse_partial_symbols, new_psymtab): Caller update.
430         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
431         two parameters.
432         * psymtab.c (psymtab_to_symtab): Caller update.
433         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
434         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
435         Rename parameter PST to SELF.  Exchanged two parameters.
436         (xcoff_start_psymtab): Caller update.
437
438 2013-01-18  Yao Qi  <yao@codesourcery.com>
439
440         * infrun.c (proceed): Rename local variable 'oneproc' to
441         'force_step'.
442
443 2013-01-17  Doug Evans  <dje@google.com>
444
445         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
446         (dw2_build_type_unit_groups): Delete.  All uses updated.
447
448         * symtab.h (struct symbol_search): Add comment.
449
450 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
451
452         * symtab.c (compare_filenames_for_search): New comment for
453         HAS_DRIVE_SPEC.
454
455 2013-01-17  Tom Tromey  <tromey@redhat.com>
456
457         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
458
459 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
460
461         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
462         initialize it by existing make_cleanup.  Call new do_cleanups.
463
464 2013-01-17  Tom Tromey  <tromey@redhat.com>
465
466         * cp-abi.c (cp_abi_completer): New function.
467         (_initialize_cp_abi): Set completer for "set cp-abi".
468
469 2013-01-17  Tom Tromey  <tromey@redhat.com>
470
471         * mem-break.c: Remove obsolete comment.
472         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
473
474 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
475
476         * jit.c (jit_reader_load_command): Interpret the jit reader name
477         as an absolute path if it begins with a forward slash.
478
479 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
480
481         PR gdb/14550
482
483         * jit.c (finalize_symtab): Ensure that only the global block has a
484         NULL superblock.
485
486 2013-01-17  Pedro Alves  <palves@redhat.com>
487
488         * acinclude.m4: Include ../config/plugins.m4,
489         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
490         * Makefile.in (aclocal_m4_deps): Update.
491         * aclocal.m4: Renegerate.
492
493 2013-01-16  Doug Evans  <dje@google.com>
494
495         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
496
497 2013-01-16  Pedro Alves  <palves@redhat.com>
498             Tom Tromey  <tromey@redhat.com>
499
500         PR cli/7221:
501         * NEWS: Add "catch signal".
502         * breakpoint.c (base_breakpoint_ops): No longer static.
503         (bpstat_explains_signal): New function.
504         (init_catchpoint): No longer static.
505         (base_breakpoint_explains_signal): New function.
506         (base_breakpoint_ops): Initialize new field.
507         * breakpoint.h (enum bpstat_signal_value): New.
508         (struct breakpoint_ops) <explains_signal>: New field.
509         (bpstat_explains_signal): Remove macro, declare as function.
510         (base_breakpoint_ops, init_catchpoint): Declare.
511         * break-catch-sig.c: New file.
512         * inferior.h (signal_catch_update): Declare.
513         * infrun.c (signal_catch): New global.
514         (handle_syscall_event): Update for change to
515         bpstat_explains_signal.
516         (handle_inferior_event): Likewise.  Always handle random signals
517         via bpstats.
518         (signal_cache_update): Check signal_catch.
519         (signal_catch_update): New function.
520         (_initialize_infrun): Initialize signal_catch.
521         * Makefile.in (SFILES): Add break-catch-sig.c.
522         (COMMON_OBS): Add break-catch-sig.o.
523
524 2013-01-16  Tom Tromey  <tromey@redhat.com>
525
526         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
527         (print_one_catch_solib, print_one_catch_syscall)
528         (print_one_catch_exec, print_one_exception_catchpoint): Emit
529         "catch-type".
530
531 2013-01-16  Yao Qi  <yao@codesourcery.com>
532
533         * printcmd.c (current_display_number): Make it static.
534
535 2013-01-16  Yao Qi  <yao@codesourcery.com>
536
537         * infcmd.c (step_once): Don't check '!single_inst' as it was
538         checked before.
539
540 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
541
542         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
543
544 2013-01-14  Tom Tromey  <tromey@redhat.com>
545
546         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
547         set command.
548         * command.h (add_setshow_string_noescape_cmd): Update.
549         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
550         (complete_set_gnutarget): New function.
551         (_initialize_core): Set the "set gnutarget" completer.
552
553 2013-01-14  Tom Tromey  <tromey@redhat.com>
554
555         PR symtab/14442:
556         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
557         (c_type_print_modifier): Likewise.
558         * dwarf2read.c (read_tag_restrict_type): New function.
559         (read_type_die_1): Handle DW_TAG_restrict_type.
560         * gdbtypes.c (make_restrict_type): New function.
561         (recursive_dump_type): Handle TYPE_RESTRICT.
562         * gdbtypes.h (enum type_flag_values): Renumber.
563         (enum type_instance_flag_value): Add
564         TYPE_INSTANCE_FLAG_RESTRICT.
565         (TYPE_RESTRICT): New macro.
566         (make_restrict_type): Declare.
567
568 2013-01-14  Tom Tromey  <tromey@redhat.com>
569
570         PR symtab/14931:
571         * psymtab.c (struct psymtab_state): New.
572         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
573         functions.
574         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
575         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
576
577 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
578             Pedro Alves  <palves@redhat.com>
579
580         PR remote/14786
581
582         * remote.c (remote_threads_info): Make a copy of the reply from
583         qfThreadInfo and use that instead of rs->buf.
584
585 2013-01-14  Yao Qi  <yao@codesourcery.com>
586
587         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
588         (dbx_psymtab_to_symtab): Likewise.
589         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
590         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
591         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
592
593 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
594
595         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
596         make_cleanup_restore_current_language.  Call set_language.  Move
597         OLD_CHAIN and INNER_CHAIN cleanups.
598         * utils.c (do_restore_current_language)
599         (make_cleanup_restore_current_language): New functions.
600         * utils.h (make_cleanup_restore_current_language): New declaration.
601
602 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
603
604         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
605         non-existing files.
606
607         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
608         non-existing files if FILENAME is already absolute.
609
610 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
611
612         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
613         fputs_filtered.  Append trailing newline.
614
615 2013-01-11  Yao Qi  <yao@codesourcery.com>
616             Stan Shebs  <stan@codesourcery.com>
617
618         * psymtab.c (init_psymbol_list): Clarify the comment.
619
620 2013-01-11  Yao Qi  <yao@codesourcery.com>
621
622         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
623         (update_dprintf_command_list): Assert that 'printf_line' is
624         non-null.  Remove condition check.
625
626 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
627
628         Code cleanup.
629         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
630         type const char *.
631         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
632         const char *.
633         * tui/tui-source.h (tui_source_is_displayed): Likewise.
634
635 2013-01-09  Anthony Green  <green@moxielogic.com>
636
637         * cp-abi.c (cplus_print_vtable): Don't return value from void
638         function.
639         * ada-lang.c (re_set_catch_assert): Ditto.
640
641 2013-01-09  Doug Evans  <dje@google.com>
642
643         * symfile.h (quick_symbol_functions): Delete member
644         pre_expand_symtabs_matching.  All uses removed.
645         * dwarf2read.c (dw2_lookup_symbol): Implement.
646         (dw2_do_expand_symtabs_matching): Delete.
647         (dw2_pre_expand_symtabs_matching): Delete.
648         (struct dw2_symtab_iterator): New type.
649         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
650         (dw2_expand_symtabs_for_function): Rewrite.
651         (dwarf2_gdb_index_functions): Update.
652         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
653         (psym_functions): Update.
654
655 2013-01-09  Tom Tromey  <tromey@redhat.com>
656
657         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
658         * configure: Rebuild.
659         * configure.ac: Add somread.o to the build if BFD has SOM
660         support.
661         * somread.c: Include som/aout.h, not syms.h.
662         (som_symtab_read): Use som_external_symbol_dictionary_record.
663         Unpack records manually.
664         (_initialize_somread): Declare.
665
666 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
667
668         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
669         Cast return_address to 64bits.
670
671 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
672
673         * printcmd.c: Remove define of function output_command.
674         * tracepoint.c: Remove extern of function output_command.
675         * valprint.h: (output_command): New extern.
676
677 2013-01-07  Tom Tromey  <tromey@redhat.com>
678
679         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
680         Remove.
681         (objc_language_defn): Use c_printchar, c_printstr,
682         c_emit_char.
683
684 2013-01-07  Tom Tromey  <tromey@redhat.com>
685
686         PR cli/7719:
687         * NEWS: Update.
688         * ada-valprint.c (printstr, print_field_values): Remove
689         "inspect_it" code.
690         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
691         code.
692         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
693         code.
694         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
695         * main.c (captured_main): Remove "epoch" argument.
696         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
697         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
698         * p-valprint.c (pascal_object_print_value_fields): Remove
699         "inspect_it" code.
700         * printcmd.c (print_command_1): Remove 'inspect' argument.
701         (print_command, call_command): Update.
702         (inspect_command): Remove.
703         (_initialize_printcmd): Make "inspect" an alias for "print".
704         * top.c (epoch_interface): Remove.
705         * top.h (epoch_interface): Remove.
706         * valprint.c (user_print_options): Update.
707         (print_converted_chars_to_obstack): Remove "inspect_it" code.
708         * valprint.h (struct value_print_options) <inspect_it>: Remove
709         field.
710
711 2013-01-04  Tom Tromey  <tromey@redhat.com>
712
713         * valprint.h (read_string): Add 'extern'.
714
715 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
716
717         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
718         used to decide whether to define darwin_read_dyld_info or not.
719
720 2013-01-03  Pierre Muller  <muller@sourceware.org>
721
722         * main.c (relocate_gdb_directory): Avoid calling stat function
723         if DIR is empty.
724
725 2013-01-03  Yao Qi  <yao@codesourcery.com>
726
727         * psymtab.c (fixup_psymbol_section): Update declaration.
728         (fixup_psymbol_section): Remove code returning value.
729
730 2013-01-03  Yao Qi  <yao@codesourcery.com>
731
732         * symtab.h: Remove some out of date comments.
733          (enum exception_event_kind): Move it ...
734         * breakpoint.c: ... here.
735
736 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
737
738         PR gdb/14405
739         * darwin-nat.c (darwin_read_dyld_info): Only build if
740         TASK_DYLD_INFO_COUNT is defined.
741         (darwin_xfer_partial): Call darwin_read_dyld_info only if
742         TASK_DYLD_INFO_COUNT is defined.
743
744 2013-01-02  Tom Tromey  <tromey@redhat.com>
745
746         * symfile.h (struct ecoff_debug_hack): Remove.
747         * objfiles.c: Don't include mdebugread.h.
748
749 2013-01-02  Tom Tromey  <tromey@redhat.com>
750
751         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
752         * configure.ac: Check for Mach-O support in BFD.  Update
753         CONFIG_OBS.
754         * configure: Rebuild.
755
756 2013-01-02  Tom Tromey  <tromey@redhat.com>
757
758         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
759         * configure.ac: Use GDB_AC_CHECK_BFD.
760         * configure: Rebuild.
761
762 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
763
764         * MAINTAINERS: Update my email.
765
766 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
767
768         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
769
770 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
771
772         * rs6000-nat.c (bss_data_overlap): New function.
773         (vmap_symtab): Use it to adjust the .bss section's offset.
774
775 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
776
777         Update year range in copyright notice of all files.
778
779 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
780
781         * top.c (print_gdb_version): Update copyright year.
782
783 For older changes see ChangeLog-2012.
784 \f
785 Local Variables:
786 mode: change-log
787 left-margin: 8
788 fill-column: 74
789 version-control: never
790 coding: utf-8
791 End: