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