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