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