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