gdb/
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         * source.c (print_source_lines_base): Print for TUI also "fullname".
4         * tui/tui-data.c (init_content_element): Change tui_locator_element
5         field to full_name.
6         * tui/tui-data.h (struct tui_locator_element): Likewise.
7         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
8         tui_update_locator_filename calls to tui_update_locator_fullname.
9         Replace symtab->filename refererence by symtab_to_fullname call.
10         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12         field to full_name.  Replace symtab->filename refererence by
13         symtab_to_fullname call.
14         (tui_show_symtab_source): Rename parameter to fullname.  Change
15         tui_locator_element field to full_name.
16         * tui/tui-stack.c: Include source.h.
17         (tui_set_locator_filename): Rename the declaration to ...
18         (tui_set_locator_fullname): ... here.  Rename its parameter to
19         fullname, updates its comment.
20         (tui_set_locator_info): Rename its parameter to fullname.
21         (tui_set_locator_filename): Rename the definition to ...
22         (tui_set_locator_fullname): ... here.  Rename its parameter to
23         fullname, updates its comment.  Change tui_locator_element field to
24         full_name.
25         (tui_set_locator_info): Rename its parameter to fullname.
26         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
27         (tui_update_locator_filename): Rename to ...
28         (tui_update_locator_fullname): ... here. Rename callee to
29         tui_set_locator_fullname.
30         (tui_show_frame_info): Replace symtab->filename refererence by
31         symtab_to_fullname call.
32         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
33         (tui_update_locator_fullname): ... here.
34         * tui/tui-winsource.c (tui_display_main): Rename the callee to
35         tui_update_locator_fullname.  Replace symtab->filename refererence by
36         symtab_to_fullname call.
37         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
38         Rename the callee to tui_update_locator_fullname.
39         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
40
41 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
42
43         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
44         by symtab_to_filename_for_display calls.
45         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
46         (clear_command): New variable sal_fullname, initialize it.  Replace
47         compare_filenames_for_search by filename_cmp with sal_fullname.
48         (say_where, update_static_tracepoint): Replace symtab->filename
49         refererences by symtab_to_filename_for_display calls.
50         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
51         Likewise.
52         * dwarf2read.c: Include source.h.
53         (fixup_go_packaging): Replace symtab->filename refererences by
54         symtab_to_filename_for_display calls.
55         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
56         Replace symtab->filename refererences by symtab_to_filename_for_display
57         calls.
58         (create_sals_line_offset, convert_linespec_to_sals): New variable
59         fullname, initialize it, replace symtab->filename reference by the
60         variable.
61         * linux-fork.c: Include source.h.
62         (info_checkpoints_command): Replace symtab->filename refererences by
63         symtab_to_filename_for_display calls.
64         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
65         by symtab_to_filename_for_display calls.
66         * mdebugread.c: Include source.h.
67         (psymtab_to_symtab_1): Replace symtab->filename refererences by
68         symtab_to_filename_for_display calls.
69         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
70         (mi_cmd_file_list_exec_source_files): Likewise.
71         * printcmd.c: Include source.h.
72         (build_address_symbolic): Replace symtab->filename refererences by
73         symtab_to_filename_for_display calls.
74         * psymtab.c (partial_map_symtabs_matching_filename)
75         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
76         with psymtab_to_fullname.
77         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
78         by symtab_to_filename_for_display calls.
79         (stpy_get_filename): New variable filename, initialize it, use instead
80         of symtab->filename refererences.
81         (salpy_str): Make variable filename const char *.  Replace
82         symtab->filename refererences by symtab_to_filename_for_display calls.
83         * skip.c: Include source.h and filenames.h.
84         (skip_file_command): Remove const from the symtab variable.  Replace
85         symtab->filename refererences by symtab_to_fullname call.
86         (function_name_is_marked_for_skip): New variables searched_for_fullname
87         and fullname.  Use them to search also with symtab's fullname.
88         * source.c (find_source_lines): Replace symtab->filename refererences
89         by symtab_to_filename_for_display calls.
90         (print_source_lines_base): New variable filename, use it instead of
91         symtab->filename.  Replace symtab->filename refererences by
92         symtab_to_filename_for_display calls.
93         (line_info, forward_search_command): Replace symtab->filename
94         refererences by symtab_to_filename_for_display calls.
95         (reverse_search_command): Replace symtab->filename refererences by
96         symtab_to_filename_for_display calls.  New variable filename for it.
97         * stack.c (frame_info): Likewise.
98         * symmisc.c: Include source.h.
99         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
100         (maintenance_info_symtabs): Replace symtab->filename refererences by
101         symtab_to_filename_for_display calls.
102         * symtab.c (iterate_over_some_symtabs): Call
103         compare_filenames_for_search also with symtab_to_fullname.
104         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
105         symtab->filename refererences by symtab_to_filename_for_display calls.
106         (find_line_symtab): Replace symtab->filename refererences by
107         symtab_to_filename_for_display calls.
108         (file_matches): Replace filename_cmp by compare_filenames_for_search.
109         (print_symbol_info): Make the last parameter const char *.  New
110         variable s_filename.  Use it in the function.
111         (symtab_symbol_info): Make the last_filename variable const char *.
112         Replace symtab->filename refererences by symtab_to_filename_for_display
113         calls.
114         (rbreak_command): New variable fullname.  Use it.  Replace
115         symtab->filename refererence by symtab_to_filename_for_display call.
116         * tracepoint.c (set_traceframe_context, trace_find_line_command)
117         (print_one_static_tracepoint_marker): Replace symtab->filename
118         refererences by symtab_to_filename_for_display calls.
119         * tui/tui-source.c (tui_set_source_content): New variables filename and
120         s_filename.  Replace symtab->filename refererences by this variable.
121         Replace other symtab->filename refererences by
122         symtab_to_filename_for_display calls.
123
124 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
125             Jan Kratochvil  <jan.kratochvil@redhat.com>
126
127         Add a new variable that controls a way in which filenames are
128         displayed.
129         * NEWS (set filename-display): New entry.
130         * source.c (filename_display_basename, filename_display_relative)
131         (filename_display_absolute, filename_display_kind_names)
132         (filename_display_string, show_filename_display_string)
133         (symtab_to_filename_for_display): New.
134         (_initialize_source): Added initialization of 'filename-display'
135         variable.
136         * source.h (symtab_to_filename_for_display): Added declaration.
137         * stack.c (print_frame): Added new variable and calling of a new
138         function and condition with this variable. Changed third argument of
139         calling of a function.
140
141 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
142
143         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
144         Rename field reference filename to fullname.
145         * tui/tui-data.h (struct tui_source_info): Rename field filename to
146         fullname.  New comment for it.
147         * tui/tui-source.c (tui_set_source_content): Rename field reference
148         filename to fullname.  Initialize field by symtab_to_fullname now.
149         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
150         reference filename to fullname.  Use symtab_to_fullname during
151         comparison.
152
153 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
154
155         Code cleanup.
156         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
157         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
158         filename to fullname.  Rename variable this_name to this_fullname.
159         Lowercase FILENAME_CMP call.
160         (dw2_find_symbol_file): New comment for the returned string.
161         (dwarf2_gdb_index_functions): Rename the function to
162         dw2_expand_symtabs_with_fullname.
163         * psymtab.c (read_psymtabs_with_filename): Rename to ...
164         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
165         fullname.
166         (psym_functions): Rename the function to read_psymtabs_with_fullname.
167         * symfile.h (struct quick_symbol_functions): Rename field
168         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
169         parameter filename to fullname.  Document returned string meaning for
170         find_symbol_file.
171         * symtab.c (find_line_symtab): Rename the called function to
172         expand_symtabs_with_fullname.
173
174 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
175
176         Code cleanup.
177         * breakpoint.c (clear_command): Remove variable is_abs, unify the
178         call of filename_cmp with compare_filenames_for_search.
179         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
180         is_abs, unify the call of FILENAME_CMP with
181         compare_filenames_for_search.  New gdb_asserts for real_path and name.
182         Unify the call of compare_filenames_for_search with FILENAME_CMP.
183         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
184         * symfile.h (struct quick_symbol_functions): Extend the comment for
185         map_symtabs_matching_filename.
186         * symtab.c (compare_filenames_for_search): Remove the function comment
187         relative path requirement.  Handle absolute filenames, with a comment.
188         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
189         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
190         real_path and name.  Unify the call of compare_filenames_for_search
191         with FILENAME_CMP.
192         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
193
194 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
195
196         Code cleanup.
197         * breakpoint.c (print_breakpoint_location): Replace bp_location field
198         source_file references by symtab field references.  Remove variables
199         sal and fullname.
200         (momentary_breakpoint_from_master, add_location_to_breakpoint):
201         (clear_command, say_where): Replace bp_location field source_file
202         references by symtab field references.
203         (bp_location_dtor): Remove the source_file reference.
204         (update_static_tracepoint): Replace bp_location field source_file
205         references by symtab field references.
206         (breakpoint_free_objfile): New function.
207         * breakpoint.h (struct bp_location): Extend the comment for line_number.
208         Replace the field source_file by field symtab, extend its comment.
209         (breakpoint_free_objfile): New declaration.
210         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
211         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
212         field source_file references by symtab field references.
213
214 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
215
216         Replace xfullpath calls by gdb_realpath calls.
217         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
218         function comment.
219         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
220         Remove it from the iterate_over_some_symtabs call.
221         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
222         Remove it from the dw2_map_expand_apply calls, remove a block handling
223         it.
224         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
225         Remove it from the iterate_over_some_symtabs call.
226         (partial_map_symtabs_matching_filename): Remove parameter full_path.
227         Remove it from the partial_map_expand_apply calls, remove a block
228         handling it.  Drop gdb_realpath call and cleanups from the real_path
229         handling.
230         * source.c (openp): Drop the comment part about xfullpath.  Replace
231         xfullpath calls by gdb_realpath calls.
232         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
233         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
234         from method map_symtabs_matching_filename and its comment.
235         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
236         gdb_realpath call.
237         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
238         remove it also from the function comment, remove a block handling it.
239         Drop gdb_realpath call and cleanups from the real_path handling.
240         (iterate_over_symtabs): Drop variable full_path and its use.
241         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
242         * utils.c (xfullpath): Remove.
243         * utils.h (xfullpath): Remove.
244
245 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
246
247         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
248         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
249         (ALLDEPFILES): Add ppc64-tdep.c.
250         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
251         ppc64-tdep.o to gdb_target_obs.
252         * ppc64-tdep.h: New file.
253         * ppc64-tdep.c: New file.
254         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
255         ppc-linux-tdep.c to here.
256         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
257         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
258         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
259         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
260         from ppc-linux-tdep.c to here.
261         (ppc64_convert_from_func_ptr_addr): Rename from
262         ppc64_linux_convert_from_func_ptr_addr to
263         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
264         here.
265         * rs6000-tdep.c:
266         (read_insn): Move from ppc-linux-tdep.c to here.
267         (insns_match_pattern, insn_d_field, insn_ds_field): Move
268         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
269         * ppc-linux-tdep.c: Include ppc64-tdep.h.
270         Removed above functions.
271         (ppc_linux_init_abi): Adjust.
272
273 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
274
275         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
276
277 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
278
279         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
280
281 2013-02-01  Pedro Alves  <palves@redhat.com>
282
283         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
284         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
285
286 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
287
288         * elfread.c (elf_symfile_read): Limit separate debug info additions to
289         files with no separate debug info.
290         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
291         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
292         only for files with no separate debug info.
293
294 2013-01-31  Tom Tromey  <tromey@redhat.com>
295
296         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
297         change type.
298         (struct jit_program_space_data): Rename from jit_inferior_data.
299         Update comments.
300         (get_jit_program_space_data): Rename from get_jit_inferior_data.
301         Change return type.  Attach data to program space.
302         (jit_program_space_data_cleanup): Rename from
303         jit_inferior_data_cleanup; change argument type.
304         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
305         change type.
306         (jit_register_code): Update.
307         (jit_update_inferior_cache): Remove.
308         (jit_breakpoint_deleted): Get jit data from the location's program
309         space.
310         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
311         'ps_data', change type.
312         (jit_inferior_init, jit_breakpoint_re_set_internal)
313         (jit_event_handler): Update.
314         (free_objfile_data): Get data from objfile's program space.
315         (_initialize_jit): Update.
316
317 2013-01-31  Tom Tromey  <tromey@redhat.com>
318
319         PR gdb/13987:
320         * jit.c (struct jit_inferior_data) <cached_code_address,
321         jit_breakpoint>: New fields.
322         (jit_breakpoint_re_set_internal): Fix logging.  Only create
323         breakpoint if cached address has changed.
324         (jit_update_inferior_cache, jit_breakpoint_deleted): New
325         functions.
326         (_initialize_jit): Register breakpoint deleted observer.
327
328 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
329
330         * infrun.c (handle_syscall_event): Remove unused gdbarch.
331         (save_infcall_suspend_state): Ifdef out unused inf.
332         (restore_infcall_suspend_state): Ifdef out unused inf.
333         * jit.c (jit_register_code): Remove unused i, b, inf_data.
334         (jit_frame_sniffer): Remove unused inf_data.
335
336 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
337
338         * c-exp.y (classify_inner_name): Remove unused type.
339         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
340         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
341         need_escape.
342         (c_get_string): Remove unused kind.
343         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
344
345 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
346
347         * charset.c (intermediate_encoding): Remove unused i.
348         * completer.c (signal_completer): Remove unused i.
349         * continuations.c (discard_my_continuations_1): Remove unused
350         continuation_ptr.
351         * corelow.c (core_close): Remove unuseD name.
352         (get_core_siginfo): Remove unused pid.
353         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
354         i, cps.
355         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
356         (loclist_describe_location): Remove unused first.
357         * event-top.c (command_line_handler): Remove unused got_eof.
358         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
359         (resize_section_table): Remove unused old_value.
360         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
361         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
362         * i386-tdep.c (i386_process_record): Remove unused rex.
363         * infcmd.c (get_return_value): Remove unused uiout.
364         * jv-lang.c (type_from_class): Remove unused is_array.
365         * jv-valprint.c (java_val_print): Remove unused i.
366         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
367         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
368         * m2-typeprint.c (m2_print_type): Remove unused code.
369         * macroexp.c (get_character_constant): Remove unused body_start.
370         (macro_stringify): Remove unused result.
371         * objc-lang.c (find_methods): Remove unused gdbarch.
372         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
373         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
374         * stack.c (print_frame_args): Remove unused summary.
375         * thread.c (thread_apply_command): Remove unused p.
376         * valarith.c (value_x_unop): Remove unused mangle_ptr.
377         * valops.c (search_struct_method): Remove unused skip.
378         * valprint.c (generic_val_print): Remove unused byte_order.
379         * varobj.c (varobj_update): Remove unused changed.
380         * cli/cli-cmds.c (complete_command): Remove unused next_item.
381         (alias_command): Remove unused c.
382         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
383         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
384         format.
385         (mi_cmd_data_write_memory): Remove unused word_format.
386         (mi_cmd_data_write_memory_bytes): Remove unused r.
387         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
388         p_start, p_end.
389         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
390         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
391         line_width.
392
393 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
394
395         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
396         * symtab.c (iterate_over_symtabs): Remove unused s.
397         (find_pc_sect_symtab): Remove unused pspAce.
398         (find_pc_sect_line): Remove unused alt_symtab.
399         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
400         (completion_list_add_name): Remove unused newsize.
401
402 2013-01-31  Tom Tromey  <tromey@redhat.com>
403
404         PR c++/14998:
405         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
406         TYPE_CODE_FUNC.
407
408 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
409
410         * target.c (target_read_string): Remove unused origlen.
411
412 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
413
414         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
415         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
416         * ax-general.c (ax_print): Remove unused is_float.
417         * blockframe.c (block_innermost_frame): Remove unused start, end.
418         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
419
420 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
421
422         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
423         (svr4_read_so_list): Remove unused lmo.
424         * solib-target.c (solib_target_relocate_section_addresses): Remove
425         unused flags.
426
427 2013-01-30  Tom Tromey  <tromey@redhat.com>
428
429         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
430
431 2013-01-30  Tom Tromey  <tromey@redhat.com>
432
433         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
434         * utils.c (gnu_debuglink_crc32): Remove.
435         * utils.h (gnu_debuglink_crc32): Don't declare.
436
437 2013-01-30  Tom Tromey  <tromey@redhat.com>
438
439         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
440         (read_structure_type, read_enumeration_type): Remove cast.
441
442 2013-01-30  Tom Tromey  <tromey@redhat.com>
443
444         * dwarf2read.c (read_namespace_type): Remove cast.
445         (read_typedef): Likewise.
446
447 2013-01-29  Tom Tromey  <tromey@redhat.com>
448
449         * dwarf2read.c (free_dwo_file): Remove assert.
450
451 2013-01-29  Tom Tromey  <tromey@redhat.com>
452
453         * value.c (deprecated_set_value_modifiable): Remove.
454         * value.h (deprecated_set_value_modifiable): Remove.
455
456 2013-01-28  Doug Evans  <dje@google.com>
457
458         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
459         to addresses from dwo files.
460
461 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
462
463         * valops.c (find_overload_match): Remove unused argument 'lax'.
464         * value.h: Remove unused argument 'lax' from the declaration of
465         find_overload_match.
466         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
467         to find_overload_match.
468         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
469         argument to find_overload_match.
470
471 2013-01-25  Tom Tromey  <tromey@redhat.com>
472
473         * dwarf2read.c (processing_has_namespace_info): Remove.
474         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
475         (process_die, read_func_scope, dwarf2_start_symtab)
476         (new_symbol_full): Update.
477
478 2013-01-25  Tom Tromey  <tromey@redhat.com>
479
480         * cp-namespace.c (cp_set_block_scope): Remove.
481         * cp-support.h (cp_set_block_scope): Remove.
482         * dbxread.c: Include block.h.
483         (cp_set_block_scope): New function.
484         (process_one_symbol): Update.
485         * dwarf2read.c (read_func_scope): Use block_set_scope.
486
487 2013-01-25  Pedro Alves  <palves@redhat.com>
488
489         * remote.c (add_current_inferior_and_thread): Tweak comment.
490
491 2013-01-25  Tom Tromey  <tromey@redhat.com>
492
493         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
494         (cp_add_using_directive): Add 'copy_names' argument.
495         * cp-support.h (cp_add_using_directive): Update.
496         (struct using_direct) <import_src, import_dest, alias,
497         declaration>: Now const.
498         * dwarf2read.c (read_import_statement): Use obconcat.
499         Don't copy names passed to cp_add_using_directive.
500
501 2013-01-25  Tom Tromey  <tromey@redhat.com>
502
503         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
504
505 2013-01-25  Pedro Alves  <palves@redhat.com>
506
507         * remote.c (stop_reply_extract_thread): New.
508         (add_current_inferior_and_thread): New parameter 'wait_status'.
509         Handle it.
510         (remote_start_remote): Pass wait status to
511         add_current_inferior_and_thread.
512         (extended_remote_run): Update comment.
513         (extended_remote_create_inferior_1): Pass wait status to
514         add_current_inferior_and_thread.
515
516 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
517             Ulrich Weigand  <uweigand@de.ibm.com>
518
519         * valarith.c (value_vector_widen): New function for replicating a
520         scalar into a vector.
521         (value_binop): Use value_vector_widen to widen scalar to vector
522         rather than casting, this better matches gcc C behaviour.
523         * valops.c (value_casst): Update logic for casting between vector
524         types, and for casting from scalar to vector, try to match gcc C
525         behaviour.
526         * value.h (value_vector_widen): Declare.
527         * opencl-lang.c (opencl_value_cast): New opencl specific casting
528         function, handle special case for casting scalar to vector.
529         (opencl_relop): Use opencl_value_cast.
530         (evaluate_subexp_opencl): Use opencl_value_cast instead of
531         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
532         in order to use opencl_value_cast.
533
534 2013-01-25  Yao Qi  <yao@codesourcery.com>
535
536         * event-loop.c: Include "queue.h".
537         (gdb_event_p): New typedef.
538         (DECLARE_QUEUE_P): Use.
539         (DEFINE_QUEUE_P): Use.
540         (async_queue_event): Remove.
541         (gdb_event_xfree): New.
542         (initialize_event_loop): New.
543         (process_event): Use QUEUE macros.
544         (event_queue): Remove.
545         (gdb_wait_for_event): Caller update.
546         (check_async_event_handlers): Likewise.
547         (poll_timers): Likewise.
548         * event-loop.h (initialize_event_loop): Declare.
549         * event-loop.c (gdb_event_xfree): New.
550         * top.c (gdb_init): Call initialize_event_loop.
551
552 2013-01-25  Yao Qi  <yao@codesourcery.com>
553
554         * event-loop.c (async_queue_event): Remove one parameter
555         'position'.  Remove code handling 'position' == TAIL.
556         (gdb_wait_for_event): Caller update.
557         (check_async_event_handlers): Caller update.
558         (poll_timers): Caller update.
559         * event-loop.h (enum queue_position): Remove.
560
561 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
562
563         * MAINTAINERS: Update my email.
564
565 2013-01-25  Yao Qi  <yao@codesourcery.com>
566
567         * main.c (print_gdb_help): Remove "--epoch" from the help
568         message.
569
570 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
571
572         * symtab.c (skip_prologue_using_sal): Consider a file
573         change the same as an increased line number
574
575 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
576
577         * MAINTAINERS (Write After Approval): Add myself to the list. 
578
579 2013-01-24  Tom Tromey  <tromey@redhat.com>
580
581         * ada-lang.h (ada_decode_symbol): Make return type const.
582         * ada-lang.c (ada_decode_symbol): Likewise.
583
584 2013-01-23  Doug Evans  <dje@google.com>
585
586         * linespec.c (find_linespec_symbols): Make static.
587
588 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
589
590         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
591         type on float conversion for complex type.
592
593 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
594
595         Add a new class gdb.Architecture which exposes GDB's
596         internal representation of architecture via GDB Python API.
597         * Makefile.in: Add entries corresponding to the new file
598         python/py-arch.c.
599         * NEWS (Python Scripting): Add entries for the new class
600         gdb.Architecture and the new method gdb.Frame.architecture.
601         * python/py-arch.c: Implement gdb.Architecture class.
602         * python/py-frame.c (frapy_arch): Implement the method
603         gdb.Frame.architecture().
604         (frame_object_methods): Add 'architecture' to the method table.
605         * python/python-internal.h: Add declarations of new utility
606         functions.
607         * python/python.c (_initialize_python): Initialize
608         gdb.Architecture class.
609
610 2013-01-23  Doug Evans  <dje@google.com>
611
612         Work around binutils/15021.
613         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
614         type_unit_group out of union s.  All uses updated.
615         (read_index_from_section): Watch for index version 8.
616         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
617         an imported symtab.
618         (write_psymtabs_to_index): Increment version number to 8.
619
620 2013-01-22  Pedro Alves  <palves@redhat.com>
621
622         * annotate.c (breakpoint_changed): Skip if breakpoint is not
623         user-visible.
624
625 2013-01-22  Pedro Alves  <palves@redhat.com>
626
627         * annotate.c (annotate_breakpoints_changed): Rename to ...
628         (annotate_breakpoints_invalid): ... this.  Make static.
629         (breakpoint_changed): Adjust.
630         (_initialize_annotate): Always install the observers.  Install a
631         "breakpoint_created" observer.
632         * annotate.h (annotate_breakpoints_changed): Delete declaration.
633         * breakpoint.c (set_breakpoint_condition)
634         (breakpoint_set_commands, do_map_commands_command)
635         (init_raw_breakpoint, clear_command, set_ignore_count)
636         (enable_breakpoint_disp): No longer call
637         annotate_breakpoints_changed.
638
639 2013-01-22  Pedro Alves  <palves@redhat.com>
640
641         * annotate.c: Include "inferior.h".
642         (frames_invalid_emitted)
643         (breakpoints_invalid_emitted): New globals.
644         (async_background_execution_p): New function.
645         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
646         emitting the annotation if it has already been emitted.
647         (annotate_display_prompt): New function.
648         * annotate.h (annotate_display_prompt): New declaration.
649         * event-top.c: Include annotate.h.
650         (display_gdb_prompt): Call annotate_display_prompt.
651
652 2013-01-22  Pedro Alves  <palves@redhat.com>
653
654         * annotate.c (ignore_count_changed): Delete.
655         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
656         (annotate_ignore_count_change): Delete.
657         (annotate_stopped): Don't emit a delayed breakpoints-changed
658         annotation.
659         * annotate.h (annotate_ignore_count_change): Delete.
660         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
661         annotate_ignore_count_change.
662
663 2013-01-22  Tom Tromey  <tromey@redhat.com>
664
665         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
666         require_rvalue for a register location.
667
668 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
669
670         * breakpoint.c (print_one_breakpoint_location): Add MI
671         field 'thread-groups' when printing a breakpoint.
672         (output_thread_groups): New function.
673
674 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
675
676         * python/lib/gdb/commands/explore.py
677         (CompoundExplorer.explore_expr): Correct the name of a method
678         being invoked.
679         (ExploreTypeCommand.invoke): Add a missing 'return'.
680
681 2013-01-21  Tom Tromey  <tromey@redhat.com>
682
683         * gdb_obstack.h (obconcat): Move declaration here, from...
684         * symfile.h (obconcat): ... here.
685         * gdb_obstack.c: New file.
686         (obconcat): Move from...
687         * symfile.c (obconcat): ... here.
688         * Makefile.in (SFILES): Add gdb_obstack.c.
689         (COMMON_OBS): Add gdb_obstack.o.
690
691 2013-01-21  Tom Tromey  <tromey@redhat.com>
692
693         * symfile.h (obsavestring): Don't declare.
694         * symfile.c (obsavestring): Remove.
695         * ada-exp.y: Use obstack_copy0, not obsavestring.
696         * ada-lang.c: Use obstack_copy0, not obsavestring.
697         * coffread.c: Use obstack_copy0, not obsavestring.
698         * cp-namespace.c: Use obstack_copy0, not obsavestring.
699         * dbxread.c: Use obstack_copy0, not obsavestring.
700         * dwarf2read.c: Use obstack_copy0, not obsavestring.
701         * jit.c: Use obstack_copy0, not obsavestring.
702         * mdebugread.c: Use obstack_copy0, not obsavestring.
703         * psymtab.c: Use obstack_copy0, not obsavestring.
704         * stabsread.c: Use obstack_copy0, not obsavestring.
705         * xcoffread.c: Use obstack_copy0, not obsavestring.
706
707 2013-01-21  Tom Tromey  <tromey@redhat.com>
708
709         * dwarf2read.c (fixup_go_packaging): Save package name
710         on objfile obstack.
711         * gdbtypes.c (init_type): Don't copy name.
712
713 2013-01-21  Tom Tromey  <tromey@redhat.com>
714
715         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
716         const.
717         (struct attribute) <u.str>: Now const.
718         (struct fnfieldlist) <name>: Now const.
719         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
720         (partial_die_parent_scope): Make return type const.
721         (partial_die_full_name, add_partial_symbol): Update.
722         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
723         'name' const.
724         (find_file_and_directory): Make 'name' and 'comp_dir' const.
725         (read_file_scope, read_func_scope, dwarf2_add_field)
726         (dwarf2_add_member_fn, read_structure_type)
727         (process_enumeration_scope, read_array_type, read_module_type)
728         (read_base_type, read_subrange_type): Update.
729         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
730         (new_symbol_full, guess_full_die_structure_name): Update.
731         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
732         (dwarf2_name): Return const type.
733         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
734         const.
735
736 2013-01-21  Tom Tromey  <tromey@redhat.com>
737
738         * gdbtypes.c (init_type): Make 'name' const.
739         * gdbtypes.h (init_type): Update.
740
741 2013-01-21  Tom Tromey  <tromey@redhat.com>
742
743         * buildsym.c (patch_subfile_names): Use set_last_source_file.
744         (start_symtab): Make 'name' and 'dirname' const.  Use
745         set_last_source_file.
746         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
747         (last_source_file): Define.  Now static.
748         (set_last_source_file, get_last_source_file): New functions.
749         * buildsym.h (last_source_file): Don't declare.
750         (start_symtab): Update.
751         (set_last_source_file, get_last_source_file): Declare.
752         * coffread.c (complete_symtab): Use set_last_source_file.
753         (coff_end_symtab): Likewise.
754         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
755         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
756         set_last_source_file.
757         (process_one_symbol): Use get_last_source_file.
758         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
759         (psymtab_to_symtab_1): Use get_last_source_file.
760         * xcoffread.c (process_linenos): Use get_last_source_file.
761         (complete_symtab): Use set_last_source_file.
762         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
763         (scan_xcoff_symtab): Use set_last_source_file.
764
765 2013-01-21  Tom Tromey  <tromey@redhat.com>
766
767         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
768         (symbol_set_names): Remove casts.  Handle field const-ness.
769
770 2013-01-21  Tom Tromey  <tromey@redhat.com>
771
772         * dwarf2read.c (new_symbol_full): Remove cast.
773         * symtab.c (symbol_set_demangled_name): Make 'name' const.
774         * symtab.h (symbol_set_demangled_name): Update.
775
776 2013-01-21  Tom Tromey  <tromey@redhat.com>
777
778         * main.c (captured_main): Call bfd_init.
779
780 2013-01-21  Tom Tromey  <tromey@redhat.com>
781
782         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
783         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
784         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
785         * NEWS: Update.
786
787 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
788
789         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
790
791 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
792
793         Fix gdb.fortran/common-block.exp crash in PIE mode.
794         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
795         LOC_COMMON_BLOCK.
796         * f-valprint.c (info_common_command_for_block): Expect
797         LOC_COMMON_BLOCK in gdb_assert.
798         * symtab.h (struct general_symbol_info): Update comment for the
799         common_block member.
800         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
801         (enum address_class): New member LOC_COMMON_BLOCK.
802
803 2013-01-18  David Blaikie  <dblaikie@gmail.com>
804
805         * MAINTAINERS (Write After Approval): Add "David Blaikie".
806
807 2013-01-18  Tom Tromey  <tromey@redhat.com>
808
809         PR c++/14999:
810         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
811         Call require_rvalue.
812
813 2013-01-18  Yao Qi  <yao@codesourcery.com>
814
815         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
816         (dbx_read_symtab): New declaration.
817         (dbx_psymtab_to_symtab): Delete.
818         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
819         Rename parameter PST to SELF.  Exchanged two parameters.
820         (start_psymtab): Caller update.
821         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
822         (dwarf2_read_symtab): New declaration.
823         (dwarf2_psymtab_to_symtab): Delete.
824         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
825         Rename parameter PST to SELF.  Exchanged two parameters.
826         (create_partial_symtab): Caller update.
827         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
828         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
829         Rename parameter PST to SELF.  Exchanged two parameters.
830         (parse_partial_symbols, new_psymtab): Caller update.
831         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
832         two parameters.
833         * psymtab.c (psymtab_to_symtab): Caller update.
834         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
835         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
836         Rename parameter PST to SELF.  Exchanged two parameters.
837         (xcoff_start_psymtab): Caller update.
838
839 2013-01-18  Yao Qi  <yao@codesourcery.com>
840
841         * infrun.c (proceed): Rename local variable 'oneproc' to
842         'force_step'.
843
844 2013-01-17  Doug Evans  <dje@google.com>
845
846         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
847         (dw2_build_type_unit_groups): Delete.  All uses updated.
848
849         * symtab.h (struct symbol_search): Add comment.
850
851 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
852
853         * symtab.c (compare_filenames_for_search): New comment for
854         HAS_DRIVE_SPEC.
855
856 2013-01-17  Tom Tromey  <tromey@redhat.com>
857
858         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
859
860 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
861
862         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
863         initialize it by existing make_cleanup.  Call new do_cleanups.
864
865 2013-01-17  Tom Tromey  <tromey@redhat.com>
866
867         * cp-abi.c (cp_abi_completer): New function.
868         (_initialize_cp_abi): Set completer for "set cp-abi".
869
870 2013-01-17  Tom Tromey  <tromey@redhat.com>
871
872         * mem-break.c: Remove obsolete comment.
873         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
874
875 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
876
877         * jit.c (jit_reader_load_command): Interpret the jit reader name
878         as an absolute path if it begins with a forward slash.
879
880 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
881
882         PR gdb/14550
883
884         * jit.c (finalize_symtab): Ensure that only the global block has a
885         NULL superblock.
886
887 2013-01-17  Pedro Alves  <palves@redhat.com>
888
889         * acinclude.m4: Include ../config/plugins.m4,
890         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
891         * Makefile.in (aclocal_m4_deps): Update.
892         * aclocal.m4: Renegerate.
893
894 2013-01-16  Doug Evans  <dje@google.com>
895
896         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
897
898 2013-01-16  Pedro Alves  <palves@redhat.com>
899             Tom Tromey  <tromey@redhat.com>
900
901         PR cli/7221:
902         * NEWS: Add "catch signal".
903         * breakpoint.c (base_breakpoint_ops): No longer static.
904         (bpstat_explains_signal): New function.
905         (init_catchpoint): No longer static.
906         (base_breakpoint_explains_signal): New function.
907         (base_breakpoint_ops): Initialize new field.
908         * breakpoint.h (enum bpstat_signal_value): New.
909         (struct breakpoint_ops) <explains_signal>: New field.
910         (bpstat_explains_signal): Remove macro, declare as function.
911         (base_breakpoint_ops, init_catchpoint): Declare.
912         * break-catch-sig.c: New file.
913         * inferior.h (signal_catch_update): Declare.
914         * infrun.c (signal_catch): New global.
915         (handle_syscall_event): Update for change to
916         bpstat_explains_signal.
917         (handle_inferior_event): Likewise.  Always handle random signals
918         via bpstats.
919         (signal_cache_update): Check signal_catch.
920         (signal_catch_update): New function.
921         (_initialize_infrun): Initialize signal_catch.
922         * Makefile.in (SFILES): Add break-catch-sig.c.
923         (COMMON_OBS): Add break-catch-sig.o.
924
925 2013-01-16  Tom Tromey  <tromey@redhat.com>
926
927         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
928         (print_one_catch_solib, print_one_catch_syscall)
929         (print_one_catch_exec, print_one_exception_catchpoint): Emit
930         "catch-type".
931
932 2013-01-16  Yao Qi  <yao@codesourcery.com>
933
934         * printcmd.c (current_display_number): Make it static.
935
936 2013-01-16  Yao Qi  <yao@codesourcery.com>
937
938         * infcmd.c (step_once): Don't check '!single_inst' as it was
939         checked before.
940
941 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
942
943         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
944
945 2013-01-14  Tom Tromey  <tromey@redhat.com>
946
947         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
948         set command.
949         * command.h (add_setshow_string_noescape_cmd): Update.
950         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
951         (complete_set_gnutarget): New function.
952         (_initialize_core): Set the "set gnutarget" completer.
953
954 2013-01-14  Tom Tromey  <tromey@redhat.com>
955
956         PR symtab/14442:
957         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
958         (c_type_print_modifier): Likewise.
959         * dwarf2read.c (read_tag_restrict_type): New function.
960         (read_type_die_1): Handle DW_TAG_restrict_type.
961         * gdbtypes.c (make_restrict_type): New function.
962         (recursive_dump_type): Handle TYPE_RESTRICT.
963         * gdbtypes.h (enum type_flag_values): Renumber.
964         (enum type_instance_flag_value): Add
965         TYPE_INSTANCE_FLAG_RESTRICT.
966         (TYPE_RESTRICT): New macro.
967         (make_restrict_type): Declare.
968
969 2013-01-14  Tom Tromey  <tromey@redhat.com>
970
971         PR symtab/14931:
972         * psymtab.c (struct psymtab_state): New.
973         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
974         functions.
975         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
976         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
977
978 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
979             Pedro Alves  <palves@redhat.com>
980
981         PR remote/14786
982
983         * remote.c (remote_threads_info): Make a copy of the reply from
984         qfThreadInfo and use that instead of rs->buf.
985
986 2013-01-14  Yao Qi  <yao@codesourcery.com>
987
988         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
989         (dbx_psymtab_to_symtab): Likewise.
990         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
991         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
992         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
993
994 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
995
996         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
997         make_cleanup_restore_current_language.  Call set_language.  Move
998         OLD_CHAIN and INNER_CHAIN cleanups.
999         * utils.c (do_restore_current_language)
1000         (make_cleanup_restore_current_language): New functions.
1001         * utils.h (make_cleanup_restore_current_language): New declaration.
1002
1003 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1004
1005         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1006         non-existing files.
1007
1008         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1009         non-existing files if FILENAME is already absolute.
1010
1011 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1012
1013         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1014         fputs_filtered.  Append trailing newline.
1015
1016 2013-01-11  Yao Qi  <yao@codesourcery.com>
1017             Stan Shebs  <stan@codesourcery.com>
1018
1019         * psymtab.c (init_psymbol_list): Clarify the comment.
1020
1021 2013-01-11  Yao Qi  <yao@codesourcery.com>
1022
1023         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1024         (update_dprintf_command_list): Assert that 'printf_line' is
1025         non-null.  Remove condition check.
1026
1027 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1028
1029         Code cleanup.
1030         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1031         type const char *.
1032         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1033         const char *.
1034         * tui/tui-source.h (tui_source_is_displayed): Likewise.
1035
1036 2013-01-09  Anthony Green  <green@moxielogic.com>
1037
1038         * cp-abi.c (cplus_print_vtable): Don't return value from void
1039         function.
1040         * ada-lang.c (re_set_catch_assert): Ditto.
1041
1042 2013-01-09  Doug Evans  <dje@google.com>
1043
1044         * symfile.h (quick_symbol_functions): Delete member
1045         pre_expand_symtabs_matching.  All uses removed.
1046         * dwarf2read.c (dw2_lookup_symbol): Implement.
1047         (dw2_do_expand_symtabs_matching): Delete.
1048         (dw2_pre_expand_symtabs_matching): Delete.
1049         (struct dw2_symtab_iterator): New type.
1050         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1051         (dw2_expand_symtabs_for_function): Rewrite.
1052         (dwarf2_gdb_index_functions): Update.
1053         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1054         (psym_functions): Update.
1055
1056 2013-01-09  Tom Tromey  <tromey@redhat.com>
1057
1058         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1059         * configure: Rebuild.
1060         * configure.ac: Add somread.o to the build if BFD has SOM
1061         support.
1062         * somread.c: Include som/aout.h, not syms.h.
1063         (som_symtab_read): Use som_external_symbol_dictionary_record.
1064         Unpack records manually.
1065         (_initialize_somread): Declare.
1066
1067 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
1068
1069         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1070         Cast return_address to 64bits.
1071
1072 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
1073
1074         * printcmd.c: Remove define of function output_command.
1075         * tracepoint.c: Remove extern of function output_command.
1076         * valprint.h: (output_command): New extern.
1077
1078 2013-01-07  Tom Tromey  <tromey@redhat.com>
1079
1080         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1081         Remove.
1082         (objc_language_defn): Use c_printchar, c_printstr,
1083         c_emit_char.
1084
1085 2013-01-07  Tom Tromey  <tromey@redhat.com>
1086
1087         PR cli/7719:
1088         * NEWS: Update.
1089         * ada-valprint.c (printstr, print_field_values): Remove
1090         "inspect_it" code.
1091         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1092         code.
1093         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1094         code.
1095         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1096         * main.c (captured_main): Remove "epoch" argument.
1097         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1098         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1099         * p-valprint.c (pascal_object_print_value_fields): Remove
1100         "inspect_it" code.
1101         * printcmd.c (print_command_1): Remove 'inspect' argument.
1102         (print_command, call_command): Update.
1103         (inspect_command): Remove.
1104         (_initialize_printcmd): Make "inspect" an alias for "print".
1105         * top.c (epoch_interface): Remove.
1106         * top.h (epoch_interface): Remove.
1107         * valprint.c (user_print_options): Update.
1108         (print_converted_chars_to_obstack): Remove "inspect_it" code.
1109         * valprint.h (struct value_print_options) <inspect_it>: Remove
1110         field.
1111
1112 2013-01-04  Tom Tromey  <tromey@redhat.com>
1113
1114         * valprint.h (read_string): Add 'extern'.
1115
1116 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
1117
1118         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1119         used to decide whether to define darwin_read_dyld_info or not.
1120
1121 2013-01-03  Pierre Muller  <muller@sourceware.org>
1122
1123         * main.c (relocate_gdb_directory): Avoid calling stat function
1124         if DIR is empty.
1125
1126 2013-01-03  Yao Qi  <yao@codesourcery.com>
1127
1128         * psymtab.c (fixup_psymbol_section): Update declaration.
1129         (fixup_psymbol_section): Remove code returning value.
1130
1131 2013-01-03  Yao Qi  <yao@codesourcery.com>
1132
1133         * symtab.h: Remove some out of date comments.
1134          (enum exception_event_kind): Move it ...
1135         * breakpoint.c: ... here.
1136
1137 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
1138
1139         PR gdb/14405
1140         * darwin-nat.c (darwin_read_dyld_info): Only build if
1141         TASK_DYLD_INFO_COUNT is defined.
1142         (darwin_xfer_partial): Call darwin_read_dyld_info only if
1143         TASK_DYLD_INFO_COUNT is defined.
1144
1145 2013-01-02  Tom Tromey  <tromey@redhat.com>
1146
1147         * symfile.h (struct ecoff_debug_hack): Remove.
1148         * objfiles.c: Don't include mdebugread.h.
1149
1150 2013-01-02  Tom Tromey  <tromey@redhat.com>
1151
1152         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1153         * configure.ac: Check for Mach-O support in BFD.  Update
1154         CONFIG_OBS.
1155         * configure: Rebuild.
1156
1157 2013-01-02  Tom Tromey  <tromey@redhat.com>
1158
1159         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1160         * configure.ac: Use GDB_AC_CHECK_BFD.
1161         * configure: Rebuild.
1162
1163 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
1164
1165         * MAINTAINERS: Update my email.
1166
1167 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
1168
1169         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1170
1171 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
1172
1173         * rs6000-nat.c (bss_data_overlap): New function.
1174         (vmap_symtab): Use it to adjust the .bss section's offset.
1175
1176 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
1177
1178         Update year range in copyright notice of all files.
1179
1180 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
1181
1182         * top.c (print_gdb_version): Update copyright year.
1183
1184 For older changes see ChangeLog-2012.
1185 \f
1186 Local Variables:
1187 mode: change-log
1188 left-margin: 8
1189 fill-column: 74
1190 version-control: never
1191 coding: utf-8
1192 End: