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