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