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