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