Enable rthreads support on OpenBSD/amd64.
[external/binutils.git] / gdb / ChangeLog
1 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2
3         * amd64obsd-nat.c (_initialize_amd64obsd_nat): Call
4         obsd_add_target instead of add_target.
5         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6
7 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8
9         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10         (find_overload_match): Update call to find_oload_champ.
11         (find_oload_champ_namespace_loop): Likewise
12
13 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
14
15         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
16
17         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
18         * config/sparc/obsd64.mh: New file.
19         * sparc64obsd-nat.c: New file.
20
21         * obsd-nat.h: New file.
22         * obsd-nat.c: New file.
23         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
24         (ALLDEPFILES): Add obsd-nat.c.
25
26 2014-02-28  Tom Tromey  <tromey@redhat.com>
27
28         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
29         * cli-out.h (cli_ui_out_impl): Now const.
30         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
31         * ui-out.c (struct ui_out) <impl>: Now const.
32         (default_ui_out_impl): Now const.
33         (ui_out_new): Make 'impl' parameter const.
34         * ui-out.h (ui_out_new): Update.
35
36 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
37
38         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
39
40 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
41
42         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
43
44 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
45
46         Additional PR 8882 fix.
47         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
48
49 2014-02-27  Pedro Alves  <palves@redhat.com>
50
51         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
52         isn't set.
53
54 2014-02-27  Pedro Alves  <palves@redhat.com>
55
56         PR 12702
57         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
58         * nat/linux-waitpid.c: Include string.h.
59         (status_to_str): Moved here and made extern.
60         * nat/linux-waitpid.h (status_to_str): New declaration.
61
62 2014-02-27  Hui Zhu  <hui@codesourcery.com>
63
64         PR 12702
65         * infrun.c (ptid_match): Move ...
66         * common/ptid.c (ptid_match): ... here.
67         * inferior.h (ptid_match): Move ...
68         * common/ptid.h (ptid_match): ... here.
69
70 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
71
72         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
73         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
74         gdb_target_obs.
75
76 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
77
78         * obsd-tdep.c (obsd_auxv_parse): New function.
79         (obsd_init_abi): Set auxv_parse.
80
81         * gdbarch.sh (auxv_parse): New.
82         * gdbarch.h: Regenerated.
83         * gdbarch.c: Regenerated.
84         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
85
86 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
87
88         * guile/scm-value.c (gdbscm_history_append_x): New function.
89         (value_functions): Add it.
90
91 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
92
93         * dwarf2read.c (attr_value_as_address): New function.
94         (dwarf2_find_base_address, read_call_site_scope): Use
95         attr_value_as_address in place of DW_ADDR.
96         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
97         the low and high addresses.  Slight rework of the handling
98         of the high pc being a constant form, and limit it to
99         DWARF verson 4 or higher.
100         (dwarf2_record_block_ranges): Likewise.
101         (read_partial_die): Likewise.
102         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
103
104 2014-02-26  Tom Tromey  <tromey@redhat.com>
105
106         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
107
108 2014-02-26  Tom Tromey  <tromey@redhat.com>
109
110         * elfread.c (elf_read_minimal_symbols): Return early if
111         minimal symbols have already been read.  Add "ei" parameter.
112         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
113         * minsyms.c (prim_record_minimal_symbol_full): Update.
114         * objfiles.h (struct objstats) <n_minsyms>: Move...
115         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
116         * symmisc.c (print_objfile_statistics): Update.
117
118 2014-02-26  Tom Tromey  <tromey@redhat.com>
119
120         * elfread.c (elf_read_minimal_symbols): New function, from
121         elf_symfile_read.
122         (elf_symfile_read): Call it.
123
124 2014-02-26  Tom Tromey  <tromey@redhat.com>
125
126         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
127         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
128         (lookup_minimal_symbol_solib_trampoline)
129         (lookup_minimal_symbol_by_pc_section_1)
130         (lookup_minimal_symbol_and_objfile): Update.
131         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
132         Don't allocate a minimal symbol if minsyms have already been read.
133         (build_minimal_symbol_hash_tables): Update.
134         (install_minimal_symbols): Do nothing if minsyms already read.
135         Use the per-BFD obstack.
136         (terminate_minimal_symbol_table): Use the per-BFD obstack.
137         * objfiles.c (allocate_objfile): Call
138         terminate_minimal_symbol_table later.
139         (have_minimal_symbols): Update.
140         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
141         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
142         Move from struct objfile.
143         <minsyms_read>: New field.
144         (struct objfile) <msymbols, minimal_symbol_count,
145         msymbol_hash, msymbol_demangled_hash>: Move.
146         (ALL_OBJFILE_MSYMBOLS): Update.
147         * symfile.c (read_symbols): Set minsyms_read.
148         (reread_symbols): Update.
149         * symmisc.c (dump_objfile, dump_msymbols): Update.
150
151 2014-02-26  Tom Tromey  <tromey@redhat.com>
152
153         * minsyms.c (msymbols_sort): Remove.
154         * minsyms.h (msymbols_sort): Remove.
155         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
156         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
157         * elfread.c (elf_symtab_read): Don't add section offsets.
158         * xcoffread.c (record_minimal_symbol): Don't add section offset
159         to minimal symbol address.
160         * somread.c (text_offset, data_offset): Remove.
161         (som_symtab_read): Don't add section offsets to minimal symbol
162         addresses.
163         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
164         Don't add section offsets to minimal symbols.
165         * coffread.c (coff_symtab_read): Don't add section offsets
166         to minimal symbol addresses.
167         * machoread.c (macho_symtab_add_minsym): Don't add section offset
168         to minimal symbol addresses.
169         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
170         section offset to minimal symbol addresses.
171         * mdebugread.c (parse_partial_symbols): Don't add section
172         offset to minimal symbol addresses.
173         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
174         offset to minimal symbol addresses.
175
176 2014-02-26  Tom Tromey  <tromey@redhat.com>
177
178         * ada-lang.c (ada_main_name): Update.
179         (ada_add_standard_exceptions): Update.
180         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
181         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
182         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
183         * auxv.c (ld_so_xfer_auxv): Update.
184         * avr-tdep.c (avr_scan_prologue): Update.
185         * ax-gdb.c (gen_var_ref): Update.
186         * blockframe.c (get_pc_function_start)
187         (find_pc_partial_function_gnu_ifunc): Update.
188         * breakpoint.c (create_overlay_event_breakpoint)
189         (create_longjmp_master_breakpoint)
190         (create_std_terminate_master_breakpoint)
191         (create_exception_master_breakpoint): Update.
192         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
193         * c-valprint.c (c_val_print): Update.
194         * coff-pe-read.c (add_pe_forwarded_sym): Update.
195         * common/agent.c (agent_look_up_symbols): Update.
196         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
197         * dwarf2loc.c (call_site_to_target_addr): Update.
198         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
199         * elfread.c (elf_gnu_ifunc_record_cache)
200         (elf_gnu_ifunc_resolve_by_got): Update.
201         * findvar.c (default_read_var_value): Update.
202         * frame.c (inside_main_func): Update.
203         * frv-tdep.c (frv_frame_this_id): Update.
204         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
205         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
206         Update.
207         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
208         (hppa_hpux_find_dummy_bpaddr): Update.
209         * hppa-tdep.c (hppa_symbol_address): Update.
210         * infcmd.c (until_next_command): Update.
211         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
212         Update.
213         * linespec.c (minsym_found, add_minsym): Update.
214         * linux-nat.c (get_signo): Update.
215         * linux-thread-db.c (inferior_has_bug): Update.
216         * m32c-tdep.c (m32c_return_value)
217         (m32c_m16c_address_to_pointer): Update.
218         * m32r-tdep.c (m32r_frame_this_id): Update.
219         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
220         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
221         * maint.c (maintenance_translate_address): Update.
222         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
223         (frob_address): New function.
224         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
225         frob_address.  Rename parameter to "pc_in".
226         (compare_minimal_symbols, compact_minimal_symbols): Use raw
227         addresses.
228         (find_solib_trampoline_target, minimal_symbol_upper_bound):
229         Update.
230         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
231         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
232         * objc-lang.c (find_objc_msgsend): Update.
233         * objfiles.c (objfile_relocate1): Update.
234         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
235         * p-valprint.c (pascal_val_print): Update.
236         * parse.c (write_exp_msymbol): Update.
237         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
238         (ppc_elfv2_skip_entrypoint): Update.
239         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
240         * printcmd.c (build_address_symbolic, msym_info)
241         (address_info): Update.
242         * proc-service.c (ps_pglobal_lookup): Update.
243         * psymtab.c (find_pc_sect_psymtab_closer)
244         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
245         Change msymbol parameter to bound_minimal_symbol.
246         * ravenscar-thread.c (get_running_thread_id): Update.
247         * remote.c (remote_check_symbols): Update.
248         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
249         address.
250         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
251         * solib-dsbt.c (lm_base): Update.
252         * solib-frv.c (lm_base, main_got): Update.
253         * solib-irix.c (locate_base): Update.
254         * solib-som.c (som_solib_create_inferior_hook)
255         (link_map_start): Update.
256         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
257         * solib-svr4.c (elf_locate_base, enable_break): Update.
258         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
259         (flush_ea_cache): Update.
260         * stabsread.c (define_symbol, scan_file_globals): Update.
261         * stack.c (find_frame_funname): Update.
262         * symfile-debug.c (debug_qf_expand_symtabs_matching)
263         (debug_qf_find_pc_sect_symtab): Update.
264         * symfile.c (simple_read_overlay_table)
265         (simple_overlay_update): Update.
266         * symfile.h (struct quick_symbol_functions)
267         <find_pc_sect_symtab>: Change type of msymbol to
268         bound_minimal_symbol.
269         * symmisc.c (dump_msymbols): Update.
270         * symtab.c (find_pc_sect_symtab_via_partial)
271         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
272         (search_symbols, print_msymbol_info): Update.
273         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
274         (MSYMBOL_VALUE_ADDRESS): Redefine.
275         (BMSYMBOL_VALUE_ADDRESS): New macro.
276         * tracepoint.c (scope_info): Update.
277         * tui/tui-disasm.c (tui_find_disassembly_address)
278         (tui_get_begin_asm_address): Update.
279         * valops.c (find_function_in_inferior): Update.
280         * value.c (value_static_field, value_fn_field): Update.
281
282 2014-02-26  Tom Tromey  <tromey@redhat.com>
283
284         * ada-lang.c (ada_update_initial_language): Update.
285         (ada_main_name, ada_has_this_exception_support): Update.
286         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
287         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
288         * arm-tdep.c (arm_skip_stub): Update.
289         * auxv.c (ld_so_xfer_auxv): Update.
290         * avr-tdep.c (avr_scan_prologue): Update.
291         * ax-gdb.c (gen_var_ref): Update.
292         * breakpoint.c (struct breakpoint_objfile_data)
293         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
294         type to bound_minimal_symbol.
295         (create_overlay_event_breakpoint)
296         (create_longjmp_master_breakpoint)
297         (create_std_terminate_master_breakpoint)
298         (create_exception_master_breakpoint): Update.
299         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
300         * c-exp.y (classify_name): Update.
301         * coffread.c (coff_symfile_read): Update.
302         * common/agent.c (agent_look_up_symbols): Update.
303         * d-lang.c (d_main_name): Update.
304         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
305         * dec-thread.c (enable_dec_thread): Update.
306         * dwarf2loc.c (call_site_to_target_addr): Update.
307         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
308         * eval.c (evaluate_subexp_standard): Update.
309         * findvar.c (struct minsym_lookup_data) <result>: Change type
310         to bound_minimal_symbol.
311         <objfile>: Remove.
312         (minsym_lookup_iterator_cb, default_read_var_value): Update.
313         * frame.c (inside_main_func): Update.
314         * frv-tdep.c (frv_frame_this_id): Update.
315         * gcore.c (call_target_sbrk): Update.
316         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
317         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
318         Update.
319         * go-lang.c (go_main_name): Update.
320         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
321         (hppa_hpux_find_import_stub_for_addr): Update.
322         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
323         Update.  Change return type.
324         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
325         type.
326         * jit.c (jit_breakpoint_re_set_internal): Update.
327         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
328         Update.
329         * linux-nat.c (get_signo): Update.
330         * linux-thread-db.c (inferior_has_bug): Update
331         * m32c-tdep.c (m32c_return_value)
332         (m32c_m16c_address_to_pointer): Update.
333         * m32r-tdep.c (m32r_frame_this_id): Update.
334         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
335         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
336         * minsyms.c (lookup_minimal_symbol_internal): Rename to
337         lookup_minimal_symbol.  Change return type.
338         (lookup_minimal_symbol): Remove.
339         (lookup_bound_minimal_symbol): Update.
340         (lookup_minimal_symbol_text): Change return type.
341         (lookup_minimal_symbol_solib_trampoline): Change return type.
342         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
343         (lookup_minimal_symbol_solib_trampoline): Change return type.
344         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
345         * objc-lang.c (lookup_objc_class, lookup_child_selector)
346         (value_nsstring, find_imps): Update.
347         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
348         * p-lang.c (pascal_main_name): Update.
349         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
350         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
351         * proc-service.c (ps_pglobal_lookup): Update.
352         * ravenscar-thread.c (get_running_thread_msymbol): Change
353         return type.
354         (has_ravenscar_runtime, get_running_thread_id): Update.
355         * remote.c (remote_check_symbols): Update.
356         * sol-thread.c (ps_pglobal_lookup): Update.
357         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
358         * solib-dsbt.c (lm_base): Update.
359         * solib-frv.c (lm_base, frv_relocate_section_addresses):
360         Update.
361         * solib-irix.c (locate_base): Update.
362         * solib-som.c (som_solib_create_inferior_hook)
363         (som_solib_desire_dynamic_linker_symbols, link_map_start):
364         Update.
365         * solib-spu.c (spu_enable_break): Update.
366         * solib-svr4.c (elf_locate_base, enable_break): Update.
367         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
368         (flush_ea_cache): Update.
369         * stabsread.c (define_symbol): Update.
370         * symfile.c (simple_read_overlay_table): Update.
371         * symtab.c (find_pc_sect_line): Update.
372         * tracepoint.c (scope_info): Update.
373         * tui-disasm.c (tui_get_begin_asm_address): Update.
374         * value.c (value_static_field): Update.
375
376 2014-02-26  Tom Tromey  <tromey@redhat.com>
377
378         * minsyms.c (prim_record_minimal_symbol_full): Use
379         SET_MSYMBOL_VALUE_ADDRESS.
380         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
381         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
382         SET_MSYMBOL_VALUE_ADDRESS.
383         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
384         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
385
386 2014-02-26  Tom Tromey  <tromey@redhat.com>
387
388         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
389         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
390         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
391         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
392         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
393         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
394         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
395         * ada-lang.c (ada_main_name): Update.
396         (ada_lookup_simple_minsym): Update.
397         (ada_make_symbol_completion_list): Update.
398         (ada_add_standard_exceptions): Update.
399         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
400         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
401         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
402         * arm-tdep.c (skip_prologue_function): Update.
403         (arm_skip_stack_protector, arm_skip_stub): Update.
404         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
405         (arm_wince_skip_main_prologue): Update.
406         * auxv.c (ld_so_xfer_auxv): Update.
407         * avr-tdep.c (avr_scan_prologue): Update.
408         * ax-gdb.c (gen_var_ref): Update.
409         * block.c (call_site_for_pc): Update.
410         * blockframe.c (get_pc_function_start): Update.
411         (find_pc_partial_function_gnu_ifunc): Update.
412         * breakpoint.c (create_overlay_event_breakpoint): Update.
413         (create_longjmp_master_breakpoint): Update.
414         (create_std_terminate_master_breakpoint): Update.
415         (create_exception_master_breakpoint): Update.
416         (resolve_sal_pc): Update.
417         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
418         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
419         Update.
420         * c-valprint.c (c_val_print): Update.
421         * coff-pe-read.c (add_pe_forwarded_sym): Update.
422         * coffread.c (coff_symfile_read): Update.
423         * common/agent.c (agent_look_up_symbols): Update.
424         * dbxread.c (find_stab_function_addr): Update.
425         (end_psymtab): Update.
426         * dwarf2loc.c (call_site_to_target_addr): Update.
427         (func_verify_no_selftailcall): Update.
428         (tailcall_dump): Update.
429         (call_site_find_chain_1): Update.
430         (dwarf_expr_reg_to_entry_parameter): Update.
431         * elfread.c (elf_gnu_ifunc_record_cache): Update.
432         (elf_gnu_ifunc_resolve_by_got): Update.
433         * f-valprint.c (info_common_command): Update.
434         * findvar.c (read_var_value): Update.
435         * frame.c (get_prev_frame_1): Update.
436         (inside_main_func): Update.
437         * frv-tdep.c (frv_skip_main_prologue): Update.
438         (frv_frame_this_id): Update.
439         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
440         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
441         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
442         (gnuv3_skip_trampoline): Update.
443         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
444         (hppa64_hpux_in_solib_call_trampoline): Update.
445         (hppa_hpux_skip_trampoline_code): Update.
446         (hppa64_hpux_search_dummy_call_sequence): Update.
447         (hppa_hpux_find_import_stub_for_addr): Update.
448         (hppa_hpux_find_dummy_bpaddr): Update.
449         * hppa-tdep.c (hppa_symbol_address)
450         (hppa_lookup_stub_minimal_symbol): Update.
451         * i386-tdep.c (i386_skip_main_prologue): Update.
452         (i386_pe_skip_trampoline_code): Update.
453         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
454         * infcall.c (get_function_name): Update.
455         * infcmd.c (until_next_command): Update.
456         * jit.c (jit_breakpoint_re_set_internal): Update.
457         (jit_inferior_init): Update.
458         * linespec.c (minsym_found): Update.
459         (add_minsym): Update.
460         * linux-fork.c (info_checkpoints_command): Update.
461         * linux-nat.c (get_signo): Update.
462         * linux-thread-db.c (inferior_has_bug): Update.
463         * m32c-tdep.c (m32c_return_value): Update.
464         (m32c_m16c_address_to_pointer): Update.
465         (m32c_m16c_pointer_to_address): Update.
466         * m32r-tdep.c (m32r_frame_this_id): Update.
467         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
468         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
469         * maint.c (maintenance_translate_address): Update.
470         * minsyms.c (add_minsym_to_hash_table): Update.
471         (add_minsym_to_demangled_hash_table): Update.
472         (msymbol_objfile): Update.
473         (lookup_minimal_symbol): Update.
474         (iterate_over_minimal_symbols): Update.
475         (lookup_minimal_symbol_text): Update.
476         (lookup_minimal_symbol_by_pc_name): Update.
477         (lookup_minimal_symbol_solib_trampoline): Update.
478         (lookup_minimal_symbol_by_pc_section_1): Update.
479         (lookup_minimal_symbol_and_objfile): Update.
480         (prim_record_minimal_symbol_full): Update.
481         (compare_minimal_symbols): Update.
482         (compact_minimal_symbols): Update.
483         (build_minimal_symbol_hash_tables): Update.
484         (install_minimal_symbols): Update.
485         (terminate_minimal_symbol_table): Update.
486         (find_solib_trampoline_target): Update.
487         (minimal_symbol_upper_bound): Update.
488         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
489         * mips-tdep.c (mips_stub_frame_sniffer): Update.
490         (mips_skip_pic_trampoline_code): Update.
491         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
492         * objc-lang.c (selectors_info): Update.
493         (classes_info): Update.
494         (find_methods): Update.
495         (find_imps): Update.
496         (find_objc_msgsend): Update.
497         * objfiles.c (objfile_relocate1): Update.
498         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
499         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
500         * p-valprint.c (pascal_val_print): Update.
501         * parse.c (write_exp_msymbol): Update.
502         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
503         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
504         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
505         * printcmd.c (build_address_symbolic): Update.
506         (sym_info): Update.
507         (address_info): Update.
508         * proc-service.c (ps_pglobal_lookup): Update.
509         * psymtab.c (find_pc_sect_psymtab_closer): Update.
510         (find_pc_sect_psymtab): Update.
511         * python/py-framefilter.c (py_print_frame): Update.
512         * ravenscar-thread.c (get_running_thread_id): Update.
513         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
514         Update.
515         * remote.c (remote_check_symbols): Update.
516         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
517         (rs6000_skip_trampoline_code): Update.
518         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
519         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
520         * solib-dsbt.c (lm_base): Update.
521         * solib-frv.c (lm_base): Update.
522         (main_got): Update.
523         * solib-irix.c (locate_base): Update.
524         * solib-som.c (som_solib_create_inferior_hook): Update.
525         (som_solib_desire_dynamic_linker_symbols): Update.
526         (link_map_start): Update.
527         * solib-spu.c (spu_enable_break): Update.
528         (ocl_enable_break): Update.
529         * solib-svr4.c (elf_locate_base): Update.
530         (enable_break): Update.
531         * spu-tdep.c (spu_get_overlay_table): Update.
532         (spu_catch_start): Update.
533         (flush_ea_cache): Update.
534         * stabsread.c (define_symbol): Update.
535         (scan_file_globals): Update.
536         * stack.c (find_frame_funname): Update.
537         (frame_info): Update.
538         * symfile.c (simple_read_overlay_table): Update.
539         (simple_overlay_update): Update.
540         * symmisc.c (dump_msymbols): Update.
541         * symtab.c (fixup_section): Update.
542         (find_pc_sect_line): Update.
543         (skip_prologue_sal): Update.
544         (search_symbols): Update.
545         (print_msymbol_info): Update.
546         (rbreak_command): Update.
547         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
548         (completion_list_objc_symbol): Update.
549         (default_make_symbol_completion_list_break_on): Update.
550         * tracepoint.c (scope_info): Update.
551         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
552         (tui_get_begin_asm_address): Update.
553         * valops.c (find_function_in_inferior): Update.
554         * value.c (value_static_field): Update.
555         (value_fn_field): Update.
556
557 2014-02-26  Tom Tromey  <tromey@redhat.com>
558
559         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
560         bound minimal symbols.  Move code that knows about minsym
561         table layout...
562         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
563         function.
564         * minsyms.h (minimal_symbol_upper_bound): Declare.
565         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
566         minimal_symbol_upper_bound.
567
568 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
569
570         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
571         Use the type's name if its basic type does not have a tag.
572
573 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
574
575         * dwarf2read.c (read_subrange_type): Add comment.
576
577 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
578
579         * dwarf2read.c (update_enumeration_type_from_children): New
580         function, mostly extracted from process_structure_scope.
581         (read_enumeration_type): Call update_enumeration_type_from_children.
582         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
583         and flag_flag_enum fields.
584
585 2014-02-26  Pedro Alves  <palves@redhat.com>
586
587         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
588         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
589         to_xfer_partial method.
590
591 2014-02-26  Pedro Alves  <palves@redhat.com>
592
593         * target.c (complete_target_initialization): Don't install
594         default_xfer_partial as to_xfer_partial hook.
595         (nomemory): Delete.
596         (update_current_target): Don't INHERIT nor de_fault
597         deprecated_xfer_memory.  Delete de_fault macro.
598         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
599         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
600         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
601         field.
602
603 2014-02-26  Pedro Alves  <palves@redhat.com>
604
605         * go32-nat.c (my_write_child): New function.
606         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
607         (go32_xfer_partial): New function.
608         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
609         Instead install a to_xfer_partial hook.
610
611 2014-02-26  Pedro Alves  <palves@redhat.com>
612
613         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
614         to_xfer_partial helper.  Rewrite.
615         (procfs_xfer_partial): New function.
616         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
617         Install a to_xfer_partial hook.
618
619 2014-02-26  Pedro Alves  <palves@redhat.com>
620
621         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
622         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
623         (m32r_xfer_partial): New function.
624         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
625         Install a to_xfer_partial hook.
626
627 2014-02-26  Pedro Alves  <palves@redhat.com>
628
629         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
630         helper.
631         (mips_xfer_partial): New function.
632         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
633         hook.  Install a to_xfer_partial hook.
634
635 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
636
637         * gdbtypes.h (create_array_type_with_stride): Add declaration.
638         * gdbtypes.c (create_array_type_with_stride): New function,
639         renaming create_array_type, but with an added parameter
640         called "bit_stride".
641         (create_array_type): Re-implement using
642         create_array_type_with_stride.
643         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
644         and DW_AT_bit_stride attributes.
645
646 2014-02-26  Pedro Alves  <palves@redhat.com>
647
648         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
649         task-specific breakpoints.
650
651 2014-02-25  Pedro Alves  <palves@redhat.com>
652
653         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
654         handling of object == TARGET_OBJECT_UNWIND_TABLE.
655
656 2014-02-25  Stan Shebs  <stan@codesourcery.com>
657
658         * defs.h: Annotate comments for Doxygen.
659
660 2014-02-25  Tom Tromey  <tromey@redhat.com>
661
662         * target.h (target_ignore): Don't declare.
663         * target.c (target_ignore): Remove.
664
665 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
666
667         PR gdb/16626
668         * auto-load.c (auto_load_objfile_script_1): Change filename to
669         debugfile.
670
671 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
672
673         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
674         documentation.  Adjust prototype to match the target_ops
675         to_xfer_partial method.  Adjust implementation accordingly.
676
677 2014-02-25  Hui Zhu  <hui@codesourcery.com>
678
679         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
680         to_traceframe_info.
681
682 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
683
684         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
685         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
686         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
687         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
688         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
689         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
690         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
691         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
692         New constants.
693         (rl78_register_type): Use a data pointer type for SP and
694         new pseudo registers mentioned above.  Use a 16 bit integer
695         type for all other register pairs.
696         (rl78_register_name, rl78_g10_register_name): Update for
697         new pseudo registers.
698         (rl78_pseudo_register_read): Likewise.
699         (rl78_pseudo_register_write): Likewise.
700         (rl78_dwarf_reg_to_regnum): Return register numbers representing
701         to the newly added pseudo registers.
702
703 2014-02-24  Doug Evans  <dje@google.com>
704
705         * value.c (record_latest_value): Fix comment.
706         * printcmd.c (print_command_1): Remove code to handle -1 return from
707         record_latest_value.
708
709 2014-02-24  Pedro Alves  <palves@redhat.com>
710
711         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
712         deprecated_xfer_memory hook.
713         (procfs_xfer_partial): Call procfs_xfer_memory instead
714         of the deprecated_xfer_memory target hook.
715         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
716         helper.
717
718 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
719
720         * windows-nat.c (windows_xfer_shared_libraries): Return
721         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
722         requested object is TARGET_OBJECT_LIBRARIES.
723
724 2014-02-24  Yao Qi  <yao@codesourcery.com>
725
726         * target.h (enum target_xfer_status)
727         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
728         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
729         explicitly.  New.
730         * corefile.c (memory_error_message): User updated.
731         * exec.c (section_table_read_available_memory): Likewise.
732         * record-btrace.c (record_btrace_xfer_partial): Likewise.
733         * target.c (target_xfer_status_to_string): Likewise.
734         (raw_memory_xfer_partial): Likewise.
735         (memory_xfer_partial_1, target_xfer_partial): Likewise.
736         * valops.c (read_value_memory): Likewise.
737         * exec.h: Update comments.
738
739 2014-02-24  Yao Qi  <yao@codesourcery.com>
740
741         * target.c (target_xfer_status_to_string): Rename argument err
742         to status.
743         * target.h (target_xfer_status_to_string): Update declaration.
744         Replace target_xfer_error_to_string with
745         target_xfer_status_to_string in comment.
746
747 2014-02-24  Yao Qi  <yao@codesourcery.com>
748
749         * mips-linux-nat.c (super_close): Update its type.
750         (mips_linux_close): Pass 'self' to super_close.
751
752 2014-02-24  Yao Qi  <yao@codesourcery.com>
753
754         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
755         * corefile.c (read_memory): Adjusted.
756         * target.c (target_write_with_progress): Adjusted.
757
758 2014-02-23  Yao Qi  <yao@codesourcery.com>
759
760         Revert two patches:
761
762         2013-10-25  Yao Qi  <yao@codesourcery.com>
763
764         * remote.c (remote_traceframe_info): Return early if
765         traceframe is not selected.
766
767         2013-07-19  Yao Qi  <yao@codesourcery.com>
768
769         * target.c (update_current_target): Change the default action
770         of 'to_traceframe_info' from tcomplain to return_zero.
771         * target.h (struct target_ops) <to_traceframe_info>: Add more
772         comments.
773
774 2014-02-23  Yao Qi  <yao@codesourcery.com>
775
776         * valops.c (read_value_memory): Rewrite it.  Call
777         target_xfer_partial in a loop.
778         * exec.h (section_table_available_memory): Remove declaration.
779         Move comments to ...
780         * exec.c (section_table_available_memory): ... here.  Make it
781         static.
782
783 2014-02-23  Yao Qi  <yao@codesourcery.com>
784
785         * exec.c (section_table_read_available_memory): New function.
786         * exec.h (section_table_read_available_memory): Declare.
787         * ctf.c (ctf_xfer_partial): Call
788         section_table_read_available_memory.
789         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
790
791 2014-02-23  Yao Qi  <yao@codesourcery.com>
792
793         * ctf.c (ctf_xfer_partial): Move code to ...
794         * exec.c (exec_read_partial_read_only): ... it.  New function.
795         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
796         * tracefile.c: Include "exec.h".
797         * exec.h (exec_read_partial_read_only): Declare.
798
799 2014-02-23  Yao Qi  <yao@codesourcery.com>
800
801         * tracefile-tfile.c (tfile_has_all_memory): Remove.
802         (tfile_has_memory): Remove.
803         (init_tfile_ops): Don't set fields to_has_all_memory and
804         to_has_memory of tfile_ops.
805         * tracefile.c (tracefile_has_all_memory): New function.
806         (tracefile_has_memory): New function.
807         (init_tracefile_ops): Initialize fields to_has_all_memory and
808         to_has_memory of 'ops'.
809
810 2014-02-23  Yao Qi  <yao@codesourcery.com>
811
812         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
813         (ctf_thread_alive, ctf_get_trace_status): Remove.
814         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
815         init_tracefile_ops.
816         * tracefile-tfile.c (tfile_get_trace_status): Remove.
817         (tfile_has_stack, tfile_has_registers): Remove.
818         (tfile_thread_alive): Remove.
819         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
820         init_tracefile_ops.
821         * tracefile.c (tracefile_has_stack): New function.
822         (tracefile_has_registers): New function.
823         (tracefile_thread_alive): New function.
824         (tracefile_get_trace_status): New function.
825         (init_tracefile_ops): New function.
826         * tracefile.h (init_tracefile_ops): Declare.
827
828 2014-02-23  Yao Qi  <yao@codesourcery.com>
829
830         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
831         (O_LARGEFILE): Likewise.
832         (tfile_ops): Likewise.
833         (TRACE_HEADER_SIZE): Likewise.
834         (trace_fd, trace_frames_offset, cur_offset): Likewise.
835         (cur_data_size): Likewise.
836         (tfile_read, tfile_open, tfile_interp_line): Likewise.
837         (tfile_close, tfile_files_info): Likewise.
838         (tfile_get_trace_status): Likewise.
839         (tfile_get_tracepoint_status): Likewise.
840         (tfile_get_traceframe_address): Likewise.
841         (tfile_trace_find, match_blocktype): Likewise.
842         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
843         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
844         (tfile_get_trace_state_variable_value): Likewise.
845         (tfile_has_all_memory, tfile_has_memory): Likewise.
846         (tfile_has_stack, tfile_has_registers): Likewise.
847         (tfile_thread_alive, build_traceframe_info): Likewise.
848         (tfile_traceframe_info, init_tfile_ops): Likewise.
849         (_initialize_tracepoint): Don't call init_tfile_ops
850         and add_target_with_completer.
851         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
852         exec.h, completer.h and filenames.h.
853         (_initialize_tracefile_tfile): New function.
854
855 2014-02-23  Yao Qi  <yao@codesourcery.com>
856
857         * Makefile.in (REMOTE_OBS): Append tracefile.o and
858         tracefile-tfile.o.
859         (HFILES_NO_SRCDIR): Add tracefile.h.
860         * ctf.c: Include "tracefile.h".
861         * tracefile.h: New file.
862         * tracefile.c: New file
863         * tracefile-tfile.c: New file.
864         * tracepoint.c: Include "tracefile.h".
865         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
866         (stop_reason_names): Add const.
867         (trace_file_writer_xfree): Move it to tracefile.c.
868         (trace_save, trace_save_command, trace_save_tfile): Likewise.
869         (trace_save_ctf): Likewise.
870         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
871         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
872         (tfile_write_header, tfile_write_regblock_type): Likewise.
873         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
874         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
875         (tfile_write_raw_data, tfile_end): Likewise.
876         (tfile_trace_file_writer_new): Likewise.
877         (free_uploaded_tp): Make it extern.
878         (free_uploaded_tsv): Make it extern.
879         (_initialize_tracepoint): Move code to register command 'tsave'
880         to tracefile.c.
881         * tracepoint.h (stop_reason_names): Declare.
882         (struct trace_frame_write_ops): Move it to tracefile.h.
883         (struct trace_file_write_ops): Likewise.
884         (struct trace_file_writer): Likewise.
885         (free_uploaded_tsvs, free_uploaded_tps): Declare.
886
887 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
888
889         PR gdb/16594
890         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
891         process name.
892         (get_cores_used_by_process): New parameter num_cores, use it.
893         (linux_xfer_osdata_processes): Pass num_cores to it.
894         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
895         process name.
896
897 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
898
899         * target.c (memory_xfer_partial): Fix length arg in call to
900         breakpoint_xfer_memory.
901
902 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
903
904         PR tdep/16397
905         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
906         number comes after the + or - signs.  Adjust length of register
907         name to be extracted.
908
909 2014-02-20  Tom Tromey  <tromey@redhat.com>
910
911         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
912         (ada_varobj_ops): Mark "extern".
913
914 2014-02-20  Tom Tromey  <tromey@redhat.com>
915
916         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
917
918 2014-02-20  Doug Evans  <xdje42@gmail.com>
919
920         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
921         All callers updated.
922         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
923         All callers updated.
924         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
925         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
926
927 2014-02-20  lin zuojian  <manjian2006@gmail.com>
928             Joel Brobecker  <brobecker@adacore.com>
929             Doug Evans  <xdje42@gmail.com>
930
931         PR symtab/16581
932         * dwarf2read.c (struct die_info): New member in_process.
933         (reset_die_in_process): New function.
934         (process_die): Set it at the start, reset when returning.
935         (inherit_abstract_dies): Only call process_die if origin_child_die
936         not already being processed.
937
938 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
939
940         * windows-nat.c (handle_unload_dll): Add function documentation.
941         (do_initial_windows_stuff): Add comment explaining why we wait
942         until after inferior initialization has finished before
943         processing all DLLs.
944
945 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
946
947         * windows-nat.c (get_module_name): Delete.
948         (windows_get_exec_module_filename): New function, mostly
949         inspired from get_module_name.
950         (windows_pid_to_exec_file): Replace call to get_module_name
951         by call to windows_get_exec_module_filename.
952
953 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
954
955         * windows-nat.c (handle_load_dll): Rewrite this function's
956         introductory comment.  Remove code using get_module_name
957         to get the DLL's name.
958
959 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
960
961         * windows-nat.c (get_windows_debug_event): Ignore
962         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
963         if windows_initialization_done == 0.
964         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
965         Adjust implementation to always load all DLLs.
966         (do_initial_windows_stuff): Replace call to
967         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
968
969 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
970
971         * windows-nat.c (_initialize_windows_nat): Deprecate the
972         "dll-symbols" command.  Turn the "add-shared-symbol-files"
973         and "assf" aliases into commands, and deprecate them as well.
974         * NEWS: Add entry explaining that "dll-symbols" and its two
975         aliases are now deprecated.
976
977 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
978
979         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
980         new-line in debug string.  Remove trailing spaces.
981
982 2014-02-19  Stan Shebs  <stan@codesourcery.com>
983
984         * darwin-nat.c (darwin_xfer_partial): Fix return type.
985
986 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
987
988         * NEWS: Add entry for the new feature
989         * python/py-value.c (valpy_binop): Call value_x_binop for struct
990         and class values.
991
992 2014-02-19  Stan Shebs  <stan@codesourcery.com>
993
994         * MAINTAINERS: List Yao Qi as nios2 maintainer.
995
996 2014-02-19  Pedro Alves  <palves@redhat.com>
997
998         * common/ptid.h (struct ptid): Mention that process_stratum
999         targets should prefer ptid.lwp.
1000
1001 2014-02-19  Pedro Alves  <palves@redhat.com>
1002
1003         * remote.c (remote_thread_alive, write_ptid, read_ptid)
1004         (read_ptid, remote_newthread_step, remote_threads_extra_info)
1005         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
1006         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
1007         store remote thread ids rather than ptid.tid.
1008         (_initialize_remote): Adjust.
1009
1010 2014-02-19  Tom Tromey  <tromey@redhat.com>
1011
1012         * target.c (target_get_unwinder): Rewrite.
1013         (target_get_tailcall_unwinder): Rewrite.
1014         * record-btrace.c (record_btrace_to_get_unwinder): New function.
1015         (record_btrace_to_get_tailcall_unwinder): New function.
1016         (init_record_btrace_ops): Update.
1017         * target.h (struct target_ops) <to_get_unwinder,
1018         to_get_tailcall_unwinder>: Now function pointers.  Use
1019         TARGET_DEFAULT_RETURN.
1020
1021 2014-02-19  Tom Tromey  <tromey@redhat.com>
1022
1023         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
1024         argument.
1025         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
1026
1027 2014-02-19  Tom Tromey  <tromey@redhat.com>
1028
1029         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
1030         directly.
1031         * target-delegates.c: Rebuild.
1032         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
1033         TARGET_DEFAULT_FUNC.
1034         * target.c (default_target_decr_pc_after_break): Rename from
1035         forward_target_decr_pc_after_break.  Simplify.
1036         (target_decr_pc_after_break): Rely on delegation.
1037
1038 2014-02-19  Tom Tromey  <tromey@redhat.com>
1039
1040         * target.c (update_current_target): Do not INHERIT to_doc or
1041         to_magic.  Do not de_fault to_open or to_close.
1042
1043 2014-02-19  Tom Tromey  <tromey@redhat.com>
1044
1045         * gcore.h (objfile_find_memory_regions): Declare.
1046         * gcore.c (objfile_find_memory_regions): No longer static.  Add
1047         "self" argument.
1048         (_initialize_gcore): Don't call exec_set_find_memory_regions.
1049         * exec.c: Include gcore.h.
1050         (exec_set_find_memory_regions): Remove.
1051         (exec_find_memory_regions): Remove.
1052         (exec_do_find_memory_regions): Remove.
1053         (init_exec_ops): Update.
1054         * defs.h (exec_set_find_memory_regions): Remove.
1055
1056 2014-02-19  Tom Tromey  <tromey@redhat.com>
1057
1058         * target-delegates.c: Rebuild.
1059         * target.h (struct target_ops) <to_extra_thread_info,
1060         to_thread_name, to_pid_to_exec_file, to_get_section_table,
1061         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
1062         not 0, in TARGET_DEFAULT_RETURN.
1063
1064 2014-02-19  Tom Tromey  <tromey@redhat.com>
1065
1066         * target.c (complete_target_initialization): Remove casts.  Use
1067         return_zero_has_execution.
1068         (return_zero): Add "ignore" argument.
1069         (return_zero_has_execution): New function.
1070         (init_dummy_target): Remove casts.  Use
1071         return_zero_has_execution.
1072
1073 2014-02-19  Tom Tromey  <tromey@redhat.com>
1074
1075         * target.c (update_current_target): Update comments.  Do not
1076         INHERIT to_stratum.
1077
1078 2014-02-19  Tom Tromey  <tromey@redhat.com>
1079
1080         * arm-linux-nat.c (arm_linux_read_description): Delegate when
1081         needed.
1082         * corelow.c (core_read_description): Delegate when needed.
1083         * remote.c (remote_read_description): Delegate when needed.
1084         * target-delegates.c: Rebuild.
1085         * target.c (target_read_description): Rewrite.
1086         * target.h (struct target_ops) <to_read_description>: Update
1087         comment.  Use TARGET_DEFAULT_RETURN.
1088
1089 2014-02-19  Tom Tromey  <tromey@redhat.com>
1090
1091         * target-delegates.c: Rebuild.
1092         * target.c (update_current_target): Don't inherit or default
1093         to_can_run.
1094         (find_default_run_target): Check against delegate_can_run.
1095         * target.h (struct target_ops) <to_can_run>: Use
1096         TARGET_DEFAULT_RETURN.
1097
1098 2014-02-19  Tom Tromey  <tromey@redhat.com>
1099
1100         * target-delegates.c: Rebuild.
1101         * target.c (target_disconnect): Unconditionally delegate.
1102         * target.h (struct target_ops) <to_disconnect>: Use
1103         TARGET_DEFAULT_NORETURN.
1104
1105 2014-02-19  Tom Tromey  <tromey@redhat.com>
1106
1107         * record.c (record_stop): Unconditionally delegate.
1108         * target-delegates.c: Rebuild.
1109         * target.c (target_stop_recording): Unconditionally delegate.
1110         * target.h (struct target_ops) <to_stop_recording>: Use
1111         TARGET_DEFAULT_IGNORE.
1112
1113 2014-02-19  Tom Tromey  <tromey@redhat.com>
1114
1115         * target-delegates.c: Rebuild.
1116         * target.c (target_enable_btrace): Unconditionally delegate.
1117         * target.h (struct target_ops) <to_enable_btrace>: Use
1118         TARGET_DEFAULT_NORETURN.
1119
1120 2014-02-19  Tom Tromey  <tromey@redhat.com>
1121
1122         * target-delegates.c: Rebuild.
1123         * target.c (target_read_btrace): Unconditionally delegate.
1124         * target.h (struct target_ops) <to_read_btrace>: Use
1125         TARGET_DEFAULT_NORETURN.
1126
1127 2014-02-19  Tom Tromey  <tromey@redhat.com>
1128
1129         * target-delegates.c: Rebuild.
1130         * target.c (target_teardown_btrace): Unconditionally delegate.
1131         * target.h (struct target_ops) <to_teardown_btrace>: Use
1132         TARGET_DEFAULT_NORETURN.
1133
1134 2014-02-19  Tom Tromey  <tromey@redhat.com>
1135
1136         * target-delegates.c: Rebuild.
1137         * target.c (target_disable_btrace): Unconditionally delegate.
1138         * target.h (struct target_ops) <to_disable_btrace>: Use
1139         TARGET_DEFAULT_NORETURN.
1140
1141 2014-02-19  Tom Tromey  <tromey@redhat.com>
1142
1143         * target-delegates.c: Rebuild.
1144         * target.c (default_search_memory): New function.
1145         (simple_search_memory): Update comment.
1146         (target_search_memory): Unconditionally delegate.
1147         * target.h (struct target_ops) <to_search_memory>: Use
1148         TARGET_DEFAULT_FUNC.
1149
1150 2014-02-19  Tom Tromey  <tromey@redhat.com>
1151
1152         * auxv.c (default_auxv_parse): No longer static.
1153         (target_auxv_parse): Unconditionally delegate.
1154         * auxv.h (default_auxv_parse): Declare.
1155         * target-delegates.c: Rebuild.
1156         * target.c: Include auxv.h.
1157         * target.h (struct target_ops) <to_auxv_parse>: Use
1158         TARGET_DEFAULT_FUNC.
1159
1160 2014-02-19  Tom Tromey  <tromey@redhat.com>
1161
1162         * target-delegates.c: Rebuild.
1163         * target.c (target_memory_map): Unconditionally delegate.
1164         * target.h (struct target_ops) <to_memory_map>: Use
1165         TARGET_DEFAULT_RETURN.
1166
1167 2014-02-19  Tom Tromey  <tromey@redhat.com>
1168
1169         * target-delegates.c: Rebuild.
1170         * target.c (target_thread_alive): Unconditionally delegate.
1171         * target.h (struct target_ops) <to_thread_alive>: Use
1172         TARGET_DEFAULT_RETURN.
1173
1174 2014-02-19  Tom Tromey  <tromey@redhat.com>
1175
1176         * target-delegates.c: Rebuild.
1177         * target.c (target_save_record): Unconditionally delegate.
1178         * target.h (struct target_ops) <to_save_record>: Use
1179         TARGET_DEFAULT_NORETURN.
1180
1181 2014-02-19  Tom Tromey  <tromey@redhat.com>
1182
1183         * target-delegates.c: Rebuild.
1184         * target.c (target_delete_record): Unconditionally delegate.
1185         * target.h (struct target_ops) <to_delete_record>: Use
1186         TARGET_DEFAULT_NORETURN.
1187
1188 2014-02-19  Tom Tromey  <tromey@redhat.com>
1189
1190         * target-delegates.c: Rebuild.
1191         * target.c (target_record_is_replaying): Unconditionally
1192         delegate.
1193         * target.h (struct target_ops) <to_record_is_replaying>: Use
1194         TARGET_DEFAULT_RETURN.
1195
1196 2014-02-19  Tom Tromey  <tromey@redhat.com>
1197
1198         * target-delegates.c: Rebuild.
1199         * target.c (target_goto_record_begin): Unconditionally delegate.
1200         * target.h (struct target_ops) <to_goto_record_begin>: Use
1201         TARGET_DEFAULT_NORETURN.
1202
1203 2014-02-19  Tom Tromey  <tromey@redhat.com>
1204
1205         * target-delegates.c: Rebuild.
1206         * target.c (target_goto_record_end): Unconditionally delegate.
1207         * target.h (struct target_ops) <to_goto_record_end>: Use
1208         TARGET_DEFAULT_NORETURN.
1209
1210 2014-02-19  Tom Tromey  <tromey@redhat.com>
1211
1212         * target-delegates.c: Rebuild.
1213         * target.c (target_goto_record): Unconditionally delegate.
1214         * target.h (struct target_ops) <to_goto_record>: Use
1215         TARGET_DEFAULT_NORETURN.
1216
1217 2014-02-19  Tom Tromey  <tromey@redhat.com>
1218
1219         * target-delegates.c: Rebuild.
1220         * target.c (target_insn_history): Unconditionally delegate.
1221         * target.h (struct target_ops) <to_insn_history>: Use
1222         TARGET_DEFAULT_NORETURN.
1223
1224 2014-02-19  Tom Tromey  <tromey@redhat.com>
1225
1226         * target-delegates.c: Rebuild.
1227         * target.c (target_insn_history_from): Unconditionally delegate.
1228         * target.h (struct target_ops) <to_insn_history_from>: Use
1229         TARGET_DEFAULT_NORETURN.
1230
1231 2014-02-19  Tom Tromey  <tromey@redhat.com>
1232
1233         * target-delegates.c: Rebuild.
1234         * target.c (target_insn_history_range): Unconditionally delegate.
1235         * target.h (struct target_ops) <to_insn_history_range>: Use
1236         TARGET_DEFAULT_NORETURN.
1237
1238 2014-02-19  Tom Tromey  <tromey@redhat.com>
1239
1240         * target-delegates.c: Rebuild.
1241         * target.c (target_call_history): Unconditionally delegate.
1242         * target.h (struct target_ops) <to_call_history>: Use
1243         TARGET_DEFAULT_NORETURN.
1244
1245 2014-02-19  Tom Tromey  <tromey@redhat.com>
1246
1247         * target-delegates.c: Rebuild.
1248         * target.c (target_call_history_from): Unconditionally delegate.
1249         * target.h (struct target_ops) <to_call_history_from>: Use
1250         TARGET_DEFAULT_NORETURN.
1251
1252 2014-02-19  Tom Tromey  <tromey@redhat.com>
1253
1254         * target-delegates.c: Rebuild.
1255         * target.c (target_call_history_range): Unconditionally delegate.
1256         * target.h (struct target_ops) <to_call_history_range>: Use
1257         TARGET_DEFAULT_NORETURN.
1258
1259 2014-02-19  Tom Tromey  <tromey@redhat.com>
1260
1261         * target-delegates.c: Rebuild.
1262         * target.c (target_verify_memory): Unconditionally delegate.
1263         * target.h (struct target_ops) <to_verify_memory>: Use
1264         TARGET_DEFAULT_NORETURN.
1265
1266 2014-02-19  Tom Tromey  <tromey@redhat.com>
1267
1268         * target-delegates.c: Rebuild.
1269         * target.c (target_core_of_thread): Unconditionally delegate.
1270         * target.h (struct target_ops) <to_core_of_thread>: Use
1271         TARGET_DEFAULT_RETURN.
1272
1273 2014-02-19  Tom Tromey  <tromey@redhat.com>
1274
1275         * target-delegates.c: Rebuild.
1276         * target.c (target_flash_done): Unconditionally delegate.
1277         * target.h (struct target_ops) <to_flash_done>: Use
1278         TARGET_DEFAULT_NORETURN.
1279
1280 2014-02-19  Tom Tromey  <tromey@redhat.com>
1281
1282         * target-delegates.c: Rebuild.
1283         * target.c (target_flash_erase): Unconditionally delegate.
1284         * target.h (struct target_ops) <to_flash_erase>: Use
1285         TARGET_DEFAULT_NORETURN.
1286
1287 2014-02-19  Tom Tromey  <tromey@redhat.com>
1288
1289         * target-delegates.c: Rebuild.
1290         * target.c (target_get_section_table): Unconditionally delegate.
1291         * target.h (struct target_ops) <to_get_section_table>: Use
1292         TARGET_DEFAULT_RETURN.
1293
1294 2014-02-19  Tom Tromey  <tromey@redhat.com>
1295
1296         * target-delegates.c: Rebuild.
1297         * target.c (target_pid_to_str): Unconditionally delegate.
1298         (init_dummy_target): Don't initialize to_pid_to_str.
1299         (default_pid_to_str): Rename from dummy_pid_to_str.
1300         * target.h (struct target_ops) <to_pid_to_str>: Use
1301         TARGET_DEFAULT_FUNC.
1302
1303 2014-02-19  Tom Tromey  <tromey@redhat.com>
1304
1305         * target-delegates.c: Rebuild.
1306         * target.c (target_find_new_threads): Unconditionally delegate.
1307         * target.h (struct target_ops) <to_find_new_threads>: Use
1308         TARGET_DEFAULT_RETURN.
1309
1310 2014-02-19  Tom Tromey  <tromey@redhat.com>
1311
1312         * target-delegates.c: Rebuild.
1313         * target.c (target_program_signals): Unconditionally delegate.
1314         * target.h (struct target_ops) <to_program_signals>: Use
1315         TARGET_DEFAULT_IGNORE.
1316
1317 2014-02-19  Tom Tromey  <tromey@redhat.com>
1318
1319         * target-delegates.c: Rebuild.
1320         * target.c (target_pass_signals): Unconditionally delegate.
1321         * target.h (struct target_ops) <to_pass_signals>: Use
1322         TARGET_DEFAULT_IGNORE.
1323
1324 2014-02-19  Tom Tromey  <tromey@redhat.com>
1325
1326         * target-delegates.c: Rebuild.
1327         * target.c (default_mourn_inferior): New function.
1328         (target_mourn_inferior): Unconditionally delegate.
1329         * target.h (struct target_ops) <to_mourn_inferior>: Use
1330         TARGET_DEFAULT_FUNC.
1331
1332 2014-02-19  Tom Tromey  <tromey@redhat.com>
1333
1334         * target-delegates.c: Rebuild.
1335         * target.c (default_follow_fork): New function.
1336         (target_follow_fork): Unconditionally delegate.
1337         * target.h (struct target_ops) <to_follow_fork>: Use
1338         TARGET_DEFAULT_FUNC.
1339
1340 2014-02-19  Tom Tromey  <tromey@redhat.com>
1341
1342         * target-delegates.c: Rebuild.
1343         * target.c (target_kill): Unconditionally delegate.
1344         * target.h (struct target_ops) <to_kill>: Use
1345         TARGET_DEFAULT_NORETURN.
1346
1347 2014-02-19  Tom Tromey  <tromey@redhat.com>
1348
1349         * target-delegates.c: Rebuild.
1350         * target.c (target_masked_watch_num_registers): Unconditionally
1351         delegate.
1352         * target.h (struct target_ops) <to_masked_watch_num_registers>:
1353         Use TARGET_DEFAULT_RETURN.
1354
1355 2014-02-19  Tom Tromey  <tromey@redhat.com>
1356
1357         * target-delegates.c: Rebuild.
1358         * target.c (target_remove_mask_watchpoint): Unconditionally
1359         delegate.
1360         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
1361         TARGET_DEFAULT_RETURN.
1362
1363 2014-02-19  Tom Tromey  <tromey@redhat.com>
1364
1365         * target-delegates.c: Rebuild.
1366         * target.c (target_insert_mask_watchpoint): Unconditionally
1367         delegate.
1368         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
1369         TARGET_DEFAULT_RETURN.
1370
1371 2014-02-19  Tom Tromey  <tromey@redhat.com>
1372
1373         * target-delegates.c: Rebuild.
1374         * target.c (target_ranged_break_num_registers): Unconditionally
1375         delegate.
1376         * target.h (struct target_ops) <to_ranged_break_num_registers>:
1377         Use TARGET_DEFAULT_RETURN.
1378
1379 2014-02-19  Tom Tromey  <tromey@redhat.com>
1380
1381         * target-delegates.c: Rebuild.
1382         * target.c (target_fetch_registers): Unconditionally delegate.
1383         * target.h (struct target_ops) <to_fetch_registers>: Use
1384         TARGET_DEFAULT_NORETURN.
1385
1386 2014-02-19  Tom Tromey  <tromey@redhat.com>
1387
1388         * target-delegates.c: Rebuild.
1389         * target.c (update_current_target): Don't inherit or default
1390         to_stop.
1391         * target.h (struct target_ops) <to_stop>: Use
1392         TARGET_DEFAULT_IGNORE.
1393
1394 2014-02-19  Tom Tromey  <tromey@redhat.com>
1395
1396         * target-delegates.c: Rebuild.
1397         * target.c (update_current_target): Don't inherit or default
1398         to_can_run_breakpoint_commands.
1399         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
1400         Use TARGET_DEFAULT_RETURN.
1401
1402 2014-02-19  Tom Tromey  <tromey@redhat.com>
1403
1404         * target-delegates.c: Rebuild.
1405         * target.c (update_current_target): Don't inherit or default
1406         to_supports_evaluation_of_breakpoint_conditions.
1407         * target.h (struct target_ops)
1408         <to_supports_evaluation_of_breakpoint_conditions>: Use
1409         TARGET_DEFAULT_RETURN.
1410
1411 2014-02-19  Tom Tromey  <tromey@redhat.com>
1412
1413         * target-delegates.c: Rebuild.
1414         * target.c (update_current_target): Don't inherit or default
1415         to_augmented_libraries_svr4_read.
1416         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
1417         Use TARGET_DEFAULT_RETURN.
1418
1419 2014-02-19  Tom Tromey  <tromey@redhat.com>
1420
1421         * target-delegates.c: Rebuild.
1422         * target.c (update_current_target): Don't inherit or default
1423         to_can_use_agent.
1424         * target.h (struct target_ops) <to_can_use_agent>: Use
1425         TARGET_DEFAULT_RETURN.
1426
1427 2014-02-19  Tom Tromey  <tromey@redhat.com>
1428
1429         * target-delegates.c: Rebuild.
1430         * target.c (update_current_target): Don't inherit or default
1431         to_use_agent.
1432         * target.h (struct target_ops) <to_use_agent>: Use
1433         TARGET_DEFAULT_NORETURN.
1434
1435 2014-02-19  Tom Tromey  <tromey@redhat.com>
1436
1437         * target-delegates.c: Rebuild.
1438         * target.c (update_current_target): Don't inherit or default
1439         to_traceframe_info.
1440         (return_null): Remove.
1441         * target.h (struct target_ops) <to_traceframe_info>: Use
1442         TARGET_DEFAULT_RETURN.
1443
1444 2014-02-19  Tom Tromey  <tromey@redhat.com>
1445
1446         * target-delegates.c: Rebuild.
1447         * target.c (update_current_target): Don't inherit or default
1448         to_static_tracepoint_markers_by_strid.
1449         * target.h (struct target_ops)
1450         <to_static_tracepoint_markers_by_strid>: Use
1451         TARGET_DEFAULT_NORETURN.
1452
1453 2014-02-19  Tom Tromey  <tromey@redhat.com>
1454
1455         * target-delegates.c: Rebuild.
1456         * target.c (update_current_target): Don't inherit or default
1457         to_static_tracepoint_marker_at.
1458         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
1459         Use TARGET_DEFAULT_RETURN.
1460
1461 2014-02-19  Tom Tromey  <tromey@redhat.com>
1462
1463         * target-delegates.c: Rebuild.
1464         * target.c (update_current_target): Don't inherit or default
1465         to_set_permissions.
1466         * target.h (struct target_ops) <to_set_permissions>: Use
1467         TARGET_DEFAULT_IGNORE.
1468
1469 2014-02-19  Tom Tromey  <tromey@redhat.com>
1470
1471         * target-delegates.c: Rebuild.
1472         * target.c (update_current_target): Don't inherit or default
1473         to_get_tib_address.
1474         * target.h (struct target_ops) <to_get_tib_address>: Use
1475         TARGET_DEFAULT_NORETURN.
1476
1477 2014-02-19  Tom Tromey  <tromey@redhat.com>
1478
1479         * target-delegates.c: Rebuild.
1480         * target.c (update_current_target): Don't inherit or default
1481         to_set_trace_notes.
1482         * target.h (struct target_ops) <to_set_trace_notes>: Use
1483         TARGET_DEFAULT_RETURN.
1484
1485 2014-02-19  Tom Tromey  <tromey@redhat.com>
1486
1487         * target-delegates.c: Rebuild.
1488         * target.c (update_current_target): Don't initialize
1489         to_set_trace_buffer_size.
1490         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
1491         TARGET_DEFAULT_IGNORE.
1492
1493 2014-02-19  Tom Tromey  <tromey@redhat.com>
1494
1495         * target-delegates.c: Rebuild.
1496         * target.c (update_current_target): Don't inherit or default
1497         to_set_circular_trace_buffer.
1498         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
1499         TARGET_DEFAULT_IGNORE.
1500
1501 2014-02-19  Tom Tromey  <tromey@redhat.com>
1502
1503         * target-delegates.c: Rebuild.
1504         * target.c (update_current_target): Don't inherit or default
1505         to_set_disconnected_tracing.
1506         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
1507         TARGET_DEFAULT_IGNORE.
1508
1509 2014-02-19  Tom Tromey  <tromey@redhat.com>
1510
1511         * target-delegates.c: Rebuild.
1512         * target.c (update_current_target): Don't inherit or default
1513         to_get_min_fast_tracepoint_insn_len.
1514         (return_minus_one): Remove.
1515         * target.h (struct target_ops)
1516         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
1517
1518 2014-02-19  Tom Tromey  <tromey@redhat.com>
1519
1520         * target-delegates.c: Rebuild.
1521         * target.c (update_current_target): Don't inherit or default
1522         to_get_raw_trace_data.
1523         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
1524         TARGET_DEFAULT_NORETURN.
1525
1526 2014-02-19  Tom Tromey  <tromey@redhat.com>
1527
1528         * target-delegates.c: Rebuild.
1529         * target.c (update_current_target): Don't inherit or default
1530         to_upload_trace_state_variables.
1531         * target.h (struct target_ops) <to_upload_trace_state_variables>:
1532         Use TARGET_DEFAULT_RETURN.
1533
1534 2014-02-19  Tom Tromey  <tromey@redhat.com>
1535
1536         * target-delegates.c: Rebuild.
1537         * target.c (update_current_target): Don't inherit or default
1538         to_upload_tracepoints.
1539         * target.h (struct target_ops) <to_upload_tracepoints>: Use
1540         TARGET_DEFAULT_RETURN.
1541
1542 2014-02-19  Tom Tromey  <tromey@redhat.com>
1543
1544         * target-delegates.c: Rebuild.
1545         * target.c (update_current_target): Don't inherit or default
1546         to_save_trace_data.
1547         * target.h (struct target_ops) <to_save_trace_data>: Use
1548         TARGET_DEFAULT_NORETURN.
1549
1550 2014-02-19  Tom Tromey  <tromey@redhat.com>
1551
1552         * target-delegates.c: Rebuild.
1553         * target.c (update_current_target): Don't inherit or default
1554         to_get_trace_state_variable_value.
1555         * target.h (struct target_ops)
1556         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
1557
1558 2014-02-19  Tom Tromey  <tromey@redhat.com>
1559
1560         * target-delegates.c: Rebuild.
1561         * target.c (update_current_target): Don't inherit or default
1562         to_trace_find.
1563         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
1564
1565 2014-02-19  Tom Tromey  <tromey@redhat.com>
1566
1567         * target-delegates.c: Rebuild.
1568         * target.c (update_current_target): Don't inherit or default
1569         to_trace_stop.
1570         * target.h (struct target_ops) <to_trace_stop>: Use
1571         TARGET_DEFAULT_NORETURN.
1572
1573 2014-02-19  Tom Tromey  <tromey@redhat.com>
1574
1575         * target-delegates.c: Rebuild.
1576         * target.c (update_current_target): Don't inherit or default
1577         to_get_tracepoint_status.
1578         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
1579         TARGET_DEFAULT_NORETURN.
1580
1581 2014-02-19  Tom Tromey  <tromey@redhat.com>
1582
1583         * target-delegates.c: Rebuild.
1584         * target.c (update_current_target): Don't inherit or default
1585         to_get_trace_status.
1586         * target.h (struct target_ops) <to_get_trace_status>: Use
1587         TARGET_DEFAULT_RETURN.
1588
1589 2014-02-19  Tom Tromey  <tromey@redhat.com>
1590
1591         * target-delegates.c: Rebuild.
1592         * target.c (update_current_target): Don't inherit or default
1593         to_trace_start.
1594         * target.h (struct target_ops) <to_trace_start>: Use
1595         TARGET_DEFAULT_NORETURN.
1596
1597 2014-02-19  Tom Tromey  <tromey@redhat.com>
1598
1599         * target-delegates.c: Rebuild.
1600         * target.c (update_current_target): Don't inherit or default
1601         to_trace_set_readonly_regions.
1602         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
1603         Use TARGET_DEFAULT_NORETURN.
1604
1605 2014-02-19  Tom Tromey  <tromey@redhat.com>
1606
1607         * target-delegates.c: Rebuild.
1608         * target.c (update_current_target): Don't inherit or default
1609         to_disable_tracepoint.
1610         * target.h (struct target_ops) <to_disable_tracepoint>: Use
1611         TARGET_DEFAULT_NORETURN.
1612
1613 2014-02-19  Tom Tromey  <tromey@redhat.com>
1614
1615         * target-delegates.c: Rebuild.
1616         * target.c (update_current_target): Don't inherit or default
1617         to_enable_tracepoint.
1618         * target.h (struct target_ops) <to_enable_tracepoint>: Use
1619         TARGET_DEFAULT_NORETURN.
1620
1621 2014-02-19  Tom Tromey  <tromey@redhat.com>
1622
1623         * target-delegates.c: Rebuild.
1624         * target.c (update_current_target): Don't inherit or default
1625         to_download_trace_state_variable.
1626         * target.h (struct target_ops) <to_download_trace_state_variable>:
1627         Use TARGET_DEFAULT_NORETURN.
1628
1629 2014-02-19  Tom Tromey  <tromey@redhat.com>
1630
1631         * target-delegates.c: Rebuild.
1632         * target.c (update_current_target): Don't inherit or default
1633         to_can_download_tracepoint.
1634         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
1635         TARGET_DEFAULT_RETURN.
1636
1637 2014-02-19  Tom Tromey  <tromey@redhat.com>
1638
1639         * target-delegates.c: Rebuild.
1640         * target.c (update_current_target): Don't inherit or default
1641         to_download_tracepoint.
1642         * target.h (struct target_ops) <to_download_tracepoint>: Use
1643         TARGET_DEFAULT_NORETURN.
1644
1645 2014-02-19  Tom Tromey  <tromey@redhat.com>
1646
1647         * target-delegates.c: Rebuild.
1648         * target.c (update_current_target): Don't inherit or default
1649         to_trace_init.
1650         * target.h (struct target_ops) <to_trace_init>: Use
1651         TARGET_DEFAULT_RETURN.
1652
1653 2014-02-19  Tom Tromey  <tromey@redhat.com>
1654
1655         * target-delegates.c: Rebuild.
1656         * target.c (update_current_target): Don't inherit or default
1657         to_supports_string_tracing.
1658         * target.h (struct target_ops) <to_supports_string_tracing>: Use
1659         TARGET_DEFAULT_RETURN.
1660
1661 2014-02-19  Tom Tromey  <tromey@redhat.com>
1662
1663         * target-delegates.c: Rebuild.
1664         * target.c (update_current_target): Don't inherit or default
1665         to_supports_enable_disable_tracepoint.
1666         * target.h (struct target_ops)
1667         <to_supports_enable_disable_tracepoint>: Use
1668         TARGET_DEFAULT_RETURN.
1669
1670 2014-02-19  Tom Tromey  <tromey@redhat.com>
1671
1672         * target-delegates.c: Rebuild.
1673         * target.c (update_current_target): Don't inherit or default
1674         to_supports_multi_process.
1675         * target.h (struct target_ops) <to_supports_multi_process>: Use
1676         TARGET_DEFAULT_RETURN.
1677
1678 2014-02-19  Tom Tromey  <tromey@redhat.com>
1679
1680         * target-delegates.c: Rebuild.
1681         * target.c (update_current_target): Don't inherit or default
1682         to_get_ada_task_ptid.
1683         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
1684         TARGET_DEFAULT_FUNC.
1685
1686 2014-02-19  Tom Tromey  <tromey@redhat.com>
1687
1688         * target-delegates.c: Rebuild.
1689         * target.c (update_current_target): Don't inherit or default
1690         to_thread_architecture.
1691         * target.h (struct target_ops) <to_thread_architecture>: Use
1692         TARGET_DEFAULT_FUNC.
1693
1694 2014-02-19  Tom Tromey  <tromey@redhat.com>
1695
1696         * target-delegates.c: Rebuild.
1697         * target.c (update_current_target): Don't inherit or default
1698         to_execution_direction.
1699         * target.h (struct target_ops) <to_execution_direction>: Use
1700         TARGET_DEFAULT_FUNC.
1701
1702 2014-02-19  Tom Tromey  <tromey@redhat.com>
1703
1704         * target-delegates.c: Rebuild.
1705         * target.c (update_current_target): Don't inherit or default
1706         to_can_execute_reverse.
1707         * target.h (struct target_ops) <to_can_execute_reverse>: Use
1708         TARGET_DEFAULT_RETURN.
1709         (target_can_execute_reverse): Unconditionally delegate.
1710
1711 2014-02-19  Tom Tromey  <tromey@redhat.com>
1712
1713         * target-delegates.c: Rebuild.
1714         * target.c (update_current_target): Don't inherit or default
1715         to_goto_bookmark.
1716         (dummy_goto_bookmark): Remove.
1717         (init_dummy_target): Don't inherit or default to_goto_bookmark.
1718         * target.h (struct target_ops) <to_goto_bookmark>: Use
1719         TARGET_DEFAULT_NORETURN.
1720
1721 2014-02-19  Tom Tromey  <tromey@redhat.com>
1722
1723         * target-delegates.c: Rebuild.
1724         * target.c (update_current_target): Don't inherit or default
1725         to_get_bookmark.
1726         (dummy_get_bookmark): Remove.
1727         (init_dummy_target): Don't inherit or default to_get_bookmark.
1728         * target.h (struct target_ops) <to_get_bookmark>: Use
1729         TARGET_DEFAULT_NORETURN
1730
1731 2014-02-19  Tom Tromey  <tromey@redhat.com>
1732
1733         * target-delegates.c: Rebuild.
1734         * target.c (update_current_target): Don't inherit or default
1735         to_make_corefile_notes.
1736         (init_dummy_target): Don't initialize to_make_corefile_notes.
1737         * target.h (struct target_ops) <to_make_corefile_notes>: Use
1738         TARGET_DEFAULT_FUNC.
1739
1740 2014-02-19  Tom Tromey  <tromey@redhat.com>
1741
1742         * target-delegates.c: Rebuild.
1743         * target.c (update_current_target): Don't inherit or default
1744         to_find_memory_regions.
1745         (init_dummy_target): Don't initialize to_find_memory_regions.
1746         * target.h (struct target_ops) <to_find_memory_regions>: Use
1747         TARGET_DEFAULT_FUNC.
1748
1749 2014-02-19  Tom Tromey  <tromey@redhat.com>
1750
1751         * target-delegates.c: Rebuild.
1752         * target.c (update_current_target): Don't inherit or default
1753         to_log_command.
1754         * target.h (struct target_ops) <to_log_command>: Use
1755         TARGET_DEFAULT_IGNORE.
1756         (target_log_command): Unconditionally delegate.
1757
1758 2014-02-19  Tom Tromey  <tromey@redhat.com>
1759
1760         * target-delegates.c: Rebuild.
1761         * target.c (update_current_target): Don't inherit or default
1762         to_pid_to_exec_file.
1763         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
1764         TARGET_DEFAULT_RETURN.
1765
1766 2014-02-19  Tom Tromey  <tromey@redhat.com>
1767
1768         * target-delegates.c: Rebuild.
1769         * target.c (update_current_target): Don't inherit or default
1770         to_thread_name.
1771         (target_thread_name): Unconditionally delegate.
1772         * target.h (struct target_ops) <to_thread_name>: Use
1773         TARGET_DEFAULT_RETURN.
1774
1775 2014-02-19  Tom Tromey  <tromey@redhat.com>
1776
1777         * target-delegates.c: Rebuild.
1778         * target.c (update_current_target): Don't inherit or default
1779         to_extra_thread_info.
1780         * target.h (struct target_ops) <to_extra_thread_info>: Use
1781         TARGET_DEFAULT_RETURN.
1782
1783 2014-02-19  Tom Tromey  <tromey@redhat.com>
1784
1785         * target-delegates.c: Rebuild.
1786         * target.c (update_current_target): Don't inherit or default
1787         to_has_exited.
1788         * target.h (struct target_ops) <to_has_exited>: Use
1789         TARGET_DEFAULT_RETURN..
1790
1791 2014-02-19  Tom Tromey  <tromey@redhat.com>
1792
1793         * target-delegates.c: Rebuild.
1794         * target.c (update_current_target): Don't inherit or default
1795         to_set_syscall_catchpoint.
1796         (return_one): Remove.
1797         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
1798         TARGET_DEFAULT_RETURN.
1799
1800 2014-02-19  Tom Tromey  <tromey@redhat.com>
1801
1802         * target-delegates.c: Rebuild.
1803         * target.c (update_current_target): Don't inherit or default
1804         to_insert_exec_catchpoint.
1805         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
1806         TARGET_DEFAULT_RETURN.
1807
1808 2014-01-08  Tom Tromey  <tromey@redhat.com>
1809
1810         * target-delegates.c: Rebuild.
1811         * target.c (update_current_target): Don't inherit or default
1812         to_insert_exec_catchpoint.
1813         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
1814         TARGET_DEFAULT_RETURN.
1815
1816 2014-02-19  Tom Tromey  <tromey@redhat.com>
1817
1818         * target-delegates.c: Rebuild.
1819         * target.c (update_current_target): Don't inherit or default
1820         to_remove_vfork_catchpoint.
1821         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
1822         TARGET_DEFAULT_RETURN.
1823
1824 2014-02-19  Tom Tromey  <tromey@redhat.com>
1825
1826         * target-delegates.c: Rebuild.
1827         * target.c (update_current_target): Don't inherit or default
1828         to_insert_vfork_catchpoint.
1829         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
1830         TARGET_DEFAULT_RETURN.
1831
1832 2014-02-19  Tom Tromey  <tromey@redhat.com>
1833
1834         * target-delegates.c: Rebuild.
1835         * target.c (update_current_target): Don't inherit or default
1836         to_remove_fork_catchpoint.
1837         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
1838         TARGET_DEFAULT_RETURN.
1839
1840 2014-02-19  Tom Tromey  <tromey@redhat.com>
1841
1842         * target-delegates.c: Rebuild.
1843         * target.c (update_current_target): Don't inherit or default
1844         to_insert_fork_catchpoint.
1845         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
1846         TARGET_DEFAULT_RETURN.
1847
1848 2014-02-19  Tom Tromey  <tromey@redhat.com>
1849
1850         * target-delegates.c: Rebuild.
1851         * target.c (update_current_target): Don't inherit or default
1852         to_post_startup_inferior.
1853         * target.h (struct target_ops) <to_post_startup_inferior>: Use
1854         TARGET_DEFAULT_IGNORE.
1855
1856 2014-02-19  Tom Tromey  <tromey@redhat.com>
1857
1858         * target-delegates.c: Rebuild.
1859         * target.c (update_current_target): Don't inherit or default
1860         to_load.
1861         * target.h (struct target_ops) <to_load>: Use
1862         TARGET_DEFAULT_NORETURN.
1863
1864 2014-02-19  Tom Tromey  <tromey@redhat.com>
1865
1866         * target-delegates.c: Rebuild.
1867         * target.c (update_current_target): Don't inherit or default
1868         to_terminal_info.
1869         * target.h (struct target_ops) <to_terminal_info>: Use
1870         TARGET_DEFAULT_FUNC.
1871
1872 2014-02-19  Tom Tromey  <tromey@redhat.com>
1873
1874         * target-delegates.c: Rebuild.
1875         * target.c (update_current_target): Don't inherit or default
1876         to_terminal_save_ours.
1877         * target.h (struct target_ops) <to_terminal_save_ours>: Use
1878         TARGET_DEFAULT_IGNORE.
1879
1880 2014-02-19  Tom Tromey  <tromey@redhat.com>
1881
1882         * target-delegates.c: Rebuild.
1883         * target.c (update_current_target): Don't inherit or default
1884         to_terminal_ours.
1885         * target.h (struct target_ops) <to_terminal_ours>: Use
1886         TARGET_DEFAULT_IGNORE.
1887
1888 2014-02-19  Tom Tromey  <tromey@redhat.com>
1889
1890         * target-delegates.c: Rebuild.
1891         * target.c (update_current_target): Don't inherit or default
1892         to_terminal_ours_for_output.
1893         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
1894         TARGET_DEFAULT_IGNORE.
1895
1896 2014-02-19  Tom Tromey  <tromey@redhat.com>
1897
1898         * target-delegates.c: Rebuild.
1899         * target.c (update_current_target): Don't inherit or default
1900         to_terminal_inferior.
1901         * target.h (struct target_ops) <to_terminal_inferior>: Use
1902         TARGET_DEFAULT_IGNORE.
1903
1904 2014-02-19  Tom Tromey  <tromey@redhat.com>
1905
1906         * target-delegates.c: Rebuild.
1907         * target.c (update_current_target): Don't inherit or default
1908         to_terminal_init.
1909         * target.h (struct target_ops) <to_terminal_init>: Use
1910         TARGET_DEFAULT_IGNORE.
1911
1912 2014-02-19  Tom Tromey  <tromey@redhat.com>
1913
1914         * target-delegates.c: Rebuild.
1915         * target.c (update_current_target): Don't inherit or default
1916         to_can_accel_watchpoint_condition.
1917         * target.h (struct target_ops)
1918         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
1919
1920 2014-02-19  Tom Tromey  <tromey@redhat.com>
1921
1922         * target-delegates.c: Rebuild.
1923         * target.c (update_current_target): Don't inherit or default
1924         to_region_ok_for_hw_watchpoint.
1925         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1926         Use TARGET_DEFAULT_FUNC.
1927
1928 2014-02-19  Tom Tromey  <tromey@redhat.com>
1929
1930         * target-delegates.c: Rebuild.
1931         * target.c (update_current_target): Don't inherit or default
1932         to_watchpoint_addr_within_range.
1933         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
1934         Use TARGET_DEFAULT_FUNC.
1935
1936 2014-02-19  Tom Tromey  <tromey@redhat.com>
1937
1938         * target-delegates.c: Rebuild.
1939         * target.c (update_current_target): Don't inherit or default
1940         to_remove_watchpoint.
1941         * target.h (struct target_ops) <to_remove_watchpoint>: Use
1942         TARGET_DEFAULT_NORETURN.
1943
1944 2014-02-19  Tom Tromey  <tromey@redhat.com>
1945
1946         * target-delegates.c: Rebuild.
1947         * target.c (update_current_target): Don't inherit or default
1948         to_insert_watchpoint.
1949         * target.h (struct target_ops) <to_insert_watchpoint>: Use
1950         TARGET_DEFAULT_RETURN.
1951
1952 2014-02-19  Tom Tromey  <tromey@redhat.com>
1953
1954         * target-delegates.c: Rebuild.
1955         * target.c (update_current_target): Don't inherit or default
1956         to_remove_hw_breakpoint.
1957         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
1958         TARGET_DEFAULT_RETURN.
1959
1960 2014-02-19  Tom Tromey  <tromey@redhat.com>
1961
1962         * target-delegates.c: Rebuild.
1963         * target.c (update_current_target): Don't inherit or default
1964         to_insert_hw_breakpoint.
1965         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
1966         TARGET_DEFAULT_RETURN.
1967
1968 2014-02-19  Tom Tromey  <tromey@redhat.com>
1969
1970         * target-delegates.c: Rebuild.
1971         * target.c (update_current_target): Don't inherit or default
1972         to_can_use_hw_breakpoint.
1973         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
1974         TARGET_DEFAULT_RETURN.
1975
1976 2014-02-19  Tom Tromey  <tromey@redhat.com>
1977
1978         * target-delegates.c: Rebuild.
1979         * target.c (update_current_target): Don't inherit or default
1980         to_files_info.
1981         * target.h (struct target_ops) <to_files_info>: Use
1982         TARGET_DEFAULT_IGNORE.
1983
1984 2014-02-19  Tom Tromey  <tromey@redhat.com>
1985
1986         * target-delegates.c: Rebuild.
1987         * target.c (update_current_target): Don't inherit or default
1988         to_store.
1989         * target.h (struct target_ops) <to_store>: Use
1990         TARGET_DEFAULT_NORETURN.
1991
1992 2014-02-19  Tom Tromey  <tromey@redhat.com>
1993
1994         * target-delegates.c: Rebuild.
1995         * target.c (update_current_target): Don't inherit or default
1996         to_post_attach.
1997         * target.h (struct target_ops) <to_post_attach>: Use
1998         TARGET_DEFAULT_IGNORE.
1999
2000 2014-02-19  Tom Tromey  <tromey@redhat.com>
2001
2002         * target-delegates.c: Rebuild.
2003         * target.c (update_current_target): Don't inherit or default
2004         to_rcmd.
2005         (default_rcmd): New function.
2006         (do_monitor_command): Unconditionally delegate.
2007         * target.h (struct target_ops) <to_rmcd>: Use
2008         TARGET_DEFAULT_FUNC.
2009
2010 2014-02-19  Tom Tromey  <tromey@redhat.com>
2011
2012         * target-delegates.c: Rebuild.
2013         * target.c (init_dummy_target): Don't initialize to_attach.
2014         (target_attach): Unconditionally delegate.
2015         * target.h (struct target_ops) <to_attach>: Use
2016         TARGET_DEFAULT_FUNC.
2017
2018 2014-02-19  Tom Tromey  <tromey@redhat.com>
2019
2020         * target-delegates.c: Rebuild.
2021         * target.c (target_detach): Unconditionally delegate.
2022         (init_dummy_target): Don't initialize to_detach.
2023         * target.h (struct target_ops) <to_detach>: Use
2024         TARGET_DEFAULT_IGNORE.
2025
2026 2014-02-19  Tom Tromey  <tromey@redhat.com>
2027
2028         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
2029         Add argument.
2030         (target_augmented_libraries_svr4_read): Add argument.
2031         * target.c (update_current_target): Update.
2032         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
2033         argument.
2034
2035 2014-02-19  Tom Tromey  <tromey@redhat.com>
2036
2037         * target.h (struct target_ops) <to_call_history_range>: Add
2038         argument.
2039         * target.c (target_call_history_range): Add argument.
2040         * record-btrace.c (record_btrace_call_history_range): Add 'self'
2041         argument.
2042         (record_btrace_call_history_from): Update.
2043
2044 2014-02-19  Tom Tromey  <tromey@redhat.com>
2045
2046         * target.h (struct target_ops) <to_call_history_from>: Add
2047         argument.
2048         * target.c (target_call_history_from): Add argument.
2049         * record-btrace.c (record_btrace_call_history_from): Add 'self'
2050         argument.
2051
2052 2014-02-19  Tom Tromey  <tromey@redhat.com>
2053
2054         * target.h (struct target_ops) <to_call_history>: Add argument.
2055         * target.c (target_call_history): Add argument.
2056         * record-btrace.c (record_btrace_call_history): Add 'self'
2057         argument.
2058
2059 2014-02-19  Tom Tromey  <tromey@redhat.com>
2060
2061         * target.h (struct target_ops) <to_insn_history_range>: Add
2062         argument.
2063         * target.c (target_insn_history_range): Add argument.
2064         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
2065         argument.
2066         (record_btrace_insn_history_from): Update.
2067
2068 2014-02-19  Tom Tromey  <tromey@redhat.com>
2069
2070         * target.h (struct target_ops) <to_insn_history_from>: Add
2071         argument.
2072         * target.c (target_insn_history_from): Add argument.
2073         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
2074         argument.
2075
2076 2014-02-19  Tom Tromey  <tromey@redhat.com>
2077
2078         * target.h (struct target_ops) <to_insn_history>: Add argument.
2079         * target.c (target_insn_history): Add argument.
2080         * record-btrace.c (record_btrace_insn_history): Add 'self'
2081         argument.
2082
2083 2014-02-19  Tom Tromey  <tromey@redhat.com>
2084
2085         * target.h (struct target_ops) <to_goto_record>: Add argument.
2086         * target.c (target_goto_record): Add argument.
2087         * record-full.c (record_full_goto): Add 'self' argument.
2088         * record-btrace.c (record_btrace_goto): Add 'self' argument.
2089
2090 2014-02-19  Tom Tromey  <tromey@redhat.com>
2091
2092         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
2093         * target.c (target_goto_record_end): Add argument.
2094         * record-full.c (record_full_goto_end): Add 'self' argument.
2095         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
2096
2097 2014-02-19  Tom Tromey  <tromey@redhat.com>
2098
2099         * target.h (struct target_ops) <to_goto_record_begin>: Add
2100         argument.
2101         * target.c (target_goto_record_begin): Add argument.
2102         * record-full.c (record_full_goto_begin): Add 'self' argument.
2103         * record-btrace.c (record_btrace_goto_begin): Add 'self'
2104         argument.
2105
2106 2014-02-19  Tom Tromey  <tromey@redhat.com>
2107
2108         * target.h (struct target_ops) <to_record_is_replaying>: Add
2109         argument.
2110         * target.c (target_record_is_replaying): Add argument.
2111         * record-full.c (record_full_is_replaying): Add 'self' argument.
2112         * record-btrace.c (record_btrace_is_replaying): Add 'self'
2113         argument.
2114         (record_btrace_xfer_partial, record_btrace_store_registers)
2115         (record_btrace_prepare_to_store, record_btrace_resume)
2116         (record_btrace_wait, record_btrace_decr_pc_after_break)
2117         (record_btrace_find_new_threads, record_btrace_thread_alive):
2118         Update.
2119
2120 2014-02-19  Tom Tromey  <tromey@redhat.com>
2121
2122         * target.h (struct target_ops) <to_delete_record>: Add argument.
2123         * target.c (target_delete_record): Add argument.
2124         * record-full.c (record_full_delete): Add 'self' argument.
2125
2126 2014-02-19  Tom Tromey  <tromey@redhat.com>
2127
2128         * target.h (struct target_ops) <to_save_record>: Add argument.
2129         * target.c (target_save_record): Add argument.
2130         * record-full.c (record_full_save): Add 'self' argument.
2131         (record_full_save): Add 'self' argument.
2132
2133 2014-02-19  Tom Tromey  <tromey@redhat.com>
2134
2135         * target.h (struct target_ops) <to_info_record>: Add argument.
2136         * target.c (target_info_record): Add argument.
2137         * record.c (info_record_command): Add argument.
2138         * record-full.c (record_full_info): Add 'self' argument.
2139         * record-btrace.c (record_btrace_info): Add 'self' argument.
2140
2141 2014-02-19  Tom Tromey  <tromey@redhat.com>
2142
2143         * target.h (struct target_ops) <to_stop_recording>: Add argument.
2144         * target.c (target_stop_recording): Add argument.
2145         * record.c (record_stop): Add argument.
2146         * record-btrace.c (record_btrace_stop_recording): Add 'self'
2147         argument.
2148
2149 2014-02-19  Tom Tromey  <tromey@redhat.com>
2150
2151         * target.h (struct target_ops) <to_read_btrace>: Add argument.
2152         * target.c (struct target_ops) <to_read_btrace>: Add argument.
2153         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
2154         argument.
2155         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
2156         (_initialize_amd64_linux_nat): Use it.
2157         * i386-linux-nat.c (i386_linux_read_btrace): New function.
2158         (_initialize_i386_linux_nat): Use it.
2159
2160 2014-02-19  Tom Tromey  <tromey@redhat.com>
2161
2162         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
2163         * target.c (target_teardown_btrace): Add argument.
2164         * remote.c (remote_teardown_btrace): Add 'self' argument.
2165         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
2166         argument.
2167         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
2168         argument.
2169
2170 2014-02-19  Tom Tromey  <tromey@redhat.com>
2171
2172         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
2173         * target.c (target_disable_btrace): Add argument.
2174         * remote.c (remote_disable_btrace): Add 'self' argument.
2175         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
2176         argument.
2177         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
2178         argument.
2179
2180 2014-02-19  Tom Tromey  <tromey@redhat.com>
2181
2182         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
2183         * target.c (target_enable_btrace): Add argument.
2184         * remote.c (remote_enable_btrace): Add 'self' argument.
2185         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
2186         argument.
2187         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
2188         argument.
2189
2190 2014-02-19  Tom Tromey  <tromey@redhat.com>
2191
2192         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
2193         (target_can_use_agent): Add argument.
2194         * target.c (update_current_target): Update.
2195         * remote.c (remote_can_use_agent): Add 'self' argument.
2196         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
2197
2198 2014-02-19  Tom Tromey  <tromey@redhat.com>
2199
2200         * target.h (struct target_ops) <to_use_agent>: Add argument.
2201         (target_use_agent): Add argument.
2202         * target.c (update_current_target): Update.
2203         * remote.c (remote_use_agent): Add 'self' argument.
2204         * inf-child.c (inf_child_use_agent): Add 'self' argument.
2205
2206 2014-02-19  Tom Tromey  <tromey@redhat.com>
2207
2208         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
2209         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
2210         (target_traceframe_info): Add argument.
2211         * target.c (update_current_target): Update.
2212         * remote.c (remote_traceframe_info): Add 'self' argument.
2213         * ctf.c (ctf_traceframe_info): Add 'self' argument.
2214
2215 2014-02-19  Tom Tromey  <tromey@redhat.com>
2216
2217         * target.h (target_static_tracepoint_markers_by_strid): Add
2218         argument.
2219         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
2220         'self' argument.
2221         * target.c (update_current_target): Update.
2222         * remote.c (struct target_ops)
2223         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
2224         * linux-nat.c (struct target_ops)
2225         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
2226
2227 2014-02-19  Tom Tromey  <tromey@redhat.com>
2228
2229         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
2230         Add argument.
2231         (target_static_tracepoint_marker_at): Add argument.
2232         * target.c (update_current_target): Update.
2233         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
2234         argument.
2235
2236 2014-02-19  Tom Tromey  <tromey@redhat.com>
2237
2238         * target.h (struct target_ops) <to_set_permissions>: Add argument.
2239         (target_set_permissions): Add argument.
2240         * target.c (update_current_target): Update.
2241         * remote.c (remote_set_permissions): Add 'self' argument.
2242         (remote_start_remote): Update.
2243
2244 2014-02-19  Tom Tromey  <tromey@redhat.com>
2245
2246         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
2247         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
2248         (target_get_tib_address): Add argument.
2249         * target.c (update_current_target): Update.
2250         * remote.c (remote_get_tib_address): Add 'self' argument.
2251
2252 2014-02-19  Tom Tromey  <tromey@redhat.com>
2253
2254         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
2255         (target_set_trace_notes): Add argument.
2256         * target.c (update_current_target): Update.
2257         * remote.c (remote_set_trace_notes): Add 'self' argument.
2258
2259 2014-02-19  Tom Tromey  <tromey@redhat.com>
2260
2261         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
2262         argument.
2263         (target_set_trace_buffer_size): Add argument.
2264         * target.c (update_current_target): Update.
2265         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
2266
2267 2014-02-19  Tom Tromey  <tromey@redhat.com>
2268
2269         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
2270         argument.
2271         (target_set_circular_trace_buffer): Add argument.
2272         * target.c (update_current_target): Update.
2273         * remote.c (remote_set_circular_trace_buffer): Add 'self'
2274         argument.
2275
2276 2014-02-19  Tom Tromey  <tromey@redhat.com>
2277
2278         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
2279         argument.
2280         (target_set_disconnected_tracing): Add argument.
2281         * target.c (update_current_target): Update.
2282         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
2283
2284 2014-02-19  Tom Tromey  <tromey@redhat.com>
2285
2286         * target.h (struct target_ops)
2287         <to_get_min_fast_tracepoint_insn_len>: Add argument.
2288         (target_get_min_fast_tracepoint_insn_len): Add argument.
2289         * target.c (update_current_target): Update.
2290         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
2291         argument.
2292
2293 2014-02-19  Tom Tromey  <tromey@redhat.com>
2294
2295         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
2296         argument.
2297         (target_get_raw_trace_data): Add argument.
2298         * target.c (update_current_target): Update.
2299         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
2300
2301 2014-02-19  Tom Tromey  <tromey@redhat.com>
2302
2303         * target.h (struct target_ops) <to_upload_trace_state_variables>:
2304         Add argument.
2305         (target_upload_trace_state_variables): Add argument.
2306         * target.c (update_current_target): Update.
2307         * remote.c (remote_upload_trace_state_variables): Add 'self'
2308         argument.
2309         (remote_start_remote): Update.
2310
2311 2014-02-19  Tom Tromey  <tromey@redhat.com>
2312
2313         * target.h (struct target_ops) <to_upload_tracepoints>: Add
2314         argument.
2315         (target_upload_tracepoints): Add argument.
2316         * target.c (update_current_target): Update.
2317         * remote.c (remote_upload_tracepoints): Add 'self' argument.
2318         (remote_start_remote): Update.
2319
2320 2014-02-19  Tom Tromey  <tromey@redhat.com>
2321
2322         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
2323         (target_save_trace_data): Add argument.
2324         * target.c (update_current_target): Update.
2325         * remote.c (remote_save_trace_data): Add 'self' argument.
2326
2327 2014-02-19  Tom Tromey  <tromey@redhat.com>
2328
2329         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
2330         argument.
2331         * target.h (struct target_ops)
2332         <to_get_trace_state_variable_value>: Add argument.
2333         (target_get_trace_state_variable_value): Add argument.
2334         * target.c (update_current_target): Update.
2335         * remote.c (remote_get_trace_state_variable_value): Add 'self'
2336         argument.
2337         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
2338
2339 2014-02-19  Tom Tromey  <tromey@redhat.com>
2340
2341         * tracepoint.c (tfile_trace_find): Add 'self' argument.
2342         * target.h (struct target_ops) <to_trace_find>: Add argument.
2343         (target_trace_find): Add argument.
2344         * target.c (update_current_target): Update.
2345         * remote.c (remote_trace_find): Add 'self' argument.
2346         * ctf.c (ctf_trace_find): Add 'self' argument.
2347
2348 2014-02-19  Tom Tromey  <tromey@redhat.com>
2349
2350         * target.h (struct target_ops) <to_trace_stop>: Add argument.
2351         (target_trace_stop): Add argument.
2352         * target.c (update_current_target): Update.
2353         * remote.c (remote_trace_stop): Add 'self' argument.
2354
2355 2014-02-19  Tom Tromey  <tromey@redhat.com>
2356
2357         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
2358         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
2359         argument.
2360         (target_get_tracepoint_status): Add argument.
2361         * target.c (update_current_target): Update.
2362         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
2363
2364 2014-02-19  Tom Tromey  <tromey@redhat.com>
2365
2366         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
2367         * target.h (struct target_ops) <to_get_trace_status>: Add
2368         argument.
2369         (target_get_trace_status): Add argument.
2370         * target.c (update_current_target): Update.
2371         * remote.c (remote_get_trace_status): Add 'self' argument.
2372         (remote_start_remote, remote_can_download_tracepoint): Update.
2373         * ctf.c (ctf_get_trace_status): Add 'self' argument.
2374
2375 2014-02-19  Tom Tromey  <tromey@redhat.com>
2376
2377         * target.h (struct target_ops) <to_trace_start>: Add argument.
2378         (target_trace_start): Add argument.
2379         * target.c (update_current_target): Update.
2380         * remote.c (remote_trace_start): Add 'self' argument.
2381
2382 2014-02-19  Tom Tromey  <tromey@redhat.com>
2383
2384         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2385         Add argument.
2386         (target_trace_set_readonly_regions): Add argument.
2387         * target.c (update_current_target): Update.
2388         * remote.c (remote_trace_set_readonly_regions): Add 'self'
2389         argument.
2390
2391 2014-02-19  Tom Tromey  <tromey@redhat.com>
2392
2393         * target.h (struct target_ops) <to_disable_tracepoint>: Add
2394         argument.
2395         (target_disable_tracepoint): Add argument.
2396         * target.c (update_current_target): Update.
2397         * remote.c (remote_disable_tracepoint): Add 'self' argument.
2398
2399 2014-02-19  Tom Tromey  <tromey@redhat.com>
2400
2401         * target.h (struct target_ops) <to_enable_tracepoint>: Add
2402         argument.
2403         (target_enable_tracepoint): Add argument.
2404         * target.c (update_current_target): Update.
2405         * remote.c (remote_enable_tracepoint): Add 'self' argument.
2406
2407 2014-02-19  Tom Tromey  <tromey@redhat.com>
2408
2409         * target.h (struct target_ops) <to_download_trace_state_variable>:
2410         Add argument.
2411         (target_download_trace_state_variable): Add argument.
2412         * target.c (update_current_target): Update.
2413         * remote.c (remote_download_trace_state_variable): Add 'self'
2414         argument.
2415
2416 2014-02-19  Tom Tromey  <tromey@redhat.com>
2417
2418         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
2419         argument.
2420         (target_can_download_tracepoint): Add argument.
2421         * target.c (update_current_target): Update.
2422         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
2423
2424 2014-02-19  Tom Tromey  <tromey@redhat.com>
2425
2426         * target.h (struct target_ops) <to_download_tracepoint>: Add
2427         argument.
2428         (target_download_tracepoint): Add argument.
2429         * target.c (update_current_target): Update.
2430         * remote.c (remote_download_tracepoint): Add 'self' argument.
2431
2432 2014-02-19  Tom Tromey  <tromey@redhat.com>
2433
2434         * target.h (struct target_ops) <to_trace_init>: Add argument.
2435         (target_trace_init): Add argument.
2436         * target.c (update_current_target): Update.
2437         * remote.c (remote_trace_init): Add 'self' argument.
2438
2439 2014-02-19  Tom Tromey  <tromey@redhat.com>
2440
2441         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
2442         * target.c (target_fileio_readlink): Add argument.
2443         * remote.c (remote_hostio_readlink): Add 'self' argument.
2444         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
2445
2446 2014-02-19  Tom Tromey  <tromey@redhat.com>
2447
2448         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
2449         * target.c (target_fileio_unlink): Add argument.
2450         * remote.c (remote_hostio_unlink): Add 'self' argument.
2451         (remote_file_delete): Update.
2452         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
2453
2454 2014-02-19  Tom Tromey  <tromey@redhat.com>
2455
2456         * target.h (struct target_ops) <to_fileio_close>: Add argument.
2457         * target.c (target_fileio_close): Add argument.
2458         * remote.c (remote_hostio_close): Add 'self' argument.
2459         (remote_hostio_close_cleanup): Update.
2460         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
2461         Update.
2462         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
2463
2464 2014-02-19  Tom Tromey  <tromey@redhat.com>
2465
2466         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
2467         * target.c (target_fileio_pread): Add argument.
2468         * remote.c (remote_hostio_pread): Add 'self' argument.
2469         (remote_bfd_iovec_pread, remote_file_get): Update.
2470         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
2471
2472 2014-02-19  Tom Tromey  <tromey@redhat.com>
2473
2474         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
2475         * target.c (target_fileio_pwrite): Add argument.
2476         * remote.c (remote_hostio_pwrite): Add 'self' argument.
2477         (remote_file_put): Update.
2478         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
2479
2480 2014-02-19  Tom Tromey  <tromey@redhat.com>
2481
2482         * target.h (struct target_ops) <to_fileio_open>: Add argument.
2483         * target.c (target_fileio_open): Add argument.
2484         * remote.c (remote_hostio_open): Add 'self' argument.
2485         (remote_bfd_iovec_open): Add 'self' argument.
2486         (remote_file_put): Add 'self' argument.
2487         (remote_file_get): Add 'self' argument.
2488         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
2489
2490 2014-02-19  Tom Tromey  <tromey@redhat.com>
2491
2492         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
2493         Add argument.
2494         (target_can_run_breakpoint_commands): Add argument.
2495         * target.c (update_current_target): Update.
2496         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
2497         argument.
2498         (remote_insert_breakpoint): Add 'self' argument.
2499         (remote_insert_hw_breakpoint): Add 'self' argument.
2500         (remote_can_run_breakpoint_commands): Add 'self' argument.
2501
2502 2014-02-19  Tom Tromey  <tromey@redhat.com>
2503
2504         * target.h (struct target_ops)
2505         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
2506         (target_supports_evaluation_of_breakpoint_conditions): Add
2507         argument.
2508         * target.c (update_current_target): Update.
2509         * remote.c (remote_supports_cond_breakpoints): Add 'self'
2510         argument.
2511         (remote_insert_breakpoint): Add 'self' argument.
2512         (remote_insert_hw_breakpoint): Add 'self' argument.
2513         (remote_supports_cond_breakpoints): Add 'self' argument.
2514
2515 2014-02-19  Tom Tromey  <tromey@redhat.com>
2516
2517         * target.h (struct target_ops) <to_supports_string_tracing>: Add
2518         argument.
2519         (target_supports_string_tracing): Add argument.
2520         * target.c (update_current_target): Update.
2521         * remote.c (remote_supports_string_tracing): Add 'self' argument.
2522
2523 2014-02-19  Tom Tromey  <tromey@redhat.com>
2524
2525         * target.h (struct target_ops)
2526         <to_supports_disable_randomization>: Add argument.
2527         * target.c (find_default_supports_disable_randomization): Add
2528         argument.
2529         (target_supports_disable_randomization): Add argument.
2530         (find_default_supports_disable_randomization): Add 'self'
2531         argument.
2532         * remote.c (extended_remote_supports_disable_randomization): Add
2533         'self' argument.
2534         (remote_supports_disable_randomization): Add 'self' argument.
2535         (extended_remote_create_inferior): Update.
2536         * linux-nat.c (linux_nat_supports_disable_randomization): Add
2537         'self' argument.
2538
2539 2014-02-19  Tom Tromey  <tromey@redhat.com>
2540
2541         * target.h (struct target_ops)
2542         <to_supports_enable_disable_tracepoint>: Add argument.
2543         (target_supports_enable_disable_tracepoint): Add argument.
2544         * target.c (update_current_target): Update.
2545         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
2546         argument.
2547
2548 2014-02-19  Tom Tromey  <tromey@redhat.com>
2549
2550         * target.h (struct target_ops) <to_supports_multi_process>: Add
2551         argument.
2552         (target_supports_multi_process): Add argument.
2553         * target.c (update_current_target): Update.
2554         * remote.c (remote_supports_multi_process): Add 'self' argument.
2555         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
2556         argument.
2557         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
2558         argument.
2559
2560 2014-02-19  Tom Tromey  <tromey@redhat.com>
2561
2562         * target.h (struct target_ops) <to_execution_direction>: Add
2563         argument.
2564         (target_execution_direction): Add argument.
2565         * target.c (default_execution_direction): Add 'self' argument.
2566         * record-full.c (record_full_execution_direction): Add 'self'
2567         argument.
2568
2569 2014-02-19  Tom Tromey  <tromey@redhat.com>
2570
2571         * target.h (struct target_ops) <to_can_execute_reverse>: Add
2572         argument.
2573         (target_can_execute_reverse): Add argument.
2574         * remote.c (remote_can_execute_reverse): Add 'self' argument.
2575         * record-full.c (record_full_can_execute_reverse): Add 'self'
2576         argument.
2577         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
2578         argument.
2579
2580 2014-02-19  Tom Tromey  <tromey@redhat.com>
2581
2582         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
2583         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
2584         argument.
2585         (target_get_ada_task_ptid): Add argument.
2586         * target.c (update_current_target): Update.
2587         (default_get_ada_task_ptid): Add 'self' argument.
2588         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
2589         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
2590         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
2591         argument.
2592         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
2593         argument.
2594         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
2595         argument.
2596         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
2597         argument.
2598         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
2599         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
2600         argument.
2601
2602 2014-02-19  Tom Tromey  <tromey@redhat.com>
2603
2604         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
2605         (target_goto_bookmark): Add argument.
2606         * target.c (dummy_goto_bookmark): Add 'self' argument.
2607         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
2608
2609 2014-02-19  Tom Tromey  <tromey@redhat.com>
2610
2611         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
2612         (target_get_bookmark): Add argument.
2613         * target.c (dummy_get_bookmark): Add 'self' argument.
2614         * record-full.c (record_full_get_bookmark): Add 'self' argument.
2615
2616 2014-02-19  Tom Tromey  <tromey@redhat.com>
2617
2618         * target.h (struct target_ops) <to_make_corefile_notes>: Add
2619         argument.
2620         (target_make_corefile_notes): Add argument.
2621         * target.c (dummy_make_corefile_notes): Add 'self' argument.
2622         * procfs.c (procfs_make_note_section): Add 'self' argument.
2623         (procfs_make_note_section): Add 'self' argument.
2624         (procfs_make_note_section): Add 'self' argument.
2625         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
2626         argument.
2627         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
2628         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
2629         * exec.c (exec_make_note_section): Add 'self' argument.
2630         (exec_make_note_section): Add 'self' argument.
2631
2632 2014-02-19  Tom Tromey  <tromey@redhat.com>
2633
2634         * target.h (struct target_ops) <to_find_memory_regions>: Add
2635         argument.
2636         (target_find_memory_regions): Add argument.
2637         * target.c (dummy_find_memory_regions): Add 'self' argument.
2638         * procfs.c (proc_find_memory_regions): Add 'self' argument.
2639         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
2640         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
2641         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
2642         * exec. (exec_do_find_memory_regions): New global.
2643         (exec_set_find_memory_regions): Rewrite.
2644         (exec_find_memory_regions): New function.
2645         (init_exec_ops): Use exec_find_memory_regions.
2646
2647 2014-02-19  Tom Tromey  <tromey@redhat.com>
2648
2649         * target.h (struct target_ops) <to_supports_non_stop>: Add
2650         argument.
2651         * target.c (find_default_supports_non_stop): Add argument.
2652         (target_supports_non_stop): Add argument.
2653         (find_default_supports_non_stop): Add 'self' argument.
2654         * remote.c (remote_supports_non_stop): Add 'self' argument.
2655         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
2656
2657 2014-02-19  Tom Tromey  <tromey@redhat.com>
2658
2659         * target.h (struct target_ops) <to_log_command>: Add argument.
2660         (target_log_command): Add argument.
2661         * serial.h (serial_log_command): Add 'self' argument.
2662         * serial.c (serial_log_command): Add 'self' argument.
2663
2664 2014-02-19  Tom Tromey  <tromey@redhat.com>
2665
2666         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
2667         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
2668         argument.
2669         (target_pid_to_exec_file): Add argument.
2670         * target.c (debug_to_pid_to_exec_file): Add argument.
2671         (update_current_target): Update.
2672         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
2673         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
2674         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
2675         (linux_handle_extended_wait): Update.
2676         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
2677         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
2678         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
2679         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
2680
2681 2014-02-19  Tom Tromey  <tromey@redhat.com>
2682
2683         * target.h (struct target_ops) <to_rcmd>: Add argument.
2684         (target_rcmd): Add argument.
2685         * target.c (debug_to_rcmd): Add argument.
2686         (update_current_target, do_monitor_command): Update.
2687         * remote.c (remote_rcmd): Add 'self' argument.
2688         * monitor.c (monitor_rcmd): Add 'self' argument.
2689
2690 2014-02-19  Tom Tromey  <tromey@redhat.com>
2691
2692         * windows-nat.c (windows_stop): Add 'self' argument.
2693         * target.h (struct target_ops) <to_stop>: Add argument.
2694         * target.c (target_stop): Add argument.
2695         (debug_to_stop): Add argument.
2696         (update_current_target): Update.
2697         * remote.c (remote_stop): Add 'self' argument.
2698         * remote-sim.c (gdbsim_stop): Add 'self' argument.
2699         (gdbsim_cntrl_c): Update.
2700         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
2701         * procfs.c (procfs_stop): Add 'self' argument.
2702         * nto-procfs.c (procfs_stop): Add 'self' argument.
2703         * monitor.c (monitor_stop): Add 'self' argument.
2704         (monitor_open): Update.
2705         * linux-nat.c (linux_nat_stop): Add argument.
2706         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
2707         * gnu-nat.c (gnu_stop): Add 'self' argument.
2708         * darwin-nat.c (darwin_stop): Add 'self' argument.
2709
2710 2014-02-19  Tom Tromey  <tromey@redhat.com>
2711
2712         * target.h (struct target_ops) <to_thread_name>: Add argument.
2713         * target.c (target_thread_name): Add argument.
2714         (update_current_target): Update.
2715         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
2716
2717 2014-02-19  Tom Tromey  <tromey@redhat.com>
2718
2719         * target.h (struct target_ops) <to_extra_thread_info>: Add
2720         argument.
2721         (target_extra_thread_info): Add argument.
2722         * target.c (update_current_target): Update.
2723         * remote.c (remote_threads_extra_info): Add 'self' argument.
2724         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
2725         argument.
2726         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
2727         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
2728         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
2729         argument.
2730         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
2731         argument.
2732         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
2733         argument.
2734         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
2735         argument.
2736
2737 2014-02-19  Tom Tromey  <tromey@redhat.com>
2738
2739         * target.h (struct target_ops) <to_program_signals>: Add argument.
2740         * target.c (target_program_signals): Add argument.
2741         * remote.c (remote_program_signals): Add 'self' argument.
2742
2743 2014-02-19  Tom Tromey  <tromey@redhat.com>
2744
2745         * target.h (struct target_ops) <to_pass_signals>: Add argument.
2746         * target.c (target_pass_signals): Add argument.
2747         * remote.c (remote_pass_signals): Add 'self' argument.
2748         (remote_start_remote): Update.
2749         * procfs.c (procfs_pass_signals): Add 'self' argument.
2750         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
2751         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
2752         (linux_nat_create_inferior, linux_nat_attach): Update.
2753
2754 2014-02-19  Tom Tromey  <tromey@redhat.com>
2755
2756         * windows-nat.c (windows_can_run): Add 'self' argument.
2757         * target.h (struct target_ops) <to_can_run>: Add argument.
2758         (target_can_run): Add argument.
2759         * target.c (debug_to_can_run): Add argument.
2760         (update_current_target): Update.
2761         * nto-procfs.c (procfs_can_run): Add 'self' argument.
2762         * inf-child.c (inf_child_can_run): Add 'self' argument.
2763         * go32-nat.c (go32_can_run): Add 'self' argument.
2764
2765 2014-02-19  Tom Tromey  <tromey@redhat.com>
2766
2767         * target.h (struct target_ops) <to_has_exited>: Add argument.
2768         (target_has_exited): Add argument.
2769         * target.c (debug_to_has_exited): Add argument.
2770         (update_current_target): Update.
2771
2772 2014-02-19  Tom Tromey  <tromey@redhat.com>
2773
2774         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
2775         argument.
2776         (target_set_syscall_catchpoint): Add argument.
2777         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
2778         argument.
2779         * target.c (update_current_target): Update.
2780
2781 2014-02-19  Tom Tromey  <tromey@redhat.com>
2782
2783         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
2784         argument.
2785         (target_remove_exec_catchpoint): Add argument.
2786         * target.c (debug_to_remove_exec_catchpoint): Add argument.
2787         (update_current_target): Update.
2788         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
2789         argument.
2790
2791 2014-02-19  Tom Tromey  <tromey@redhat.com>
2792
2793         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
2794         argument.
2795         (target_insert_exec_catchpoint): Add argument.
2796         * target.c (debug_to_insert_exec_catchpoint): Add argument.
2797         (update_current_target): Update.
2798         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
2799         argument.
2800
2801 2014-02-19  Tom Tromey  <tromey@redhat.com>
2802
2803         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
2804         argument.
2805         (target_remove_vfork_catchpoint): Add argument.
2806         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
2807         (update_current_target): Update.
2808         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
2809         argument.
2810
2811 2014-02-19  Tom Tromey  <tromey@redhat.com>
2812
2813         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
2814         argument.
2815         (target_insert_vfork_catchpoint): Add argument.
2816         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
2817         (update_current_target): Update.
2818         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
2819         argument.
2820
2821 2014-02-19  Tom Tromey  <tromey@redhat.com>
2822
2823         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
2824         argument.
2825         (target_remove_fork_catchpoint): Add argument.
2826         * target.c (debug_to_remove_fork_catchpoint): Add argument.
2827         (update_current_target): Update.
2828         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
2829         argument.
2830
2831 2014-02-19  Tom Tromey  <tromey@redhat.com>
2832
2833         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
2834         argument.
2835         (target_insert_fork_catchpoint): Add argument.
2836         * target.c (debug_to_insert_fork_catchpoint): Add argument.
2837         (update_current_target): Update.
2838         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
2839         argument.
2840
2841 2014-02-19  Tom Tromey  <tromey@redhat.com>
2842
2843         * target.h (struct target_ops) <to_post_startup_inferior>: Add
2844         argument.
2845         (target_post_startup_inferior): Add argument.
2846         * target.c (debug_to_post_startup_inferior): Add argument.
2847         (update_current_target): Update.
2848         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
2849         argument.
2850         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
2851         argument.
2852         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
2853         argument.
2854         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
2855         argument.
2856         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
2857         'self' argument.
2858         (super_post_startup_inferior): Likewise.
2859         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
2860         'self' argument.
2861         (super_post_startup_inferior): Likewise.
2862         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
2863         Add 'self' argument.
2864         (super_post_startup_inferior): Likewise.
2865
2866 2014-02-19  Tom Tromey  <tromey@redhat.com>
2867
2868         * target.h (struct target_ops) <to_load>: Add argument.
2869         * target.c (target_load): Add argument.
2870         (debug_to_load): Add argument.
2871         (update_current_target): Update.
2872         * remote.c (remote_load): Add 'self' argument.
2873         * remote-sim.c (gdbsim_load): Add 'self' argument.
2874         * remote-mips.c (mips_load): Add 'self' argument.
2875         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
2876         * monitor.c (monitor_load): Add 'self' argument.
2877         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
2878
2879 2014-02-19  Tom Tromey  <tromey@redhat.com>
2880
2881         * target.h (struct target_ops) <to_terminal_info>: Add argument.
2882         (target_terminal_info): Add argument.
2883         * target.c (debug_to_terminal_info): Add argument.
2884         (default_terminal_info): Likewise.
2885         * inflow.c (child_terminal_info): Add 'self' argument.
2886         * inferior.h (child_terminal_info): Add 'self' argument.
2887         * go32-nat.c (go32_terminal_info): Add 'self' argument.
2888
2889 2014-02-19  Tom Tromey  <tromey@redhat.com>
2890
2891         * target.h (struct target_ops) <to_terminal_save_ours>: Add
2892         argument.
2893         (target_terminal_save_ours): Add argument.
2894         * target.c (debug_to_terminal_save_ours): Add argument.
2895         (update_current_target): Update.
2896         * inflow.c (terminal_save_ours): Add 'self' argument.
2897         * inferior.h (terminal_save_ours): Add 'self' argument.
2898
2899 2014-02-19  Tom Tromey  <tromey@redhat.com>
2900
2901         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
2902         (target_terminal_ours): Add argument.
2903         * target.c (debug_to_terminal_ours): Add argument.
2904         (update_current_target): Update.
2905         * remote.c (remote_terminal_ours): Add 'self' argument.
2906         (remote_close): Update.
2907         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
2908         * inflow.c (terminal_ours): Add 'self' argument.
2909         * inferior.h (terminal_ours): Add 'self' argument.
2910         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
2911
2912 2014-02-19  Pedro Alves  <palves@redhat.com>
2913             Tom Tromey  <tromey@redhat.com>
2914
2915         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
2916         argument.
2917         (target_terminal_ours_for_output): Add argument.
2918         * target.c (debug_to_terminal_ours_for_output): Add argument.
2919         (update_current_target): Update.
2920         * inflow.c (terminal_ours_for_output): Add 'self' argument.
2921         * inferior.h (terminal_ours_for_output): Add 'self' argument.
2922         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
2923
2924 2014-02-19  Tom Tromey  <tromey@redhat.com>
2925
2926         * target.h (struct target_ops) <to_terminal_inferior>: Add
2927         argument.
2928         * target.c (target_terminal_inferior): Add argument.
2929         (update_current_target): Update.
2930         * remote.c (remote_terminal_inferior): Add 'self' argument.
2931         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
2932         * inflow.c (terminal_inferior): Add 'self' argument.
2933         * inferior.h (terminal_inferior): Add 'self' argument.
2934         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
2935         (go32_terminal_inferior): Add 'self' argument.
2936
2937 2014-02-19  Tom Tromey  <tromey@redhat.com>
2938
2939         * target.h (struct target_ops) <to_terminal_init>: Add argument.
2940         (target_terminal_init): Add argument.
2941         * target.c (debug_to_terminal_init): Add argument.
2942         (update_current_target): Update.
2943         * inflow.c (terminal_init_inferior): Add 'self' argument.
2944         * inferior.h (terminal_init_inferior): Add 'self' argument.
2945         * go32-nat.c (go32_terminal_init): Add 'self' argument.
2946         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
2947
2948 2014-02-19  Tom Tromey  <tromey@redhat.com>
2949
2950         * target.h (struct target_ops)
2951         <to_can_accel_watchpoint_condition>: Add argument.
2952         (target_can_accel_watchpoint_condition): Add argument.
2953         * target.c (debug_to_can_accel_watchpoint_condition): Add
2954         argument.
2955         (update_current_target): Update.
2956         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
2957         'self' argument.
2958
2959 2014-02-19  Tom Tromey  <tromey@redhat.com>
2960
2961         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2962         Add argument.
2963         (target_region_ok_for_hw_watchpoint): Add argument.
2964         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
2965         (default_region_ok_for_hw_watchpoint): Add argument.
2966         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
2967         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
2968         argument.
2969         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
2970         argument.
2971         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
2972         argument.
2973         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
2974         'self' argument.
2975         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
2976         'self' argument.
2977         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
2978         'self' argument.
2979         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
2980         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
2981         'self' argument.
2982         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2983         Add 'self' argument.
2984
2985 2014-02-19  Tom Tromey  <tromey@redhat.com>
2986
2987         * target.h (struct target_ops) <to_insert_watchpoint>: Add
2988         argument.
2989         (target_insert_watchpoint): Add argument.
2990         * target.c (debug_to_insert_watchpoint): Add argument.
2991         (update_current_target): Update.
2992         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
2993         * remote.c (remote_insert_watchpoint): Add 'self' argument.
2994         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
2995         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
2996         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
2997         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
2998         argument.
2999         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
3000         (procfs_insert_hw_watchpoint): Add 'self' argument.
3001         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
3002         argument.
3003         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
3004         argument.
3005         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
3006         argument.
3007         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
3008         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
3009         argument.
3010         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
3011         'self' argument.
3012
3013 2014-02-19  Tom Tromey  <tromey@redhat.com>
3014
3015         * target.h (struct target_ops) <to_remove_watchpoint>: Add
3016         argument.
3017         (target_remove_watchpoint): Add argument.
3018         * target.c (debug_to_remove_watchpoint): Add argument.
3019         (update_current_target): Update.
3020         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
3021         * remote.c (remote_remove_watchpoint): Add 'self' argument.
3022         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
3023         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
3024         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
3025         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
3026         argument.
3027         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
3028         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
3029         argument.
3030         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
3031         argument.
3032         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
3033         argument.
3034         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
3035         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
3036         argument.
3037         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
3038         'self' argument.
3039
3040 2014-02-19  Tom Tromey  <tromey@redhat.com>
3041
3042         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
3043         argument.
3044         (target_remove_hw_breakpoint): Add argument.
3045         * target.c (debug_to_remove_hw_breakpoint): Add argument.
3046         (update_current_target): Update.
3047         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
3048         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
3049         argument.
3050         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
3051         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
3052         argument.
3053         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
3054         'self' argument.
3055
3056 2014-02-19  Tom Tromey  <tromey@redhat.com>
3057
3058         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
3059         argument.
3060         (target_insert_hw_breakpoint): Add argument.
3061         * target.c (debug_to_insert_hw_breakpoint): Add argument.
3062         (update_current_target): Update.
3063         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
3064         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
3065         argument.
3066         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
3067         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
3068         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
3069         argument.
3070         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
3071         'self' argument.
3072
3073 2014-02-19  Tom Tromey  <tromey@redhat.com>
3074
3075         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
3076         argument.
3077         (target_can_use_hardware_watchpoint): Add argument.
3078         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
3079         (update_current_target): Update.
3080         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
3081         argument.
3082         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
3083         argument.
3084         * remote.c (remote_check_watch_resources): Add 'self' argument.
3085         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
3086         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
3087         argument.
3088         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
3089         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
3090         argument.
3091         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
3092         argument.
3093         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
3094         argument.
3095         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
3096         argument.
3097         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
3098         argument.
3099         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
3100         argument.
3101         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
3102         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
3103         argument.
3104         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
3105         'self' argument.
3106
3107 2014-02-19  Tom Tromey  <tromey@redhat.com>
3108
3109         * target.h (struct target_ops) <to_post_attach>: Add argument.
3110         (target_post_attach): Add argument.
3111         * target.c (debug_to_post_attach): Add argument.
3112         (update_current_target): Update.
3113         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
3114         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
3115         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
3116         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
3117         * inf-child.c (inf_child_post_attach): Add 'self' argument.
3118
3119 2014-02-19  Tom Tromey  <tromey@redhat.com>
3120
3121         * windows-nat.c (windows_close): Add 'self' argument.
3122         * tracepoint.c (tfile_close): Add 'self' argument.
3123         * target.h (struct target_ops) <to_close>: Add argument.
3124         * target.c (target_close): Add argument.
3125         (update_current_target): Update.
3126         * remote.c (remote_close): Add 'self' argument.
3127         * remote-sim.c (gdbsim_close): Add 'self' argument.
3128         * remote-mips.c (mips_close): Add 'self' argument.
3129         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
3130         * record-full.c (record_full_close): Add 'self' argument.
3131         * record-btrace.c (record_btrace_close): Add 'self' argument.
3132         * monitor.h (monitor_close): Add 'self' argument.
3133         * monitor.c (monitor_close): Add 'self' argument.
3134         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
3135         * linux-nat.c (linux_nat_close): Add argument.
3136         * go32-nat.c (go32_close): Add 'self' argument.
3137         * exec.c (exec_close_1): Add 'self' argument.
3138         * ctf.c (ctf_close): Add 'self' argument.
3139         * corelow.c (core_close): Add 'self' argument.
3140         (core_close_cleanup): Update.
3141         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
3142         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
3143
3144 2014-02-19  Tom Tromey  <tromey@redhat.com>
3145
3146         * remote.c (remote_load): New function.
3147         (init_remote_ops): Use it.
3148
3149 2014-02-19  Tom Tromey  <tromey@redhat.com>
3150
3151         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
3152         argument.
3153         * common/linux-btrace.h (linux_supports_btrace): Update.
3154         * remote.c (remote_supports_btrace): Add "self" argument.
3155         * target-delegates.c: Rebuild.
3156         * target.c (target_supports_btrace): Remove.
3157         * target.h (struct target_ops) <to_supports_btrace>: Add
3158         target_ops argument.
3159         (target_supports_btrace): New define.
3160
3161 2014-02-19  Tom Tromey  <tromey@redhat.com>
3162
3163         * record-full.c (record_full_beneath_to_resume_ops)
3164         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
3165         (record_full_beneath_to_wait)
3166         (record_full_beneath_to_store_registers_ops)
3167         (record_full_beneath_to_store_registers)
3168         (record_full_beneath_to_xfer_partial_ops)
3169         (record_full_beneath_to_xfer_partial)
3170         (record_full_beneath_to_insert_breakpoint_ops)
3171         (record_full_beneath_to_insert_breakpoint)
3172         (record_full_beneath_to_remove_breakpoint_ops)
3173         (record_full_beneath_to_remove_breakpoint)
3174         (record_full_beneath_to_stopped_by_watchpoint)
3175         (record_full_beneath_to_stopped_data_address)
3176         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
3177         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
3178         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
3179         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
3180         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
3181         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
3182         (tmp_to_stopped_data_address, tmp_to_async): Remove.
3183         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
3184         (record_full_resume, record_full_wait_1)
3185         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
3186         (record_full_store_registers, record_full_xfer_partial)
3187         (record_full_insert_breakpoint, record_full_remove_breakpoint)
3188         (record_full_async, record_full_core_xfer_partial): Use target
3189         delegation.
3190         * target-delegates.c: Rebuild.
3191         * target.c (current_xfer_partial): Remove.
3192         (update_current_target): Do not INHERIT or de_fault
3193         to_insert_breakpoint, to_remove_breakpoint,
3194         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
3195         to_is_async_p, to_async.  Do not set to_xfer_partial field.
3196         (default_xfer_partial): Simplify.
3197         (current_xfer_partial): Remove.
3198         (target_wait, target_resume): Simplify.
3199         (find_default_can_async_p, find_default_is_async_p): Update.
3200         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
3201         to_xfer_partial, to_stopped_by_watchpoint,
3202         to_stopped_data_address.
3203         (target_store_registers): Simplify.
3204         (forward_target_remove_breakpoint)
3205         (forward_target_insert_breakpoint): Remove.
3206         (target_remove_breakpoint, target_insert_breakpoint)
3207         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
3208         * target.h (struct target_ops) <to_resume, to_wait,
3209         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
3210         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
3211         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
3212         markup.
3213         (forward_target_remove_breakpoint)
3214         (forward_target_insert_breakpoint): Remove.
3215         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
3216         directly.
3217         (record_btrace_insert_breakpoint): Delegate directly.
3218
3219 2014-02-19  Tom Tromey  <tromey@redhat.com>
3220
3221         PR build/7701:
3222         * target-delegates.c: New file.
3223         * target.c: Include target-delegates.c.
3224         (init_dummy_target): Call install_dummy_methods.
3225         (complete_target_initialization): Call install_delegators.
3226         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
3227         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
3228         * make-target-delegates: New file.
3229
3230 2014-02-19  Tom Tromey  <tromey@redhat.com>
3231
3232         * record.c (find_record_target): Use find_target_at.
3233         * target.c (find_target_at): New function.
3234         * target.h (find_target_at): Declare.
3235
3236 2014-02-19  Tom Tromey  <tromey@redhat.com>
3237
3238         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
3239         Add 'ops' argument.
3240         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
3241         'ops' argument.
3242         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
3243         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
3244         'ops' argument.
3245         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
3246         argument.
3247         * linux-nat.c (save_sigtrap): Update.
3248         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
3249         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
3250         (linux_nat_close): Update.
3251         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
3252         argument.
3253         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
3254         argument.
3255         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
3256         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
3257         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
3258         (tmp_to_async): Add 'ops' argument.
3259         (record_full_stopped_by_watchpoint, record_full_async)
3260         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
3261         argument.
3262         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
3263         (m32r_stopped_by_watchpoint): Add 'ops' argument.
3264         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
3265         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
3266         (remote_is_async_p, remote_async): Add 'ops' argument.
3267         (remote_stopped_data_address): Update.
3268         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
3269         * target.c (update_current_target)
3270         (find_default_can_async_p, find_default_is_async_p): Update.
3271         (init_dummy_target): Update.
3272         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
3273         * target.h (struct target_ops) <to_stopped_by_watchpoint,
3274         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
3275         (target_can_async_p, target_is_async_p, target_async)
3276         (target_stopped_by_watchpoint): Update.
3277
3278 2014-02-19  Yao Qi  <yao@codesourcery.com>
3279
3280         PR gdb/16220
3281         * gdbarch.sh: Remove startup_gdbarch.
3282         * gdbarch.c: Regenerated.
3283         * gdbarch.h: Likewise.
3284
3285 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
3286
3287         * rl78-tdep.c (rl78_g10_register_name): New function.
3288         (rl78_return_value): Add g10 support.
3289         (rl78_gdbarch_init): Register rl78_g10_register_name for the
3290         g10.
3291
3292 2014-02-17  Doug Evans  <xdje42@gmail.com>
3293
3294         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
3295         (SUBDIR_GUILE_SRCS): Ditto.
3296         (scm-gsmob.o): Ditto.
3297
3298 2014-02-17  Yao Qi  <yao@codesourcery.com>
3299
3300         * gnu-nat.c (ILL_RPC): Declare defined function.
3301
3302 2014-02-17  Yao Qi  <yao@codesourcery.com>
3303
3304         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
3305         mach_msg_type_number_t.
3306         (gnu_write_inferior): Likewise.
3307
3308 2014-02-17  Yao Qi  <yao@codesourcery.com>
3309
3310         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
3311         in format string.
3312         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
3313         (inf_validate_procs, inf_signal): Likewise.
3314         (S_exception_raise_request): Likewise.
3315         (do_mach_notify_dead_name): Likewise.
3316         (steal_exc_port): Likewise.
3317         (gnu_read_inferior): Change 'copy_count''s type to
3318         mach_msg_type_number_t.
3319         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
3320         format string.
3321
3322 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
3323
3324         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
3325         flag.  Adjust all users; in particular...
3326         (gnu_wait): ..., don't decrement its value in here...
3327         (gnu_create_inferior): ..., and instead set the flag in here,
3328         around the startup_inferior call, and call that one with
3329         START_INFERIOR_TRAPS_EXPECTED.
3330
3331         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
3332         (ILL_RPC): ... new macro.
3333         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
3334         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
3335         (do_mach_notify_send_once, S_proc_setmsgport_reply)
3336         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
3337         functions with ILL_RPC macro.
3338         (S_proc_pid2task_reply, S_proc_task2pid_reply)
3339         (S_proc_task2proc_reply, S_proc_proc2task_reply)
3340         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
3341         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
3342         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
3343         (S_proc_getlogin_reply, S_proc_getsid_reply)
3344         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
3345         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
3346         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
3347         (S_proc_getnports_reply, S_proc_is_important_reply)
3348         (S_proc_get_code_reply): New stub functions, generated with
3349         ILL_RPC macro.
3350
3351         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
3352         collected the type check structures.
3353
3354         * reply_mig_hack.awk: Don't expect to see the auto keyword.
3355
3356 2014-02-14  Doug Evans  <dje@google.com>
3357
3358         * target.c (target_write_partial): Fix result type.
3359
3360 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
3361
3362         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
3363         the proper offsets to access fpregset_t.
3364
3365 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
3366
3367         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
3368         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
3369         * h8300-tdep.c (setmachinelist): Remove global.
3370         * hppa-tdep.c (hppa_sigtramp): Remove global.
3371         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
3372         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
3373         * ravenscar-thread.c (update_target_observer): Remove global.
3374         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
3375
3376 2014-02-12  Tom Tromey  <tromey@redhat.com>
3377
3378         * common/rsp-low.c: Update comments.
3379         * common/rsp-low.h: Update comments.
3380
3381 2014-02-12  Tom Tromey  <tromey@redhat.com>
3382
3383         * common/rsp-low.c (convert_ascii_to_int): Remove.
3384         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
3385
3386 2014-02-12  Tom Tromey  <tromey@redhat.com>
3387
3388         * common/rsp-low.h (unhexify): Don't declare.
3389         * common/rsp-low.c (unhexify): Remove.
3390
3391 2014-02-12  Tom Tromey  <tromey@redhat.com>
3392
3393         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
3394         * common/rsp-low.c (convert_int_to_ascii): Remove.
3395
3396 2014-02-12  Tom Tromey  <tromey@redhat.com>
3397
3398         * common/rsp-low.h (hexify): Don't declare.
3399         * common/rsp-low.c (hexify): Remove.
3400
3401 2014-02-12  Tom Tromey  <tromey@redhat.com>
3402
3403         * common/rsp-low.c (hexify): Never take strlen of argument.
3404
3405 2014-02-12  Tom Tromey  <tromey@redhat.com>
3406
3407         * common/rsp-low.c (bin2hex): Never take strlen of argument.
3408         * remote.c (extended_remote_run, remote_rcmd)
3409         (remote_download_trace_state_variable, remote_save_trace_data)
3410         (remote_set_trace_notes): Update.
3411         * tracepoint.c (encode_source_string, tfile_write_status)
3412         (tfile_write_uploaded_tsv): Update.
3413
3414 2014-02-12  Tom Tromey  <tromey@redhat.com>
3415
3416         * tracepoint.c: Include rsp-low.h.
3417         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
3418         * remote.c: Include rsp-low.h.
3419         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
3420         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
3421         (remote_unescape_input): Move to common/rsp-low.c.
3422         * common/rsp-low.h: New file.
3423         * common/rsp-low.c: New file.
3424         * Makefile.in (SFILES): Add common/rsp-low.c.
3425         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
3426         (COMMON_OBS): Add rsp-low.o.
3427         (rsp-low.o): New target.
3428
3429 2014-02-12  Tom Tromey  <tromey@redhat.com>
3430
3431         * utils.h: Include print-utils.h.
3432         (host_address_to_string, plongest, pulongest, phex, phex_nz)
3433         (int_string, core_addr_to_string, core_addr_to_string_nz)
3434         (hex_string, hex_string_custom): Don't declare.
3435         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
3436         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
3437         (hex_string_custom, int_string, core_addr_to_string)
3438         (core_addr_to_string_nz, host_address_to_string): Move to
3439         common/print-utils.c.
3440         * common/print-utils.h: New file.
3441         * common/print-utils.c: New file
3442         * Makefile.in (SFILES): Add common/print-utils.c.
3443         (HFILES_NO_SRCDIR): Add common/print-utils.h.
3444         (COMMON_OBS): Add print-utils.o.
3445         (print-utils.o): New target.
3446
3447 2014-02-12  Tom Tromey  <tromey@redhat.com>
3448
3449         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
3450
3451 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
3452
3453         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
3454
3455 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
3456
3457         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
3458         if a PT_IO ptrace request returns sucessfully but indicates that 0
3459         bytes were transferred.
3460
3461 2014-02-12  Pedro Alves  <palves@redhat.com>
3462             Kevin Buettner <kevinb@redhat.com>
3463
3464         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
3465         TYPE_INSTANCE_FLAG_CODE_SPACE.
3466
3467 2014-02-12  Pedro Alves  <palves@redhat.com>
3468
3469         * h8300-tdep.c (pseudo_from_raw_register)
3470         (raw_from_pseudo_register): New functions.
3471         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
3472         them.
3473
3474 2014-02-12  Pedro Alves  <palves@redhat.com>
3475
3476         * h8300-tdep.c (h8300_register_sim_regno): New function.
3477         (h8300_gdbarch_init): Install h8300_register_sim_regno as
3478         gdbarch_register_sim_regno hook.
3479
3480 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
3481
3482         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
3483
3484 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
3485
3486         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
3487
3488 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
3489
3490         * obsd-tdep.h (obsd_init_abi): New prototype.
3491         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
3492         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
3493         (obsd_init_abi): New functions.
3494         * i386obsd-tdep.c: Include "obsd-tdep.h".
3495         (i386obsd_init_abi): Call obsd_init_abi.
3496         * amd64obsd-tdep.c: Include "obsd-tdep.h".
3497         (amd64obsd_init_abi): Call obsd_init_abi.
3498         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
3499         obsd-tdep.c to gdb_target_obs.
3500
3501 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
3502
3503         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
3504         double float arguments to 16-byte in the argument slots.
3505
3506 2014-02-11  Doug Evans  <xdje42@gmail.com>
3507
3508         * configure.ac: Don't crash if pkg-config is not found and guile
3509         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
3510         in guile checks.
3511         * configure: Regenerate.
3512
3513 2014-02-11  Yao Qi  <yao@codesourcery.com>
3514
3515         * aix-thread.c (aix_thread_xfer_partial): Update comments.
3516         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
3517         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3518         * gnu-nat.c (gnu_xfer_memory): Likewise.
3519         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
3520         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3521         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3522         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3523
3524 2014-02-11  Yao Qi  <yao@codesourcery.com>
3525
3526         * target.h (enum target_xfer_error): Rename to ...
3527         (enum target_xfer_status): ... it.  New.  All users updated.
3528         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
3529         New.
3530         (TARGET_XFER_STATUS_ERROR_P): New macro.
3531         (target_xfer_error_to_string): Remove declaration.
3532         (target_xfer_status_to_string): Declare.
3533         (target_xfer_partial_ftype): Adjust it.
3534         (struct target_ops) <to_xfer_partial>: Return
3535         target_xfer_status.  Add argument xfered_len.  Update
3536         comments.
3537         * target.c (target_xfer_error_to_string): Rename to ...
3538         (target_xfer_status_to_string): ... it.  New.  All callers
3539         updated.
3540         (target_read_live_memory): Likewise.  Call target_xfer_partial
3541         instead of target_read.
3542         (memory_xfer_live_readonly_partial): Return
3543         target_xfer_status.  Add argument xfered_len.
3544         (raw_memory_xfer_partial): Likewise.
3545         (memory_xfer_partial_1): Likewise.
3546         (memory_xfer_partial): Likewise.
3547         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
3548         properly.  Update debug message.
3549         (default_xfer_partial, current_xfer_partial): Likewise.
3550         (target_write_partial): Likewise.
3551         (target_read_partial): Likewise.  All callers updated.
3552         (read_whatever_is_readable): Likewise.
3553         (target_write_with_progress): Likewise.
3554         (target_read_alloc_1): Likewise.
3555
3556         * aix-thread.c (aix_thread_xfer_partial): Likewise.
3557         * auxv.c (procfs_xfer_auxv): Likewise.
3558         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
3559         * bfd-target.c (target_bfd_xfer_partial): Likewise.
3560         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3561         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
3562         * corefile.c (read_memory): Adjust.
3563         * corelow.c (core_xfer_partial): Likewise.
3564         * ctf.c (ctf_xfer_partial): Likewise.
3565         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
3566         updated.
3567         (darwin_xfer_partial): Likewise.
3568         * exec.c (section_table_xfer_memory_partial): Likewise.  All
3569         callers updated.
3570         (exec_xfer_partial): Likewise.
3571         * exec.h (section_table_xfer_memory_partial): Update
3572         declaration.
3573         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
3574         negative.
3575         (gnu_xfer_partial): Likewise.
3576         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
3577         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
3578         (ia64_hpux_xfer_solib_got): Likewise.
3579         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
3580         type of 'partial_len' to ULONGEST.
3581         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
3582         * linux-nat.c (linux_xfer_siginfo ): Likewise.
3583         (linux_nat_xfer_partial): Likewise.
3584         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
3585         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
3586         * monitor.c (monitor_xfer_memory): Likewise.
3587         (monitor_xfer_partial): Likewise.
3588         * procfs.c (procfs_xfer_partial): Likewise.
3589         * record-btrace.c (record_btrace_xfer_partial): Likewise.
3590         * record-full.c (record_full_xfer_partial): Likewise.
3591         (record_full_core_xfer_partial): Likewise.
3592         * remote-sim.c (gdbsim_xfer_memory): Likewise.
3593         (gdbsim_xfer_partial): Likewise.
3594         * remote.c (remote_write_bytes_aux): Likewise.  All callers
3595         updated.
3596         (remote_write_bytes, remote_read_bytes): Likewise.  All
3597         callers updated.
3598         (remote_flash_erase): Likewise.  All callers updated.
3599         (remote_write_qxfer): Likewise.  All callers updated.
3600         (remote_read_qxfer): Likewise.  All callers updated.
3601         (remote_xfer_partial): Likewise.
3602         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3603         (rs6000_xfer_shared_libraries): Likewise.
3604         * sol-thread.c (sol_thread_xfer_partial): Likewise.
3605         (sol_thread_xfer_partial): Likewise.
3606         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3607         (sparc_xfer_partial): Likewise.
3608         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
3609         updated.
3610         (spu_xfer_partial): Likewise.
3611         * spu-multiarch.c (spu_xfer_partial): Likewise.
3612         * tracepoint.c (tfile_xfer_partial): Likewise.
3613         * windows-nat.c (windows_xfer_memory): Likewise.
3614         (windows_xfer_shared_libraries): Likewise.
3615         (windows_xfer_partial): Likewise.
3616         * valprint.c: Replace 'target_xfer_error' with
3617         'target_xfer_status' in comments.
3618
3619 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
3620
3621         Checked in by Joel Brobecker <brobecker@adacore.com>.
3622         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
3623
3624 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
3625
3626         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
3627         function parameters.
3628
3629 2014-02-10  Will Newton  <will.newton@linaro.org>
3630
3631         * elfread.c (elf_rel_plt_read): Look for a .got section if
3632         looking up .got.plt fails.
3633         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
3634         on address passed to elf_gnu_ifunc_record_cache.
3635         (elf_gnu_ifunc_resolve_addr): Likewise.
3636         (elf_gnu_ifunc_resolver_return_stop): Likewise.
3637
3638 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
3639
3640         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
3641         (X_RETTURN): New macro.
3642         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
3643
3644         * sparc64-tdep.c (sparc64_init_abi): Hook
3645         sparc_in_function_epilogue_p.
3646
3647 2014-02-10  Gary Benson  <gbenson@redhat.com>
3648
3649         * symfile-debug.c (debug_qf_expand_symtabs_matching):
3650         Rename name_matcher to symbol_matcher.
3651
3652 2014-02-10  Gary Benson  <gbenson@redhat.com>
3653
3654         * symfile-debug.c (debug_qf_expand_symtabs_matching):
3655         Use expand_symtabs_file_matcher_ftype and
3656         expand_symtabs_symbol_matcher_ftype.
3657
3658 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
3659
3660         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
3661         (struct ada_symbol_cache): New.
3662         (ada_free_symbol_cache): Forward declare.
3663         (struct ada_pspace_data): New.
3664         (ada_pspace_data_handle): New static global.
3665         (get_ada_pspace_data, ada_pspace_data_cleanup)
3666         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
3667         (cache_space, cache): Delete, now folded inside struct
3668         ada_pspace_data.
3669         (ada_get_symbol_cache): New function.
3670         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
3671         implementation.
3672         (_initialize_ada_language): Remove initialization of cache_space.
3673         Move call to observer_attach_inferior_exit up, grouping it
3674         with the other observer registrations inside this function.
3675         Rename command to be more general.  Add call to
3676         register_program_space_data_with_cleanup.
3677
3678 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
3679
3680         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
3681         ada_new_objfile_observer.
3682         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
3683         (_initialize_tasks): Update uses of ada_new_objfile_observer
3684         and ada_tasks_normal_stop_observer.
3685
3686 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
3687
3688         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
3689         returned by the 'Length attribute to integer.
3690
3691 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
3692
3693         * ada-lang.c (_initialize_ada_language): Initialize
3694         cache_space obstack.
3695
3696 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
3697
3698         * ada-lang.c (HASH_SIZE): New macro.
3699         (struct cache_entry): New type.
3700         (cache_space, cache): New static globals.
3701         (ada_clear_symbol_cache, find_entry): New functions.
3702         (lookup_cached_symbol, cache_symbol): Implement.
3703         (ada_new_objfile_observer, ada_free_objfile_observer): New.
3704         (_initialize_ada_language): Attach ada_new_objfile_observer
3705         and ada_free_objfile_observer.
3706
3707 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
3708
3709         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
3710         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
3711         struct block * parameter.
3712         (ada_lookup_symbol_list_worker): Constify local variable "block".
3713         Remove cast which is no longer necessary.
3714
3715 2014-02-10  Doug Evans  <xdje42@gmail.com>
3716
3717         Add Guile as an extension language.
3718         * NEWS: Mention Guile scripting.
3719         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
3720         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
3721         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
3722         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
3723         (CLIBS): Add GUILE_LIBS.
3724         (install-guile): New rule.
3725         (guile.o): New rule.
3726         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
3727         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
3728         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
3729         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
3730         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
3731         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
3732         (scm-type.o, scm-utils.o, scm-value.o): New rules.
3733         * configure.ac: New option --with-guile.
3734         * configure: Regenerate.
3735         * config.in: Regenerate.
3736         * auto-load.c: Remove #include "python/python.h".  Add #include
3737         "gdb/section-scripts.h".
3738         (source_section_scripts): Handle Guile scripts.
3739         (_initialize_auto_load): Add name of Guile objfile script to
3740         scripts-directory help text.
3741         * breakpoint.c (condition_command): Tweak comment to include Scheme.
3742         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
3743         (struct breakpoint): New member scm_bp_object.
3744         * defs.h (enum command_control_type): New value guile_control.
3745         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
3746         "extension.h".
3747         (show_user): Update comment.
3748         (_initialize_cli_cmds): Update help text for "show user".  Update help
3749         text for max-user-call-depth.
3750         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
3751         "extension.h".
3752         (multi_line_command_p): Add guile_control.
3753         (print_command_lines): Handle guile_control.
3754         (execute_control_command, recurse_read_control_structure): Ditto.
3755         (process_next_line): Recognize "guile" commands.
3756         * disasm.c (gdb_disassemble_info): Make non-static.
3757         * disasm.h: #include "dis-asm.h".
3758         (struct gdbarch): Add forward decl.
3759         (gdb_disassemble_info): Declare.
3760         * extension.c: #include "guile/guile.h".
3761         (extension_languages): Add guile.
3762         (get_ext_lang_defn): Handle EXT_LANG_GDB.
3763         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
3764         * gdbtypes.c (get_unsigned_type_max): New function.
3765         (get_signed_type_minmax): New function.
3766         * gdbtypes.h (get_unsigned_type_max): Declare.
3767         (get_signed_type_minmax): Declare.
3768         * guile/README: New file.
3769         * guile/guile-internal.h: New file.
3770         * guile/guile.c: New file.
3771         * guile/guile.h: New file.
3772         * guile/scm-arch.c: New file.
3773         * guile/scm-auto-load.c: New file.
3774         * guile/scm-block.c: New file.
3775         * guile/scm-breakpoint.c: New file.
3776         * guile/scm-disasm.c: New file.
3777         * guile/scm-exception.c: New file.
3778         * guile/scm-frame.c: New file.
3779         * guile/scm-gsmob.c: New file.
3780         * guile/scm-iterator.c: New file.
3781         * guile/scm-lazy-string.c: New file.
3782         * guile/scm-math.c: New file.
3783         * guile/scm-objfile.c: New file.
3784         * guile/scm-ports.c: New file.
3785         * guile/scm-pretty-print.c: New file.
3786         * guile/scm-safe-call.c: New file.
3787         * guile/scm-string.c: New file.
3788         * guile/scm-symbol.c: New file.
3789         * guile/scm-symtab.c: New file.
3790         * guile/scm-type.c: New file.
3791         * guile/scm-utils.c: New file.
3792         * guile/scm-value.c: New file.
3793         * guile/lib/gdb.scm: New file.
3794         * guile/lib/gdb/boot.scm: New file.
3795         * guile/lib/gdb/experimental.scm: New file.
3796         * guile/lib/gdb/init.scm: New file.
3797         * guile/lib/gdb/iterator.scm: New file.
3798         * guile/lib/gdb/printing.scm: New file.
3799         * guile/lib/gdb/types.scm: New file.
3800         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
3801         (VPATH): Add $(GUILE_SRCDIR).
3802         (GUILE_DIR): New variable.
3803         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
3804         (all): Add stamp-guile dependency.
3805         (stamp-guile): New rule.
3806         (clean-guile, install-guile, uninstall-guile): New rules.
3807         (install-only): Add install-guile dependency.
3808         (uninstall): Add uninstall-guile dependency.
3809         (clean): Add clean-guile dependency.
3810
3811 2014-02-09  Doug Evans  <xdje42@gmail.com>
3812
3813         Revert this patch (which I approved, mea culpa).
3814
3815         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
3816
3817         * Makefile.in (all-lib): Remove.
3818         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
3819
3820 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3821
3822         Fix Python stack corruption.
3823         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
3824         gdb_py_longest.
3825
3826 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
3827
3828         * Makefile.in (all-lib): Remove.
3829         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
3830
3831 2014-02-07  Doug Evans  <dje@google.com>
3832
3833         * extension-priv.h (extension_language_script_ops): Add comment.
3834         (extension_language_ops): Add comment.
3835         (active_ext_lang_state): Fix typo in comment.
3836
3837 2014-02-07  Pedro Alves  <palves@redhat.com>
3838
3839         PR breakpoints/16292
3840         * infrun.c (handle_signal_stop) <signal arrives while stepping
3841         over a breakpoint>: Switch back to the stepping thread.
3842
3843 2014-02-07  Yao Qi  <yao@codesourcery.com>
3844
3845         * target.c (target_xfer_partial): Return zero if LEN is zero.
3846
3847 2014-02-07  Yao Qi  <yao@codesourcery.com>
3848
3849         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
3850         (ld_so_xfer_auxv): Likewise.
3851         * bfd-target.c (target_bfd_xfer_partial): Likewise.
3852         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3853         * corelow.c (core_xfer_partial): Likewise.
3854         * ctf.c (ctf_xfer_partial): Likewise.
3855         * darwin-nat.c (darwin_read_dyld_info): Likewise.
3856         (darwin_xfer_partial): Likewise.
3857         * exec.c (exec_xfer_partial): Likewise.
3858         * gnu-nat.c (gnu_xfer_partial): Likewise.
3859         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
3860         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
3861         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
3862         * linux-nat.c (linux_xfer_siginfo): Likewise.
3863         (linux_proc_xfer_spu): Likewise.
3864         * procfs.c (procfs_xfer_partial): Likewise.
3865         * record-full.c (record_full_xfer_partial): Likewise.
3866         (record_full_core_xfer_partial): Likewise.
3867         * remote-sim.c (gdbsim_xfer_partial): Likewise.
3868         * remote.c (remote_write_qxfer): Likewise.
3869         (remote_write_qxfer, remote_read_qxfer): Likewise.
3870         (remote_xfer_partial): Likewise.
3871         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3872         (rs6000_xfer_shared_libraries): Likewise.
3873         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3874         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3875         (spu_xfer_partial): Likewise.
3876         * target.c (memory_xfer_partial_1): Likewise.
3877         * tracepoint.c (tfile_xfer_partial): Likewise.
3878         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
3879         (windows_xfer_partial): Likewise.
3880
3881 2014-02-07  Yao Qi  <yao@codesourcery.com>
3882
3883         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
3884         comments.
3885         (core_xfer_shared_libraries_aix): Likewise.
3886         * gdbarch.c, gdbarch.h: Regenerated.
3887         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
3888         ULONGEST.  Change 'len_avail' type to ULONGEST.
3889         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3890         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3891         declaration.
3892         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
3893
3894 2014-02-07  Yao Qi  <yao@codesourcery.com>
3895
3896         * corefile.c (memory_error): Get 'exception' from ERR and pass
3897         'exception' to throw_error.
3898
3899 2014-02-06  Doug Evans  <xdje42@gmail.com>
3900
3901         * configure.ac (libpython checking): Remove all but python.o from
3902         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
3903         * configure: Regenerate.
3904
3905         * Makefile.in (SFILES): Add extension.c.
3906         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
3907         (COMMON_OBS): Add extension.o.
3908         * extension.h: New file.
3909         * extension-priv.h: New file.
3910         * extension.c: New file.
3911
3912         * python/python-internal.h: #include "extension.h".
3913         (gdbpy_auto_load_enabled): Declare.
3914         (gdbpy_apply_val_pretty_printer): Declare.
3915         (gdbpy_apply_frame_filter): Declare.
3916         (gdbpy_preserve_values): Declare.
3917         (gdbpy_breakpoint_cond_says_stop): Declare.
3918         (gdbpy_breakpoint_has_cond): Declare.
3919         (void source_python_script_for_objfile): Delete.
3920         * python/python.c: #include "extension-priv.h".
3921         Delete inclusion of "observer.h".
3922         (extension_language_python): Moved here and renamed from
3923         script_language_python in py-auto-load.c.
3924         Redefined to be of type extension_language_defn.
3925         (python_extension_script_ops): New global.
3926         (python_extension_ops): New global.
3927         (struct python_env): New member previous_active.
3928         (restore_python_env): Call restore_active_ext_lang.
3929         (ensure_python_env): Call set_active_ext_lang.
3930         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
3931         New arg extlang.
3932         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
3933         New arg extlang.
3934         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
3935         New arg extlang.
3936         (gdbpy_eval_from_control_command): Renamed from
3937         eval_python_from_control_command, made static.  New arg extlang.
3938         (gdbpy_source_script) Renamed from source_python_script, made static.
3939         New arg extlang.
3940         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
3941         result to int.  New arg extlang.
3942         (gdbpy_source_objfile_script): Renamed from
3943         source_python_script_for_objfile, made static.  New arg extlang.
3944         (gdbpy_start_type_printers): Renamed from start_type_printers, made
3945         static.  New args extlang, extlang_printers.  Change result type to
3946         "void".
3947         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
3948         static.  New arg extlang.  Rename arg printers to extlang_printers
3949         and change type to ext_lang_type_printers *.
3950         (gdbpy_free_type_printers): Renamed from free_type_printers, made
3951         static.  Replace argument arg with extlang, extlang_printers.
3952         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
3953         (!HAVE_PYTHON, source_python_script): Delete.
3954         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
3955         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
3956         (!HAVE_PYTHON, start_type_printers): Delete.
3957         (!HAVE_PYTHON, apply_type_printers): Delete.
3958         (!HAVE_PYTHON, free_type_printers): Delete.
3959         (_initialize_python): Delete call to observer_attach_before_prompt.
3960         (finalize_python): Set/restore active extension language.
3961         (gdbpy_finish_initialization) Renamed from
3962         finish_python_initialization, made static.  New arg extlang.
3963         (gdbpy_initialized): New function.
3964         * python/python.h: #include "extension.h".  Delete #include
3965         "value.h", "mi/mi-cmds.h".
3966         (extension_language_python): Declare.
3967         (GDBPY_AUTO_FILE_NAME): Delete.
3968         (enum py_bt_status): Moved to extension.h and renamed to
3969         ext_lang_bt_status.
3970         (enum frame_filter_flags): Moved to extension.h.
3971         (enum py_frame_args): Moved to extension.h and renamed to
3972         ext_lang_frame_args.
3973         (finish_python_initialization): Delete.
3974         (eval_python_from_control_command): Delete.
3975         (source_python_script): Delete.
3976         (apply_val_pretty_printer): Delete.
3977         (apply_frame_filter): Delete.
3978         (preserve_python_values): Delete.
3979         (gdbpy_script_language_defn): Delete.
3980         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
3981         (start_type_printers, apply_type_printers, free_type_printers): Delete.
3982
3983         * auto-load.c: #include "extension.h".
3984         (GDB_AUTO_FILE_NAME): Delete.
3985         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
3986         (script_language_gdb): Delete, moved to extension.c and renamed to
3987         extension_language_gdb.
3988         (source_gdb_script_for_objfile): Delete.
3989         (auto_load_pspace_info): New member unsupported_script_warning_printed.
3990         (loaded_script): Change type of language member to
3991         struct extension_language_defn *.
3992         (init_loaded_scripts_info): Initialize
3993         unsupported_script_warning_printed.
3994         (maybe_add_script): Make static.  Change type of language arg to
3995         struct extension_language_defn *.
3996         (clear_section_scripts): Reset unsupported_script_warning_printed.
3997         (auto_load_objfile_script_1): Rewrite to use extension language API.
3998         (auto_load_objfile_script): Make public.  Remove support-compiled-in
3999         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
4000         (source_section_scripts): Rewrite to use extension language API.
4001         (load_auto_scripts_for_objfile): Rewrite to use
4002         auto_load_scripts_for_objfile.
4003         (collect_matching_scripts_data): Change type of language member to
4004         struct extension_language_defn *.
4005         (auto_load_info_scripts): Change type of language arg to
4006         struct extension_language_defn *.
4007         (unsupported_script_warning_print): New function.
4008         (script_not_found_warning_print): Make static.
4009         (_initialize_auto_load): Rewrite construction of scripts-directory
4010         help.
4011         * auto-load.h (struct objfile): Add forward decl.
4012         (struct script_language): Delete.
4013         (struct auto_load_pspace_info): Add forward decl.
4014         (struct extension_language_defn): Add forward decl.
4015         (maybe_add_script): Delete.
4016         (auto_load_objfile_script): Declare.
4017         (script_not_found_warning_print): Delete.
4018         (auto_load_info_scripts): Update prototype.
4019         (auto_load_gdb_scripts_enabled): Declare.
4020         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
4021         auto_load_python_scripts_enabled and made public.
4022         (script_language_python): Delete, moved to python.c.
4023         (gdbpy_script_language_defn): Delete.
4024         (info_auto_load_python_scripts): Update to use
4025         extension_language_python.
4026
4027         * breakpoint.c (condition_command): Replace call to
4028         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
4029         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
4030         with call to breakpoint_ext_lang_cond_says_stop.
4031         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
4032         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
4033         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
4034         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
4035         New arg slang.
4036         (local_setattro): Print name of extension language with existing
4037         stop condition.
4038
4039         * valprint.c (val_print, value_print): Update to call
4040         apply_ext_lang_val_pretty_printer.
4041         * cp-valprint.c (cp_print_value): Update call to
4042         apply_ext_lang_val_pretty_printer.
4043         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
4044         (gdbpy_apply_val_pretty_printer): Renamed from
4045         apply_val_pretty_printer.  New arg extlang.
4046         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
4047
4048         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
4049         extension language API.
4050         * cli/cli-script.c (execute_control_command): Update to call
4051         eval_ext_lang_from_control_command.
4052
4053         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
4054         enum ext_lang_bt_status values.  Update call to
4055         apply_ext_lang_frame_filter.
4056         (mi_cmd_stack_list_locals): Ditto.
4057         (mi_cmd_stack_list_args): Ditto.
4058         (mi_cmd_stack_list_variables): Ditto.
4059         * mi/mi-main.c: Delete #include "python/python-internal.h".
4060         Add #include "extension.h".
4061         (mi_cmd_list_features): Replace reference to python internal variable
4062         gdb_python_initialized with call to ext_lang_initialized_p.
4063
4064         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
4065         Update to use enum ext_lang_frame_args.  Update to call
4066         apply_ext_lang_frame_filter.
4067         * python/py-framefilter.c (extract_sym): Update to use enum
4068         ext_lang_bt_status.
4069         (extract_value, py_print_type, py_print_value): Ditto.
4070         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
4071         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
4072         (py_print_frame): Ditto.
4073         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
4074         New arg extlang.  Update to use enum ext_lang_bt_status.
4075
4076         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
4077         finish_python_initialization.  Replace with call to
4078         finish_ext_lang_initialization.
4079
4080         * typeprint.c (do_free_global_table): Update to call
4081         free_ext_lang_type_printers.
4082         (create_global_typedef_table): Update to call
4083         start_ext_lang_type_printers.
4084         (find_global_typedef): Update to call apply_ext_lang_type_printers.
4085         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
4086         (type_print_options): Change type of global_printers from "void *"
4087         to "struct ext_lang_type_printers *".
4088
4089         * value.c (preserve_values): Update to call preserve_ext_lang_values.
4090         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
4091         (gdbpy_preserve_values): Renamed from preserve_python_values.
4092         New arg extlang.
4093         (!HAVE_PYTHON, preserve_python_values): Delete.
4094
4095         * utils.c (quit_flag): Delete, moved to extension.c.
4096         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
4097         extension.c.
4098
4099         * eval.c: Delete #include "python/python.h".
4100         * main.c: Delete #include "python/python.h".
4101
4102         * defs.h: Update comment.
4103
4104 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
4105
4106         GDB 7.7 released.
4107
4108 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
4109
4110         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
4111         defined.
4112
4113 2014-02-05  Yao Qi  <yao@codesourcery.com>
4114
4115         * remote.c (remote_pass_signals): Remove local 'buf' and use
4116         rs->buf.
4117         (remote_program_signals): Likewise.
4118
4119 2014-02-05  Yao Qi  <yao@codesourcery.com>
4120
4121         * ctf.c: Include "inferior.h" and "gdbthread.h".
4122         (CTF_PID): A new macro.
4123         (ctf_open): Call inferior_appeared and add_thread_silent.
4124         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
4125         (ctf_thread_alive): New function.
4126         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
4127
4128 2014-02-05  Yao Qi  <yao@codesourcery.com>
4129
4130         Revert this patch:
4131
4132         2013-05-24  Yao Qi  <yao@codesourcery.com>
4133
4134         * tracepoint.c (TFILE_PID): Remove.
4135         (tfile_open): Don't add thread and inferior.
4136         (tfile_close): Don't set 'inferior_ptid'.  Don't call
4137         exit_inferior_silent.
4138         (tfile_thread_alive): Remove.
4139         (init_tfile_ops): Don't set field 'to_thread_alive' of
4140         tfile_ops.
4141
4142 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
4143
4144         * remote.c (remote_start_remote): Call remote_check_symbols even
4145         if only symbol-file (not file) has been given.
4146
4147 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4148
4149         * gdbarch.sh (skip_entrypoint): New callback.
4150         * gdbarch.c, gdbarch.h: Regenerate.
4151         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
4152         * infrun.c (fill_in_stop_func): Likewise.
4153         * ppc-linux-tdep.c: Include "elf/ppc64.h".
4154         (ppc_elfv2_elf_make_msymbol_special): New function.
4155         (ppc_elfv2_skip_entrypoint): Likewise.
4156         (ppc_linux_init_abi): Install them for ELFv2.
4157
4158 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4159
4160         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
4161         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
4162         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
4163         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
4164         structures returned in GPRs.
4165
4166 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4167
4168         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
4169         offset to the stack parameter list for the ELFv2 ABI.
4170
4171 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4172
4173         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
4174         set_gdbarch_convert_from_func_ptr_addr and
4175         set_gdbarch_elf_make_msymbol_special for ELFv1.
4176         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
4177         function descriptors on ELFv1.
4178         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
4179         set up r12 at function entry.
4180
4181 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4182
4183         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
4184         (struct gdbarch_tdep): New member elf_abi.
4185
4186         * rs6000-tdep.c: Include "elf/ppc64.h".
4187         (rs6000_gdbarch_init): Detect ELF ABI version.
4188
4189 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4190
4191         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
4192         within a register pair holding a DFP 128-bit value on little-endian.
4193         (ppc64_sysv_abi_return_value_base): Likewise.
4194         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
4195         (dfp_pseudo_register_write): Likewise.
4196
4197 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4198
4199         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
4200         offset on little-endian when passing _Decimal32.
4201         (ppc64_sysv_abi_return_value_base): Likewise for return values.
4202
4203 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4204
4205         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
4206         of the overlapped FP register within the VSX register on little-
4207         endian platforms.
4208         (efpr_pseudo_register_write): Likewise.
4209
4210 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4211
4212         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
4213         offset on little-endian when passing small structures.
4214
4215 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4216
4217         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
4218         (struct ppc64_sysv_argpos): New data structure.
4219         (ppc64_sysv_abi_push_float): Remove.
4220         (ppc64_sysv_abi_push_val): New function.
4221         (ppc64_sysv_abi_push_integer): Likewise.
4222         (ppc64_sysv_abi_push_freg): Likewise.
4223         (ppc64_sysv_abi_push_vreg): Likewise.
4224         (ppc64_sysv_abi_push_param): Likewise.
4225         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
4226         (ppc64_sysv_abi_return_value_base): New function.
4227         (ppc64_sysv_abi_return_value): Refactor to use it.
4228
4229 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4230
4231         * NEWS: Document new target powerpc64le-*-linux*.
4232
4233 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
4234
4235         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
4236         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
4237         core dumps.
4238         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
4239         register set used in ELF core dumps.  Add floating-point register set.
4240
4241 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
4242
4243         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite 
4244         dwarf2_to_gdb[] table using symbolic constants.  Adjust
4245         penultimate entry from number representing the PC register
4246         to symbolic constant representing the MDR register.  Add
4247         constant for the PC register to the end of the table.
4248
4249 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
4250
4251         * bsd-kvm.c: Include <sys/param.h>
4252
4253 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
4254
4255         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
4256
4257 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
4258
4259         * ada-lang.h (clear_ada_sym_cache): Delete.
4260
4261 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
4262
4263         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
4264
4265 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
4266
4267         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
4268           the sigreturn register save area only if the syscall is
4269           sigreturn.
4270
4271 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
4272
4273         * valops.c (value_slice): Minor reformatting.
4274
4275 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
4276
4277         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
4278
4279 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
4280
4281         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
4282         New static globals.
4283         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
4284         (ada_ignore_descriptive_types_p): New static global.
4285         (find_parallel_type_by_descriptive_type): Return immediately
4286         if ada_ignore_descriptive_types_p is set.
4287         (_initialize_ada_language): Register new commands "maintenance
4288         set ada", "maintenance show ada", "maintenance set ada
4289         ignore-descriptive-types" and "maintenance show ada
4290         ignore-descriptive-types".
4291         * NEWS: Add entry for new "maint ada set/show
4292         ignore-descriptive-types" commands.
4293
4294 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
4295
4296         * record-btrace.c (record_btrace_close): Call btrace_teardown
4297         for all threads.
4298
4299 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
4300
4301         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
4302         "ui-out.h".
4303
4304 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
4305
4306         * ada-typeprint (type_is_full_subrange_of_target_type):
4307         New function.
4308         (print_range): Add parameter bounds_prefered_p.  If not set,
4309         try printing range types using the name of their base type.
4310         (print_range_type): Add parameter bounds_prefered_p.
4311         Use it in call to print_range.
4312         (print_array_type, ada_print_type): Update calls to print_range
4313         and print_range_type.
4314
4315 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
4316
4317         * ada-typeprint.c (print_array_type, print_choices, print_range)
4318         (print_range_bound, print_dynamic_range_bound, print_range_type):
4319         Remove declaration.
4320
4321 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
4322
4323         * ada-typeprint.c (print_range): Add missing empty line
4324         after local declaration.
4325
4326 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
4327
4328         * ada-valprint.c (print_optional_low_bound): Get index_type's
4329         target type for as long as it is a TYPE_CODE_RANGE.
4330
4331 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
4332
4333         * procfs.c (procfs_make_note_section): Remove assertion and
4334         associated comment.
4335
4336 2014-01-24  Yao Qi  <yao@codesourcery.com>
4337
4338         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
4339         * corelow.c (get_core_siginfo): Likewise.
4340
4341 2014-01-24  Yao Qi  <yao@codesourcery.com>
4342
4343         * remote.c (remote_write_bytes_aux): Change type of 'len' to
4344         ULONGEST.  Don't check 'len' is negative.
4345         (remote_write_bytes):  Change type of 'len' to ULONGEST.
4346
4347 2014-01-23  Tom Tromey  <tromey@redhat.com>
4348
4349         PR python/16485:
4350         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
4351         Handle exception from frame.block.
4352         (FrameVars.fetch_frame_locals): Likewise.
4353
4354 2014-01-23  Tom Tromey  <tromey@redhat.com>
4355
4356         PR python/16487:
4357         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
4358         on a NULL pointer.  Move "goto error" to correct place.
4359
4360 2014-01-23  Tom Tromey  <tromey@redhat.com>
4361
4362         PR python/16491:
4363         * python/py-framefilter.c (apply_frame_filter): Call
4364         ensure_python_env after computing gdbarch.
4365
4366 2014-01-23  Yao Qi  <yao@codesourcery.com>
4367
4368         * target.c (raw_memory_xfer_partial): Change argument type
4369         from void * to gdb_byte *.
4370         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
4371
4372 2014-01-22  Doug Evans  <dje@google.com>
4373
4374         New gdbserver option --debug-format=timestamp.
4375         * NEWS: Mention it.
4376
4377 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
4378
4379         * syscalls/s390x-linux.xml: New file.
4380         * syscalls/s390-linux.xml: New file.
4381         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
4382         (XML_SYSCALL_FILENAME_S390X): Likewise.
4383         (op_svc): New enum value for SVC opcode.
4384         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
4385         (s390_linux_get_syscall_number): New function.
4386         (s390_gdbarch_init): Register '*get_syscall_number' and the
4387         syscall xml file name.
4388         * data-directory/Makefile.in (SYSCALLS_FILES): Add
4389         "s390-linux.xml" and "s390x-linux.xml".
4390         * NEWS: Announce new feature.
4391
4392 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
4393
4394         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
4395
4396 2014-01-22  Pedro Alves  <palves@redhat.com>
4397
4398         * xtensa-config.c: Include defs.h.
4399
4400 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
4401
4402         * common/common-utils.h: Add "ARI:" comment beside __func__
4403         reference.
4404
4405 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
4406
4407         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
4408         documentation a bit.
4409
4410 2014-01-21  Roland McGrath  <mcgrathr@google.com>
4411
4412         * configure.ac: Call AM_PROG_INSTALL_STRIP.
4413         * configure: Regenerate.
4414         * aclocal.m4: Regenerate.
4415         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
4416         New substituted variables.
4417         (install-strip): New target.
4418         (INSTALL_SCRIPT): New substituted variable.
4419         (FLAGS_TO_PASS): Add it.
4420         (install-only): Use $(INSTALL_SCRIPT) rather than
4421         $(INSTALL_PROGRAM) for gcore.
4422
4423 2014-01-20  Tom Tromey  <tromey@redhat.com>
4424
4425         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
4426         together.
4427
4428 2014-01-20  Tom Tromey  <tromey@redhat.com>
4429
4430         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
4431         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
4432         (deprecated_cmd_warning, complete_on_cmdlist): Update.
4433         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
4434         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
4435         (struct cmd_list_element) <flags>: Remove.
4436         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
4437         doc_allocated>: New fields.
4438         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
4439         bitfields.
4440         * maint.c (maintenance_do_deprecate): Update.
4441         * top.c (execute_command): Update.
4442
4443 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
4444
4445         * xtensa-linux-nat.c: Include asm/ptrace.h.
4446
4447 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4448
4449         * Makefile.in (SFILES): Add d-support.c.
4450         (COMMON_OBS): Add d-support.o.
4451         * d-lang.h (d_parse_symbol): Add comment, now defined in
4452         d-support.c.
4453         * d-lang.c (parse_call_convention)
4454         (parse_attributes, parse_function_types)
4455         (parse_function_args, parse_type, parse_identifier)
4456         (call_convention_p, d_parse_symbol): Move functions to ...
4457         * d-support.c: ... New file.
4458
4459 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4460
4461         * d-lang.h (d_parse_symbol): Add declaration.
4462         * d-lang.c (extract_identifiers)
4463         (extract_type_info): Remove functions.
4464         (parse_call_convention, parse_attributes)
4465         (parse_function_types, parse_function_args)
4466         (parse_type, parse_identifier, call_convention_p)
4467         (d_parse_symbol): New functions.
4468         (d_demangle): Use d_parse_symbol to demangle D symbols.
4469
4470 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4471
4472         * d-lang.h (struct builtin_d_type): New data type.
4473         (builtin_d_type): Add declaration.
4474         * d-lang.c (d_language_arch_info, build_d_types)
4475         (builtin_d_type): New functions.
4476         (enum d_primitive_types): New data type.
4477         (d_language_defn): Change c_language_arch_info to
4478         d_language_arch_info.
4479         (d_type_data): New static variable.
4480         (_initialize_d_language): Initialize d_type_data.
4481
4482 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4483
4484         * d-lang.h (d_main_name): Add declaration.
4485         * d-lang.c (d_main_name): New function.
4486         * symtab.c (find_main_name): Add call to d_main_name.
4487
4488 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4489
4490         * d-lang.c (d_language_defn): Change macro_expansion_c to
4491         macro_expansion_no.
4492
4493 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4494
4495         * MAINTAINERS: Add myself as a write-after-approval maintainer.
4496
4497 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
4498
4499         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
4500         gdb_exception" declaration.
4501         * remote.c (getpkt_or_notif_sane): Likewise.
4502
4503 2014-01-17  Doug Evans  <dje@google.com>
4504
4505         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
4506         function, contents of dirnames_to_char_ptr_vec_append moved here.
4507         (delim_string_to_char_ptr_vec): New function.
4508         (dirnames_to_char_ptr_vec_append): Rewrite.
4509         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
4510
4511 2014-01-17  Doug Evans  <dje@google.com>
4512
4513         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
4514         and moved here ...
4515         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
4516         #include "common-utils.h".
4517         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
4518         * common/vec.h (VEC_ASSERT_PASS): Update.
4519         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
4520         (MACH_CHECK_ERROR): Update.
4521
4522 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
4523
4524         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
4525         comments.
4526         * gdbarch.h: Regenerate.
4527
4528 2014-01-16  Tom Tromey  <tromey@redhat.com>
4529
4530         * value.c (struct value) <regnum>: Move earlier.
4531
4532 2014-01-16  Tom Tromey  <tromey@redhat.com>
4533
4534         * remote.c (extended_remote_create_inferior): Rename from
4535         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
4536         old implementation.
4537
4538 2014-01-16  Pedro Alves  <palves@redhat.com>
4539
4540         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
4541         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
4542         the backchain.
4543
4544 2014-01-16  Doug Evans  <dje@google.com>
4545
4546         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
4547
4548 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4549
4550         * btrace.h (btrace_thread_flag): New.
4551         (struct btrace_thread_info) <flags>: New.
4552         * record-btrace.c (record_btrace_resume_thread)
4553         (record_btrace_find_thread_to_move, btrace_step_no_history)
4554         (btrace_step_stopped, record_btrace_start_replaying)
4555         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
4556         (record_btrace_find_resume_thread): New.
4557         (record_btrace_resume, record_btrace_wait): Extend.
4558         (record_btrace_can_execute_reverse): New.
4559         (record_btrace_open): Fail in non-stop mode.
4560         (record_btrace_set_replay): Split into this, ...
4561         (record_btrace_stop_replaying): ... this, ...
4562         (record_btrace_clear_histories): ... and this.
4563         (init_record_btrace_ops): Init to_can_execute_reverse.
4564         * NEWS: Announce it.
4565
4566 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4567
4568         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
4569         (forward_target_decr_pc_after_break)
4570         (target_decr_pc_after_break): New.
4571         * target.c (forward_target_decr_pc_after_break)
4572         (target_decr_pc_after_break): New.
4573         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
4574         instead of gdbarch_decr_pc_after_break.
4575         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
4576         instead of gdbarch_decr_pc_after_break.
4577         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
4578         instead of gdbarch_decr_pc_after_break.
4579         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
4580         instead of gdbarch_decr_pc_after_break.
4581         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
4582         instead of gdbarch_decr_pc_after_break.
4583         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
4584         instead of gdbarch_decr_pc_after_break.
4585
4586 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4587
4588         * btrace.c: Include regcache.h.
4589         (btrace_add_pc): New.
4590         (btrace_enable): Call btrace_add_pc.
4591         (btrace_is_empty): New.
4592         * btrace.h (btrace_is_empty): New.
4593         * record-btrace.c (require_btrace, record_btrace_info): Call
4594         btrace_is_empty.
4595
4596 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4597
4598         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
4599         Support delta reads.
4600         (linux_disable_btrace): Change return type.
4601         * common/linux-btrace.h (linux_read_btrace): Change parameters
4602         and return type to allow error reporting.  Update users.
4603         (linux_disable_btrace): Change return type.  Update users.
4604         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
4605         New.
4606         (btrace_error): New.
4607         (btrace_block) <begin>: Comment on BEGIN == 0.
4608         * btrace.c (btrace_compute_ftrace): Start from the end of
4609         the current trace.
4610         (btrace_stitch_trace, btrace_clear_history): New.
4611         (btrace_fetch): Read delta trace, return if replaying.
4612         (btrace_clear): Move clear history code to btrace_clear_history.
4613         (parse_xml_btrace): Throw an error if parsing failed.
4614         * target.h (struct target_ops) <to_read_btrace>: Change parameters
4615         and return type to allow error reporting.
4616         (target_read_btrace): Change parameters and return type to allow
4617         error reporting.
4618         * target.c (target_read_btrace): Update.
4619         * remote.c (remote_read_btrace): Support delta reads.  Pass
4620         errors on.
4621         * NEWS: Announce it.
4622
4623 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4624
4625         * record.h (record_btrace_frame_unwind)
4626         (record_btrace_tailcall_frame_unwind): New declarations.
4627         * dwarf2-frame: Include record.h
4628         (dwarf2_frame_cfa): Throw an error for btrace frames.
4629         * record-btrace.c: Include hashtab.h.
4630         (btrace_get_bfun_name): New.
4631         (btrace_call_history): Call btrace_get_bfun_name.
4632         (struct btrace_frame_cache): New.
4633         (bfcache): New.
4634         (bfcache_hash, bfcache_eq, bfcache_new): New.
4635         (btrace_get_frame_function): New.
4636         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
4637         (record_btrace_frame_this_id): Compute own id.
4638         (record_btrace_frame_prev_register): Provide PC, throw_error
4639         for all other registers.
4640         (record_btrace_frame_sniffer): Detect btrace frames.
4641         (record_btrace_tailcall_frame_sniffer): New.
4642         (record_btrace_frame_dealloc_cache): New.
4643         (record_btrace_frame_unwind): Add new functions.
4644         (record_btrace_tailcall_frame_unwind): New.
4645         (_initialize_record_btrace): Allocate cache.
4646         * btrace.c (btrace_clear): Call reinit_frame_cache.
4647         * NEWS: Announce it.
4648
4649 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4650
4651         * record-btrace.c (record_btrace_set_replay)
4652         (record_btrace_goto_begin, record_btrace_goto_end)
4653         (record_btrace_goto): New.
4654         (init_record_btrace_ops): Initialize them.
4655         * NEWS: Announce it.
4656
4657 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4658
4659         * record-btrace.c (record_btrace_find_new_threads)
4660         (record_btrace_thread_alive): New.
4661         (init_record_btrace_ops): Initialize to_find_new_threads and
4662         to_thread_alive.
4663
4664 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4665
4666         * record-btrace.c (record_btrace_resume): New.
4667         (record_btrace_wait): New.
4668         (init_record_btrace_ops): Initialize to_wait and to_resume.
4669
4670 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4671
4672         * record-btrace.c (record_btrace_xfer_partial)
4673         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
4674         (record_btrace_allow_memory_access): New.
4675         (init_record_btrace_ops): Initialize new methods.
4676         * target.c (raw_memory_xfer_partial): Bail out if target reports
4677         that this memory is not available.
4678
4679 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4680
4681         * target.h (target_ops) <to_insert_breakpoint>
4682         <to_remove_breakpoint>: Add target_ops parameter.
4683         (forward_target_insert_breakpoint): New.
4684         (forward_target_remove_breakpoint): New.
4685         (memory_remove_breakpoint, memory_insert_breakpoint):
4686         Add target_ops parameter.
4687         * target.c (target_insert_breakpoint): Split into this and ...
4688         (forward_target_insert_breakpoint): ... this.
4689         (target_remove_breakpoint): Split into this and ...
4690         (forward_target_remove_breakpoint): ... this.
4691         (debug_to_insert_breakpoint): Add target_ops parameter.
4692         Call forward_target_insert_breakpoint.
4693         (debug_to_remove_breakpoint): Add target_ops parameter.
4694         Call forward_target_remove_breakpoint.
4695         (update_current_target): Do not inherit or default to_insert_breakpoint
4696         and to_remove_breakpoint.
4697         * corelow.c (ignore): Add target_ops parameter.
4698         * exec.c (ignore): Add target_ops parameter.
4699         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
4700         Add target_ops parameter.
4701         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
4702         Add target_ops parameter.
4703         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
4704         Add target_ops parameter.
4705         * record-full.c (record_full_beneath_to_insert_breakpoint)
4706         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
4707         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
4708         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
4709         (record_full_core_remove_breakpoint): Add target_ops parameter.
4710         Update users.
4711         (record_full_beneath_to_insert_breakpoint_ops)
4712         (record_full_beneath_to_remove_breakpoint_ops)
4713         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
4714         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
4715         tmp_to_remove_breakpoint_ops,
4716         record_full_beneath_to_insert_breakpoint_ops, and
4717         record_full_beneath_to_remove_breakpoint_ops.
4718         * remote-m32r-sdi.c (m32r_insert_breakpoint)
4719         (m32r_remove_breakpoint): Add target_ops parameter.
4720         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
4721         Add target_ops parameter.
4722         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
4723         Add target_ops parameter.
4724
4725 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4726             Markus Metzger  <markus.t.metzger@intel.com>
4727
4728         * record-btrace.c: Include frame-unwind.h.
4729         (record_btrace_frame_unwind_stop_reason)
4730         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
4731         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
4732         New.
4733         (init_record_btrace_ops): Install it.
4734
4735 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4736
4737         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
4738         get_prev_frame_1.
4739
4740 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4741
4742         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
4743         earlier.
4744
4745 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4746
4747         * frame-unwind.c: Include target.h.
4748         (frame_unwind_try_unwinder): New function with code from ...
4749         (frame_unwind_find_by_frame): ... here.  New variable
4750         unwinder_from_target, call also target_get_unwinder)
4751         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
4752         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
4753         * target.h (struct target_ops): New fields to_get_unwinder and
4754         to_get_tailcall_unwinder.
4755         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
4756
4757 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4758
4759         * record-btrace.c (record_btrace_fetch_registers)
4760         (record_btrace_store_registers)
4761         (record_btrace_to_prepare_to_store): New.
4762         (init_record_btrace_ops): Add the above.
4763
4764 2014-01-16  Tom Tromey  <tromey@redhat.com>
4765
4766         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
4767         * target.h (struct target_ops) <to_prepare_to_store>: Add
4768         argument.
4769         (target_prepare_to_store): Add argument.
4770         * target.c (debug_to_prepare_to_store): Add argument.
4771         (update_current_target): Update.
4772         * remote.c (remote_prepare_to_store): Add 'self' argument.
4773         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
4774         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
4775         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
4776         * record-full.c (record_full_core_prepare_to_store): Add 'self'
4777         argument.
4778         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
4779         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
4780         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
4781         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
4782         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
4783
4784 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4785
4786         * btrace.h (replay) <replay>: New.
4787         (btrace_is_replaying): New.
4788         * btrace.c (btrace_clear): Free replay iterator.
4789         (btrace_is_replaying): New.
4790         * record-btrace.c (record_btrace_is_replaying): New.
4791         (record_btrace_info): Print insn number if replaying.
4792         (record_btrace_insn_history): Start at replay position.
4793         (record_btrace_call_history): Start at replay position.
4794         (init_record_btrace_ops): Init to_record_is_replaying.
4795
4796 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4797
4798         * record-btrace.c (record_btrace_insn_history_range): Include
4799         end.
4800         (record_btrace_insn_history_from): Adjust range.
4801         (record_btrace_call_history_range): Include
4802         end.
4803         (record_btrace_call_history_from): Adjust range.
4804         * NEWS: Announce changes.
4805
4806 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4807
4808         * record.h (enum record_print_flag)
4809         <record_print_indent_calls>: New.
4810         * record.c (get_call_history_modifiers): Recognize /c modifier.
4811         (_initialize_record): Document /c modifier.
4812         * record-btrace.c (btrace_call_history): Add btinfo parameter.
4813         Reorder fields.  Optionally indent the function name.  Update
4814         all users.
4815         * NEWS: Announce changes.
4816
4817 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4818
4819         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
4820
4821 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4822
4823         * btrace.c (ftrace_new_function): Start counting at one.
4824         * record-btrace.c (record_btrace_info): Adjust number of calls
4825         and insns.
4826         * NEWS: Announce it.
4827
4828 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4829
4830         * record-btrace.c (btrace_call_history_insn_range): Print
4831         insn range as [begin, end].
4832
4833 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4834
4835         * btrace.h (struct btrace_func_link): New.
4836         (enum btrace_function_flag): New.
4837         (struct btrace_inst): Rename to ...
4838         (struct btrace_insn): ...this. Update all users.
4839         (struct btrace_func) <ibegin, iend>: Remove.
4840         (struct btrace_func_link): New.
4841         (struct btrace_func): Rename to ...
4842         (struct btrace_function): ...this. Update all users.
4843         (struct btrace_function) <segment, flow, up, insn, insn_offset)
4844         (number, level, flags>: New.
4845         (struct btrace_insn_iterator): Rename to ...
4846         (struct btrace_insn_history): ...this.
4847         Update all users.
4848         (struct btrace_insn_iterator, btrace_call_iterator): New.
4849         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
4850         (struct btrace_target_info) <begin, end, level>
4851         <insn_history, call_history>: New.
4852         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
4853         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
4854         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
4855         (btrace_call_number, btrace_call_begin, btrace_call_end)
4856         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
4857         (btrace_find_function_by_number, btrace_set_insn_history)
4858         (btrace_set_call_history): New.
4859         * btrace.c (btrace_init_insn_iterator)
4860         (btrace_init_func_iterator, compute_itrace): Remove.
4861         (ftrace_print_function_name, ftrace_print_filename)
4862         (ftrace_skip_file): Change
4863         parameter to const.
4864         (ftrace_init_func): Remove.
4865         (ftrace_debug): Use new btrace_function fields.
4866         (ftrace_function_switched): Also consider gaining and
4867         losing symbol information).
4868         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
4869         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
4870         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
4871         New.
4872         (ftrace_new_function): Move. Remove debug print.
4873         (ftrace_update_lines, ftrace_update_insns): New.
4874         (ftrace_update_function): Check for call, ret, and jump.
4875         (compute_ftrace): Renamed to ...
4876         (btrace_compute_ftrace): ...this. Rewritten to compute call
4877         stack.
4878         (btrace_fetch, btrace_clear): Updated.
4879         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
4880         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
4881         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
4882         (btrace_call_number, btrace_call_begin, btrace_call_end)
4883         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
4884         (btrace_find_function_by_number, btrace_set_insn_history)
4885         (btrace_set_call_history): New.
4886         * record-btrace.c (require_btrace): Use new btrace thread
4887         info fields.
4888         (record_btrace_info, btrace_insn_history)
4889         (record_btrace_insn_history, record_btrace_insn_history_range):
4890         Use new btrace thread info fields and new iterator.
4891         (btrace_func_history_src_line): Rename to ...
4892         (btrace_call_history_src_line): ...this. Use new btrace
4893         thread info fields.
4894         (btrace_func_history): Rename to ...
4895         (btrace_call_history): ...this. Use new btrace thread info
4896         fields and new iterator.
4897         (record_btrace_call_history, record_btrace_call_history_range):
4898         Use new btrace thread info fields and new iterator.
4899
4900 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4901
4902         * frame.h (frame_id_build_unavailable_stack_special): New.
4903         * frame.c (frame_id_build_unavailable_stack_special): New.
4904
4905 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4906
4907         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
4908         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
4909         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
4910         to gdbarch.
4911         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
4912         (i386_insn_is_jump, i386_jmp_p): New.
4913         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
4914         insn_is_jump to gdbarch.
4915         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
4916         * gdbarch.h: Regenerated.
4917         * gdbarch.c: Regenerated.
4918         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
4919         (default_insn_is_jump): New.
4920         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
4921         (default_insn_is_jump): New.
4922
4923 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4924
4925         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
4926         Change to ...
4927         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
4928         (btrace_read_type) <btrace_read_new>: Change to ...
4929         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
4930
4931 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
4932
4933         * common/linux-btrace.c (linux_read_btrace): Free trace from
4934         previous iteration.
4935
4936 2014-01-15  Doug Evans  <dje@google.com>
4937
4938         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
4939         uint32_t.
4940
4941 2014-01-15  Tom Tromey  <tromey@redhat.com>
4942
4943         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
4944         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
4945         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
4946         (set_objfile_main_name): New function.
4947         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
4948         language_of_main>: New fields.
4949         (set_objfile_main_name): Declare.
4950         * symtab.c (find_main_name): Loop over objfiles to find the main
4951         name and language.
4952         (set_main_name): Now static.
4953         (get_main_info): Add comment.
4954         * symtab.h (set_main_name): Don't declare.
4955
4956 2014-01-15  Tom Tromey  <tromey@redhat.com>
4957
4958         * symtab.c (main_progspace_key): New global.
4959         (struct main_info): New.
4960         (name_of_main, language_of_main): Remove.
4961         (get_main_info, main_info_cleanup): New function.
4962         (set_main_name, main_name, main_language): Use get_main_info.
4963         (_initialize_symtab): Initialize main_progspace_key.
4964
4965 2014-01-15  Tom Tromey  <tromey@redhat.com>
4966
4967         * dbxread.c (process_one_symbol): Update.
4968         * dwarf2read.c (read_partial_die): Update.
4969         * symfile.c (set_initial_language): Call main_language.
4970         * symtab.c (language_of_main): Now static.
4971         (set_main_name): Add 'lang' parameter.
4972         (find_main_name): Update.
4973         (main_language): New function.
4974         (symtab_observer_executable_changed): Update.
4975         * symtab.h (set_main_name): Update.
4976         (language_of_main): Remove.
4977         (main_language): Declare.
4978
4979 2014-01-15  Tom Tromey  <tromey@redhat.com>
4980
4981         * symfile.c (init_entry_point_info): Use new "initialized" field.
4982         Update.
4983         * objfiles.h (struct entry_point) <initialized>: New field.
4984         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
4985         (struct objfile) <ei>: ...here.  Remove.
4986         * objfiles.c (entry_point_address_query): Update.
4987
4988 2014-01-15  Tom Tromey  <tromey@redhat.com>
4989
4990         * objfiles.c (entry_point_address_query): Relocate entry point
4991         address.
4992         (objfile_relocate1): Do not relocate entry point address.
4993         * objfiles.h (struct entry_info) <entry_point>: Update comment.
4994         <the_bfd_section_index>: New field.
4995         * symfile.c (init_entry_point_info): Find the entry point's
4996         section.
4997
4998 2014-01-15  Tom Tromey  <tromey@redhat.com>
4999
5000         * solib-frv.c (enable_break): Use entry_point_address_query.
5001
5002 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
5003
5004         * NEWS: Add note on improved process record-replay on
5005         arm*-linux* targets.
5006
5007 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
5008
5009         * arm-tdep.c (enum arm_record_result): New enum.
5010         (arm_record_unsupported_insn): New function.
5011         (arm_record_coproc_data_proc): Removed.
5012         (thumb2_record_ld_st_multiple): New function.
5013         (thumb2_record_ld_st_dual_ex_tbb): New function.
5014         (thumb2_record_data_proc_sreg_mimm): New function.
5015         (thumb2_record_ps_dest_generic): New function.
5016         (thumb2_record_branch_misc_cntrl): New function.
5017         (thumb2_record_str_single_data): New function.
5018         (thumb2_record_ld_mem_hints): New function.
5019         (thumb2_record_ld_word): New function.
5020         (thumb2_record_lmul_lmla_div): New function.
5021         (thumb2_record_decode_insn_handler): New function.
5022         (decode_insn): Add thumb32 instruction handlers.
5023
5024 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
5025
5026         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
5027         (struct arm_linux_record_tdep): Declare.
5028         (arm_canonicalize_syscall): New function.
5029         (arm_all_but_pc_registers_record): New function.
5030         (arm_linux_syscall_record): New function.
5031         (arm_linux_init_abi): Add syscall recording constructs.
5032         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
5033         decoding.  (arm_record_coproc_data_proc): Update arm syscall
5034         decoding.
5035         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
5036         <arm_syscall_record>: New field.
5037         * configure.tgt (arm*-*-linux*): Add linux-record.o to
5038         gdb_target_obs.
5039
5040 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
5041
5042         * arm-tdep.c (thumb_record_misc): Update to use sp as base
5043         register for push instruction recording.
5044
5045 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
5046
5047         * arm-tdep.c (thumb_record_misc): Update to correct logical
5048         error while recording ldm, ldmia and pop instructions.
5049
5050 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
5051
5052         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
5053
5054 2014-01-15  Pedro Alves  <palves@redhat.com>
5055
5056         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
5057         (go32_resume, go32_fetch_registers, store_register)
5058         (go32_store_registers, go32_prepare_to_store)
5059         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
5060         (go32_create_inferior, go32_can_run, go32_terminal_init)
5061         (go32_terminal_inferior, go32_terminal_ours): Delete forward
5062         declarations.
5063
5064 2014-01-15  Tom Tromey  <tromey@redhat.com>
5065
5066         * target.h (async_callback_ftype): New typedef.
5067         (struct target_ops) <to_async>: Use it.
5068
5069 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
5070
5071         * python/py-value.c (get_field_type): Remove unnecessary curly
5072         braces for single-statement if block.
5073
5074 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
5075
5076         * python/py-type.c (convert_field): Add missing empty line
5077         after declarations.
5078
5079 2014-01-14  Doug Evans  <dje@google.com>
5080
5081         * symfile.h (expand_symtabs_matching): Renamed from
5082         expand_partial_symbol_names.  Update prototype.
5083         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
5084         * symfile.c (expand_symtabs_matching): Renamed from
5085         expand_partial_symbol_names.  New args file_matcher, kind.
5086         Rename arg fun to symbol_matcher.
5087         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
5088         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
5089         ada_expand_partial_symbol_name.
5090         (ada_make_symbol_completion_list): Update to call
5091         expand_symtabs_matching.
5092         (ada_add_global_exceptions): Call expand_symtabs_matching.
5093         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
5094         call map_symbol_filenames.
5095         * symtab.c (sources_info): Update to call map_symbol_filenames.
5096         (search_symbols): Call expand_symtabs_matching.
5097         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
5098         (default_make_symbol_completion_list_break_on): Update to call
5099         expand_symtabs_matching.
5100         (make_source_files_completion_list): Update to call
5101         map_symbol_filenames.
5102
5103 2014-01-14  Doug Evans  <dje@google.com>
5104
5105         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
5106         (expand_symtabs_symbol_matcher_ftype): New typedef.
5107         (quick_symbol_functions.expand_symtabs_matching): Update to use.
5108         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
5109         * symfile.c (expand_partial_symbol_names): Update to use
5110         expand_symtabs_symbol_matcher_ftype.
5111         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
5112         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
5113         Arg name_matcher renamed to symbol_matcher.
5114         * psymtab.c (recursively_search_psymtabs): Update to use
5115         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
5116         sym_matcher.
5117         (expand_symtabs_matching_via_partial): Update to use
5118         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
5119         Arg name_matcher renamed to symbol_matcher.
5120
5121 2014-01-14  Doug Evans  <dje@google.com>
5122
5123         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
5124         (map_partial_symbol_filenames): Ditto.
5125         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
5126         (map_partial_symbol_filenames): Ditto.
5127         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
5128         (map_partial_symbol_filenames): Ditto.
5129         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
5130         (map_partial_symbol_filenames): Ditto.
5131         * symtab.c: Delete #include "psymtab.h".
5132
5133 2014-01-14  Pedro Alves  <palves@redhat.com>
5134             Tom Tromey  <tromey@redhat.com>
5135
5136         * infrun.c (use_displaced_stepping): Use find_record_target
5137         instead of RECORD_IS_USED.
5138         (adjust_pc_after_break): Use record_full_is_used instead of
5139         RECORD_IS_USED.
5140         * record-btrace.c (record_btrace_open): Call record_preopen
5141         instead of checking RECORD_IS_USED.
5142         * record-full.c (record_full_shortname)
5143         (record_full_core_shortname): New globals.
5144         (record_full_is_used): New function.
5145         (find_full_open): Call record_preopen instead of checking
5146         RECORD_IS_USED.
5147         (init_record_full_ops): Set the target's shortname to
5148         record_full_shortname.
5149         (init_record_full_core_ops): Set the target's shortname to
5150         record_full_core_shortname.
5151         * record-full.h (record_full_is_used): Declare.
5152         * record.c (find_record_target): Make extern.
5153         (record_preopen): New function.
5154         * record.h (RECORD_IS_USED): Delete macro.
5155         (find_record_target, record_preopen): Declare functions.
5156
5157 2014-01-14  Yao Qi  <yao@codesourcery.com>
5158
5159         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
5160         'len''s type to ULONGEST.
5161         (core_xfer_shared_libraries_aix): Likewise.
5162         * gdbarch.c, gdbarch.h: Regenerated.
5163         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
5164         Change type of 'len' to ULONGEST.
5165         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5166         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5167
5168 2014-01-14  Yao Qi  <yao@codesourcery.com>
5169
5170         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
5171         type of 'len' to ULONGEST.
5172         (linux_xfer_osdata_processgroups): Likewise.
5173         (linux_xfer_osdata_threads): Likewise.
5174         (linux_xfer_osdata_fds): Likewise.
5175         (linux_xfer_osdata_isockets): Likewise.
5176         (linux_xfer_osdata_shm): Likewise.
5177         (linux_xfer_osdata_sem): Likewise.
5178         (linux_xfer_osdata_msg): Likewise.
5179         (linux_common_xfer_osdata): Likewise.
5180         (struct osdata_type) <getter>: Likewise.
5181         * common/linux-osdata.h (linux_common_xfer_osdata): Update
5182         the declaration.
5183
5184 2014-01-14  Yao Qi  <yao@codesourcery.com>
5185
5186         * target.h (target_xfer_partial_ftype): Update.
5187         (struct target_ops) <to_xfer_partial>: Change 'len' type to
5188         ULONGEST.
5189         * aix-thread.c (aix_thread_xfer_partial): Change type of
5190         argument 'len' to ULONGEST.
5191         * auxv.c (procfs_xfer_auxv): Likewise.
5192         (ld_so_xfer_auxv): Likewise.
5193         (memory_xfer_auxv): Likewise.
5194         * bfd-target.c (target_bfd_xfer_partial): Likewise.
5195         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5196         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5197         * corelow.c (core_xfer_partial): Likewise.
5198         * ctf.c (ctf_xfer_partial): Likewise.
5199         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
5200         '%u'.
5201         (darwin_read_dyld_info): Likewise.
5202         (darwin_xfer_partial): Likewise.
5203         * exec.c (section_table_xfer_memory_partial): Likewise.
5204         (exec_xfer_partial): Likewise.
5205         * exec.h (section_table_xfer_memory_partial): Update
5206         declaration.
5207         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
5208         instead of plongest.
5209         (gnu_xfer_partial): Likewise.
5210         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
5211         (ia64_hpux_xfer_solib_got): Likewise.
5212         (ia64_hpux_xfer_partial): Likewise.
5213         * ia64-linux-nat.c (ia64_linux_xfer_partial):
5214         * inf-ptrace.c (inf_ptrace_xfer_partial):
5215         * inf-ttrace.c (inf_ttrace_xfer_partial):
5216         * linux-nat.c (linux_xfer_siginfo): Likewise.
5217         (linux_nat_xfer_partial): Likewise.
5218         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
5219         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
5220         * monitor.c (monitor_xfer_memory): Likewise.
5221         (monitor_xfer_partial): Likewise.
5222         * procfs.c (procfs_xfer_partial): Likewise.
5223         * record-full.c (record_full_xfer_partial): Likewise.
5224         (record_full_core_xfer_partial): Likewise.
5225         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
5226         instead of plongest.
5227         (gdbsim_xfer_partial): Likewise.
5228         * remote.c (remote_xfer_partial): Likewise.
5229         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5230         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5231         declaration.
5232         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5233         (rs6000_xfer_shared_libraries): Likewise.
5234         * sol-thread.c (sol_thread_xfer_partial): Likewise.
5235         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5236         (sparc_xfer_partial): Likewise.
5237         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5238         (spu_xfer_partial): Likewise.
5239         * spu-multiarch.c (spu_xfer_partial): Likewise.
5240         * target.c (target_read_live_memory): Likewise.
5241         (memory_xfer_live_readonly_partial): Likewise.
5242         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
5243         (target_xfer_partial, default_xfer_partial): Likewise.
5244         (current_xfer_partial): Likewise.
5245         * tracepoint.c (tfile_xfer_partial): Likewise.
5246         * windows-nat.c (windows_xfer_memory): Likewise.  Call
5247         pulongest instead of plongest.
5248         (windows_xfer_partial): Likewise.
5249         (windows_xfer_shared_libraries): Likewise.
5250
5251 2014-01-14  Yao Qi  <yao@codesourcery.com>
5252
5253         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
5254         target_xfer_partial_ftype.
5255
5256 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
5257
5258         PR python/15464
5259         PR python/16113
5260         * valops.c (value_struct_elt_bitpos): New function
5261         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
5262         object to 'None' if the field name is an empty string ("").
5263         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
5264         attribute to look for a field when 'name' is 'None'.
5265         (get_field_type): New function
5266
5267 2014-01-13  Doug Evans  <dje@google.com>
5268
5269         PR symtab/16426
5270         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
5271         (try_open_dwop_file): Ditto.
5272         * gdb_bfd.c: #include "vec.h".
5273         (bfdp): New typedef.
5274         (struct gdb_bfd_data): New member included_bfds.
5275         (gdb_bfd_unref): Unref all included bfds.
5276         (gdb_bfd_record_inclusion): New function.
5277         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
5278
5279 2014-01-13  Tom Tromey  <tromey@redhat.com>
5280
5281         * gdbcore.h (deprecated_core_resize_section_table): Remove.
5282
5283 2014-01-13  Tom Tromey  <tromey@redhat.com>
5284
5285         * defs.h (use_windows): Remove.
5286         * gdb.c (main): Update.
5287         * main.c (captured_main, gdb_main): Update.
5288         * main.h (struct captured_main_args) <use_windows>: Remove.
5289         * top.c (use_windows): Remove.
5290
5291 2014-01-13  Tom Tromey  <tromey@redhat.com>
5292
5293         * defs.h (deprecated_flush_hook): Remove.
5294
5295 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5296
5297         PR threads/16216
5298         * linux-thread-db.c (try_thread_db_load): Add parameter
5299         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
5300         (try_thread_db_load_from_pdir_1): Move it there from here.
5301         (try_thread_db_load_from_sdir): Update caller.
5302         (try_thread_db_load_from_dir): Move it there from here.
5303
5304 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
5305
5306         * regformats/regdat.sh: Always rewrite the register file.
5307
5308 2014-01-13  Pedro Alves  <palves@redhat.com>
5309
5310         * Makefile.in (CHECK_HEADERS): New variable.
5311         (check-headers:): New rule.
5312
5313 2014-01-13  Tom Tromey  <tromey@redhat.com>
5314
5315         * cli/cli-setshow.c (do_set_command): Update.
5316         * defs.h (deprecated_set_hook): Remove.
5317         * top.c (deprecated_set_hook): Remove.
5318
5319 2014-01-13  Pedro Alves  <palves@redhat.com>
5320
5321         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
5322         the tracepoint if the PC is a pseudo-register.
5323
5324 2014-01-13  Tom Tromey  <tromey@redhat.com>
5325
5326         * defs.h (XCALLOC): Remove.
5327         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
5328         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
5329         * dwarf2loc.c (allocate_piece_closure): Likewise.
5330         * elfread.c (elf_symfile_segments): Likewise.
5331         (elf_symfile_segments): Likewise.
5332         * gdbtypes.c (copy_type_recursive): Likewise.
5333         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
5334         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
5335         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
5336         XCALLOC.
5337         * mt-tdep.c (mt_gdbarch_init): Likewise.
5338         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
5339         XCALLOC.
5340         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
5341         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
5342         * registry.c (registry_alloc_data): Likewise.
5343         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
5344         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5345         * serial.c (serial_fdopen_ops): Likewise.
5346         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
5347         XCALLOC.
5348         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
5349         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
5350         not XCALLOC.
5351
5352 2014-01-13  Tom Tromey  <tromey@redhat.com>
5353
5354         * defs.h (XMALLOC): Remove.
5355         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
5356         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5357         * cli-out.c (struct ui_out *): Likewise.
5358         * cli/cli-dump.c (add_dump_command): Likewise.
5359         (add_dump_command): Likewise.
5360         * complaints.c (get_complaints): Likewise.
5361         (find_complaint): Likewise.
5362         * dwarf2-frame.c (execute_cfa_program): Likewise.
5363         * dwarf2read.c (abbrev_table_read_table): Likewise.
5364         * gdbarch.sh: Likewise.
5365         * gdbarch.c: Rebuild.
5366         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
5367         * interps.c (interp_new): Likewise.
5368         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
5369         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
5370         * mi/mi-console.c (mi_console_file_new): Likewise.
5371         * mi/mi-interp.c (mi_interpreter_init): Likewise.
5372         * mi/mi-out.c (mi_out_new): Likewise.
5373         * mi/mi-parse.c (mi_parse): Likewise.
5374         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
5375         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
5376         * observer.c (xalloc_observer_list_node): Likewise.
5377         * regcache.c (regcache_xmalloc_1): Likewise.
5378         * reggroups.c (reggroup_new): Likewise.
5379         (_initialize_reggroup): Likewise.
5380         * registry.c (register_data_with_cleanup): Likewise.
5381         * remote.c (remote_notif_stop_alloc_reply): Likewise.
5382         * ser-base.c (serial_ttystate): Likewise.
5383         * ser-mingw.c (make_pipe_state): Likewise.
5384         * ser-pipe.c (pipe_open): Likewise.
5385         * serial.c (serial_open): Likewise.
5386         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5387         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
5388         (tui_alloc_win_info): Likewise.
5389         (tui_add_content_elements): Likewise.
5390         * tui/tui-file.c (tui_file_new): Likewise.
5391         * tui/tui-out.c (tui_out_new): Likewise.
5392         * ui-file.c (mem_file_new): Likewise.
5393         * ui-out.c (push_level): Likewise.
5394         (make_cleanup_ui_out_end): Likewise.
5395         (append_header_to_list): Likewise.
5396         (ui_out_new): Likewise.
5397         * user-regs.c (user_reg_add_builtin): Likewise.
5398
5399 2014-01-13  Tom Tromey  <tromey@redhat.com>
5400
5401         * defs.h (XZALLOC): Remove.
5402         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
5403         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
5404         (get_ada_tasks_inferior_data): Likewise.
5405         * auto-load.c (get_auto_load_pspace_data): Likewise.
5406         * auxv.c (get_auxv_inferior_data): Likewise.
5407         * bfd-target.c (target_bfd_reopen): Likewise.
5408         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
5409         (deprecated_insert_raw_breakpoint): Likewise.
5410         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
5411         * corelow.c (core_open): Likewise.
5412         * darwin-nat.c (darwin_check_new_threads): Likewise.
5413         (darwin_attach_pid): Likewise.
5414         * dummy-frame.c (dummy_frame_push): Likewise.
5415         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5416         * dwarf2loc.c (allocate_piece_closure): Likewise.
5417         * elfread.c (elf_symfile_segments): Likewise.
5418         * eval.c (ptrmath_type_p): Likewise.
5419         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
5420         * gdbtypes.c (alloc_type_arch): Likewise.
5421         (alloc_type_instance): Likewise.
5422         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
5423         * inf-child.c (inf_child_can_use_agent): Likewise.
5424         * inflow.c (get_inflow_inferior_data): Likewise.
5425         * infrun.c (save_infcall_suspend_state): Likewise.
5426         * jit.c (jit_reader_load): Likewise.
5427         (get_jit_objfile_data): Likewise.
5428         (get_jit_program_space_data): Likewise.
5429         (jit_object_open_impl): Likewise.
5430         (jit_symtab_open_impl): Likewise.
5431         (jit_block_open_impl): Likewise.
5432         (jit_frame_sniffer): Likewise.
5433         * linux-fork.c (add_fork): Likewise.
5434         * maint.c (make_command_stats_cleanup): Likewise.
5435         * objfiles.c (get_objfile_pspace_data): Likewise.
5436         * opencl-lang.c (struct lval_closure): Likewise.
5437         * osdata.c (osdata_start_osdata): Likewise.
5438         * progspace.c (new_address_space): Likewise.
5439         (add_program_space): Likewise.
5440         * remote-sim.c (get_sim_inferior_data): Likewise.
5441         * sh-tdep.c (sh_gdbarch_init): Likewise.
5442         * skip.c (Ignore): Likewise.
5443         (skip_delete_command): Likewise.
5444         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
5445         (library_list_start_library): Likewise.
5446         (solib_aix_current_sos): Likewise.
5447         * solib-darwin.c (get_darwin_info): Likewise.
5448         (darwin_current_sos): Likewise.
5449         * solib-dsbt.c (get_dsbt_info): Likewise.
5450         * solib-ia64-hpux.c (new_so_list): Likewise.
5451         (ia64_hpux_get_solib_linkage_addr): Likewise.
5452         * solib-spu.c (append_ocl_sos): Likewise.
5453         (spu_current_sos): Likewise.
5454         * solib-svr4.c (get_svr4_info): Likewise.
5455         (svr4_keep_data_in_core): Likewise.
5456         (library_list_start_library): Likewise.
5457         (svr4_default_sos): Likewise.
5458         (svr4_read_so_list): Likewise.
5459         * solib-target.c (library_list_start_library): Likewise.
5460         (solib_target_current_sos): Likewise.
5461         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5462         * symfile-debug.c (install_symfile_debug_logging): Likewise.
5463         * symfile.c (default_symfile_segments): Likewise.
5464         * target-descriptions.c (tdesc_data_init): Likewise.
5465         (tdesc_create_reg): Likewise.
5466         (struct tdesc_type *): Likewise.
5467         (tdesc_create_vector): Likewise.
5468         (tdesc_set_struct_size): Likewise.
5469         (struct tdesc_type *): Likewise.
5470         (tdesc_free_feature): Likewise.
5471         (tdesc_create_feature): Likewise.
5472         * windows-nat.c (windows_add_thread): Likewise.
5473         (windows_make_so): Likewise.
5474         * xml-support.c (gdb_xml_body_text): Likewise.
5475         (gdb_xml_create_parser_and_cleanup): Likewise.
5476         (xml_process_xincludes): Likewise.
5477         * xml-syscall.c (allocate_syscalls_info): Likewise.
5478         (syscall_create_syscall_desc): Likewise.
5479
5480 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
5481
5482         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
5483         function, with code from i386_stap_parse_special_token.
5484         (i386_stap_parse_special_token_three_arg_disp): Likewise.
5485         (i386_stap_parse_special_token): Move code to the two functions
5486         above; simplify it.
5487
5488 2014-01-09  Pedro Alves  <palves@redhat.com>
5489             Hui Zhu  <hui@codesourcery.com>
5490
5491         PR gdb/16101
5492         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
5493         bp_err_string.  Don't mark the location shlib_disabled if the
5494         error thrown wasn't a generic or memory error.  Catch errors
5495         thrown while inserting breakpoints in overlayed code.  Output
5496         error message of software breakpoints.
5497         * remote.c (remote_insert_breakpoint): If this breakpoint has
5498         target-side commands but this stub doesn't support Z0 packets,
5499         throw NOT_SUPPORTED_ERROR error.
5500         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
5501         * target.h (target_insert_breakpoint): Extend comment.
5502         (target_insert_hw_breakpoint): Add comment.
5503
5504 2014-01-08  Pedro Alves  <palves@redhat.com>
5505
5506         * remote.c (remote_add_thread): Add threads silently if starting
5507         up.
5508         (remote_notice_new_inferior): If in all-stop, and starting up,
5509         don't call notice_new_inferior.
5510         (get_current_thread): New function, factored out from ...
5511         (add_current_inferior_and_thread): ... this.  Adjust.
5512         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
5513         found any thread, then select the remote's current thread as GDB's
5514         current thread too.
5515
5516 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
5517
5518         * NEWS: Create a new section for the next release branch.
5519         Rename the section of the current branch, now that it has
5520         been cut.
5521
5522 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
5523
5524         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
5525         * version.in: Bump version to 7.7.50.DATE-cvs.
5526
5527 2014-01-08  Yao Qi  <yao@codesourcery.com>
5528
5529         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
5530         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
5531         (spu_xfer_partial): Cast 'buf' to 'const char *'.
5532
5533 2014-01-08  Yao Qi  <yao@codesourcery.com>
5534
5535         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
5536         return value of bfd_get_filename to symbol_file_add_from_bfd.
5537
5538 2014-01-08  Pierre Muller  <muller@sourceware.org>
5539
5540         Fix PR16201.
5541         * coff-pe-read.c (struct read_pe_section_data): Add index field.
5542         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
5543         to prim_record_mininal_symbol_and_info.
5544         (add_pe_forwarded_sym): Use known section number of forwarded symbol
5545         in call to prim_record_minimal_symbol_and_info.
5546         (read_pe_exported_syms): Set index field of section_data.
5547
5548 2014-01-07  Andrew Pinski  <apinski@cavium.com>
5549
5550         * features/aarch64-core.xml (cpsr): Change to be 64bit.
5551         * features/aarch64.c: Regenerate.
5552
5553 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
5554
5555         * target.c (return_null): Define.
5556         (update_current_target): Use it instead of return_zero for
5557         functions that return a pointer.
5558
5559 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5560
5561         * source.c (add_path): Fix check for duplicated paths in the previously
5562         included paths.
5563
5564 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
5565
5566         * ada-lang.c: Remove duplicated include statements.
5567         * alphabsd-nat.c: Ditto.
5568         * amd64-darwin-tdep.c: Ditto.
5569         * amd64fbsd-nat.c: Ditto.
5570         * auto-load.c: Ditto.
5571         * ax-gdb.c: Ditto.
5572         * breakpoint.c: Ditto.
5573         * dbxread.c: Ditto.
5574         * fork-child.c: Ditto.
5575         * gdb_usleep.c: Ditto.
5576         * i386-darwin-tdep.c: Ditto.
5577         * i386fbsd-nat.c: Ditto.
5578         * infcmd.c: Ditto.
5579         * inferior.c: Ditto.
5580         * jv-lang.c: Ditto.
5581         * linux-nat.c: Ditto.
5582         * linux-tdep.c: Ditto.
5583         * m68kbsd-nat.c: Ditto.
5584         * m68klinux-nat.c: Ditto.
5585         * microblaze-tdep.c: Ditto.
5586         * mips-linux-tdep.c: Ditto.
5587         * mn10300-tdep.c: Ditto.
5588         * nto-tdep.c: Ditto.
5589         * opencl-lang.c: Ditto.
5590         * osdata.c: Ditto.
5591         * printcmd.c: Ditto.
5592         * regcache.c: Ditto.
5593         * remote-m32r-sdi.c: Ditto.
5594         * remote.c: Ditto.
5595         * symfile.c: Ditto.
5596         * symtab.c: Ditto.
5597         * tilegx-linux-nat.c: Ditto.
5598         * tilegx-tdep.c: Ditto.
5599         * tracepoint.c: Ditto.
5600         * valops.c: Ditto.
5601         * vaxbsd-nat.c: Ditto.
5602         * windows-nat.c: Ditto.
5603         * xtensa-tdep.c: Ditto.
5604
5605 2014-01-07  Yao Qi  <yao@codesourcery.com>
5606
5607         * spu-linux-nat.c (_initialize_spu_nat): Declare.
5608
5609 2014-01-07  Yao Qi  <yao@codesourcery.com>
5610             Joel Brobecker  <brobecker@adacore.com>
5611
5612         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
5613         (pdc_write_regs): Likewise.
5614         (fetch_regs_kernel_thread): Likewise.
5615         (store_regs_kernel_thread): Likewise.
5616
5617 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5618
5619         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
5620         tagged type objects to their actual type.
5621
5622 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5623
5624         * ada-valprint.c (print_field_values): Add "language" parameter.
5625         Update calls to print_field_values and print_variant_part.
5626         Pass new parameter "language" in call to val_print instead
5627         of "current_language".  Replace call to ada_val_print by call
5628         to val_print.
5629         (print_variant_part): Add "language" parameter.
5630         (ada_val_print_struct_union): Update call to print_field_values.
5631
5632 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5633
5634         * ada-valprint.c (ui_memcpy): Delete.
5635         (ada_print_floating): Update documentation.  Add empty line
5636         between between function documentation and implementation.
5637         Delete variable "buffer".  Use ui_file_xstrdup in place of
5638         ui_file_put.  Minor adjustments following this change.
5639
5640 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5641
5642         * ada-valprint.c (ada_val_print_string): New function,
5643         extracted from ada_val_print_array.
5644         (ada_val_print_array): Replace extracted code by call
5645         to ada_val_print_string followed by a return.  Move
5646         "else" branch to the function's top block.
5647
5648 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5649
5650         * ada-valprint.c (ada_val_print_array): Move implementation
5651         down.  Rename parameter "offset" and "val" into "offset_aligned"
5652         and "original_value" respectively.  Add parameter "offset".
5653
5654 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5655
5656         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
5657         re-organizing the code. Change the "???" message printed
5658         when target type is a TYPE_CODE_UNDEF into
5659         "<ref to undefined type>".
5660
5661 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5662
5663         * ada-valprint.c (print_record): Delete, implementation inlined...
5664         (ada_val_print_struct_union): ... here.  Remove call to
5665         ada_check_typedef in inlined implementation.
5666
5667 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5668
5669         * ada-valprint.c (ada_val_print_gnat_array): New function,
5670         extracted from ada_val_print_1;
5671         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
5672         (ada_val_print_flt, ada_val_print_struct_union)
5673         (ada_val_print_ref): Likewise.
5674         (ada_val_print_1): Delete variables i and elttype.
5675         Replace extracted-out code by call to corresponding
5676         new functions.
5677
5678 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5679
5680         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
5681
5682 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5683
5684         * ada-valprint.c (ada_val_print_1): Replace calls to
5685         ada_val_print_1 by calls to val_print.
5686
5687 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5688
5689         * ada-valprint.c (ada_val_print_1): Add parameter "language".
5690         Update calls to self accordingly.  Replace calls to c_val_print
5691         by calls to val_print.
5692
5693 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5694
5695         * ada-valprint.c (print_record): Delete declaration.
5696         (adjust_type_signedness, ada_val_print_1): Likewise.
5697         (ada_val_print): Move function implementation down.
5698         (print_variant_part, print_field_values, print_record):
5699         Move function implementation up.
5700
5701 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
5702
5703         * python/py-type.c (typy_get_name): New function.
5704         (type_object_getset): Add entry for attribute "name".
5705         * NEWS: Add entry mentioning this new attribute.
5706
5707 2014-01-07  Yao Qi  <yao@codesourcery.com>
5708
5709         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
5710         statement.
5711
5712 2014-01-07  Yao Qi  <yao@codesourcery.com>
5713
5714         * gnu-nat.c (info_port_rights): Add qualifier const to
5715         argument args.
5716
5717 2014-01-07  Yao Qi  <yao@codesourcery.com>
5718
5719         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
5720
5721 2014-01-07  Yao Qi  <yao@codesourcery.com>
5722
5723         * gnu-nat.c (make_inf) Update declaration.
5724         (make_inf): Make it static.
5725         (inf_set_traced): Likewise.
5726         (inf_port_to_thread, inf_task_died_status): Likewise.
5727
5728 2014-01-07  Yao Qi  <yao@codesourcery.com>
5729
5730         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
5731
5732 2014-01-07  Yao Qi  <yao@codesourcery.com>
5733
5734         * gnu-nat.c (_initialize_gnu_nat): Declare.
5735
5736 2014-01-07  Yao Qi  <yao@codesourcery.com>
5737
5738         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
5739         'enum bfd_endian'.
5740         (struct gdbarch_info) <byte_order>: Change type to
5741         'enum bfd_endian'.
5742         <byte_order_for_code>: Likewise.
5743         * gdbarch.c, gdbarch.h: Regenerated.
5744
5745 2014-01-06  Sasha Smundak  <asmundak@google.com>
5746
5747         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
5748
5749 2014-01-06  Tom Tromey  <tromey@redhat.com>
5750
5751         * doublest.c (convert_doublest_to_floatformat): Use const, not
5752         CONST.
5753         * somread.c (som_symtab_read): Likewise.
5754
5755 2014-01-07  Hui Zhu  <hui@codesourcery.com>
5756
5757         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
5758         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
5759         (gdb_bfd_fopen): Ditto.
5760         (gdb_bfd_openr): Ditto.
5761         (gdb_bfd_openw): Ditto.
5762         (gdb_bfd_openr_iovec): Ditto.
5763         (gdb_bfd_fdopenr): Ditto.
5764         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
5765         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
5766         with xstrdup.
5767         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
5768         with xstrdup.
5769         * symfile-mem.c (symbol_file_add_from_memory): Removed
5770         gdb_bfd_stash_filename.
5771
5772 2014-01-03  Doug Evans  <dje@google.com>
5773
5774         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
5775         output.
5776
5777 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
5778
5779         Update year range in copyright notice of all files.
5780
5781 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
5782
5783         * top.c (print_gdb_version): Set copyright year to 2014.
5784
5785 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
5786
5787         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
5788
5789 For older changes see ChangeLog-2013.
5790 \f
5791 Local Variables:
5792 mode: change-log
5793 left-margin: 8
5794 fill-column: 74
5795 version-control: never
5796 coding: utf-8
5797 End: