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