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