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