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