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