1 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * regset.h (struct regset): Remove gdbarch field.
4 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
9 (ppc32_linux_fpregset, ppc32_linux_vrregset)
10 (ppc32_linux_vsxregset): Likewise.
11 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
12 via the regcache instead of the regset.
13 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
14 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
15 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
16 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
19 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
21 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
23 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
24 (alphanbsd_aout_gregset): Likewise.
25 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
26 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
28 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
29 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
31 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
32 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
33 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
34 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
35 * m88k-tdep.c (m88k_gregset): Likewise.
36 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
37 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
38 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
39 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
40 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
41 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
42 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
43 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
44 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
46 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
47 * sh-tdep.h (sh_corefile_gregset): Likewise.
48 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
49 * vax-tdep.c (vax_gregset): Likewise.
51 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
53 Fix TLS access for -static -pthread.
54 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
55 (try_thread_db_load_1): Initialize it.
56 (thread_db_get_thread_local_address): Call it if LM is zero.
57 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
58 * target.h (struct target_ops) (to_get_thread_local_address): Add
59 load_module_addr comment.
61 2014-05-21 Pedro Alves <palves@redhat.com>
63 * dcache.c (dcache_read_memory_partial): If reading the cache line
64 fails, fallback to reading just the memory the caller wanted.
66 2014-05-20 Doug Evans <dje@google.com>
68 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
69 instead of get_current_arch.
71 2014-05-20 Pedro Alves <palves@redhat.com>
73 * NEWS: Mention that compare-sections now works with all targets.
75 * remote.c (PACKET_qCRC): New enum value.
76 (remote_verify_memory): Don't send qCRC if the target has no
77 execution. Use packet_support/packet_ok. If the target doesn't
78 support the qCRC packet, fallback to a deep memory copy.
79 (compare_sections_command): Say "target image" instead of "remote
81 (_initialize_remote): Add PACKET_qCRC to the list of config
82 packets that have no associated command. Extend comment.
83 * target.c (simple_verify_memory, default_verify_memory): New
85 * target.h (struct target_ops) <to_verify_memory>: Default to
86 default_verify_memory.
87 (simple_verify_memory): New declaration.
88 * target-delegates.c: Regenerate.
90 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
92 * record-btrace.c (record_btrace_step_thread): Check for empty history.
94 2014-05-20 Hui Zhu <hui@codesourcery.com>
95 Yao Qi <yao@codesourcery.com>
98 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
99 and change address of sp and pc.
101 2014-05-19 Tom Tromey <tromey@redhat.com>
103 * gdbtypes.c (rank_function): Use XNEWVEC.
104 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
106 2014-05-19 Doug Evans <dje@google.com>
108 * dwarf2read.c (build_type_psymtabs_1): Renamed from
109 build_type_unit_groups and moved closer to only caller. Remove
110 arguments. All references updated. Remove outdated .gdb_index
112 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
113 build_type_psymtabs_1.
115 2014-05-19 Doug Evans <dje@google.com>
117 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
118 n_type_unit_groups, all_type_unit_groups. All uses removed.
119 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
120 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
121 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
122 (add_type_unit_group_to_table): Delete.
124 2014-05-19 Doug Evans <dje@google.com>
126 * eval.c (evaluate_subexp_standard): Add some comments.
128 2014-05-17 Doug Evans <xdje42@gmail.com>
130 * progspace.c (remove_program_space): Delete, unused.
131 * progspace.h (remove_program_space): Ditto.
133 2014-05-17 Doug Evans <xdje42@gmail.com>
135 * inferior.c (prune_inferiors): Fix comment.
136 (remove_inferior_command): Call prune_program_spaces.
138 2014-05-16 Doug Evans <dje@google.com>
140 New command line option -D.
142 * main.c (set_gdb_data_directory): New function.
143 (captured_main): Recognize -D. Flag error for --data-directory "".
144 Call set_gdb_data_directory.
145 (print_gdb_help): Print --data-directory, -D.
146 * main.h (set_gdb_data_directory): Declare.
147 * top.c (staged_gdb_datadir): New static global.
148 (set_gdb_datadir): Call set_gdb_data_directory
149 (show_gdb_datadir): New function.
150 (init_main): Update init of data-directory parameter.
152 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
154 Import the "dirfd" gnulib module.
155 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
156 * gnulib/aclocal.m4: Update.
157 * gnulib/config.in: Update.
158 * gnulib/configure: Update.
159 * gnulib/import/Makefile.am: Update.
160 * gnulib/import/Makefile.in: Update.
161 * gnulib/import/dirfd.c: New.
162 * gnulib/import/m4/dirfd.m4: New.
163 * gnulib/import/m4/gnulib-cache.m4: Update.
164 * gnulib/import/m4/gnulib-comp.m4: Update.
166 2014-05-16 Pierre Muller <muller@sourceware.org>
167 Yao Qi <yao@codesourcery.com>
169 * valprint.c (print_wchar): Move the code on checking whether
170 W is a printable wide char to the default branch of switch
171 statement below. Call wchar_printable instead of gdb_iswprint.
173 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
175 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
176 ldr.w and ldrd instructions.
178 2014-05-15 Doug Evans <dje@google.com>
180 * dwarf2read.c (read_structure_type): Delete outdated comments.
182 2014-05-14 Tom Tromey <tromey@redhat.com>
184 * macrocmd.c (print_macro_definition): Reindent.
186 2014-05-13 Doug Evans <xdje42@gmail.com>
188 * python/py-cmd.c (cmdpy_completer): Add comment.
189 (completers): Make const.
191 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
193 * infrun.c (resume): Remove should_resume (unused). Move up
194 declaration of resume_ptid.
196 2014-05-13 Tom Tromey <tromey@redhat.com>
198 * language.h (unop_type_check): Remove.
199 (binop_type_check): Don't declare.
201 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
203 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
204 call to regcache_raw_collect.
206 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
208 * mi/mi-console.c (mi_console_raw_packet): Use the value from
209 mi_console->quote as the quoting character.
211 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
213 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
215 2014-04-29 Tom Tromey <tromey@redhat.com>
217 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
220 2014-05-07 Kyle McMartin <kyle@redhat.com>
222 Pushed by Joel Brobecker <brobecker@adacore.com>.
223 * aarch64-tdep.c (aarch64_software_single_step): New function.
224 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
225 with aarch64_software_single_step.
227 2014-05-05 Joel Brobecker <brobecker@adacore.com>
231 2014-05-05 Keith Seitz <keiths@redhat.com>
233 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
234 variable or history value is successfully parsed.
236 2014-05-05 Yao Qi <yao@codesourcery.com>
237 Pedro Alves <palves@redhat.com>
239 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
240 address of blocks that intersects the requested range. Trim
241 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
243 * ctf.c (ctf_xfer_partial): Likewise.
245 2014-05-05 Yao Qi <yao@codesourcery.com>
247 * printcmd.c (display_command): Remove the check to
248 target_has_execution.
250 2014-05-03 Mark Kettenis <kettenis@gnu.org>
252 * ppcobsd-nat.c: Include "obsd-nat.h".
253 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
255 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
257 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
259 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
260 and 16-bit signed and unsigned arguments. Update comment.
261 (stap_parse_probe_arguments): Extend code to handle such
262 arguments. Use warning instead of complaint to notify about
263 unrecognized bitness.
265 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
268 * stap-probe.c (stap_parse_probe_arguments): Simplify
269 check for non-prefixed probes (i.e., probes whose
270 arguments do not start with "N@"). Always set the
271 argument type to a sane value.
273 2014-05-01 David Taylor <dtaylor@emc.com>
275 * remote.c (compare_sections_command): Add -r option to compare
276 all loadable read-only sections.
278 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
280 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
281 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
283 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
284 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
285 Remove unused CORE_ADDR argument. Update all callers.
287 2014-04-29 Pedro Alves <palves@redhat.com>
289 * remote.c (struct packet_config) <detect>: Extend comment.
290 (add_packet_config_cmd): Don't set the config's detect or support
292 (init_all_packet_configs): Also initialize the config's 'detect'
294 (reset_all_packet_configs_support): New function.
295 (remote_open_1): Call reset_all_packet_configs_support instead of
296 init_all_packet_configs.
297 (_initialize_remote): Initialize all packet configs. Assert that
298 all packets have an associated command, except a few known
301 2014-04-28 Joel Brobecker <brobecker@adacore.com>
303 * dwarf2read.c (read_subrange_type): Handle dynamic
304 DW_AT_lower_bound attributes.
306 2014-04-28 Joel Brobecker <brobecker@adacore.com>
308 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
309 dynamic bounds before computing its upper bound.
310 (ada_discrete_type_low_bound): Same as above with the lower bound.
312 2014-04-28 Joel Brobecker <brobecker@adacore.com>
314 * dwarf2read.c (is_dynamic_type): Return true for dynamic
315 range types. Adjust the array handling implementation to
316 take advantage of this change.
317 (resolve_dynamic_range): New function, mostly extracted from
318 resolve_dynamic_bounds.
319 (resolve_dynamic_array): New function, mostly extracted from
320 resolve_dynamic_bounds.
321 (resolve_dynamic_bounds): Delete.
322 (resolve_dynamic_type): Reimplement. Add handling of
323 TYPE_CODE_RANGE types.
325 2014-04-28 Joel Brobecker <brobecker@adacore.com>
327 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
328 handling of parallel ___XA types.
330 2014-04-28 Joel Brobecker <brobecker@adacore.com>
332 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
333 unnecessary second call to static_unwrap_type.
335 2014-04-27 Hui Zhu <hui@codesourcery.com>
337 * stack.c (print_frame_info): Call do_gdb_disassembly with
338 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
340 2014-04-26 Doug Evans <xdje42@gmail.com>
342 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
344 2014-04-25 Pedro Alves <palves@redhat.com>
347 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
348 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
349 and newline from built string.
350 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
351 (linux_ptrace_attach_fail_reason): ... this.
352 * linux-nat.c (linux_nat_attach): Adjust to use
353 linux_ptrace_attach_fail_reason.
355 2014-04-25 Pedro Alves <palves@redhat.com>
357 * remote.c (struct remote_state): Remove multi_process_aware,
358 non_stop_aware, cond_tracepoints, cond_breakpoints,
359 breakpoint_commands, fast_tracepoints, static_tracepoints,
360 install_in_trace, disconnected_tracing,
361 enable_disable_tracepoints, string_tracing, and
362 augmented_libraries_svr4_read fields.
363 (remote_multi_process_p): Move further below in the file.
364 (struct packet_config): Add comments.
365 (update_packet_config): Delete function.
366 (show_packet_config_cmd): Use packet_config_support.
367 (add_packet_config_cmd): Use NULL as set callback.
368 (packet_ok): "set remote foo-packet"-style commands no longer
369 change config->supported -- adjust.
370 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
371 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
372 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
373 (PACKET_QNonStop, PACKET_multiprocess_feature)
374 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
375 (PACKET_DisconnectedTracing_feature)
376 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
377 (set_remote_protocol_packet_cmd): Delete function.
378 (packet_config_support, packet_support): New functions.
379 (set_remote_protocol_Z_packet_cmd): Don't call
380 update_packet_config.
381 (remote_query_attached, remote_pass_signals)
382 (remote_program_signals, remote_threads_info)
383 (remote_threads_extra_info, remote_start_remote): Use
385 (remote_start_remote): Use packet_config_support and
387 (init_all_packet_configs): Set all packets to unknown support,
388 instead of calling update_packet_config.
389 (remote_check_symbols): Use packet_support.
390 (remote_supported_packet): Unconditionally set the packet config's
392 (remote_multi_process_feature, remote_non_stop_feature)
393 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
394 (remote_breakpoint_commands_feature)
395 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
396 (remote_install_in_trace_feature)
397 (remote_disconnected_tracing_feature)
398 (remote_enable_disable_tracepoint_feature)
399 (remote_string_tracing_feature)
400 (remote_augmented_libraries_svr4_read_feature): Delete functions.
401 (remote_protocol_features): Adjust to use remote_supported_packet
402 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
403 "ConditionalTracepoints", "ConditionalBreakpoints",
404 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
405 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
406 "EnableDisableTracepoints", and "tracenz".
407 (remote_query_supported): Use packet_support.
408 (remote_open_1): Adjust.
409 (extended_remote_attach_1): Use packet_support. Switch on the
410 result of packet_ok instead of checking whether the packet ended
412 (remote_vcont_resume): Use packet_support.
413 (remote_resume, remote_stop_ns, fetch_register_using_p)
414 (remote_prepare_to_store, store_register_using_P)
415 (check_binary_download, remote_write_bytes): Use packet_support.
416 (remote_vkill): Use packet_support. Switch on the result of
417 packet_ok instead of checking whether the packet ended up
419 (extended_remote_supports_disable_randomization): Use
421 (extended_remote_run): Switch on the result of packet_ok instead
422 of checking whether the packet ended up disabled.
423 (remote_insert_breakpoint, remote_remove_breakpoint)
424 (remote_insert_watchpoint, remote_remove_watchpoint)
425 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
427 (remote_search_memory): Use packet_config_support.
428 (remote_get_thread_local_address, remote_get_tib_address)
429 (remote_hostio_send_command, remote_can_execute_reverse): Use
431 (remote_supports_cond_tracepoints)
432 (remote_supports_cond_breakpoints)
433 (remote_supports_fast_tracepoints)
434 (remote_supports_static_tracepoints)
435 (remote_supports_install_in_trace)
436 (remote_supports_enable_disable_tracepoint)
437 (remote_supports_string_tracing)
438 (remote_can_run_breakpoint_commands): Rewrite, checking whether
439 the packet config says the feature is enabled or disabled.
440 (remote_download_tracepoint, remote_trace_set_readonly_regions)
441 (remote_get_trace_status): Use packet_support.
442 (remote_set_disconnected_tracing): Adjust to check whether the
443 feature is enabled with packet_support.
444 (remote_set_trace_buffer_size, remote_use_agent)
445 (remote_can_use_agent, remote_supports_btrace): Use
447 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
448 Use packet_config_support.
449 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
450 the packet config says the feature is enabled or disabled.
451 (set_range_stepping): Use packet_support.
453 2014-04-25 Tom Tromey <tromey@redhat.com>
455 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
458 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
460 * NEWS: Mention support for C99 variable length arrays.
462 2014-04-24 Joel Brobecker <brobecker@adacore.com>
464 * ada-lang.c (standard_exc): Expand introductory comment.
466 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
467 Walfred Tedeschi <walfred.tedeschi@intel.com>
469 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
471 (amd64_linux_read_description): Add code to handle AVX512 xstate
472 mask and return respective tdesc.
473 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
474 and features/i386/x32-avx512-linux.c.
475 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
476 (amd64_linux_core_read_description): Add code to handle AVX512
477 xstate mask and return respective tdesc.
478 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
479 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
481 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
482 (tdesc_amd64_avx512_linux): New prototype.
483 (tdesc_x32_avx512_linux): Likewise.
484 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
485 features/i386/x32-avx512.c.
486 (amd64_ymm_avx512_names): New register names for pseudo
488 (amd64_ymmh_avx512_names): New register names for raw registers
490 (amd64_k_names): New register names for K registers.
491 (amd64_zmmh_names): New register names for ZMM raw registers.
492 (amd64_zmm_names): New registers names for ZMM pseudo registers.
493 (amd64_xmm_avx512_names): New register names for XMM16-31
495 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
497 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
498 if feature is present.
499 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
500 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
501 (AMD64_NUM_REGS): Adjust to new number of registers.
502 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
503 registers supplied via XSTATE by AVX512 registers.
504 (i386_linux_read_description): Add case for AVX512.
505 * i386-linux-tdep.c: Include i386-avx512-linux.c.
506 (i386_linux_gregset_reg_offset): Add AVX512 registers.
507 (i386_linux_core_read_description): Add case for AVX512.
508 (i386_linux_init_abi): Install supported register note section
510 (_initialize_i386_linux_tdep): Add call to tdesc init function for
512 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
513 registers to be number of zmm7h + 1.
514 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
515 * i386-tdep.c: Include features/i386/i386-avx512.c.
516 (i386_zmm_names): Add ZMM pseudo register names array.
517 (i386_zmmh_names): Add ZMM raw register names array.
518 (i386_k_names): Add K raw register names array.
519 (num_lower_zmm_regs): Add constant for the number of lower ZMM
520 registers. AVX512 has 16 more ZMM registers than there are YMM
522 (i386_zmmh_regnum_p): Add function to look up register number of
524 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
525 (i386_k_regnum_p): Likewise for K raw registers.
526 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
527 registers added by AVX512.
528 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
529 registers added by AVX512.
530 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
532 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
533 (i386_pseudo_register_name): Add ZMM pseudo registers.
534 (i386_zmm_type): Construct and return vector registers type for ZMM
536 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
537 ZMM0-31 pseudo registers and K registers.
538 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
539 and YMM16-31 registers from register cache.
540 (i386_pseudo_register_write): Add code to write K, ZMM and
542 (i386_register_reggroup_p): Add code to include/exclude AVX512
543 registers in/from respective register groups.
544 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
545 registers if feature is present in xcr0.
546 (i386_gdbarch_init): Add code to initialize AVX512 feature
547 variables in tdep structure, wire in pseudo registers and call
548 initialize_tdesc_i386_avx512.
549 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
551 (i386_regnum): Add AVX512 registers.
552 (I386_SSE_NUM_REGS): New define for number of SSE registers.
553 (I386_AVX_NUM_REGS): Likewise for AVX registers.
554 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
555 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
557 (i386_xmm_avx512_regnum_p): New prototype for register look up.
558 (i386_ymm_avx512_regnum_p): Likewise.
559 (i386_k_regnum_p): Likewise.
560 (i386_zmm_regnum_p): Likewise.
561 (i386_zmmh_regnum_p): Likewise.
562 * i387-tdep.c : Update year in copyright notice.
563 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
565 (XSAVE_YMM_AVX512_ADDR): New macro.
566 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
568 (XSAVE_XMM_AVX512_ADDR): New macro.
569 (xsave_avx512_k_offset): New table for K register offsets in
571 (XSAVE_AVX512_K_ADDR): New macro.
572 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
574 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
575 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
577 (i387_collect_xsave): Add code to collect AVX512 registers from
579 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
580 of XMM16-31 registers.
581 (I387_NUM_K_REGS): New define for number of K registers.
582 (I387_K0_REGNUM): New define for K0 register number.
583 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
584 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
585 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
587 (I387_YMM16H_REGNUM): New define for YMM16H register number.
588 (I387_XMM16_REGNUM): New define for XMM16 register number.
589 (I387_YMM0_REGNUM): New define for YMM0 register number.
590 (I387_KEND_REGNUM): New define for last K register number.
591 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
592 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
594 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
596 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
598 * features/Makefile: Add AVX512 related files.
599 * features/i386/32bit-avx512.xml: New file.
600 * features/i386/64bit-avx512.xml: Likewise.
601 * features/i386/amd64-avx512-linux.c: Likewise.
602 * features/i386/amd64-avx512-linux.xml: Likewise.
603 * features/i386/amd64-avx512.c: Likewise.
604 * features/i386/amd64-avx512.xml: Likewise.
605 * features/i386/i386-avx512-linux.c: Likewise.
606 * features/i386/i386-avx512-linux.xml: Likewise.
607 * features/i386/i386-avx512.c: Likewise.
608 * features/i386/i386-avx512.xml: Likewise.
609 * features/i386/x32-avx512-linux.c: Likewise.
610 * features/i386/x32-avx512-linux.xml: Likewise.
611 * features/i386/x32-avx512.c: Likewise.
612 * features/i386/x32-avx512.xml: Likewise.
613 * regformats/i386/amd64-avx512-linux.dat: New file.
614 * regformats/i386/amd64-avx512.dat: Likewise.
615 * regformats/i386/i386-avx512-linux.dat: Likewise.
616 * regformats/i386/i386-avx512.dat: Likewise.
617 * regformats/i386/x32-avx512-linux.dat: Likewise.
618 * regformats/i386/x32-avx512.dat: Likewise.
619 * NEWS: Add note about new support for AVX512.
622 2014-04-23 Pedro Alves <palves@redhat.com>
624 * breakpoint.c (insert_bp_location): Tolerate errors if the
625 breakpoint is set in a user-loaded objfile.
626 (remove_breakpoint_1): Likewise. Also tolerate errors if the
627 location is marked shlib_disabled. If the breakpoint is set in a
628 user-loaded objfile is a GDB-side memory breakpoint, validate it
629 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
630 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
632 * mem-break.c (memory_validate_breakpoint): New function.
633 * objfiles.c (userloaded_objfile_contains_address_p): New
635 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
636 * target.h (memory_validate_breakpoint): New declaration.
638 2014-04-23 Pedro Alves <palves@redhat.com>
640 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
641 the breakpoint is set in a shared library, only suppress
642 errors for software breakpoints, not hardware breakpoints.
644 2014-04-22 Pedro Alves <palves@redhat.com>
646 * infrun.c (schedlock_applies): New function, factored out from
647 find_thread_needs_step_over.
648 (find_thread_needs_step_over): Use it.
649 (switch_back_to_stepped_thread): Always clear trap_expected if the
650 step over is finished. Return early if scheduler locking applies.
651 Look for the stepping thread and a potential step-over thread with
653 (currently_stepping_or_nexting_callback): Delete.
655 2014-04-22 Nick Clifton <nickc@redhat.com>
657 * NEWS: Mention that ARM sim now supports tracing.
659 2014-04-22 Yao Qi <yao@codesourcery.com>
661 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
663 * tracefile.c (tracefile_fetch_registers): ... it. New
665 * tracefile.h (tracefile_fetch_registers): Declare.
666 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
667 tracefile_fetch_registers.
669 2014-04-19 Eli Zaretskii <eliz@gnu.org>
672 * windows-nat.c (thread_rec): Don't display a warning when
673 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
674 fails for any reason, set th->suspended to -1, so that we don't
675 try to resume such a thread. Also, don't return NULL in these
676 cases, to avoid completely ruin the session due to "PC register is
677 not available" error.
678 (do_windows_fetch_inferior_registers): Check errors in
679 GetThreadContext call.
680 (windows_continue): Accept an additional argument KILLED; if not
681 zero, ignore errors in the SetThreadContext call, since the
682 inferior was killed and is shutting down.
683 (windows_resume, get_windows_debug_event)
684 (windows_create_inferior, windows_mourn_inferior)
685 (windows_kill_inferior): All callers of windows_continue changed
686 to adjust to its new calling sequence.
688 2014-04-19 Yao Qi <yao@codesourcery.com>
690 * ctf.c (ctf_open): Call post_create_inferior.
692 2014-04-19 Yao Qi <yao@codesourcery.com>
694 * ctf.c (handle_id): New static variable.
695 (ctf_open_dir): Get handle_id from bt_context_add_trace return
696 value. Get the declaration of event "register" and get length
699 2014-04-19 Yao Qi <yao@codesourcery.com>
701 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
703 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
705 * valops.c (oload_method_static): Remove unnecessary argument
706 METHOD. Update all callers.
708 2014-04-18 Pedro alves <palves@redhat.com>
709 Tom Tromey <tromey@redhat.com>
712 * frame.c (get_prev_frame_1): Rename to ...
713 (get_prev_frame_always): ... this, and make extern. Adjust.
714 (skip_artificial_frames): Use get_prev_frame_always.
715 (frame_unwind_caller_id, frame_pop, get_prev_frame)
716 (get_frame_unwind_stop_reason): Adjust to rename.
717 * frame.h (get_prev_frame_always): Declare.
718 * inline-frame.c: Include frame.h.
719 (inline_frame_this_id): Use get_prev_frame_always.
721 2014-04-18 Tristan Gingold <gingold@adacore.com>
723 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
724 code by using bfd_mach_o_get_base_address.
726 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
728 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
729 (spu_ax_pseudo_register_collect): New function.
730 (spu_ax_pseudo_register_push_stack): Likewise.
731 (spu_dwarf_reg_to_regnum): Likewise.
732 (spu_gdbarch_init): Install them. Append DWARF unwinders.
734 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
736 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
737 Replace FRAME argument with FRAME_ID.
738 * gdbarch.c, gdbarch.h: Regenerate.
739 * findvar.c (default_value_from_register): Add GDBARCH argument;
740 replace FRAME by FRAME_ID. No longer call get_frame_id.
741 (value_from_register): Update call to gdbarch_value_from_register.
742 * value.h (default_value_from_register): Update prototype.
743 * s390-linux-tdep.c (s390_value_from_register): Update interface
744 and call to default_value_from_register.
745 * spu-tdep.c (spu_value_from_register): Likewise.
747 * findvar.c (address_from_register): Remove TYPE argument.
748 Do not call value_from_register; use gdbarch_value_from_register
749 with null_frame_id instead.
750 * value.h (address_from_register): Update prototype.
751 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
752 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
753 address_from_register interface change.
755 2014-04-17 Yao Qi <yao@codesourcery.com>
757 * gdbtypes.h: Update comments to link to types and macros'
760 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
762 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
764 2014-04-16 Keith Seitz <keiths@redhat.com>
767 * dwarf2read.c (skip_one_die): Check that all relative-offset
768 sibling DIEs fall within range of the current reader's buffer.
769 (read_partial_die): Likewise.
771 2014-04-16 Keith Seitz <keiths@redhat.com>
774 * cp-namespace.c (lookup_symbol_file): If the type name of
775 `this' is NULL, return immediately.
777 2014-04-14 Keith Seitz <keiths@redhat.com>
780 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
781 from symbol_matches_domain in symtab.c. All local callers
782 of symbol_matches_domain updated.
783 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
784 search STRUCT_DOMAIN.
785 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
786 independently. standard_lookup will do that automatically.
787 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
788 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
789 (cp_lookup_symbol_in_namespace): Likewise.
790 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
791 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
792 may return a STRUCT_DOMAIN match.
793 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
794 * cp-support.c: Include language.h.
795 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
797 * psymtab.c (match_partial_symbol): Compare the requested
798 domain with the symbol's domain directly.
799 (lookup_partial_symbol): Likewise.
800 * symtab.c (lookup_symbol_in_language): Explain when/why
801 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
802 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
803 appropriate languages.
804 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
805 and moved to ada-lang.c
806 (lookup_block_symbol): Explain that this function only returns
807 symbol matching the requested DOMAIN.
808 Compare the requested domain with the symbol's domain directly.
809 (iterate_over_symbols): Compare the requested domain with the
810 symbol's domain directly.
811 * symtab.h (symbol_matches_domain): Remove.
813 2014-04-14 Tom Tromey <tromey@redhat.com>
816 * c-exp.y (type_aggregate_p): New function.
817 (qualified_name, classify_inner_name): Use it.
818 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
819 and TYPE_TARGET_TYPE of an enum type.
820 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
822 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
823 handle TYPE_DECLARED_CLASS.
824 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
826 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
827 * valops.c (enum_constant_from_type): New function.
828 (value_aggregate_elt): Use it.
829 * cp-namespace.c (cp_lookup_nested_symbol): Handle
832 2014-04-14 Tom Tromey <tromey@redhat.com>
834 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
835 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
837 * value.h (value_aggregate_elt): Update.
839 2014-04-14 Tom Tromey <tromey@redhat.com>
841 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
843 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
845 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
846 (evaluate_subexp_standard): Pass noside argument.
847 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
848 if noside equals EVAL_NORMAL. If the subscript yields a vla type
849 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
850 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
851 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
853 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
855 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
856 points to a constant blob.
858 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
860 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
861 property and store it as the high bound and flag the range accordingly.
862 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
863 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
864 * gdbtypes.h (enum range_flags): New enum.
865 (struct range_bounds): Add flags member.
867 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
869 * c-typeprint.c (c_type_print_varspec_suffix): Added
870 check for not yet resolved high bound. If unresolved, print
871 "variable length" string to the console instead of random
874 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
876 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
878 (ada_template_to_fixed_record_type_1): Likewise.
879 (ada_to_fixed_type_1): Likewise.
880 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
881 (cp_print_value): Likewise.
882 * d-valprint.c (dynamic_array_type): Likewise.
883 * findvar.c (address_of_variable): Likewise.
884 * jv-valprint.c (java_value_print): Likewise.
885 * valops.c (value_ind): Likewise.
886 * value.c (coerce_ref): Likewise.
888 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
890 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
891 value and retrieve the dynamic type size.
893 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
895 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
896 passed to sizeof is dynamic evaluate the argument to compute the length.
898 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
899 Joel Brobecker <brobecker@adacore.com>
901 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
902 (dwarf2_evaluate_property): New function.
903 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
904 * dwarf2read.c (attr_to_dynamic_prop): New function.
905 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
907 * gdbtypes.c: Include dwarf2loc.h.
908 (is_dynamic_type): New function.
909 (resolve_dynamic_type): New function.
910 (resolve_dynamic_bounds): New function.
911 (get_type_length): New function.
912 (check_typedef): Use get_type_length to compute type length.
913 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
914 (TYPE_LOW_BOUND_KIND): New macro.
915 (is_dynamic_type): New function prototype.
916 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
917 to resolve dynamic properties of the type. Update comment.
918 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
920 2014-04-14 Richard Henderson <rth@redhat.com>
922 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
924 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
925 Doug Evans <xdje42@gmail.com>
927 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
928 dereference TYPE_CODE_REF values.
930 2014-04-11 Joel Brobecker <brobecker@adacore.com>
932 Revert the following changes due to regressions:
934 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
935 (dwarf2_evaluate_property): New function.
936 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
937 * dwarf2read.c (attr_to_dynamic_prop): New function.
938 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
940 * gdbtypes.c: Include dwarf2loc.h.
941 (is_dynamic_type): New function.
942 (resolve_dynamic_type): New function.
943 (resolve_dynamic_bounds): New function.
944 (get_type_length): New function.
945 (check_typedef): Use get_type_length to compute type length.
946 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
947 (TYPE_LOW_BOUND_KIND): New macro.
948 (is_dynamic_type): New function prototype.
949 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
950 to resolve dynamic properties of the type. Update comment.
951 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
953 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
954 passed to sizeof is dynamic evaluate the argument to compute the length.
956 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
957 value and retrieve the dynamic type size.
959 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
960 (ada_template_to_fixed_record_type_1): Likewise.
961 (ada_to_fixed_type_1): Likewise.
962 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
963 (cp_print_value): Likewise.
964 * d-valprint.c (dynamic_array_type): Likewise.
965 * eval.c (evaluate_subexp_with_coercion): Likewise.
966 * findvar.c (address_of_variable): Likewise.
967 * jv-valprint.c (java_value_print): Likewise.
968 * valops.c (value_ind): Likewise.
969 * value.c (coerce_ref): Likewise.
971 * c-typeprint.c (c_type_print_varspec_suffix): Added
972 check for not yet resolved high bound. If unresolved, print
973 "variable length" string to the console instead of random
976 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
977 property and store it as the high bound and flag the range accordingly.
978 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
979 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
980 * gdbtypes.h (enum range_flags): New enum.
981 (struct range_bounds): Add flags member.
983 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
984 points to a constant blob.
986 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
987 (evaluate_subexp_standard): Pass noside argument.
988 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
989 if noside equals EVAL_NORMAL. If the subscript yields a vla type
990 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
991 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
992 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
994 2014-04-11 Keith Seitz <keiths@redhat.com>
997 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
998 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1001 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1003 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1004 (evaluate_subexp_standard): Pass noside argument.
1005 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1006 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1007 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1008 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1009 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1011 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1013 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1014 points to a constant blob.
1016 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1018 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1019 property and store it as the high bound and flag the range accordingly.
1020 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1021 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1022 * gdbtypes.h (enum range_flags): New enum.
1023 (struct range_bounds): Add flags member.
1025 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1027 * c-typeprint.c (c_type_print_varspec_suffix): Added
1028 check for not yet resolved high bound. If unresolved, print
1029 "variable length" string to the console instead of random
1032 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1034 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1035 (ada_template_to_fixed_record_type_1): Likewise.
1036 (ada_to_fixed_type_1): Likewise.
1037 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1038 (cp_print_value): Likewise.
1039 * d-valprint.c (dynamic_array_type): Likewise.
1040 * eval.c (evaluate_subexp_with_coercion): Likewise.
1041 * findvar.c (address_of_variable): Likewise.
1042 * jv-valprint.c (java_value_print): Likewise.
1043 * valops.c (value_ind): Likewise.
1044 * value.c (coerce_ref): Likewise.
1046 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1048 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1049 value and retrieve the dynamic type size.
1051 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1053 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1054 passed to sizeof is dynamic evaluate the argument to compute the length.
1056 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1058 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1059 (dwarf2_evaluate_property): New function.
1060 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1061 * dwarf2read.c (attr_to_dynamic_prop): New function.
1062 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1064 * gdbtypes.c: Include dwarf2loc.h.
1065 (is_dynamic_type): New function.
1066 (resolve_dynamic_type): New function.
1067 (resolve_dynamic_bounds): New function.
1068 (get_type_length): New function.
1069 (check_typedef): Use get_type_length to compute type length.
1070 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1071 (TYPE_LOW_BOUND_KIND): New macro.
1072 (is_dynamic_type): New function prototype.
1073 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1074 to resolve dynamic properties of the type. Update comment.
1075 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1079 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1080 declaring high/low bounds and change uses accordingly. Call
1081 create_range_type instead of create_static_range_type.
1082 * gdbtypes.c (create_range_type): New function.
1083 (create_range_type): Convert bounds into struct bound_prop and pass
1084 them to create_range_type.
1085 * gdbtypes.h (struct bound_prop): New struct.
1086 (create_range_type): New function prototype.
1087 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1088 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1089 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1091 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1093 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1095 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1096 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1097 * ada-lang.c: All uses of create_range_type updated.
1098 * coffread.c: All uses of create_range_type updated.
1099 * dwarf2read.c: All uses of create_range_type updated.
1100 * f-exp.y: All uses of create_range_type updated.
1101 * m2-valprint.c: All uses of create_range_type updated.
1102 * mdebugread.c: All uses of create_range_type updated.
1103 * stabsread.c: All uses of create_range_type updated.
1104 * valops.c: All uses of create_range_type updated.
1105 * valprint.c: All uses of create_range_type updated.
1107 2014-04-10 Pedro Alves <palves@redhat.com>
1109 * breakpoint.c (single_step_breakpoints)
1110 (single_step_gdbarch): Move up in the file.
1111 (one_breakpoint_xfer_memory): New function, factored out from ...
1112 (breakpoint_xfer_memory): ... here. Also process single-step
1115 2014-04-09 Tristan Gingold <gingold@adacore.com>
1117 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1119 (darwin_decode_exception_message): Free port only after use.
1121 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1123 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1124 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1125 when setting the size of call_length.
1127 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1129 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1130 dereference TYPE_CODE_REF values.
1132 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1134 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1135 end of warning message.
1137 2014-04-03 Doug Evans <dje@google.com>
1139 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1140 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1142 2014-04-02 Alan Modra <amodra@gmail.com>
1144 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1145 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1146 (struct symbol_file_add_from_memory_args): Add size field.
1147 (find_vdso_size): New function.
1148 (add_vsyscall_page): Attempt to find vdso size.
1150 2014-04-01 Doug Evans <dje@google.com>
1152 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1154 2014-04-01 Tristan Gingold <gingold@adacore.com>
1156 * darwin-nat.c (darwin_encode_reply): Add prototype.
1157 (darwin_decode_exception_message): Reply to unknown inferiors.
1158 (darwin_decode_message): Handle message by id. Ignore message
1159 to unknown inferior.
1160 (darwin_wait): Discard unknown messages, add debug trace.
1162 2014-03-31 Doug Evans <dje@google.com>
1164 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1167 2014-03-31 Doug Evans <dje@google.com>
1169 New option "set print symbol-loading".
1171 * solib.c (solib_read_symbols): Only print symbol loading messages
1173 (solib_add): If symbol loading is in "brief" mode, notify user
1174 symbols are being loaded.
1175 (reload_shared_libraries_1): Ditto.
1176 * symfile.c (print_symbol_loading_off): New static global.
1177 (print_symbol_loading_brief): New static global.
1178 (print_symbol_loading_full): New static global.
1179 (print_symbol_loading_enums): New static global.
1180 (print_symbol_loading): New static global.
1181 (print_symbol_loading_p): New function.
1182 (symbol_file_add_with_addrs): Only print symbol loading messages
1184 (_initialize_symfile): Register "print symbol-loading" set/show
1186 * symfile.h (print_symbol_loading_p): Declare.
1188 2014-03-30 Doug Evans <xdje42@gmail.com>
1190 * infrun.c (set_last_target_status): New function.
1191 (handle_inferior_event): Call it.
1193 2014-03-30 Doug Evans <xdje42@gmail.com>
1195 * inferior.h (enum stop_kind): Improve comment.
1197 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1199 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1200 a reference, strip the reference layer before calling
1201 the lang_ops value_has_mutated callback.
1203 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1205 Remove some globals from our parser.
1206 * language.c (unk_lang_parser): Add "struct parser_state"
1208 * language.h (struct language_defn) <la_parser>: Likewise.
1209 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1210 (initialize_expout): Add "struct parser_state" argument.
1211 Rewrite function to use the parser state.
1212 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1213 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1214 write_exp_elt_longcst, write_exp_elt_dblcst,
1215 write_exp_elt_decfloatcst, write_exp_elt_type,
1216 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1217 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1218 write_dollar_variable): Likewise.
1219 (parse_exp_in_context_1): Use parser state.
1220 (insert_type_address_space): Add "struct parser_state" argument.
1222 (increase_expout_size): New function.
1223 * parser-defs.h: Forward declare "struct language_defn" and
1224 "struct parser_state".
1225 (expout, expout_size, expout_ptr): Remove extern declarations.
1226 (parse_gdbarch, parse_language): Rewrite macro declarations to
1227 accept the parser state.
1228 (struct parser_state): New struct.
1229 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1230 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1231 write_exp_elt_decfloatcst, write_exp_elt_type,
1232 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1233 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1234 write_exp_msymbol, write_dollar_variable,
1235 mark_struct_expression, insert_type_address_space): Add "struct
1236 parser_state" argument.
1237 (increase_expout_size): New function.
1238 * utils.c (do_clear_parser_state): New function.
1239 (make_cleanup_clear_parser_state): Likewise.
1240 * utils.h (make_cleanup_clear_parser_state): New function
1242 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1243 Update calls to write_exp* in order to pass the parser state.
1244 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1245 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1246 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1247 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1248 * stap-probe.c (stap_parse_register_operand): Likewise.
1249 (stap_parse_single_operand): Likewise.
1250 (stap_parse_argument_1): Likewise.
1251 (stap_parse_argument): Use parser state.
1252 * stap-probe.h: Include "parser-defs.h".
1253 (struct stap_parse_info) <pstate>: New field.
1254 * c-exp.y (parse_type): Rewrite to use parser state.
1255 (yyparse): Redefine to c_parse_internal.
1256 (pstate): New global variable.
1257 (parse_number): Add "struct parser_state" argument.
1258 (write_destructor_name): Likewise.
1259 (type_exp): Update calls to write_exp* and similars in order to
1261 (exp1, exp, variable, qualified_name, space_identifier,
1262 typename, typebase): Likewise.
1263 (write_destructor_name, parse_number, lex_one_token,
1264 classify_name, classify_inner_name, c_parse): Add "struct
1265 parser_state" argument. Update function to use parser state.
1266 * c-lang.h: Forward declare "struct parser_state".
1267 (c_parse): Add "struct parser_state" argument.
1268 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1269 (yyparse): Redefine macro to ada_parse_internal.
1270 (pstate): New variable.
1271 (write_int, write_object_renaming, write_var_or_type,
1272 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1273 type_int, type_long, type_long_long, type_float, type_double,
1274 type_long_double, type_char, type_boolean, type_system_address):
1275 Add "struct parser_state" argument.
1276 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1277 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1278 var_or_type, aggregate, aggregate_component_list,
1279 positional_list, others, component_group,
1280 component_associations): Update calls to write_exp* and similar
1281 functions in order to use parser state.
1282 (ada_parse, write_var_from_sym, write_int,
1283 write_exp_op_with_string, write_object_renaming,
1284 find_primitive_type, write_selectors, write_ambiguous_var,
1285 write_var_or_type, write_name_assoc, type_int, type_long,
1286 type_long_long, type_float, type_double, type_long_double,
1287 type_char, type_boolean, type_system_address): Add "struct
1288 parser_state" argument. Adjust function to use parser state.
1289 * ada-lang.c (parse): Likewise.
1290 * ada-lang.h: Forward declare "struct parser_state".
1291 (ada_parse): Add "struct parser_state" argument.
1292 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1293 calls to both functions.
1294 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1296 (yyparse): Redefine macro to f_parse_internal.
1297 (pstate): New variable.
1298 (parse_number): Add "struct parser_state" argument.
1299 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1300 and similars in order to use parser state.
1301 (parse_number): Adjust code to use parser state.
1303 (f_parse): New function.
1304 * f-lang.h: Forward declare "struct parser_state".
1305 (f_parse): Add "struct parser_state" argument.
1306 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1308 (yyparse): Redefine macro for java_parse_internal.
1309 (pstate): New variable.
1310 (push_expression_name, push_expression_name, insert_exp): Add
1311 "struct parser_state" argument.
1312 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1313 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1314 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1315 PostIncrementExpression, PostDecrementExpression,
1316 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1317 UnaryExpressionNotPlusMinus, CastExpression,
1318 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1319 RelationalExpression, EqualityExpression, AndExpression,
1320 ExclusiveOrExpression, InclusiveOrExpression,
1321 ConditionalAndExpression, ConditionalOrExpression,
1322 ConditionalExpression, Assignment, LeftHandSide): Update
1323 calls to write_exp* and similars in order to use parser state.
1324 (parse_number): Ajust code to use parser state.
1326 (java_parse): New function.
1327 (push_variable): Add "struct parser_state" argument. Adjust
1328 code to user parser state.
1329 (push_fieldnames, push_qualified_expression_name,
1330 push_expression_name, insert_exp): Likewise.
1331 * jv-lang.h: Forward declare "struct parser_state".
1332 (java_parse): Add "struct parser_state" argument.
1333 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1335 (yyparse): Redefine macro to m2_parse_internal.
1336 (pstate): New variable.
1337 (type_exp, exp, fblock, variable, type): Update calls to
1338 write_exp* and similars to use parser state.
1340 (m2_parse): New function.
1341 * m2-lang.h: Forward declare "struct parser_state".
1342 (m2_parse): Add "struct parser_state" argument.
1343 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1344 * objc-lang.h: Forward declare "struct parser_state".
1345 (end_msglist): Add "struct parser_state" argument.
1346 * p-exp.y (parse_type): Rewrite macro to use parser state.
1347 (yyparse): Redefine macro to pascal_parse_internal.
1348 (pstate): New variable.
1349 (parse_number): Add "struct parser_state" argument.
1350 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1351 write_exp* and similars in order to use parser state.
1352 (parse_number, yylex): Adjust code to use parser state.
1353 (pascal_parse): New function.
1354 * p-lang.h: Forward declare "struct parser_state".
1355 (pascal_parse): Add "struct parser_state" argument.
1356 * go-exp.y (parse_type): Rewrite macro to use parser state.
1357 (yyparse): Redefine macro to go_parse_internal.
1358 (pstate): New variable.
1359 (parse_number): Add "struct parser_state" argument.
1360 (type_exp, exp1, exp, variable, type): Update calls to
1361 write_exp* and similars in order to use parser state.
1362 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1363 to use parser state.
1364 (go_parse): Likewise.
1365 * go-lang.h: Forward declare "struct parser_state".
1366 (go_parse): Add "struct parser_state" argument.
1368 2014-03-27 Doug Evans <dje@google.com>
1370 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1372 2014-03-27 Doug Evans <dje@google.com>
1374 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1375 Remove argument abbrev_section. All callers updated.
1377 2014-03-27 Doug Evans <dje@google.com>
1379 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1380 addr_base, ranges_base.
1382 2014-03-26 Keith Seitz <keiths@redhat.com>
1384 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1385 types, not VAR_DOMAIN.
1387 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1389 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1391 * features/nios2-linux.c: Regenerated.
1392 * features/nios2.c: Regenerated.
1394 2014-03-25 Pedro Alves <palves@redhat.com>
1396 * cli/cli-script.c (script_from_file): Force the interpreter to
1399 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1401 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1402 small stack allocation.
1404 2014-03-24 Tristan Gingold <gingold@adacore.com>
1406 * darwin-nat.c (exc_server): Remove unused prototype.
1407 (darwin_dump_message): Correctly display data on x86_64.
1408 (darwin_encode_reply): Fix style.
1409 Add comments and fix indentation.
1411 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1413 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1415 2014-03-22 Doug Evans <xdje42@gmail.com>
1417 * infcmd.c: Whitespace fixes.
1418 (interrupt_command): Merge two function comments into one.
1420 2014-03-22 Doug Evans <xdje42@gmail.com>
1422 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1425 2014-03-22 Yao Qi <yao@codesourcery.com>
1427 * remote.c (target_read_live_memory): Remove.
1428 (memory_xfer_live_readonly_partial): Rename it to
1429 remote_xfer_live_readonly_partial. Remove argument 'object'.
1430 All callers updated. Call remote_read_bytes_1
1431 instead of target_read_live_memory.
1432 * tracepoint.c (set_traceframe_number): Remove.
1433 (make_cleanup_restore_traceframe_number): Likewise .
1434 * tracepoint.h (set_traceframe_number): Remove declaration.
1435 (make_cleanup_restore_traceframe_number): Likewise.
1437 2014-03-22 Yao Qi <yao@codesourcery.com>
1439 * remote.c (remote_read_bytes): Move code on reading from the
1441 (remote_read_bytes_1): ... here. New function.
1443 2014-03-22 Yao Qi <yao@codesourcery.com>
1445 * ctf.c (ctf_xfer_partial): Check the return value of
1446 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1447 return TARGET_XFER_UNAVAILABLE.
1448 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1449 * target.c (target_read_live_memory): Move it to remote.c.
1450 (memory_xfer_live_readonly_partial): Likewise.
1451 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1452 * remote.c (target_read_live_memory): Moved from target.c.
1453 (memory_xfer_live_readonly_partial): Likewise.
1454 (remote_read_bytes): Factored out from
1455 memory_xfer_partial_1.
1457 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1459 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1462 2014-03-21 Pedro Alves <palves@redhat.com>
1464 * infrun.c (normal_stop): Extend comment.
1466 2014-03-21 Hui Zhu <hui@codesourcery.com>
1467 Pedro Alves <palves@redhat.com>
1469 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1471 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1472 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1473 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1475 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1477 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1478 `z' formatted output modifier.
1480 2014-03-20 Tom Tromey <tromey@redhat.com>
1481 Sergio Durigan Junior <sergiodj@redhat.com>
1483 * probe.c (parse_probes): Turn assert into an ordinary error.
1484 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1485 exceptions when parsing probes. Rearrange the code for clarity.
1487 2014-03-20 Tom Tromey <tromey@redhat.com>
1490 * top.c (execute_command): Only dispatch events if the command
1493 2014-03-20 Tom Tromey <tromey@redhat.com>
1496 * infcall.c: Include event-top.h.
1497 (run_inferior_call): Call async_disable_stdin if needed.
1499 2014-03-20 Pedro Alves <palves@redhat.com>
1501 * infrun.c (prepare_to_proceed): Delete.
1502 (thread_still_needs_step_over): New function.
1503 (find_thread_needs_step_over): New function.
1504 (proceed): If the current thread needs a step-over, set its
1505 steping_over_breakpoint flag. Adjust to use
1506 find_thread_needs_step_over instead of prepare_to_proceed.
1507 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1508 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1510 (switch_back_to_stepped_thread): Step over breakpoints of all
1511 threads not the stepping thread, before switching back to the
1514 2014-03-20 Pedro Alves <palves@redhat.com>
1516 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1518 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1519 * infrun.c (saved_singlestep_ptid)
1520 (stepping_past_singlestep_breakpoint): Delete.
1521 (resume): Remove stepping_past_singlestep_breakpoint handling.
1522 (proceed): Store the prev_pc of the stepping thread too.
1523 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1525 (enum infwait_states): Delete infwait_thread_hop_state.
1526 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1528 (handle_inferior_event): Adjust.
1529 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1530 handling and the thread-hop code. Before removing single-step
1531 breakpoints, check whether the thread hit a single-step breakpoint
1532 of another thread. If it did, the trap is not a random signal.
1533 (switch_back_to_stepped_thread): If the event thread hit a
1534 single-step breakpoint, unblock it before switching to the
1535 stepping thread. Handle the case of the stepped thread having
1537 (keep_going): Handle the case of the current thread moving past a
1538 single-step breakpoint.
1540 2014-03-20 Pedro Alves <palves@redhat.com>
1543 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1544 are being stepped over.
1545 (breakpoint_address_match): Make extern.
1546 * breakpoint.h (breakpoint_address_match): New declaration.
1547 * inferior.h (stepping_past_instruction_at): New declaration.
1548 * infrun.c (struct step_over_info): New type.
1549 (step_over_info): New global.
1550 (set_step_over_info, clear_step_over_info)
1551 (stepping_past_instruction_at): New functions.
1552 (handle_inferior_event): Clear the step-over info when
1553 trap_expected is cleared.
1554 (resume): Remove now stale comment.
1555 (clear_proceed_status): Clear step-over info.
1556 (proceed): Adjust step-over handling to set or clear the step-over
1557 info instead of removing all breakpoints.
1558 (handle_signal_stop): When setting up a thread-hop, don't remove
1560 (stop_stepping): Clear step-over info.
1561 (keep_going): Adjust step-over handling to set or clear step-over
1562 info and then always inserting breakpoints, instead of removing
1563 all breakpoints when stepping over one.
1565 2014-03-20 Pedro Alves <palves@redhat.com>
1567 * infrun.c (previous_inferior_ptid): Adjust comment.
1568 (deferred_step_ptid): Delete.
1569 (infrun_thread_ptid_changed, prepare_to_proceed)
1570 (init_wait_for_inferior): Adjust.
1571 (handle_signal_stop): Delete deferred_step_ptid handling.
1573 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1576 * defs.h (sync_quit_force_run): New declaration.
1577 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1578 * event-top.c (async_sigterm_handler): New declaration.
1579 (async_sigterm_token): New variable.
1580 (async_init_signals): Create also async_sigterm_token.
1581 (async_sigterm_handler): New function.
1582 (sync_quit_force_run): New variable.
1583 (handle_sigterm): Replace quit_force call by other calls.
1584 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1586 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1588 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1589 offset into SPE pseudo registers.
1591 2014-03-18 Pedro Alves <palves@redhat.com>
1594 * inferior.h (print_stop_event): Declare.
1595 * infrun.c (print_stop_event): New, factored out from ...
1596 (normal_stop): ... this.
1597 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1598 of bpstat_print/print_stack_frame.
1600 2014-03-17 Tom Tromey <tromey@redhat.com>
1602 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1604 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1606 * ada-lang.c (decode_constrained_packed_array): Perform a
1607 minimal coercion for reference with coerce_ref instead of
1610 2014-03-17 Tristan Gingold <gingold@adacore.com>
1612 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1613 (darwin_solib_create_inferior_hook): Emit a warning if version
1616 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1618 * python/py-value.c (get_field_flag): Cast flag_name argument to
1619 PyObject_GetAttrString to support Python 2.4.
1621 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1623 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1624 (Global Maintainers): Remove Jan Kratochvil.
1626 2014-03-14 Pedro Alves <palves@redhat.com>
1628 * inferior.h (terminal_ours_for_output): Rename to ...
1629 (child_terminal_ours_for_output): ... this.
1630 (terminal_save_ours): Rename to ...
1631 (child_terminal_save_ours): ... this.
1632 (terminal_ours): Rename to ...
1633 (child_terminal_ours): ... this.
1634 (terminal_inferior): Rename to ...
1635 (child_terminal_inferior): ... this.
1636 (terminal_init_inferior): Rename to ...
1637 (child_terminal_init_inferior): ... this.
1638 (terminal_init_inferior_with_pgrp): Rename to ...
1639 (child_terminal_init_inferior_with_pgrp): ... this.
1640 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1641 (child_terminal_init_with_pgrp): ... this.
1642 (terminal_save_ours): Rename to ...
1643 (child_terminal_save_ours): ... this.
1644 (terminal_init_inferior): Rename to ...
1645 (child_terminal_init): ... this. Adjust.
1646 (terminal_inferior): Rename to ...
1647 (child_terminal_inferior): ... this.
1648 (terminal_ours_for_output): Rename to ...
1649 (child_terminal_ours_for_output): ... this. Adjust.
1650 (terminal_ours): Rename to ...
1651 (child_terminal_ours): ... this.
1652 (terminal_ours_1): Rename to ...
1653 (child_terminal_ours_1): ... this. Adjust.
1654 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1655 * windows-nat.c (do_initial_windows_stuff): Adjust.
1656 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1657 (gnu_terminal_init): ... this. Adjust.
1658 (gnu_target): Adjust.
1659 * inf-child.c (inf_child_target): Adjust.
1661 2014-03-13 Doug Evans <xdje42@gmail.com>
1664 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1667 2014-03-13 Doug Evans <xdje42@gmail.com>
1669 * value.c (record_latest_value): Call release_value_or_incref
1670 instead of release_value.
1672 2014-03-13 Pedro Alves <palves@redhat.com>
1674 * procfs.c (procfs_target): Don't override to_shortname,
1675 to_longname or to_doc.
1677 2014-03-13 Pedro Alves <palves@redhat.com>
1679 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1680 Unix in user visible strings.
1682 2014-03-12 Stan Shebs <stan@codesourcery.com>
1684 * gdbtypes.h: Annotate comments for Doxygen, add a page
1685 block comment with some general info.
1687 2014-03-12 Pedro Alves <palves@redhat.com>
1689 * infcmd.c (prepare_execution_command): New function, factored out
1690 from several execution commands.
1691 (run_command_1, continue_command, step_1, jump_command)
1692 (signal_command, until_command, advance_command, finish_command)
1693 (attach_command): Use prepare_execution_command.
1695 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1697 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1700 (struct arm_linux_thread_points): Removed.
1701 (struct arm_linux_process_info): New.
1702 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1703 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1704 (arm_linux_find_breakpoints_by_tid): Removed.
1705 (struct arch_lwp_info): New.
1706 (arm_linux_find_process_pid): New functions.
1707 (arm_linux_add_process): New functions.
1708 (arm_linux_process_info_get): New functions.
1709 (arm_linux_forget_process): New function.
1710 (arm_linux_get_debug_reg_state): New function.
1711 (struct update_registers_data): New.
1712 (update_registers_callback): New function.
1713 (arm_linux_insert_hw_breakpoint1): Updated.
1714 (arm_linux_remove_hw_breakpoint1): Updated.
1715 (arm_linux_insert_hw_breakpoint): Updated.
1716 (arm_linux_remove_hw_breakpoint): Updated.
1717 (arm_linux_insert_watchpoint): Updated.
1718 (arm_linux_remove_watchpoint): Updated.
1719 (arm_linux_new_thread): Updated.
1720 (arm_linux_prepare_to_resume): New function.
1721 (arm_linux_new_fork): New function.
1722 (_initialize_arm_linux_nat): Updated.
1724 2014-03-12 Pedro Alves <palves@redhat.com>
1726 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1728 2014-03-12 Tom Tromey <tromey@redhat.com>
1730 * inf-child.c (return_zero): New function.
1731 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1732 * aix-thread.c (aix_thread_inferior_created): New function.
1733 (aix_thread_attach): Remove.
1734 (init_aix_thread_ops): Don't set to_attach.
1735 (_initialize_aix_thread): Register inferior_created observer.
1736 * corelow.c (init_core_ops): Don't set to_attach or
1738 * exec.c (init_exec_ops): Don't set to_attach or
1740 * infcmd.c (run_command_1): Use find_run_target. Make direct
1742 (attach_command): Use find_attach_target. Make direct target
1744 * record-btrace.c (init_record_btrace_ops): Don't set
1746 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1748 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1749 set to_create_inferior.
1750 * target.c (complete_target_initialization): Add assertion.
1751 (target_create_inferior): Remove.
1752 (find_default_attach, find_default_create_inferior): Remove.
1753 (find_attach_target, find_run_target): New functions.
1754 (find_default_is_async_p, find_default_can_async_p)
1755 (target_supports_non_stop, target_attach): Remove.
1756 (init_dummy_target): Don't set to_create_inferior or
1757 to_supports_non_stop.
1758 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1759 TARGET_DEFAULT_FUNC.
1760 <to_create_inferior>: Add comment.
1761 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1762 TARGET_DEFAULT_RETURN.
1763 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1764 (find_attach_target, find_run_target): Declare.
1765 (target_create_inferior): Remove.
1766 (target_has_execution_1): Update comment.
1767 (target_supports_non_stop): Remove.
1768 * target-delegates.c: Rebuild.
1770 2014-03-12 Pedro Alves <palves@redhat.com>
1772 * inf-child.h: Update comment to not mention Unix.
1774 2014-03-12 Pedro Alves <palves@redhat.com>
1776 * inf-child.c: Update top comment to not mention Unix. Add
1777 generic comment describing how this target is meant to be used.
1778 (inf_child_post_attach, inf_child_post_startup_inferior)
1779 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1782 2014-03-12 Pedro Alves <palves@redhat.com>
1784 * nto-procfs.c: Include inf-child.h.
1785 (procfs_ops): Delete global.
1786 (procfs_can_run): Delete method.
1787 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1788 target pointer instead of referencing procfs_ops.
1789 (procfs_prepare_to_store): Delete.
1790 (init_procfs_ops): Delete function.
1791 (procfs_target): New function, based on init_procfs_ops, but
1792 inherit inf_child_target.
1793 (_initialize_procfs): Use procfs_target.
1795 2014-03-12 Pedro Alves <palves@redhat.com>
1797 * windows-nat.c: Include inf-child.h.
1798 (windows_ops): Delete global.
1799 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1801 (init_windows_ops): Delete function.
1802 (windows_target): New function, based on init_windows_ops, but
1803 inherit inf_child_target.
1804 (_initialize_windows_nat): Use windows_target. Install x86
1805 specific target methods here.
1807 2014-03-10 Doug Evans <xdje42@gmail.com>
1809 * guile/guile.c (call_initialize_gdb_module): New function.
1810 (initialize_guile): Replace call to scm_init_guile with call to
1813 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1815 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1816 in call to TYPE_CODE macro.
1818 2014-03-10 Jerome Guitton <guitton@adacore.com>
1820 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1821 Resolve tagged types to full view.
1823 2014-03-10 Hui Zhu <hui@codesourcery.com>
1825 * target.h (target_insert_breakpoint): Remove "hardware" from its
1828 2014-03-07 Doug Evans <dje@google.com>
1830 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1832 2014-03-07 Doug Evans <dje@google.com>
1834 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1835 Remove unused local comp_dir_attr. Assert exactly one of
1836 stub_comp_unit_die, stub_comp_dir is non-NULL.
1838 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1840 * target.h (complete_target_initialization, add_target):
1843 2014-03-07 Pedro Alves <palves@redhat.com>
1845 * go32-nat.c: Include inf-child.h.
1846 (go32_ops): Delete global.
1847 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1849 (go32_create_inferior): Push the passed in target pointer instead
1850 of referencing go32_ops.
1851 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1852 (go32_target): New function, based on init_go32_ops, but inherit
1854 (_initialize_go32_nat): Use go32_target. Move parts of
1857 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1859 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1860 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1861 SYMBOL_VALUE_ADDRESS.
1862 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1864 2014-03-06 Yao Qi <yao@codesourcery.com>
1866 * breakpoint.c (get_tracepoint_by_number): Remove argument
1867 optional_p. All callers updated. Adjust comments. Update
1869 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1871 2014-03-06 Yao Qi <yao@codesourcery.com>
1873 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1874 early if get_number returns zero. Use 'p' instead of 'args'.
1876 2014-03-06 Yao Qi <yao@codesourcery.com>
1878 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1881 2014-03-06 Yao Qi <yao@codesourcery.com>
1883 PR breakpoints/16508
1884 * tracepoint.c (check_trace_running): New function.
1885 (trace_find_command): Move code to check_trace_running and
1886 call check_trace_running.
1887 (trace_find_pc_command): Likewise.
1888 (trace_find_tracepoint_command): Likewise.
1889 (trace_find_line_command): Likewise.
1890 (trace_find_range_command): Likewise.
1891 * tracepoint.h (check_trace_running): Likewise.
1892 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1894 2014-03-06 Yao Qi <yao@codesourcery.com>
1896 * target.h (struct target_ops) <to_traceframe_info>: Use
1897 TARGET_DEFAULT_NORETURN (tcomplain ()).
1898 * target-delegates.c: Regenerated.
1900 2014-03-05 Pedro Alves <palves@redhat.com>
1903 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1904 void. Update comment.
1905 (dcache_xfer_memory): Delete.
1906 (dcache_read_memory_partial): New, based on the read bits of
1908 (dcache_update): Add status parameter. Use ULONGEST for len, and
1909 adjust. Discard cache lines if the reason for the update was
1911 * dcache.h (dcache_xfer_memory): Delete declaration.
1912 (dcache_read_memory_partial): New declaration.
1913 (dcache_update): Update prototype.
1914 * target.c (raw_memory_xfer_partial): Update the dcache here.
1915 (memory_xfer_partial_1): Don't handle dcache writes here.
1917 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1919 * remote-sim.c (gdbsim_load): Add const to prog.
1921 2014-03-03 Tom Tromey <tromey@redhat.com>
1923 * elfread.c (probe_key): Change to bfd_data.
1924 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1925 now per-BFD, not per-objfile.
1926 * stap-probe.c (stap_probe_destroy): Update comment.
1927 (handle_stap_probe): Allocate on the per-BFD obstack.
1929 2014-03-03 Tom Tromey <tromey@redhat.com>
1931 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1932 * breakpoint.c (create_longjmp_master_breakpoint): Use
1934 (add_location_to_breakpoint, bkpt_probe_insert_location)
1935 (bkpt_probe_remove_location): Update.
1936 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1937 * elfread.c (elf_symfile_relocate_probe): Remove.
1938 (elf_probe_fns): Update.
1939 (insert_exception_resume_breakpoint): Change type of "probe"
1940 parameter to bound_probe.
1941 (check_exception_resume): Update.
1942 * objfiles.c (objfile_relocate1): Don't relocate probes.
1943 * probe.c (bound_probe_s): New typedef.
1944 (parse_probes): Use get_probe_address. Set sal's objfile.
1945 (find_probe_by_pc): Return a bound_probe.
1946 (collect_probes): Return a VEC(bound_probe_s).
1947 (compare_probes): Update.
1948 (gen_ui_out_table_header_info): Change type of "probes"
1950 (info_probes_for_ops): Update.
1951 (get_probe_address): New function.
1952 (probe_safe_evaluate_at_pc): Update.
1953 * probe.h (struct probe_ops) <get_probe_address>: New field.
1954 <set_semaphore, clear_semaphore>: Add objfile parameter.
1955 (struct probe) <objfile>: Remove field.
1957 <address>: Update comment.
1958 (struct bound_probe): New.
1959 (find_probe_by_pc): Return a bound_probe.
1960 (get_probe_address): Declare.
1961 * solib-svr4.c (struct probe_and_action) <address>: New field.
1962 (hash_probe_and_action, equal_probe_and_action): Update.
1963 (register_solib_event_probe): Add address parameter.
1964 (solib_event_probe_at): Update.
1965 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1967 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1968 (stap_get_probe_address): New function.
1969 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1970 (compile_probe_arg): Update.
1971 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1973 (handle_stap_probe): Don't relocate the probe.
1974 (stap_relocate): Remove.
1975 (stap_gen_info_probes_table_values): Update.
1976 (stap_probe_ops): Remove stap_relocate.
1977 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1978 (debug_sym_probe_fns): Update.
1979 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1980 * symtab.c (init_sal): Use memset.
1981 * symtab.h (struct symtab_and_line) <objfile>: New field.
1982 * tracepoint.c (start_tracing, stop_tracing): Update.
1984 2014-03-03 Tom Tromey <tromey@redhat.com>
1986 * probe.h (parse_probes, find_probe_by_pc)
1987 (find_probes_in_objfile): Fix comments.
1989 2014-03-02 Doug Evans <xdje42@gmail.com>
1991 * infrun.c (handle_signal_stop): Replace test for
1992 TARGET_WAITKIND_STOPPED with an assert.
1994 2014-03-02 Doug Evans <xdje42@gmail.com>
1996 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1998 2014-03-02 Doug Evans <xdje42@gmail.com>
2000 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2002 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2004 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2006 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2008 * i386obsd-nat.c: Include "obsd-nat.h".
2009 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2011 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2013 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2015 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2017 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2019 * mips64obsd-nat.c: Include "obsd-nath".
2020 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2022 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2024 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2026 * amd64obsd-nat.c: Include "obsd-nat,h.
2027 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2029 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2031 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2033 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2034 (find_overload_match): Update call to find_oload_champ.
2035 (find_oload_champ_namespace_loop): Likewise
2037 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2039 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2041 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2042 * config/sparc/obsd64.mh: New file.
2043 * sparc64obsd-nat.c: New file.
2045 * obsd-nat.h: New file.
2046 * obsd-nat.c: New file.
2047 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2048 (ALLDEPFILES): Add obsd-nat.c.
2050 2014-02-28 Tom Tromey <tromey@redhat.com>
2052 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2053 * cli-out.h (cli_ui_out_impl): Now const.
2054 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2055 * ui-out.c (struct ui_out) <impl>: Now const.
2056 (default_ui_out_impl): Now const.
2057 (ui_out_new): Make 'impl' parameter const.
2058 * ui-out.h (ui_out_new): Update.
2060 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2062 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2064 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2066 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2068 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2070 Additional PR 8882 fix.
2071 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2073 2014-02-27 Pedro Alves <palves@redhat.com>
2075 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2078 2014-02-27 Pedro Alves <palves@redhat.com>
2081 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2082 * nat/linux-waitpid.c: Include string.h.
2083 (status_to_str): Moved here and made extern.
2084 * nat/linux-waitpid.h (status_to_str): New declaration.
2086 2014-02-27 Hui Zhu <hui@codesourcery.com>
2089 * infrun.c (ptid_match): Move ...
2090 * common/ptid.c (ptid_match): ... here.
2091 * inferior.h (ptid_match): Move ...
2092 * common/ptid.h (ptid_match): ... here.
2094 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2096 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2097 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2100 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2102 * obsd-tdep.c (obsd_auxv_parse): New function.
2103 (obsd_init_abi): Set auxv_parse.
2105 * gdbarch.sh (auxv_parse): New.
2106 * gdbarch.h: Regenerated.
2107 * gdbarch.c: Regenerated.
2108 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2110 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2112 * guile/scm-value.c (gdbscm_history_append_x): New function.
2113 (value_functions): Add it.
2115 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2117 * dwarf2read.c (attr_value_as_address): New function.
2118 (dwarf2_find_base_address, read_call_site_scope): Use
2119 attr_value_as_address in place of DW_ADDR.
2120 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2121 the low and high addresses. Slight rework of the handling
2122 of the high pc being a constant form, and limit it to
2123 DWARF verson 4 or higher.
2124 (dwarf2_record_block_ranges): Likewise.
2125 (read_partial_die): Likewise.
2126 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2128 2014-02-26 Tom Tromey <tromey@redhat.com>
2130 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2132 2014-02-26 Tom Tromey <tromey@redhat.com>
2134 * elfread.c (elf_read_minimal_symbols): Return early if
2135 minimal symbols have already been read. Add "ei" parameter.
2136 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2137 * minsyms.c (prim_record_minimal_symbol_full): Update.
2138 * objfiles.h (struct objstats) <n_minsyms>: Move...
2139 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2140 * symmisc.c (print_objfile_statistics): Update.
2142 2014-02-26 Tom Tromey <tromey@redhat.com>
2144 * elfread.c (elf_read_minimal_symbols): New function, from
2146 (elf_symfile_read): Call it.
2148 2014-02-26 Tom Tromey <tromey@redhat.com>
2150 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2151 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2152 (lookup_minimal_symbol_solib_trampoline)
2153 (lookup_minimal_symbol_by_pc_section_1)
2154 (lookup_minimal_symbol_and_objfile): Update.
2155 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2156 Don't allocate a minimal symbol if minsyms have already been read.
2157 (build_minimal_symbol_hash_tables): Update.
2158 (install_minimal_symbols): Do nothing if minsyms already read.
2159 Use the per-BFD obstack.
2160 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2161 * objfiles.c (allocate_objfile): Call
2162 terminate_minimal_symbol_table later.
2163 (have_minimal_symbols): Update.
2164 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2165 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2166 Move from struct objfile.
2167 <minsyms_read>: New field.
2168 (struct objfile) <msymbols, minimal_symbol_count,
2169 msymbol_hash, msymbol_demangled_hash>: Move.
2170 (ALL_OBJFILE_MSYMBOLS): Update.
2171 * symfile.c (read_symbols): Set minsyms_read.
2172 (reread_symbols): Update.
2173 * symmisc.c (dump_objfile, dump_msymbols): Update.
2175 2014-02-26 Tom Tromey <tromey@redhat.com>
2177 * minsyms.c (msymbols_sort): Remove.
2178 * minsyms.h (msymbols_sort): Remove.
2179 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2180 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2181 * elfread.c (elf_symtab_read): Don't add section offsets.
2182 * xcoffread.c (record_minimal_symbol): Don't add section offset
2183 to minimal symbol address.
2184 * somread.c (text_offset, data_offset): Remove.
2185 (som_symtab_read): Don't add section offsets to minimal symbol
2187 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2188 Don't add section offsets to minimal symbols.
2189 * coffread.c (coff_symtab_read): Don't add section offsets
2190 to minimal symbol addresses.
2191 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2192 to minimal symbol addresses.
2193 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2194 section offset to minimal symbol addresses.
2195 * mdebugread.c (parse_partial_symbols): Don't add section
2196 offset to minimal symbol addresses.
2197 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2198 offset to minimal symbol addresses.
2200 2014-02-26 Tom Tromey <tromey@redhat.com>
2202 * ada-lang.c (ada_main_name): Update.
2203 (ada_add_standard_exceptions): Update.
2204 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2205 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2206 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2207 * auxv.c (ld_so_xfer_auxv): Update.
2208 * avr-tdep.c (avr_scan_prologue): Update.
2209 * ax-gdb.c (gen_var_ref): Update.
2210 * blockframe.c (get_pc_function_start)
2211 (find_pc_partial_function_gnu_ifunc): Update.
2212 * breakpoint.c (create_overlay_event_breakpoint)
2213 (create_longjmp_master_breakpoint)
2214 (create_std_terminate_master_breakpoint)
2215 (create_exception_master_breakpoint): Update.
2216 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2217 * c-valprint.c (c_val_print): Update.
2218 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2219 * common/agent.c (agent_look_up_symbols): Update.
2220 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2221 * dwarf2loc.c (call_site_to_target_addr): Update.
2222 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2223 * elfread.c (elf_gnu_ifunc_record_cache)
2224 (elf_gnu_ifunc_resolve_by_got): Update.
2225 * findvar.c (default_read_var_value): Update.
2226 * frame.c (inside_main_func): Update.
2227 * frv-tdep.c (frv_frame_this_id): Update.
2228 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2229 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2231 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2232 (hppa_hpux_find_dummy_bpaddr): Update.
2233 * hppa-tdep.c (hppa_symbol_address): Update.
2234 * infcmd.c (until_next_command): Update.
2235 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2237 * linespec.c (minsym_found, add_minsym): Update.
2238 * linux-nat.c (get_signo): Update.
2239 * linux-thread-db.c (inferior_has_bug): Update.
2240 * m32c-tdep.c (m32c_return_value)
2241 (m32c_m16c_address_to_pointer): Update.
2242 * m32r-tdep.c (m32r_frame_this_id): Update.
2243 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2244 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2245 * maint.c (maintenance_translate_address): Update.
2246 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2247 (frob_address): New function.
2248 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2249 frob_address. Rename parameter to "pc_in".
2250 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2252 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2254 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2255 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2256 * objc-lang.c (find_objc_msgsend): Update.
2257 * objfiles.c (objfile_relocate1): Update.
2258 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2259 * p-valprint.c (pascal_val_print): Update.
2260 * parse.c (write_exp_msymbol): Update.
2261 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2262 (ppc_elfv2_skip_entrypoint): Update.
2263 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2264 * printcmd.c (build_address_symbolic, msym_info)
2265 (address_info): Update.
2266 * proc-service.c (ps_pglobal_lookup): Update.
2267 * psymtab.c (find_pc_sect_psymtab_closer)
2268 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2269 Change msymbol parameter to bound_minimal_symbol.
2270 * ravenscar-thread.c (get_running_thread_id): Update.
2271 * remote.c (remote_check_symbols): Update.
2272 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2274 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2275 * solib-dsbt.c (lm_base): Update.
2276 * solib-frv.c (lm_base, main_got): Update.
2277 * solib-irix.c (locate_base): Update.
2278 * solib-som.c (som_solib_create_inferior_hook)
2279 (link_map_start): Update.
2280 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2281 * solib-svr4.c (elf_locate_base, enable_break): Update.
2282 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2283 (flush_ea_cache): Update.
2284 * stabsread.c (define_symbol, scan_file_globals): Update.
2285 * stack.c (find_frame_funname): Update.
2286 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2287 (debug_qf_find_pc_sect_symtab): Update.
2288 * symfile.c (simple_read_overlay_table)
2289 (simple_overlay_update): Update.
2290 * symfile.h (struct quick_symbol_functions)
2291 <find_pc_sect_symtab>: Change type of msymbol to
2292 bound_minimal_symbol.
2293 * symmisc.c (dump_msymbols): Update.
2294 * symtab.c (find_pc_sect_symtab_via_partial)
2295 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2296 (search_symbols, print_msymbol_info): Update.
2297 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2298 (MSYMBOL_VALUE_ADDRESS): Redefine.
2299 (BMSYMBOL_VALUE_ADDRESS): New macro.
2300 * tracepoint.c (scope_info): Update.
2301 * tui/tui-disasm.c (tui_find_disassembly_address)
2302 (tui_get_begin_asm_address): Update.
2303 * valops.c (find_function_in_inferior): Update.
2304 * value.c (value_static_field, value_fn_field): Update.
2306 2014-02-26 Tom Tromey <tromey@redhat.com>
2308 * ada-lang.c (ada_update_initial_language): Update.
2309 (ada_main_name, ada_has_this_exception_support): Update.
2310 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2311 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2312 * arm-tdep.c (arm_skip_stub): Update.
2313 * auxv.c (ld_so_xfer_auxv): Update.
2314 * avr-tdep.c (avr_scan_prologue): Update.
2315 * ax-gdb.c (gen_var_ref): Update.
2316 * breakpoint.c (struct breakpoint_objfile_data)
2317 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2318 type to bound_minimal_symbol.
2319 (create_overlay_event_breakpoint)
2320 (create_longjmp_master_breakpoint)
2321 (create_std_terminate_master_breakpoint)
2322 (create_exception_master_breakpoint): Update.
2323 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2324 * c-exp.y (classify_name): Update.
2325 * coffread.c (coff_symfile_read): Update.
2326 * common/agent.c (agent_look_up_symbols): Update.
2327 * d-lang.c (d_main_name): Update.
2328 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2329 * dec-thread.c (enable_dec_thread): Update.
2330 * dwarf2loc.c (call_site_to_target_addr): Update.
2331 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2332 * eval.c (evaluate_subexp_standard): Update.
2333 * findvar.c (struct minsym_lookup_data) <result>: Change type
2334 to bound_minimal_symbol.
2336 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2337 * frame.c (inside_main_func): Update.
2338 * frv-tdep.c (frv_frame_this_id): Update.
2339 * gcore.c (call_target_sbrk): Update.
2340 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2341 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2343 * go-lang.c (go_main_name): Update.
2344 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2345 (hppa_hpux_find_import_stub_for_addr): Update.
2346 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2347 Update. Change return type.
2348 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2350 * jit.c (jit_breakpoint_re_set_internal): Update.
2351 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2353 * linux-nat.c (get_signo): Update.
2354 * linux-thread-db.c (inferior_has_bug): Update
2355 * m32c-tdep.c (m32c_return_value)
2356 (m32c_m16c_address_to_pointer): Update.
2357 * m32r-tdep.c (m32r_frame_this_id): Update.
2358 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2359 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2360 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2361 lookup_minimal_symbol. Change return type.
2362 (lookup_minimal_symbol): Remove.
2363 (lookup_bound_minimal_symbol): Update.
2364 (lookup_minimal_symbol_text): Change return type.
2365 (lookup_minimal_symbol_solib_trampoline): Change return type.
2366 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2367 (lookup_minimal_symbol_solib_trampoline): Change return type.
2368 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2369 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2370 (value_nsstring, find_imps): Update.
2371 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2372 * p-lang.c (pascal_main_name): Update.
2373 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2374 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2375 * proc-service.c (ps_pglobal_lookup): Update.
2376 * ravenscar-thread.c (get_running_thread_msymbol): Change
2378 (has_ravenscar_runtime, get_running_thread_id): Update.
2379 * remote.c (remote_check_symbols): Update.
2380 * sol-thread.c (ps_pglobal_lookup): Update.
2381 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2382 * solib-dsbt.c (lm_base): Update.
2383 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2385 * solib-irix.c (locate_base): Update.
2386 * solib-som.c (som_solib_create_inferior_hook)
2387 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2389 * solib-spu.c (spu_enable_break): Update.
2390 * solib-svr4.c (elf_locate_base, enable_break): Update.
2391 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2392 (flush_ea_cache): Update.
2393 * stabsread.c (define_symbol): Update.
2394 * symfile.c (simple_read_overlay_table): Update.
2395 * symtab.c (find_pc_sect_line): Update.
2396 * tracepoint.c (scope_info): Update.
2397 * tui-disasm.c (tui_get_begin_asm_address): Update.
2398 * value.c (value_static_field): Update.
2400 2014-02-26 Tom Tromey <tromey@redhat.com>
2402 * minsyms.c (prim_record_minimal_symbol_full): Use
2403 SET_MSYMBOL_VALUE_ADDRESS.
2404 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2405 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2406 SET_MSYMBOL_VALUE_ADDRESS.
2407 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2408 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2410 2014-02-26 Tom Tromey <tromey@redhat.com>
2412 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2413 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2414 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2415 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2416 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2417 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2418 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2419 * ada-lang.c (ada_main_name): Update.
2420 (ada_lookup_simple_minsym): Update.
2421 (ada_make_symbol_completion_list): Update.
2422 (ada_add_standard_exceptions): Update.
2423 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2424 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2425 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2426 * arm-tdep.c (skip_prologue_function): Update.
2427 (arm_skip_stack_protector, arm_skip_stub): Update.
2428 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2429 (arm_wince_skip_main_prologue): Update.
2430 * auxv.c (ld_so_xfer_auxv): Update.
2431 * avr-tdep.c (avr_scan_prologue): Update.
2432 * ax-gdb.c (gen_var_ref): Update.
2433 * block.c (call_site_for_pc): Update.
2434 * blockframe.c (get_pc_function_start): Update.
2435 (find_pc_partial_function_gnu_ifunc): Update.
2436 * breakpoint.c (create_overlay_event_breakpoint): Update.
2437 (create_longjmp_master_breakpoint): Update.
2438 (create_std_terminate_master_breakpoint): Update.
2439 (create_exception_master_breakpoint): Update.
2440 (resolve_sal_pc): Update.
2441 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2442 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2444 * c-valprint.c (c_val_print): Update.
2445 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2446 * coffread.c (coff_symfile_read): Update.
2447 * common/agent.c (agent_look_up_symbols): Update.
2448 * dbxread.c (find_stab_function_addr): Update.
2449 (end_psymtab): Update.
2450 * dwarf2loc.c (call_site_to_target_addr): Update.
2451 (func_verify_no_selftailcall): Update.
2452 (tailcall_dump): Update.
2453 (call_site_find_chain_1): Update.
2454 (dwarf_expr_reg_to_entry_parameter): Update.
2455 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2456 (elf_gnu_ifunc_resolve_by_got): Update.
2457 * f-valprint.c (info_common_command): Update.
2458 * findvar.c (read_var_value): Update.
2459 * frame.c (get_prev_frame_1): Update.
2460 (inside_main_func): Update.
2461 * frv-tdep.c (frv_skip_main_prologue): Update.
2462 (frv_frame_this_id): Update.
2463 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2464 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2465 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2466 (gnuv3_skip_trampoline): Update.
2467 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2468 (hppa64_hpux_in_solib_call_trampoline): Update.
2469 (hppa_hpux_skip_trampoline_code): Update.
2470 (hppa64_hpux_search_dummy_call_sequence): Update.
2471 (hppa_hpux_find_import_stub_for_addr): Update.
2472 (hppa_hpux_find_dummy_bpaddr): Update.
2473 * hppa-tdep.c (hppa_symbol_address)
2474 (hppa_lookup_stub_minimal_symbol): Update.
2475 * i386-tdep.c (i386_skip_main_prologue): Update.
2476 (i386_pe_skip_trampoline_code): Update.
2477 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2478 * infcall.c (get_function_name): Update.
2479 * infcmd.c (until_next_command): Update.
2480 * jit.c (jit_breakpoint_re_set_internal): Update.
2481 (jit_inferior_init): Update.
2482 * linespec.c (minsym_found): Update.
2483 (add_minsym): Update.
2484 * linux-fork.c (info_checkpoints_command): Update.
2485 * linux-nat.c (get_signo): Update.
2486 * linux-thread-db.c (inferior_has_bug): Update.
2487 * m32c-tdep.c (m32c_return_value): Update.
2488 (m32c_m16c_address_to_pointer): Update.
2489 (m32c_m16c_pointer_to_address): Update.
2490 * m32r-tdep.c (m32r_frame_this_id): Update.
2491 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2492 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2493 * maint.c (maintenance_translate_address): Update.
2494 * minsyms.c (add_minsym_to_hash_table): Update.
2495 (add_minsym_to_demangled_hash_table): Update.
2496 (msymbol_objfile): Update.
2497 (lookup_minimal_symbol): Update.
2498 (iterate_over_minimal_symbols): Update.
2499 (lookup_minimal_symbol_text): Update.
2500 (lookup_minimal_symbol_by_pc_name): Update.
2501 (lookup_minimal_symbol_solib_trampoline): Update.
2502 (lookup_minimal_symbol_by_pc_section_1): Update.
2503 (lookup_minimal_symbol_and_objfile): Update.
2504 (prim_record_minimal_symbol_full): Update.
2505 (compare_minimal_symbols): Update.
2506 (compact_minimal_symbols): Update.
2507 (build_minimal_symbol_hash_tables): Update.
2508 (install_minimal_symbols): Update.
2509 (terminate_minimal_symbol_table): Update.
2510 (find_solib_trampoline_target): Update.
2511 (minimal_symbol_upper_bound): Update.
2512 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2513 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2514 (mips_skip_pic_trampoline_code): Update.
2515 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2516 * objc-lang.c (selectors_info): Update.
2517 (classes_info): Update.
2518 (find_methods): Update.
2519 (find_imps): Update.
2520 (find_objc_msgsend): Update.
2521 * objfiles.c (objfile_relocate1): Update.
2522 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2523 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2524 * p-valprint.c (pascal_val_print): Update.
2525 * parse.c (write_exp_msymbol): Update.
2526 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2527 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2528 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2529 * printcmd.c (build_address_symbolic): Update.
2531 (address_info): Update.
2532 * proc-service.c (ps_pglobal_lookup): Update.
2533 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2534 (find_pc_sect_psymtab): Update.
2535 * python/py-framefilter.c (py_print_frame): Update.
2536 * ravenscar-thread.c (get_running_thread_id): Update.
2537 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2539 * remote.c (remote_check_symbols): Update.
2540 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2541 (rs6000_skip_trampoline_code): Update.
2542 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2543 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2544 * solib-dsbt.c (lm_base): Update.
2545 * solib-frv.c (lm_base): Update.
2547 * solib-irix.c (locate_base): Update.
2548 * solib-som.c (som_solib_create_inferior_hook): Update.
2549 (som_solib_desire_dynamic_linker_symbols): Update.
2550 (link_map_start): Update.
2551 * solib-spu.c (spu_enable_break): Update.
2552 (ocl_enable_break): Update.
2553 * solib-svr4.c (elf_locate_base): Update.
2554 (enable_break): Update.
2555 * spu-tdep.c (spu_get_overlay_table): Update.
2556 (spu_catch_start): Update.
2557 (flush_ea_cache): Update.
2558 * stabsread.c (define_symbol): Update.
2559 (scan_file_globals): Update.
2560 * stack.c (find_frame_funname): Update.
2561 (frame_info): Update.
2562 * symfile.c (simple_read_overlay_table): Update.
2563 (simple_overlay_update): Update.
2564 * symmisc.c (dump_msymbols): Update.
2565 * symtab.c (fixup_section): Update.
2566 (find_pc_sect_line): Update.
2567 (skip_prologue_sal): Update.
2568 (search_symbols): Update.
2569 (print_msymbol_info): Update.
2570 (rbreak_command): Update.
2571 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2572 (completion_list_objc_symbol): Update.
2573 (default_make_symbol_completion_list_break_on): Update.
2574 * tracepoint.c (scope_info): Update.
2575 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2576 (tui_get_begin_asm_address): Update.
2577 * valops.c (find_function_in_inferior): Update.
2578 * value.c (value_static_field): Update.
2579 (value_fn_field): Update.
2581 2014-02-26 Tom Tromey <tromey@redhat.com>
2583 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2584 bound minimal symbols. Move code that knows about minsym
2586 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2588 * minsyms.h (minimal_symbol_upper_bound): Declare.
2589 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2590 minimal_symbol_upper_bound.
2592 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2594 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2595 Use the type's name if its basic type does not have a tag.
2597 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2599 * dwarf2read.c (read_subrange_type): Add comment.
2601 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2603 * dwarf2read.c (update_enumeration_type_from_children): New
2604 function, mostly extracted from process_structure_scope.
2605 (read_enumeration_type): Call update_enumeration_type_from_children.
2606 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2607 and flag_flag_enum fields.
2609 2014-02-26 Pedro Alves <palves@redhat.com>
2611 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2612 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2613 to_xfer_partial method.
2615 2014-02-26 Pedro Alves <palves@redhat.com>
2617 * target.c (complete_target_initialization): Don't install
2618 default_xfer_partial as to_xfer_partial hook.
2620 (update_current_target): Don't INHERIT nor de_fault
2621 deprecated_xfer_memory. Delete de_fault macro.
2622 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2623 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2624 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2627 2014-02-26 Pedro Alves <palves@redhat.com>
2629 * go32-nat.c (my_write_child): New function.
2630 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2631 (go32_xfer_partial): New function.
2632 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2633 Instead install a to_xfer_partial hook.
2635 2014-02-26 Pedro Alves <palves@redhat.com>
2637 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2638 to_xfer_partial helper. Rewrite.
2639 (procfs_xfer_partial): New function.
2640 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2641 Install a to_xfer_partial hook.
2643 2014-02-26 Pedro Alves <palves@redhat.com>
2645 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2646 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2647 (m32r_xfer_partial): New function.
2648 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2649 Install a to_xfer_partial hook.
2651 2014-02-26 Pedro Alves <palves@redhat.com>
2653 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2655 (mips_xfer_partial): New function.
2656 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2657 hook. Install a to_xfer_partial hook.
2659 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2661 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2662 * gdbtypes.c (create_array_type_with_stride): New function,
2663 renaming create_array_type, but with an added parameter
2664 called "bit_stride".
2665 (create_array_type): Re-implement using
2666 create_array_type_with_stride.
2667 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2668 and DW_AT_bit_stride attributes.
2670 2014-02-26 Pedro Alves <palves@redhat.com>
2672 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2673 task-specific breakpoints.
2675 2014-02-25 Pedro Alves <palves@redhat.com>
2677 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2678 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2680 2014-02-25 Stan Shebs <stan@codesourcery.com>
2682 * defs.h: Annotate comments for Doxygen.
2684 2014-02-25 Tom Tromey <tromey@redhat.com>
2686 * target.h (target_ignore): Don't declare.
2687 * target.c (target_ignore): Remove.
2689 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2692 * auto-load.c (auto_load_objfile_script_1): Change filename to
2695 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2697 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2698 documentation. Adjust prototype to match the target_ops
2699 to_xfer_partial method. Adjust implementation accordingly.
2701 2014-02-25 Hui Zhu <hui@codesourcery.com>
2703 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2706 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2708 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2709 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2710 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2711 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2712 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2713 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2714 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2715 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2717 (rl78_register_type): Use a data pointer type for SP and
2718 new pseudo registers mentioned above. Use a 16 bit integer
2719 type for all other register pairs.
2720 (rl78_register_name, rl78_g10_register_name): Update for
2721 new pseudo registers.
2722 (rl78_pseudo_register_read): Likewise.
2723 (rl78_pseudo_register_write): Likewise.
2724 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2725 to the newly added pseudo registers.
2727 2014-02-24 Doug Evans <dje@google.com>
2729 * value.c (record_latest_value): Fix comment.
2730 * printcmd.c (print_command_1): Remove code to handle -1 return from
2731 record_latest_value.
2733 2014-02-24 Pedro Alves <palves@redhat.com>
2735 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2736 deprecated_xfer_memory hook.
2737 (procfs_xfer_partial): Call procfs_xfer_memory instead
2738 of the deprecated_xfer_memory target hook.
2739 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2742 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2744 * windows-nat.c (windows_xfer_shared_libraries): Return
2745 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2746 requested object is TARGET_OBJECT_LIBRARIES.
2748 2014-02-24 Yao Qi <yao@codesourcery.com>
2750 * target.h (enum target_xfer_status)
2751 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2752 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2754 * corefile.c (memory_error_message): User updated.
2755 * exec.c (section_table_read_available_memory): Likewise.
2756 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2757 * target.c (target_xfer_status_to_string): Likewise.
2758 (raw_memory_xfer_partial): Likewise.
2759 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2760 * valops.c (read_value_memory): Likewise.
2761 * exec.h: Update comments.
2763 2014-02-24 Yao Qi <yao@codesourcery.com>
2765 * target.c (target_xfer_status_to_string): Rename argument err
2767 * target.h (target_xfer_status_to_string): Update declaration.
2768 Replace target_xfer_error_to_string with
2769 target_xfer_status_to_string in comment.
2771 2014-02-24 Yao Qi <yao@codesourcery.com>
2773 * mips-linux-nat.c (super_close): Update its type.
2774 (mips_linux_close): Pass 'self' to super_close.
2776 2014-02-24 Yao Qi <yao@codesourcery.com>
2778 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2779 * corefile.c (read_memory): Adjusted.
2780 * target.c (target_write_with_progress): Adjusted.
2782 2014-02-23 Yao Qi <yao@codesourcery.com>
2786 2013-10-25 Yao Qi <yao@codesourcery.com>
2788 * remote.c (remote_traceframe_info): Return early if
2789 traceframe is not selected.
2791 2013-07-19 Yao Qi <yao@codesourcery.com>
2793 * target.c (update_current_target): Change the default action
2794 of 'to_traceframe_info' from tcomplain to return_zero.
2795 * target.h (struct target_ops) <to_traceframe_info>: Add more
2798 2014-02-23 Yao Qi <yao@codesourcery.com>
2800 * valops.c (read_value_memory): Rewrite it. Call
2801 target_xfer_partial in a loop.
2802 * exec.h (section_table_available_memory): Remove declaration.
2803 Move comments to ...
2804 * exec.c (section_table_available_memory): ... here. Make it
2807 2014-02-23 Yao Qi <yao@codesourcery.com>
2809 * exec.c (section_table_read_available_memory): New function.
2810 * exec.h (section_table_read_available_memory): Declare.
2811 * ctf.c (ctf_xfer_partial): Call
2812 section_table_read_available_memory.
2813 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2815 2014-02-23 Yao Qi <yao@codesourcery.com>
2817 * ctf.c (ctf_xfer_partial): Move code to ...
2818 * exec.c (exec_read_partial_read_only): ... it. New function.
2819 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2820 * tracefile.c: Include "exec.h".
2821 * exec.h (exec_read_partial_read_only): Declare.
2823 2014-02-23 Yao Qi <yao@codesourcery.com>
2825 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2826 (tfile_has_memory): Remove.
2827 (init_tfile_ops): Don't set fields to_has_all_memory and
2828 to_has_memory of tfile_ops.
2829 * tracefile.c (tracefile_has_all_memory): New function.
2830 (tracefile_has_memory): New function.
2831 (init_tracefile_ops): Initialize fields to_has_all_memory and
2832 to_has_memory of 'ops'.
2834 2014-02-23 Yao Qi <yao@codesourcery.com>
2836 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2837 (ctf_thread_alive, ctf_get_trace_status): Remove.
2838 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2840 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2841 (tfile_has_stack, tfile_has_registers): Remove.
2842 (tfile_thread_alive): Remove.
2843 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2845 * tracefile.c (tracefile_has_stack): New function.
2846 (tracefile_has_registers): New function.
2847 (tracefile_thread_alive): New function.
2848 (tracefile_get_trace_status): New function.
2849 (init_tracefile_ops): New function.
2850 * tracefile.h (init_tracefile_ops): Declare.
2852 2014-02-23 Yao Qi <yao@codesourcery.com>
2854 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2855 (O_LARGEFILE): Likewise.
2856 (tfile_ops): Likewise.
2857 (TRACE_HEADER_SIZE): Likewise.
2858 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2859 (cur_data_size): Likewise.
2860 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2861 (tfile_close, tfile_files_info): Likewise.
2862 (tfile_get_trace_status): Likewise.
2863 (tfile_get_tracepoint_status): Likewise.
2864 (tfile_get_traceframe_address): Likewise.
2865 (tfile_trace_find, match_blocktype): Likewise.
2866 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2867 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2868 (tfile_get_trace_state_variable_value): Likewise.
2869 (tfile_has_all_memory, tfile_has_memory): Likewise.
2870 (tfile_has_stack, tfile_has_registers): Likewise.
2871 (tfile_thread_alive, build_traceframe_info): Likewise.
2872 (tfile_traceframe_info, init_tfile_ops): Likewise.
2873 (_initialize_tracepoint): Don't call init_tfile_ops
2874 and add_target_with_completer.
2875 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2876 exec.h, completer.h and filenames.h.
2877 (_initialize_tracefile_tfile): New function.
2879 2014-02-23 Yao Qi <yao@codesourcery.com>
2881 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2883 (HFILES_NO_SRCDIR): Add tracefile.h.
2884 * ctf.c: Include "tracefile.h".
2885 * tracefile.h: New file.
2886 * tracefile.c: New file
2887 * tracefile-tfile.c: New file.
2888 * tracepoint.c: Include "tracefile.h".
2889 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2890 (stop_reason_names): Add const.
2891 (trace_file_writer_xfree): Move it to tracefile.c.
2892 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2893 (trace_save_ctf): Likewise.
2894 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2895 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2896 (tfile_write_header, tfile_write_regblock_type): Likewise.
2897 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2898 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2899 (tfile_write_raw_data, tfile_end): Likewise.
2900 (tfile_trace_file_writer_new): Likewise.
2901 (free_uploaded_tp): Make it extern.
2902 (free_uploaded_tsv): Make it extern.
2903 (_initialize_tracepoint): Move code to register command 'tsave'
2905 * tracepoint.h (stop_reason_names): Declare.
2906 (struct trace_frame_write_ops): Move it to tracefile.h.
2907 (struct trace_file_write_ops): Likewise.
2908 (struct trace_file_writer): Likewise.
2909 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2911 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2914 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2916 (get_cores_used_by_process): New parameter num_cores, use it.
2917 (linux_xfer_osdata_processes): Pass num_cores to it.
2918 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2921 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2923 * target.c (memory_xfer_partial): Fix length arg in call to
2924 breakpoint_xfer_memory.
2926 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2929 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2930 number comes after the + or - signs. Adjust length of register
2931 name to be extracted.
2933 2014-02-20 Tom Tromey <tromey@redhat.com>
2935 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2936 (ada_varobj_ops): Mark "extern".
2938 2014-02-20 Tom Tromey <tromey@redhat.com>
2940 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2942 2014-02-20 Doug Evans <xdje42@gmail.com>
2944 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2945 All callers updated.
2946 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2947 All callers updated.
2948 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2949 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2951 2014-02-20 lin zuojian <manjian2006@gmail.com>
2952 Joel Brobecker <brobecker@adacore.com>
2953 Doug Evans <xdje42@gmail.com>
2956 * dwarf2read.c (struct die_info): New member in_process.
2957 (reset_die_in_process): New function.
2958 (process_die): Set it at the start, reset when returning.
2959 (inherit_abstract_dies): Only call process_die if origin_child_die
2960 not already being processed.
2962 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2964 * windows-nat.c (handle_unload_dll): Add function documentation.
2965 (do_initial_windows_stuff): Add comment explaining why we wait
2966 until after inferior initialization has finished before
2967 processing all DLLs.
2969 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2971 * windows-nat.c (get_module_name): Delete.
2972 (windows_get_exec_module_filename): New function, mostly
2973 inspired from get_module_name.
2974 (windows_pid_to_exec_file): Replace call to get_module_name
2975 by call to windows_get_exec_module_filename.
2977 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2979 * windows-nat.c (handle_load_dll): Rewrite this function's
2980 introductory comment. Remove code using get_module_name
2981 to get the DLL's name.
2983 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2985 * windows-nat.c (get_windows_debug_event): Ignore
2986 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2987 if windows_initialization_done == 0.
2988 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2989 Adjust implementation to always load all DLLs.
2990 (do_initial_windows_stuff): Replace call to
2991 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2993 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2995 * windows-nat.c (_initialize_windows_nat): Deprecate the
2996 "dll-symbols" command. Turn the "add-shared-symbol-files"
2997 and "assf" aliases into commands, and deprecate them as well.
2998 * NEWS: Add entry explaining that "dll-symbols" and its two
2999 aliases are now deprecated.
3001 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3003 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3004 new-line in debug string. Remove trailing spaces.
3006 2014-02-19 Stan Shebs <stan@codesourcery.com>
3008 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3010 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3012 * NEWS: Add entry for the new feature
3013 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3016 2014-02-19 Stan Shebs <stan@codesourcery.com>
3018 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3020 2014-02-19 Pedro Alves <palves@redhat.com>
3022 * common/ptid.h (struct ptid): Mention that process_stratum
3023 targets should prefer ptid.lwp.
3025 2014-02-19 Pedro Alves <palves@redhat.com>
3027 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3028 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3029 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3030 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3031 store remote thread ids rather than ptid.tid.
3032 (_initialize_remote): Adjust.
3034 2014-02-19 Tom Tromey <tromey@redhat.com>
3036 * target.c (target_get_unwinder): Rewrite.
3037 (target_get_tailcall_unwinder): Rewrite.
3038 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3039 (record_btrace_to_get_tailcall_unwinder): New function.
3040 (init_record_btrace_ops): Update.
3041 * target.h (struct target_ops) <to_get_unwinder,
3042 to_get_tailcall_unwinder>: Now function pointers. Use
3043 TARGET_DEFAULT_RETURN.
3045 2014-02-19 Tom Tromey <tromey@redhat.com>
3047 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3049 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3051 2014-02-19 Tom Tromey <tromey@redhat.com>
3053 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3055 * target-delegates.c: Rebuild.
3056 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3057 TARGET_DEFAULT_FUNC.
3058 * target.c (default_target_decr_pc_after_break): Rename from
3059 forward_target_decr_pc_after_break. Simplify.
3060 (target_decr_pc_after_break): Rely on delegation.
3062 2014-02-19 Tom Tromey <tromey@redhat.com>
3064 * target.c (update_current_target): Do not INHERIT to_doc or
3065 to_magic. Do not de_fault to_open or to_close.
3067 2014-02-19 Tom Tromey <tromey@redhat.com>
3069 * gcore.h (objfile_find_memory_regions): Declare.
3070 * gcore.c (objfile_find_memory_regions): No longer static. Add
3072 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3073 * exec.c: Include gcore.h.
3074 (exec_set_find_memory_regions): Remove.
3075 (exec_find_memory_regions): Remove.
3076 (exec_do_find_memory_regions): Remove.
3077 (init_exec_ops): Update.
3078 * defs.h (exec_set_find_memory_regions): Remove.
3080 2014-02-19 Tom Tromey <tromey@redhat.com>
3082 * target-delegates.c: Rebuild.
3083 * target.h (struct target_ops) <to_extra_thread_info,
3084 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3085 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3086 not 0, in TARGET_DEFAULT_RETURN.
3088 2014-02-19 Tom Tromey <tromey@redhat.com>
3090 * target.c (complete_target_initialization): Remove casts. Use
3091 return_zero_has_execution.
3092 (return_zero): Add "ignore" argument.
3093 (return_zero_has_execution): New function.
3094 (init_dummy_target): Remove casts. Use
3095 return_zero_has_execution.
3097 2014-02-19 Tom Tromey <tromey@redhat.com>
3099 * target.c (update_current_target): Update comments. Do not
3102 2014-02-19 Tom Tromey <tromey@redhat.com>
3104 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3106 * corelow.c (core_read_description): Delegate when needed.
3107 * remote.c (remote_read_description): Delegate when needed.
3108 * target-delegates.c: Rebuild.
3109 * target.c (target_read_description): Rewrite.
3110 * target.h (struct target_ops) <to_read_description>: Update
3111 comment. Use TARGET_DEFAULT_RETURN.
3113 2014-02-19 Tom Tromey <tromey@redhat.com>
3115 * target-delegates.c: Rebuild.
3116 * target.c (update_current_target): Don't inherit or default
3118 (find_default_run_target): Check against delegate_can_run.
3119 * target.h (struct target_ops) <to_can_run>: Use
3120 TARGET_DEFAULT_RETURN.
3122 2014-02-19 Tom Tromey <tromey@redhat.com>
3124 * target-delegates.c: Rebuild.
3125 * target.c (target_disconnect): Unconditionally delegate.
3126 * target.h (struct target_ops) <to_disconnect>: Use
3127 TARGET_DEFAULT_NORETURN.
3129 2014-02-19 Tom Tromey <tromey@redhat.com>
3131 * record.c (record_stop): Unconditionally delegate.
3132 * target-delegates.c: Rebuild.
3133 * target.c (target_stop_recording): Unconditionally delegate.
3134 * target.h (struct target_ops) <to_stop_recording>: Use
3135 TARGET_DEFAULT_IGNORE.
3137 2014-02-19 Tom Tromey <tromey@redhat.com>
3139 * target-delegates.c: Rebuild.
3140 * target.c (target_enable_btrace): Unconditionally delegate.
3141 * target.h (struct target_ops) <to_enable_btrace>: Use
3142 TARGET_DEFAULT_NORETURN.
3144 2014-02-19 Tom Tromey <tromey@redhat.com>
3146 * target-delegates.c: Rebuild.
3147 * target.c (target_read_btrace): Unconditionally delegate.
3148 * target.h (struct target_ops) <to_read_btrace>: Use
3149 TARGET_DEFAULT_NORETURN.
3151 2014-02-19 Tom Tromey <tromey@redhat.com>
3153 * target-delegates.c: Rebuild.
3154 * target.c (target_teardown_btrace): Unconditionally delegate.
3155 * target.h (struct target_ops) <to_teardown_btrace>: Use
3156 TARGET_DEFAULT_NORETURN.
3158 2014-02-19 Tom Tromey <tromey@redhat.com>
3160 * target-delegates.c: Rebuild.
3161 * target.c (target_disable_btrace): Unconditionally delegate.
3162 * target.h (struct target_ops) <to_disable_btrace>: Use
3163 TARGET_DEFAULT_NORETURN.
3165 2014-02-19 Tom Tromey <tromey@redhat.com>
3167 * target-delegates.c: Rebuild.
3168 * target.c (default_search_memory): New function.
3169 (simple_search_memory): Update comment.
3170 (target_search_memory): Unconditionally delegate.
3171 * target.h (struct target_ops) <to_search_memory>: Use
3172 TARGET_DEFAULT_FUNC.
3174 2014-02-19 Tom Tromey <tromey@redhat.com>
3176 * auxv.c (default_auxv_parse): No longer static.
3177 (target_auxv_parse): Unconditionally delegate.
3178 * auxv.h (default_auxv_parse): Declare.
3179 * target-delegates.c: Rebuild.
3180 * target.c: Include auxv.h.
3181 * target.h (struct target_ops) <to_auxv_parse>: Use
3182 TARGET_DEFAULT_FUNC.
3184 2014-02-19 Tom Tromey <tromey@redhat.com>
3186 * target-delegates.c: Rebuild.
3187 * target.c (target_memory_map): Unconditionally delegate.
3188 * target.h (struct target_ops) <to_memory_map>: Use
3189 TARGET_DEFAULT_RETURN.
3191 2014-02-19 Tom Tromey <tromey@redhat.com>
3193 * target-delegates.c: Rebuild.
3194 * target.c (target_thread_alive): Unconditionally delegate.
3195 * target.h (struct target_ops) <to_thread_alive>: Use
3196 TARGET_DEFAULT_RETURN.
3198 2014-02-19 Tom Tromey <tromey@redhat.com>
3200 * target-delegates.c: Rebuild.
3201 * target.c (target_save_record): Unconditionally delegate.
3202 * target.h (struct target_ops) <to_save_record>: Use
3203 TARGET_DEFAULT_NORETURN.
3205 2014-02-19 Tom Tromey <tromey@redhat.com>
3207 * target-delegates.c: Rebuild.
3208 * target.c (target_delete_record): Unconditionally delegate.
3209 * target.h (struct target_ops) <to_delete_record>: Use
3210 TARGET_DEFAULT_NORETURN.
3212 2014-02-19 Tom Tromey <tromey@redhat.com>
3214 * target-delegates.c: Rebuild.
3215 * target.c (target_record_is_replaying): Unconditionally
3217 * target.h (struct target_ops) <to_record_is_replaying>: Use
3218 TARGET_DEFAULT_RETURN.
3220 2014-02-19 Tom Tromey <tromey@redhat.com>
3222 * target-delegates.c: Rebuild.
3223 * target.c (target_goto_record_begin): Unconditionally delegate.
3224 * target.h (struct target_ops) <to_goto_record_begin>: Use
3225 TARGET_DEFAULT_NORETURN.
3227 2014-02-19 Tom Tromey <tromey@redhat.com>
3229 * target-delegates.c: Rebuild.
3230 * target.c (target_goto_record_end): Unconditionally delegate.
3231 * target.h (struct target_ops) <to_goto_record_end>: Use
3232 TARGET_DEFAULT_NORETURN.
3234 2014-02-19 Tom Tromey <tromey@redhat.com>
3236 * target-delegates.c: Rebuild.
3237 * target.c (target_goto_record): Unconditionally delegate.
3238 * target.h (struct target_ops) <to_goto_record>: Use
3239 TARGET_DEFAULT_NORETURN.
3241 2014-02-19 Tom Tromey <tromey@redhat.com>
3243 * target-delegates.c: Rebuild.
3244 * target.c (target_insn_history): Unconditionally delegate.
3245 * target.h (struct target_ops) <to_insn_history>: Use
3246 TARGET_DEFAULT_NORETURN.
3248 2014-02-19 Tom Tromey <tromey@redhat.com>
3250 * target-delegates.c: Rebuild.
3251 * target.c (target_insn_history_from): Unconditionally delegate.
3252 * target.h (struct target_ops) <to_insn_history_from>: Use
3253 TARGET_DEFAULT_NORETURN.
3255 2014-02-19 Tom Tromey <tromey@redhat.com>
3257 * target-delegates.c: Rebuild.
3258 * target.c (target_insn_history_range): Unconditionally delegate.
3259 * target.h (struct target_ops) <to_insn_history_range>: Use
3260 TARGET_DEFAULT_NORETURN.
3262 2014-02-19 Tom Tromey <tromey@redhat.com>
3264 * target-delegates.c: Rebuild.
3265 * target.c (target_call_history): Unconditionally delegate.
3266 * target.h (struct target_ops) <to_call_history>: Use
3267 TARGET_DEFAULT_NORETURN.
3269 2014-02-19 Tom Tromey <tromey@redhat.com>
3271 * target-delegates.c: Rebuild.
3272 * target.c (target_call_history_from): Unconditionally delegate.
3273 * target.h (struct target_ops) <to_call_history_from>: Use
3274 TARGET_DEFAULT_NORETURN.
3276 2014-02-19 Tom Tromey <tromey@redhat.com>
3278 * target-delegates.c: Rebuild.
3279 * target.c (target_call_history_range): Unconditionally delegate.
3280 * target.h (struct target_ops) <to_call_history_range>: Use
3281 TARGET_DEFAULT_NORETURN.
3283 2014-02-19 Tom Tromey <tromey@redhat.com>
3285 * target-delegates.c: Rebuild.
3286 * target.c (target_verify_memory): Unconditionally delegate.
3287 * target.h (struct target_ops) <to_verify_memory>: Use
3288 TARGET_DEFAULT_NORETURN.
3290 2014-02-19 Tom Tromey <tromey@redhat.com>
3292 * target-delegates.c: Rebuild.
3293 * target.c (target_core_of_thread): Unconditionally delegate.
3294 * target.h (struct target_ops) <to_core_of_thread>: Use
3295 TARGET_DEFAULT_RETURN.
3297 2014-02-19 Tom Tromey <tromey@redhat.com>
3299 * target-delegates.c: Rebuild.
3300 * target.c (target_flash_done): Unconditionally delegate.
3301 * target.h (struct target_ops) <to_flash_done>: Use
3302 TARGET_DEFAULT_NORETURN.
3304 2014-02-19 Tom Tromey <tromey@redhat.com>
3306 * target-delegates.c: Rebuild.
3307 * target.c (target_flash_erase): Unconditionally delegate.
3308 * target.h (struct target_ops) <to_flash_erase>: Use
3309 TARGET_DEFAULT_NORETURN.
3311 2014-02-19 Tom Tromey <tromey@redhat.com>
3313 * target-delegates.c: Rebuild.
3314 * target.c (target_get_section_table): Unconditionally delegate.
3315 * target.h (struct target_ops) <to_get_section_table>: Use
3316 TARGET_DEFAULT_RETURN.
3318 2014-02-19 Tom Tromey <tromey@redhat.com>
3320 * target-delegates.c: Rebuild.
3321 * target.c (target_pid_to_str): Unconditionally delegate.
3322 (init_dummy_target): Don't initialize to_pid_to_str.
3323 (default_pid_to_str): Rename from dummy_pid_to_str.
3324 * target.h (struct target_ops) <to_pid_to_str>: Use
3325 TARGET_DEFAULT_FUNC.
3327 2014-02-19 Tom Tromey <tromey@redhat.com>
3329 * target-delegates.c: Rebuild.
3330 * target.c (target_find_new_threads): Unconditionally delegate.
3331 * target.h (struct target_ops) <to_find_new_threads>: Use
3332 TARGET_DEFAULT_RETURN.
3334 2014-02-19 Tom Tromey <tromey@redhat.com>
3336 * target-delegates.c: Rebuild.
3337 * target.c (target_program_signals): Unconditionally delegate.
3338 * target.h (struct target_ops) <to_program_signals>: Use
3339 TARGET_DEFAULT_IGNORE.
3341 2014-02-19 Tom Tromey <tromey@redhat.com>
3343 * target-delegates.c: Rebuild.
3344 * target.c (target_pass_signals): Unconditionally delegate.
3345 * target.h (struct target_ops) <to_pass_signals>: Use
3346 TARGET_DEFAULT_IGNORE.
3348 2014-02-19 Tom Tromey <tromey@redhat.com>
3350 * target-delegates.c: Rebuild.
3351 * target.c (default_mourn_inferior): New function.
3352 (target_mourn_inferior): Unconditionally delegate.
3353 * target.h (struct target_ops) <to_mourn_inferior>: Use
3354 TARGET_DEFAULT_FUNC.
3356 2014-02-19 Tom Tromey <tromey@redhat.com>
3358 * target-delegates.c: Rebuild.
3359 * target.c (default_follow_fork): New function.
3360 (target_follow_fork): Unconditionally delegate.
3361 * target.h (struct target_ops) <to_follow_fork>: Use
3362 TARGET_DEFAULT_FUNC.
3364 2014-02-19 Tom Tromey <tromey@redhat.com>
3366 * target-delegates.c: Rebuild.
3367 * target.c (target_kill): Unconditionally delegate.
3368 * target.h (struct target_ops) <to_kill>: Use
3369 TARGET_DEFAULT_NORETURN.
3371 2014-02-19 Tom Tromey <tromey@redhat.com>
3373 * target-delegates.c: Rebuild.
3374 * target.c (target_masked_watch_num_registers): Unconditionally
3376 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3377 Use TARGET_DEFAULT_RETURN.
3379 2014-02-19 Tom Tromey <tromey@redhat.com>
3381 * target-delegates.c: Rebuild.
3382 * target.c (target_remove_mask_watchpoint): Unconditionally
3384 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3385 TARGET_DEFAULT_RETURN.
3387 2014-02-19 Tom Tromey <tromey@redhat.com>
3389 * target-delegates.c: Rebuild.
3390 * target.c (target_insert_mask_watchpoint): Unconditionally
3392 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3393 TARGET_DEFAULT_RETURN.
3395 2014-02-19 Tom Tromey <tromey@redhat.com>
3397 * target-delegates.c: Rebuild.
3398 * target.c (target_ranged_break_num_registers): Unconditionally
3400 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3401 Use TARGET_DEFAULT_RETURN.
3403 2014-02-19 Tom Tromey <tromey@redhat.com>
3405 * target-delegates.c: Rebuild.
3406 * target.c (target_fetch_registers): Unconditionally delegate.
3407 * target.h (struct target_ops) <to_fetch_registers>: Use
3408 TARGET_DEFAULT_NORETURN.
3410 2014-02-19 Tom Tromey <tromey@redhat.com>
3412 * target-delegates.c: Rebuild.
3413 * target.c (update_current_target): Don't inherit or default
3415 * target.h (struct target_ops) <to_stop>: Use
3416 TARGET_DEFAULT_IGNORE.
3418 2014-02-19 Tom Tromey <tromey@redhat.com>
3420 * target-delegates.c: Rebuild.
3421 * target.c (update_current_target): Don't inherit or default
3422 to_can_run_breakpoint_commands.
3423 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3424 Use TARGET_DEFAULT_RETURN.
3426 2014-02-19 Tom Tromey <tromey@redhat.com>
3428 * target-delegates.c: Rebuild.
3429 * target.c (update_current_target): Don't inherit or default
3430 to_supports_evaluation_of_breakpoint_conditions.
3431 * target.h (struct target_ops)
3432 <to_supports_evaluation_of_breakpoint_conditions>: Use
3433 TARGET_DEFAULT_RETURN.
3435 2014-02-19 Tom Tromey <tromey@redhat.com>
3437 * target-delegates.c: Rebuild.
3438 * target.c (update_current_target): Don't inherit or default
3439 to_augmented_libraries_svr4_read.
3440 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3441 Use TARGET_DEFAULT_RETURN.
3443 2014-02-19 Tom Tromey <tromey@redhat.com>
3445 * target-delegates.c: Rebuild.
3446 * target.c (update_current_target): Don't inherit or default
3448 * target.h (struct target_ops) <to_can_use_agent>: Use
3449 TARGET_DEFAULT_RETURN.
3451 2014-02-19 Tom Tromey <tromey@redhat.com>
3453 * target-delegates.c: Rebuild.
3454 * target.c (update_current_target): Don't inherit or default
3456 * target.h (struct target_ops) <to_use_agent>: Use
3457 TARGET_DEFAULT_NORETURN.
3459 2014-02-19 Tom Tromey <tromey@redhat.com>
3461 * target-delegates.c: Rebuild.
3462 * target.c (update_current_target): Don't inherit or default
3464 (return_null): Remove.
3465 * target.h (struct target_ops) <to_traceframe_info>: Use
3466 TARGET_DEFAULT_RETURN.
3468 2014-02-19 Tom Tromey <tromey@redhat.com>
3470 * target-delegates.c: Rebuild.
3471 * target.c (update_current_target): Don't inherit or default
3472 to_static_tracepoint_markers_by_strid.
3473 * target.h (struct target_ops)
3474 <to_static_tracepoint_markers_by_strid>: Use
3475 TARGET_DEFAULT_NORETURN.
3477 2014-02-19 Tom Tromey <tromey@redhat.com>
3479 * target-delegates.c: Rebuild.
3480 * target.c (update_current_target): Don't inherit or default
3481 to_static_tracepoint_marker_at.
3482 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3483 Use TARGET_DEFAULT_RETURN.
3485 2014-02-19 Tom Tromey <tromey@redhat.com>
3487 * target-delegates.c: Rebuild.
3488 * target.c (update_current_target): Don't inherit or default
3490 * target.h (struct target_ops) <to_set_permissions>: Use
3491 TARGET_DEFAULT_IGNORE.
3493 2014-02-19 Tom Tromey <tromey@redhat.com>
3495 * target-delegates.c: Rebuild.
3496 * target.c (update_current_target): Don't inherit or default
3498 * target.h (struct target_ops) <to_get_tib_address>: Use
3499 TARGET_DEFAULT_NORETURN.
3501 2014-02-19 Tom Tromey <tromey@redhat.com>
3503 * target-delegates.c: Rebuild.
3504 * target.c (update_current_target): Don't inherit or default
3506 * target.h (struct target_ops) <to_set_trace_notes>: Use
3507 TARGET_DEFAULT_RETURN.
3509 2014-02-19 Tom Tromey <tromey@redhat.com>
3511 * target-delegates.c: Rebuild.
3512 * target.c (update_current_target): Don't initialize
3513 to_set_trace_buffer_size.
3514 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3515 TARGET_DEFAULT_IGNORE.
3517 2014-02-19 Tom Tromey <tromey@redhat.com>
3519 * target-delegates.c: Rebuild.
3520 * target.c (update_current_target): Don't inherit or default
3521 to_set_circular_trace_buffer.
3522 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3523 TARGET_DEFAULT_IGNORE.
3525 2014-02-19 Tom Tromey <tromey@redhat.com>
3527 * target-delegates.c: Rebuild.
3528 * target.c (update_current_target): Don't inherit or default
3529 to_set_disconnected_tracing.
3530 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3531 TARGET_DEFAULT_IGNORE.
3533 2014-02-19 Tom Tromey <tromey@redhat.com>
3535 * target-delegates.c: Rebuild.
3536 * target.c (update_current_target): Don't inherit or default
3537 to_get_min_fast_tracepoint_insn_len.
3538 (return_minus_one): Remove.
3539 * target.h (struct target_ops)
3540 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3542 2014-02-19 Tom Tromey <tromey@redhat.com>
3544 * target-delegates.c: Rebuild.
3545 * target.c (update_current_target): Don't inherit or default
3546 to_get_raw_trace_data.
3547 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3548 TARGET_DEFAULT_NORETURN.
3550 2014-02-19 Tom Tromey <tromey@redhat.com>
3552 * target-delegates.c: Rebuild.
3553 * target.c (update_current_target): Don't inherit or default
3554 to_upload_trace_state_variables.
3555 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3556 Use TARGET_DEFAULT_RETURN.
3558 2014-02-19 Tom Tromey <tromey@redhat.com>
3560 * target-delegates.c: Rebuild.
3561 * target.c (update_current_target): Don't inherit or default
3562 to_upload_tracepoints.
3563 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3564 TARGET_DEFAULT_RETURN.
3566 2014-02-19 Tom Tromey <tromey@redhat.com>
3568 * target-delegates.c: Rebuild.
3569 * target.c (update_current_target): Don't inherit or default
3571 * target.h (struct target_ops) <to_save_trace_data>: Use
3572 TARGET_DEFAULT_NORETURN.
3574 2014-02-19 Tom Tromey <tromey@redhat.com>
3576 * target-delegates.c: Rebuild.
3577 * target.c (update_current_target): Don't inherit or default
3578 to_get_trace_state_variable_value.
3579 * target.h (struct target_ops)
3580 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3582 2014-02-19 Tom Tromey <tromey@redhat.com>
3584 * target-delegates.c: Rebuild.
3585 * target.c (update_current_target): Don't inherit or default
3587 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3589 2014-02-19 Tom Tromey <tromey@redhat.com>
3591 * target-delegates.c: Rebuild.
3592 * target.c (update_current_target): Don't inherit or default
3594 * target.h (struct target_ops) <to_trace_stop>: Use
3595 TARGET_DEFAULT_NORETURN.
3597 2014-02-19 Tom Tromey <tromey@redhat.com>
3599 * target-delegates.c: Rebuild.
3600 * target.c (update_current_target): Don't inherit or default
3601 to_get_tracepoint_status.
3602 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3603 TARGET_DEFAULT_NORETURN.
3605 2014-02-19 Tom Tromey <tromey@redhat.com>
3607 * target-delegates.c: Rebuild.
3608 * target.c (update_current_target): Don't inherit or default
3609 to_get_trace_status.
3610 * target.h (struct target_ops) <to_get_trace_status>: Use
3611 TARGET_DEFAULT_RETURN.
3613 2014-02-19 Tom Tromey <tromey@redhat.com>
3615 * target-delegates.c: Rebuild.
3616 * target.c (update_current_target): Don't inherit or default
3618 * target.h (struct target_ops) <to_trace_start>: Use
3619 TARGET_DEFAULT_NORETURN.
3621 2014-02-19 Tom Tromey <tromey@redhat.com>
3623 * target-delegates.c: Rebuild.
3624 * target.c (update_current_target): Don't inherit or default
3625 to_trace_set_readonly_regions.
3626 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3627 Use TARGET_DEFAULT_NORETURN.
3629 2014-02-19 Tom Tromey <tromey@redhat.com>
3631 * target-delegates.c: Rebuild.
3632 * target.c (update_current_target): Don't inherit or default
3633 to_disable_tracepoint.
3634 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3635 TARGET_DEFAULT_NORETURN.
3637 2014-02-19 Tom Tromey <tromey@redhat.com>
3639 * target-delegates.c: Rebuild.
3640 * target.c (update_current_target): Don't inherit or default
3641 to_enable_tracepoint.
3642 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3643 TARGET_DEFAULT_NORETURN.
3645 2014-02-19 Tom Tromey <tromey@redhat.com>
3647 * target-delegates.c: Rebuild.
3648 * target.c (update_current_target): Don't inherit or default
3649 to_download_trace_state_variable.
3650 * target.h (struct target_ops) <to_download_trace_state_variable>:
3651 Use TARGET_DEFAULT_NORETURN.
3653 2014-02-19 Tom Tromey <tromey@redhat.com>
3655 * target-delegates.c: Rebuild.
3656 * target.c (update_current_target): Don't inherit or default
3657 to_can_download_tracepoint.
3658 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3659 TARGET_DEFAULT_RETURN.
3661 2014-02-19 Tom Tromey <tromey@redhat.com>
3663 * target-delegates.c: Rebuild.
3664 * target.c (update_current_target): Don't inherit or default
3665 to_download_tracepoint.
3666 * target.h (struct target_ops) <to_download_tracepoint>: Use
3667 TARGET_DEFAULT_NORETURN.
3669 2014-02-19 Tom Tromey <tromey@redhat.com>
3671 * target-delegates.c: Rebuild.
3672 * target.c (update_current_target): Don't inherit or default
3674 * target.h (struct target_ops) <to_trace_init>: Use
3675 TARGET_DEFAULT_RETURN.
3677 2014-02-19 Tom Tromey <tromey@redhat.com>
3679 * target-delegates.c: Rebuild.
3680 * target.c (update_current_target): Don't inherit or default
3681 to_supports_string_tracing.
3682 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3683 TARGET_DEFAULT_RETURN.
3685 2014-02-19 Tom Tromey <tromey@redhat.com>
3687 * target-delegates.c: Rebuild.
3688 * target.c (update_current_target): Don't inherit or default
3689 to_supports_enable_disable_tracepoint.
3690 * target.h (struct target_ops)
3691 <to_supports_enable_disable_tracepoint>: Use
3692 TARGET_DEFAULT_RETURN.
3694 2014-02-19 Tom Tromey <tromey@redhat.com>
3696 * target-delegates.c: Rebuild.
3697 * target.c (update_current_target): Don't inherit or default
3698 to_supports_multi_process.
3699 * target.h (struct target_ops) <to_supports_multi_process>: Use
3700 TARGET_DEFAULT_RETURN.
3702 2014-02-19 Tom Tromey <tromey@redhat.com>
3704 * target-delegates.c: Rebuild.
3705 * target.c (update_current_target): Don't inherit or default
3706 to_get_ada_task_ptid.
3707 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3708 TARGET_DEFAULT_FUNC.
3710 2014-02-19 Tom Tromey <tromey@redhat.com>
3712 * target-delegates.c: Rebuild.
3713 * target.c (update_current_target): Don't inherit or default
3714 to_thread_architecture.
3715 * target.h (struct target_ops) <to_thread_architecture>: Use
3716 TARGET_DEFAULT_FUNC.
3718 2014-02-19 Tom Tromey <tromey@redhat.com>
3720 * target-delegates.c: Rebuild.
3721 * target.c (update_current_target): Don't inherit or default
3722 to_execution_direction.
3723 * target.h (struct target_ops) <to_execution_direction>: Use
3724 TARGET_DEFAULT_FUNC.
3726 2014-02-19 Tom Tromey <tromey@redhat.com>
3728 * target-delegates.c: Rebuild.
3729 * target.c (update_current_target): Don't inherit or default
3730 to_can_execute_reverse.
3731 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3732 TARGET_DEFAULT_RETURN.
3733 (target_can_execute_reverse): Unconditionally delegate.
3735 2014-02-19 Tom Tromey <tromey@redhat.com>
3737 * target-delegates.c: Rebuild.
3738 * target.c (update_current_target): Don't inherit or default
3740 (dummy_goto_bookmark): Remove.
3741 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3742 * target.h (struct target_ops) <to_goto_bookmark>: Use
3743 TARGET_DEFAULT_NORETURN.
3745 2014-02-19 Tom Tromey <tromey@redhat.com>
3747 * target-delegates.c: Rebuild.
3748 * target.c (update_current_target): Don't inherit or default
3750 (dummy_get_bookmark): Remove.
3751 (init_dummy_target): Don't inherit or default to_get_bookmark.
3752 * target.h (struct target_ops) <to_get_bookmark>: Use
3753 TARGET_DEFAULT_NORETURN
3755 2014-02-19 Tom Tromey <tromey@redhat.com>
3757 * target-delegates.c: Rebuild.
3758 * target.c (update_current_target): Don't inherit or default
3759 to_make_corefile_notes.
3760 (init_dummy_target): Don't initialize to_make_corefile_notes.
3761 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3762 TARGET_DEFAULT_FUNC.
3764 2014-02-19 Tom Tromey <tromey@redhat.com>
3766 * target-delegates.c: Rebuild.
3767 * target.c (update_current_target): Don't inherit or default
3768 to_find_memory_regions.
3769 (init_dummy_target): Don't initialize to_find_memory_regions.
3770 * target.h (struct target_ops) <to_find_memory_regions>: Use
3771 TARGET_DEFAULT_FUNC.
3773 2014-02-19 Tom Tromey <tromey@redhat.com>
3775 * target-delegates.c: Rebuild.
3776 * target.c (update_current_target): Don't inherit or default
3778 * target.h (struct target_ops) <to_log_command>: Use
3779 TARGET_DEFAULT_IGNORE.
3780 (target_log_command): Unconditionally delegate.
3782 2014-02-19 Tom Tromey <tromey@redhat.com>
3784 * target-delegates.c: Rebuild.
3785 * target.c (update_current_target): Don't inherit or default
3786 to_pid_to_exec_file.
3787 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3788 TARGET_DEFAULT_RETURN.
3790 2014-02-19 Tom Tromey <tromey@redhat.com>
3792 * target-delegates.c: Rebuild.
3793 * target.c (update_current_target): Don't inherit or default
3795 (target_thread_name): Unconditionally delegate.
3796 * target.h (struct target_ops) <to_thread_name>: Use
3797 TARGET_DEFAULT_RETURN.
3799 2014-02-19 Tom Tromey <tromey@redhat.com>
3801 * target-delegates.c: Rebuild.
3802 * target.c (update_current_target): Don't inherit or default
3803 to_extra_thread_info.
3804 * target.h (struct target_ops) <to_extra_thread_info>: Use
3805 TARGET_DEFAULT_RETURN.
3807 2014-02-19 Tom Tromey <tromey@redhat.com>
3809 * target-delegates.c: Rebuild.
3810 * target.c (update_current_target): Don't inherit or default
3812 * target.h (struct target_ops) <to_has_exited>: Use
3813 TARGET_DEFAULT_RETURN..
3815 2014-02-19 Tom Tromey <tromey@redhat.com>
3817 * target-delegates.c: Rebuild.
3818 * target.c (update_current_target): Don't inherit or default
3819 to_set_syscall_catchpoint.
3820 (return_one): Remove.
3821 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3822 TARGET_DEFAULT_RETURN.
3824 2014-02-19 Tom Tromey <tromey@redhat.com>
3826 * target-delegates.c: Rebuild.
3827 * target.c (update_current_target): Don't inherit or default
3828 to_insert_exec_catchpoint.
3829 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3830 TARGET_DEFAULT_RETURN.
3832 2014-01-08 Tom Tromey <tromey@redhat.com>
3834 * target-delegates.c: Rebuild.
3835 * target.c (update_current_target): Don't inherit or default
3836 to_insert_exec_catchpoint.
3837 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3838 TARGET_DEFAULT_RETURN.
3840 2014-02-19 Tom Tromey <tromey@redhat.com>
3842 * target-delegates.c: Rebuild.
3843 * target.c (update_current_target): Don't inherit or default
3844 to_remove_vfork_catchpoint.
3845 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3846 TARGET_DEFAULT_RETURN.
3848 2014-02-19 Tom Tromey <tromey@redhat.com>
3850 * target-delegates.c: Rebuild.
3851 * target.c (update_current_target): Don't inherit or default
3852 to_insert_vfork_catchpoint.
3853 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3854 TARGET_DEFAULT_RETURN.
3856 2014-02-19 Tom Tromey <tromey@redhat.com>
3858 * target-delegates.c: Rebuild.
3859 * target.c (update_current_target): Don't inherit or default
3860 to_remove_fork_catchpoint.
3861 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3862 TARGET_DEFAULT_RETURN.
3864 2014-02-19 Tom Tromey <tromey@redhat.com>
3866 * target-delegates.c: Rebuild.
3867 * target.c (update_current_target): Don't inherit or default
3868 to_insert_fork_catchpoint.
3869 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3870 TARGET_DEFAULT_RETURN.
3872 2014-02-19 Tom Tromey <tromey@redhat.com>
3874 * target-delegates.c: Rebuild.
3875 * target.c (update_current_target): Don't inherit or default
3876 to_post_startup_inferior.
3877 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3878 TARGET_DEFAULT_IGNORE.
3880 2014-02-19 Tom Tromey <tromey@redhat.com>
3882 * target-delegates.c: Rebuild.
3883 * target.c (update_current_target): Don't inherit or default
3885 * target.h (struct target_ops) <to_load>: Use
3886 TARGET_DEFAULT_NORETURN.
3888 2014-02-19 Tom Tromey <tromey@redhat.com>
3890 * target-delegates.c: Rebuild.
3891 * target.c (update_current_target): Don't inherit or default
3893 * target.h (struct target_ops) <to_terminal_info>: Use
3894 TARGET_DEFAULT_FUNC.
3896 2014-02-19 Tom Tromey <tromey@redhat.com>
3898 * target-delegates.c: Rebuild.
3899 * target.c (update_current_target): Don't inherit or default
3900 to_terminal_save_ours.
3901 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3902 TARGET_DEFAULT_IGNORE.
3904 2014-02-19 Tom Tromey <tromey@redhat.com>
3906 * target-delegates.c: Rebuild.
3907 * target.c (update_current_target): Don't inherit or default
3909 * target.h (struct target_ops) <to_terminal_ours>: Use
3910 TARGET_DEFAULT_IGNORE.
3912 2014-02-19 Tom Tromey <tromey@redhat.com>
3914 * target-delegates.c: Rebuild.
3915 * target.c (update_current_target): Don't inherit or default
3916 to_terminal_ours_for_output.
3917 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3918 TARGET_DEFAULT_IGNORE.
3920 2014-02-19 Tom Tromey <tromey@redhat.com>
3922 * target-delegates.c: Rebuild.
3923 * target.c (update_current_target): Don't inherit or default
3924 to_terminal_inferior.
3925 * target.h (struct target_ops) <to_terminal_inferior>: Use
3926 TARGET_DEFAULT_IGNORE.
3928 2014-02-19 Tom Tromey <tromey@redhat.com>
3930 * target-delegates.c: Rebuild.
3931 * target.c (update_current_target): Don't inherit or default
3933 * target.h (struct target_ops) <to_terminal_init>: Use
3934 TARGET_DEFAULT_IGNORE.
3936 2014-02-19 Tom Tromey <tromey@redhat.com>
3938 * target-delegates.c: Rebuild.
3939 * target.c (update_current_target): Don't inherit or default
3940 to_can_accel_watchpoint_condition.
3941 * target.h (struct target_ops)
3942 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3944 2014-02-19 Tom Tromey <tromey@redhat.com>
3946 * target-delegates.c: Rebuild.
3947 * target.c (update_current_target): Don't inherit or default
3948 to_region_ok_for_hw_watchpoint.
3949 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3950 Use TARGET_DEFAULT_FUNC.
3952 2014-02-19 Tom Tromey <tromey@redhat.com>
3954 * target-delegates.c: Rebuild.
3955 * target.c (update_current_target): Don't inherit or default
3956 to_watchpoint_addr_within_range.
3957 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3958 Use TARGET_DEFAULT_FUNC.
3960 2014-02-19 Tom Tromey <tromey@redhat.com>
3962 * target-delegates.c: Rebuild.
3963 * target.c (update_current_target): Don't inherit or default
3964 to_remove_watchpoint.
3965 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3966 TARGET_DEFAULT_NORETURN.
3968 2014-02-19 Tom Tromey <tromey@redhat.com>
3970 * target-delegates.c: Rebuild.
3971 * target.c (update_current_target): Don't inherit or default
3972 to_insert_watchpoint.
3973 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3974 TARGET_DEFAULT_RETURN.
3976 2014-02-19 Tom Tromey <tromey@redhat.com>
3978 * target-delegates.c: Rebuild.
3979 * target.c (update_current_target): Don't inherit or default
3980 to_remove_hw_breakpoint.
3981 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3982 TARGET_DEFAULT_RETURN.
3984 2014-02-19 Tom Tromey <tromey@redhat.com>
3986 * target-delegates.c: Rebuild.
3987 * target.c (update_current_target): Don't inherit or default
3988 to_insert_hw_breakpoint.
3989 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3990 TARGET_DEFAULT_RETURN.
3992 2014-02-19 Tom Tromey <tromey@redhat.com>
3994 * target-delegates.c: Rebuild.
3995 * target.c (update_current_target): Don't inherit or default
3996 to_can_use_hw_breakpoint.
3997 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3998 TARGET_DEFAULT_RETURN.
4000 2014-02-19 Tom Tromey <tromey@redhat.com>
4002 * target-delegates.c: Rebuild.
4003 * target.c (update_current_target): Don't inherit or default
4005 * target.h (struct target_ops) <to_files_info>: Use
4006 TARGET_DEFAULT_IGNORE.
4008 2014-02-19 Tom Tromey <tromey@redhat.com>
4010 * target-delegates.c: Rebuild.
4011 * target.c (update_current_target): Don't inherit or default
4013 * target.h (struct target_ops) <to_store>: Use
4014 TARGET_DEFAULT_NORETURN.
4016 2014-02-19 Tom Tromey <tromey@redhat.com>
4018 * target-delegates.c: Rebuild.
4019 * target.c (update_current_target): Don't inherit or default
4021 * target.h (struct target_ops) <to_post_attach>: Use
4022 TARGET_DEFAULT_IGNORE.
4024 2014-02-19 Tom Tromey <tromey@redhat.com>
4026 * target-delegates.c: Rebuild.
4027 * target.c (update_current_target): Don't inherit or default
4029 (default_rcmd): New function.
4030 (do_monitor_command): Unconditionally delegate.
4031 * target.h (struct target_ops) <to_rmcd>: Use
4032 TARGET_DEFAULT_FUNC.
4034 2014-02-19 Tom Tromey <tromey@redhat.com>
4036 * target-delegates.c: Rebuild.
4037 * target.c (init_dummy_target): Don't initialize to_attach.
4038 (target_attach): Unconditionally delegate.
4039 * target.h (struct target_ops) <to_attach>: Use
4040 TARGET_DEFAULT_FUNC.
4042 2014-02-19 Tom Tromey <tromey@redhat.com>
4044 * target-delegates.c: Rebuild.
4045 * target.c (target_detach): Unconditionally delegate.
4046 (init_dummy_target): Don't initialize to_detach.
4047 * target.h (struct target_ops) <to_detach>: Use
4048 TARGET_DEFAULT_IGNORE.
4050 2014-02-19 Tom Tromey <tromey@redhat.com>
4052 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4054 (target_augmented_libraries_svr4_read): Add argument.
4055 * target.c (update_current_target): Update.
4056 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4059 2014-02-19 Tom Tromey <tromey@redhat.com>
4061 * target.h (struct target_ops) <to_call_history_range>: Add
4063 * target.c (target_call_history_range): Add argument.
4064 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4066 (record_btrace_call_history_from): Update.
4068 2014-02-19 Tom Tromey <tromey@redhat.com>
4070 * target.h (struct target_ops) <to_call_history_from>: Add
4072 * target.c (target_call_history_from): Add argument.
4073 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4076 2014-02-19 Tom Tromey <tromey@redhat.com>
4078 * target.h (struct target_ops) <to_call_history>: Add argument.
4079 * target.c (target_call_history): Add argument.
4080 * record-btrace.c (record_btrace_call_history): Add 'self'
4083 2014-02-19 Tom Tromey <tromey@redhat.com>
4085 * target.h (struct target_ops) <to_insn_history_range>: Add
4087 * target.c (target_insn_history_range): Add argument.
4088 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4090 (record_btrace_insn_history_from): Update.
4092 2014-02-19 Tom Tromey <tromey@redhat.com>
4094 * target.h (struct target_ops) <to_insn_history_from>: Add
4096 * target.c (target_insn_history_from): Add argument.
4097 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4100 2014-02-19 Tom Tromey <tromey@redhat.com>
4102 * target.h (struct target_ops) <to_insn_history>: Add argument.
4103 * target.c (target_insn_history): Add argument.
4104 * record-btrace.c (record_btrace_insn_history): Add 'self'
4107 2014-02-19 Tom Tromey <tromey@redhat.com>
4109 * target.h (struct target_ops) <to_goto_record>: Add argument.
4110 * target.c (target_goto_record): Add argument.
4111 * record-full.c (record_full_goto): Add 'self' argument.
4112 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4114 2014-02-19 Tom Tromey <tromey@redhat.com>
4116 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4117 * target.c (target_goto_record_end): Add argument.
4118 * record-full.c (record_full_goto_end): Add 'self' argument.
4119 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4121 2014-02-19 Tom Tromey <tromey@redhat.com>
4123 * target.h (struct target_ops) <to_goto_record_begin>: Add
4125 * target.c (target_goto_record_begin): Add argument.
4126 * record-full.c (record_full_goto_begin): Add 'self' argument.
4127 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4130 2014-02-19 Tom Tromey <tromey@redhat.com>
4132 * target.h (struct target_ops) <to_record_is_replaying>: Add
4134 * target.c (target_record_is_replaying): Add argument.
4135 * record-full.c (record_full_is_replaying): Add 'self' argument.
4136 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4138 (record_btrace_xfer_partial, record_btrace_store_registers)
4139 (record_btrace_prepare_to_store, record_btrace_resume)
4140 (record_btrace_wait, record_btrace_decr_pc_after_break)
4141 (record_btrace_find_new_threads, record_btrace_thread_alive):
4144 2014-02-19 Tom Tromey <tromey@redhat.com>
4146 * target.h (struct target_ops) <to_delete_record>: Add argument.
4147 * target.c (target_delete_record): Add argument.
4148 * record-full.c (record_full_delete): Add 'self' argument.
4150 2014-02-19 Tom Tromey <tromey@redhat.com>
4152 * target.h (struct target_ops) <to_save_record>: Add argument.
4153 * target.c (target_save_record): Add argument.
4154 * record-full.c (record_full_save): Add 'self' argument.
4155 (record_full_save): Add 'self' argument.
4157 2014-02-19 Tom Tromey <tromey@redhat.com>
4159 * target.h (struct target_ops) <to_info_record>: Add argument.
4160 * target.c (target_info_record): Add argument.
4161 * record.c (info_record_command): Add argument.
4162 * record-full.c (record_full_info): Add 'self' argument.
4163 * record-btrace.c (record_btrace_info): Add 'self' argument.
4165 2014-02-19 Tom Tromey <tromey@redhat.com>
4167 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4168 * target.c (target_stop_recording): Add argument.
4169 * record.c (record_stop): Add argument.
4170 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4173 2014-02-19 Tom Tromey <tromey@redhat.com>
4175 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4176 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4177 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4179 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4180 (_initialize_amd64_linux_nat): Use it.
4181 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4182 (_initialize_i386_linux_nat): Use it.
4184 2014-02-19 Tom Tromey <tromey@redhat.com>
4186 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4187 * target.c (target_teardown_btrace): Add argument.
4188 * remote.c (remote_teardown_btrace): Add 'self' argument.
4189 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4191 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4194 2014-02-19 Tom Tromey <tromey@redhat.com>
4196 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4197 * target.c (target_disable_btrace): Add argument.
4198 * remote.c (remote_disable_btrace): Add 'self' argument.
4199 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4201 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4204 2014-02-19 Tom Tromey <tromey@redhat.com>
4206 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4207 * target.c (target_enable_btrace): Add argument.
4208 * remote.c (remote_enable_btrace): Add 'self' argument.
4209 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4211 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4214 2014-02-19 Tom Tromey <tromey@redhat.com>
4216 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4217 (target_can_use_agent): Add argument.
4218 * target.c (update_current_target): Update.
4219 * remote.c (remote_can_use_agent): Add 'self' argument.
4220 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4222 2014-02-19 Tom Tromey <tromey@redhat.com>
4224 * target.h (struct target_ops) <to_use_agent>: Add argument.
4225 (target_use_agent): Add argument.
4226 * target.c (update_current_target): Update.
4227 * remote.c (remote_use_agent): Add 'self' argument.
4228 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4230 2014-02-19 Tom Tromey <tromey@redhat.com>
4232 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4233 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4234 (target_traceframe_info): Add argument.
4235 * target.c (update_current_target): Update.
4236 * remote.c (remote_traceframe_info): Add 'self' argument.
4237 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4239 2014-02-19 Tom Tromey <tromey@redhat.com>
4241 * target.h (target_static_tracepoint_markers_by_strid): Add
4243 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4245 * target.c (update_current_target): Update.
4246 * remote.c (struct target_ops)
4247 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4248 * linux-nat.c (struct target_ops)
4249 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4251 2014-02-19 Tom Tromey <tromey@redhat.com>
4253 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4255 (target_static_tracepoint_marker_at): Add argument.
4256 * target.c (update_current_target): Update.
4257 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4260 2014-02-19 Tom Tromey <tromey@redhat.com>
4262 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4263 (target_set_permissions): Add argument.
4264 * target.c (update_current_target): Update.
4265 * remote.c (remote_set_permissions): Add 'self' argument.
4266 (remote_start_remote): Update.
4268 2014-02-19 Tom Tromey <tromey@redhat.com>
4270 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4271 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4272 (target_get_tib_address): Add argument.
4273 * target.c (update_current_target): Update.
4274 * remote.c (remote_get_tib_address): Add 'self' argument.
4276 2014-02-19 Tom Tromey <tromey@redhat.com>
4278 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4279 (target_set_trace_notes): Add argument.
4280 * target.c (update_current_target): Update.
4281 * remote.c (remote_set_trace_notes): Add 'self' argument.
4283 2014-02-19 Tom Tromey <tromey@redhat.com>
4285 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4287 (target_set_trace_buffer_size): Add argument.
4288 * target.c (update_current_target): Update.
4289 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4291 2014-02-19 Tom Tromey <tromey@redhat.com>
4293 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4295 (target_set_circular_trace_buffer): Add argument.
4296 * target.c (update_current_target): Update.
4297 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4300 2014-02-19 Tom Tromey <tromey@redhat.com>
4302 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4304 (target_set_disconnected_tracing): Add argument.
4305 * target.c (update_current_target): Update.
4306 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4308 2014-02-19 Tom Tromey <tromey@redhat.com>
4310 * target.h (struct target_ops)
4311 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4312 (target_get_min_fast_tracepoint_insn_len): Add argument.
4313 * target.c (update_current_target): Update.
4314 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4317 2014-02-19 Tom Tromey <tromey@redhat.com>
4319 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4321 (target_get_raw_trace_data): Add argument.
4322 * target.c (update_current_target): Update.
4323 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4325 2014-02-19 Tom Tromey <tromey@redhat.com>
4327 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4329 (target_upload_trace_state_variables): Add argument.
4330 * target.c (update_current_target): Update.
4331 * remote.c (remote_upload_trace_state_variables): Add 'self'
4333 (remote_start_remote): Update.
4335 2014-02-19 Tom Tromey <tromey@redhat.com>
4337 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4339 (target_upload_tracepoints): Add argument.
4340 * target.c (update_current_target): Update.
4341 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4342 (remote_start_remote): Update.
4344 2014-02-19 Tom Tromey <tromey@redhat.com>
4346 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4347 (target_save_trace_data): Add argument.
4348 * target.c (update_current_target): Update.
4349 * remote.c (remote_save_trace_data): Add 'self' argument.
4351 2014-02-19 Tom Tromey <tromey@redhat.com>
4353 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4355 * target.h (struct target_ops)
4356 <to_get_trace_state_variable_value>: Add argument.
4357 (target_get_trace_state_variable_value): Add argument.
4358 * target.c (update_current_target): Update.
4359 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4361 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4363 2014-02-19 Tom Tromey <tromey@redhat.com>
4365 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4366 * target.h (struct target_ops) <to_trace_find>: Add argument.
4367 (target_trace_find): Add argument.
4368 * target.c (update_current_target): Update.
4369 * remote.c (remote_trace_find): Add 'self' argument.
4370 * ctf.c (ctf_trace_find): Add 'self' argument.
4372 2014-02-19 Tom Tromey <tromey@redhat.com>
4374 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4375 (target_trace_stop): Add argument.
4376 * target.c (update_current_target): Update.
4377 * remote.c (remote_trace_stop): Add 'self' argument.
4379 2014-02-19 Tom Tromey <tromey@redhat.com>
4381 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4382 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4384 (target_get_tracepoint_status): Add argument.
4385 * target.c (update_current_target): Update.
4386 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4388 2014-02-19 Tom Tromey <tromey@redhat.com>
4390 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4391 * target.h (struct target_ops) <to_get_trace_status>: Add
4393 (target_get_trace_status): Add argument.
4394 * target.c (update_current_target): Update.
4395 * remote.c (remote_get_trace_status): Add 'self' argument.
4396 (remote_start_remote, remote_can_download_tracepoint): Update.
4397 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4399 2014-02-19 Tom Tromey <tromey@redhat.com>
4401 * target.h (struct target_ops) <to_trace_start>: Add argument.
4402 (target_trace_start): Add argument.
4403 * target.c (update_current_target): Update.
4404 * remote.c (remote_trace_start): Add 'self' argument.
4406 2014-02-19 Tom Tromey <tromey@redhat.com>
4408 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4410 (target_trace_set_readonly_regions): Add argument.
4411 * target.c (update_current_target): Update.
4412 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4415 2014-02-19 Tom Tromey <tromey@redhat.com>
4417 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4419 (target_disable_tracepoint): Add argument.
4420 * target.c (update_current_target): Update.
4421 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4423 2014-02-19 Tom Tromey <tromey@redhat.com>
4425 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4427 (target_enable_tracepoint): Add argument.
4428 * target.c (update_current_target): Update.
4429 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4431 2014-02-19 Tom Tromey <tromey@redhat.com>
4433 * target.h (struct target_ops) <to_download_trace_state_variable>:
4435 (target_download_trace_state_variable): Add argument.
4436 * target.c (update_current_target): Update.
4437 * remote.c (remote_download_trace_state_variable): Add 'self'
4440 2014-02-19 Tom Tromey <tromey@redhat.com>
4442 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4444 (target_can_download_tracepoint): Add argument.
4445 * target.c (update_current_target): Update.
4446 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4448 2014-02-19 Tom Tromey <tromey@redhat.com>
4450 * target.h (struct target_ops) <to_download_tracepoint>: Add
4452 (target_download_tracepoint): Add argument.
4453 * target.c (update_current_target): Update.
4454 * remote.c (remote_download_tracepoint): Add 'self' argument.
4456 2014-02-19 Tom Tromey <tromey@redhat.com>
4458 * target.h (struct target_ops) <to_trace_init>: Add argument.
4459 (target_trace_init): Add argument.
4460 * target.c (update_current_target): Update.
4461 * remote.c (remote_trace_init): Add 'self' argument.
4463 2014-02-19 Tom Tromey <tromey@redhat.com>
4465 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4466 * target.c (target_fileio_readlink): Add argument.
4467 * remote.c (remote_hostio_readlink): Add 'self' argument.
4468 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4470 2014-02-19 Tom Tromey <tromey@redhat.com>
4472 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4473 * target.c (target_fileio_unlink): Add argument.
4474 * remote.c (remote_hostio_unlink): Add 'self' argument.
4475 (remote_file_delete): Update.
4476 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4478 2014-02-19 Tom Tromey <tromey@redhat.com>
4480 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4481 * target.c (target_fileio_close): Add argument.
4482 * remote.c (remote_hostio_close): Add 'self' argument.
4483 (remote_hostio_close_cleanup): Update.
4484 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4486 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4488 2014-02-19 Tom Tromey <tromey@redhat.com>
4490 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4491 * target.c (target_fileio_pread): Add argument.
4492 * remote.c (remote_hostio_pread): Add 'self' argument.
4493 (remote_bfd_iovec_pread, remote_file_get): Update.
4494 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4496 2014-02-19 Tom Tromey <tromey@redhat.com>
4498 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4499 * target.c (target_fileio_pwrite): Add argument.
4500 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4501 (remote_file_put): Update.
4502 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4504 2014-02-19 Tom Tromey <tromey@redhat.com>
4506 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4507 * target.c (target_fileio_open): Add argument.
4508 * remote.c (remote_hostio_open): Add 'self' argument.
4509 (remote_bfd_iovec_open): Add 'self' argument.
4510 (remote_file_put): Add 'self' argument.
4511 (remote_file_get): Add 'self' argument.
4512 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4514 2014-02-19 Tom Tromey <tromey@redhat.com>
4516 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4518 (target_can_run_breakpoint_commands): Add argument.
4519 * target.c (update_current_target): Update.
4520 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4522 (remote_insert_breakpoint): Add 'self' argument.
4523 (remote_insert_hw_breakpoint): Add 'self' argument.
4524 (remote_can_run_breakpoint_commands): Add 'self' argument.
4526 2014-02-19 Tom Tromey <tromey@redhat.com>
4528 * target.h (struct target_ops)
4529 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4530 (target_supports_evaluation_of_breakpoint_conditions): Add
4532 * target.c (update_current_target): Update.
4533 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4535 (remote_insert_breakpoint): Add 'self' argument.
4536 (remote_insert_hw_breakpoint): Add 'self' argument.
4537 (remote_supports_cond_breakpoints): Add 'self' argument.
4539 2014-02-19 Tom Tromey <tromey@redhat.com>
4541 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4543 (target_supports_string_tracing): Add argument.
4544 * target.c (update_current_target): Update.
4545 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4547 2014-02-19 Tom Tromey <tromey@redhat.com>
4549 * target.h (struct target_ops)
4550 <to_supports_disable_randomization>: Add argument.
4551 * target.c (find_default_supports_disable_randomization): Add
4553 (target_supports_disable_randomization): Add argument.
4554 (find_default_supports_disable_randomization): Add 'self'
4556 * remote.c (extended_remote_supports_disable_randomization): Add
4558 (remote_supports_disable_randomization): Add 'self' argument.
4559 (extended_remote_create_inferior): Update.
4560 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4563 2014-02-19 Tom Tromey <tromey@redhat.com>
4565 * target.h (struct target_ops)
4566 <to_supports_enable_disable_tracepoint>: Add argument.
4567 (target_supports_enable_disable_tracepoint): Add argument.
4568 * target.c (update_current_target): Update.
4569 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4572 2014-02-19 Tom Tromey <tromey@redhat.com>
4574 * target.h (struct target_ops) <to_supports_multi_process>: Add
4576 (target_supports_multi_process): Add argument.
4577 * target.c (update_current_target): Update.
4578 * remote.c (remote_supports_multi_process): Add 'self' argument.
4579 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4581 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4584 2014-02-19 Tom Tromey <tromey@redhat.com>
4586 * target.h (struct target_ops) <to_execution_direction>: Add
4588 (target_execution_direction): Add argument.
4589 * target.c (default_execution_direction): Add 'self' argument.
4590 * record-full.c (record_full_execution_direction): Add 'self'
4593 2014-02-19 Tom Tromey <tromey@redhat.com>
4595 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4597 (target_can_execute_reverse): Add argument.
4598 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4599 * record-full.c (record_full_can_execute_reverse): Add 'self'
4601 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4604 2014-02-19 Tom Tromey <tromey@redhat.com>
4606 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4607 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4609 (target_get_ada_task_ptid): Add argument.
4610 * target.c (update_current_target): Update.
4611 (default_get_ada_task_ptid): Add 'self' argument.
4612 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4613 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4614 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4616 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4618 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4620 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4622 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4623 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4626 2014-02-19 Tom Tromey <tromey@redhat.com>
4628 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4629 (target_goto_bookmark): Add argument.
4630 * target.c (dummy_goto_bookmark): Add 'self' argument.
4631 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4633 2014-02-19 Tom Tromey <tromey@redhat.com>
4635 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4636 (target_get_bookmark): Add argument.
4637 * target.c (dummy_get_bookmark): Add 'self' argument.
4638 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4640 2014-02-19 Tom Tromey <tromey@redhat.com>
4642 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4644 (target_make_corefile_notes): Add argument.
4645 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4646 * procfs.c (procfs_make_note_section): Add 'self' argument.
4647 (procfs_make_note_section): Add 'self' argument.
4648 (procfs_make_note_section): Add 'self' argument.
4649 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4651 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4652 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4653 * exec.c (exec_make_note_section): Add 'self' argument.
4654 (exec_make_note_section): Add 'self' argument.
4656 2014-02-19 Tom Tromey <tromey@redhat.com>
4658 * target.h (struct target_ops) <to_find_memory_regions>: Add
4660 (target_find_memory_regions): Add argument.
4661 * target.c (dummy_find_memory_regions): Add 'self' argument.
4662 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4663 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4664 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4665 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4666 * exec. (exec_do_find_memory_regions): New global.
4667 (exec_set_find_memory_regions): Rewrite.
4668 (exec_find_memory_regions): New function.
4669 (init_exec_ops): Use exec_find_memory_regions.
4671 2014-02-19 Tom Tromey <tromey@redhat.com>
4673 * target.h (struct target_ops) <to_supports_non_stop>: Add
4675 * target.c (find_default_supports_non_stop): Add argument.
4676 (target_supports_non_stop): Add argument.
4677 (find_default_supports_non_stop): Add 'self' argument.
4678 * remote.c (remote_supports_non_stop): Add 'self' argument.
4679 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4681 2014-02-19 Tom Tromey <tromey@redhat.com>
4683 * target.h (struct target_ops) <to_log_command>: Add argument.
4684 (target_log_command): Add argument.
4685 * serial.h (serial_log_command): Add 'self' argument.
4686 * serial.c (serial_log_command): Add 'self' argument.
4688 2014-02-19 Tom Tromey <tromey@redhat.com>
4690 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4691 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4693 (target_pid_to_exec_file): Add argument.
4694 * target.c (debug_to_pid_to_exec_file): Add argument.
4695 (update_current_target): Update.
4696 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4697 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4698 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4699 (linux_handle_extended_wait): Update.
4700 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4701 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4702 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4703 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4705 2014-02-19 Tom Tromey <tromey@redhat.com>
4707 * target.h (struct target_ops) <to_rcmd>: Add argument.
4708 (target_rcmd): Add argument.
4709 * target.c (debug_to_rcmd): Add argument.
4710 (update_current_target, do_monitor_command): Update.
4711 * remote.c (remote_rcmd): Add 'self' argument.
4712 * monitor.c (monitor_rcmd): Add 'self' argument.
4714 2014-02-19 Tom Tromey <tromey@redhat.com>
4716 * windows-nat.c (windows_stop): Add 'self' argument.
4717 * target.h (struct target_ops) <to_stop>: Add argument.
4718 * target.c (target_stop): Add argument.
4719 (debug_to_stop): Add argument.
4720 (update_current_target): Update.
4721 * remote.c (remote_stop): Add 'self' argument.
4722 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4723 (gdbsim_cntrl_c): Update.
4724 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4725 * procfs.c (procfs_stop): Add 'self' argument.
4726 * nto-procfs.c (procfs_stop): Add 'self' argument.
4727 * monitor.c (monitor_stop): Add 'self' argument.
4728 (monitor_open): Update.
4729 * linux-nat.c (linux_nat_stop): Add argument.
4730 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4731 * gnu-nat.c (gnu_stop): Add 'self' argument.
4732 * darwin-nat.c (darwin_stop): Add 'self' argument.
4734 2014-02-19 Tom Tromey <tromey@redhat.com>
4736 * target.h (struct target_ops) <to_thread_name>: Add argument.
4737 * target.c (target_thread_name): Add argument.
4738 (update_current_target): Update.
4739 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4741 2014-02-19 Tom Tromey <tromey@redhat.com>
4743 * target.h (struct target_ops) <to_extra_thread_info>: Add
4745 (target_extra_thread_info): Add argument.
4746 * target.c (update_current_target): Update.
4747 * remote.c (remote_threads_extra_info): Add 'self' argument.
4748 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4750 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4751 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4752 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4754 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4756 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4758 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4761 2014-02-19 Tom Tromey <tromey@redhat.com>
4763 * target.h (struct target_ops) <to_program_signals>: Add argument.
4764 * target.c (target_program_signals): Add argument.
4765 * remote.c (remote_program_signals): Add 'self' argument.
4767 2014-02-19 Tom Tromey <tromey@redhat.com>
4769 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4770 * target.c (target_pass_signals): Add argument.
4771 * remote.c (remote_pass_signals): Add 'self' argument.
4772 (remote_start_remote): Update.
4773 * procfs.c (procfs_pass_signals): Add 'self' argument.
4774 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4775 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4776 (linux_nat_create_inferior, linux_nat_attach): Update.
4778 2014-02-19 Tom Tromey <tromey@redhat.com>
4780 * windows-nat.c (windows_can_run): Add 'self' argument.
4781 * target.h (struct target_ops) <to_can_run>: Add argument.
4782 (target_can_run): Add argument.
4783 * target.c (debug_to_can_run): Add argument.
4784 (update_current_target): Update.
4785 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4786 * inf-child.c (inf_child_can_run): Add 'self' argument.
4787 * go32-nat.c (go32_can_run): Add 'self' argument.
4789 2014-02-19 Tom Tromey <tromey@redhat.com>
4791 * target.h (struct target_ops) <to_has_exited>: Add argument.
4792 (target_has_exited): Add argument.
4793 * target.c (debug_to_has_exited): Add argument.
4794 (update_current_target): Update.
4796 2014-02-19 Tom Tromey <tromey@redhat.com>
4798 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4800 (target_set_syscall_catchpoint): Add argument.
4801 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4803 * target.c (update_current_target): Update.
4805 2014-02-19 Tom Tromey <tromey@redhat.com>
4807 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4809 (target_remove_exec_catchpoint): Add argument.
4810 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4811 (update_current_target): Update.
4812 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4815 2014-02-19 Tom Tromey <tromey@redhat.com>
4817 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4819 (target_insert_exec_catchpoint): Add argument.
4820 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4821 (update_current_target): Update.
4822 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4825 2014-02-19 Tom Tromey <tromey@redhat.com>
4827 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4829 (target_remove_vfork_catchpoint): Add argument.
4830 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4831 (update_current_target): Update.
4832 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4835 2014-02-19 Tom Tromey <tromey@redhat.com>
4837 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4839 (target_insert_vfork_catchpoint): Add argument.
4840 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4841 (update_current_target): Update.
4842 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4845 2014-02-19 Tom Tromey <tromey@redhat.com>
4847 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4849 (target_remove_fork_catchpoint): Add argument.
4850 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4851 (update_current_target): Update.
4852 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4855 2014-02-19 Tom Tromey <tromey@redhat.com>
4857 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4859 (target_insert_fork_catchpoint): Add argument.
4860 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4861 (update_current_target): Update.
4862 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4865 2014-02-19 Tom Tromey <tromey@redhat.com>
4867 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4869 (target_post_startup_inferior): Add argument.
4870 * target.c (debug_to_post_startup_inferior): Add argument.
4871 (update_current_target): Update.
4872 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4874 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4876 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4878 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4880 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4882 (super_post_startup_inferior): Likewise.
4883 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4885 (super_post_startup_inferior): Likewise.
4886 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4887 Add 'self' argument.
4888 (super_post_startup_inferior): Likewise.
4890 2014-02-19 Tom Tromey <tromey@redhat.com>
4892 * target.h (struct target_ops) <to_load>: Add argument.
4893 * target.c (target_load): Add argument.
4894 (debug_to_load): Add argument.
4895 (update_current_target): Update.
4896 * remote.c (remote_load): Add 'self' argument.
4897 * remote-sim.c (gdbsim_load): Add 'self' argument.
4898 * remote-mips.c (mips_load): Add 'self' argument.
4899 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4900 * monitor.c (monitor_load): Add 'self' argument.
4901 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4903 2014-02-19 Tom Tromey <tromey@redhat.com>
4905 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4906 (target_terminal_info): Add argument.
4907 * target.c (debug_to_terminal_info): Add argument.
4908 (default_terminal_info): Likewise.
4909 * inflow.c (child_terminal_info): Add 'self' argument.
4910 * inferior.h (child_terminal_info): Add 'self' argument.
4911 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4913 2014-02-19 Tom Tromey <tromey@redhat.com>
4915 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4917 (target_terminal_save_ours): Add argument.
4918 * target.c (debug_to_terminal_save_ours): Add argument.
4919 (update_current_target): Update.
4920 * inflow.c (terminal_save_ours): Add 'self' argument.
4921 * inferior.h (terminal_save_ours): Add 'self' argument.
4923 2014-02-19 Tom Tromey <tromey@redhat.com>
4925 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4926 (target_terminal_ours): Add argument.
4927 * target.c (debug_to_terminal_ours): Add argument.
4928 (update_current_target): Update.
4929 * remote.c (remote_terminal_ours): Add 'self' argument.
4930 (remote_close): Update.
4931 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4932 * inflow.c (terminal_ours): Add 'self' argument.
4933 * inferior.h (terminal_ours): Add 'self' argument.
4934 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4936 2014-02-19 Pedro Alves <palves@redhat.com>
4937 Tom Tromey <tromey@redhat.com>
4939 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4941 (target_terminal_ours_for_output): Add argument.
4942 * target.c (debug_to_terminal_ours_for_output): Add argument.
4943 (update_current_target): Update.
4944 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4945 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4946 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4948 2014-02-19 Tom Tromey <tromey@redhat.com>
4950 * target.h (struct target_ops) <to_terminal_inferior>: Add
4952 * target.c (target_terminal_inferior): Add argument.
4953 (update_current_target): Update.
4954 * remote.c (remote_terminal_inferior): Add 'self' argument.
4955 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4956 * inflow.c (terminal_inferior): Add 'self' argument.
4957 * inferior.h (terminal_inferior): Add 'self' argument.
4958 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4959 (go32_terminal_inferior): Add 'self' argument.
4961 2014-02-19 Tom Tromey <tromey@redhat.com>
4963 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4964 (target_terminal_init): Add argument.
4965 * target.c (debug_to_terminal_init): Add argument.
4966 (update_current_target): Update.
4967 * inflow.c (terminal_init_inferior): Add 'self' argument.
4968 * inferior.h (terminal_init_inferior): Add 'self' argument.
4969 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4970 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4972 2014-02-19 Tom Tromey <tromey@redhat.com>
4974 * target.h (struct target_ops)
4975 <to_can_accel_watchpoint_condition>: Add argument.
4976 (target_can_accel_watchpoint_condition): Add argument.
4977 * target.c (debug_to_can_accel_watchpoint_condition): Add
4979 (update_current_target): Update.
4980 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4983 2014-02-19 Tom Tromey <tromey@redhat.com>
4985 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4987 (target_region_ok_for_hw_watchpoint): Add argument.
4988 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4989 (default_region_ok_for_hw_watchpoint): Add argument.
4990 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4991 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4993 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4995 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4997 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4999 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5001 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5003 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5004 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5006 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5007 Add 'self' argument.
5009 2014-02-19 Tom Tromey <tromey@redhat.com>
5011 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5013 (target_insert_watchpoint): Add argument.
5014 * target.c (debug_to_insert_watchpoint): Add argument.
5015 (update_current_target): Update.
5016 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5017 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5018 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5019 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5020 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5021 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5023 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5024 (procfs_insert_hw_watchpoint): Add 'self' argument.
5025 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5027 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5029 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5031 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5032 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5034 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5037 2014-02-19 Tom Tromey <tromey@redhat.com>
5039 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5041 (target_remove_watchpoint): Add argument.
5042 * target.c (debug_to_remove_watchpoint): Add argument.
5043 (update_current_target): Update.
5044 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5045 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5046 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5047 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5048 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5049 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5051 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5052 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5054 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5056 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5058 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5059 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5061 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5064 2014-02-19 Tom Tromey <tromey@redhat.com>
5066 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5068 (target_remove_hw_breakpoint): Add argument.
5069 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5070 (update_current_target): Update.
5071 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5072 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5074 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5075 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5077 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5080 2014-02-19 Tom Tromey <tromey@redhat.com>
5082 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5084 (target_insert_hw_breakpoint): Add argument.
5085 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5086 (update_current_target): Update.
5087 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5088 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5090 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5091 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5092 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5094 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5097 2014-02-19 Tom Tromey <tromey@redhat.com>
5099 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5101 (target_can_use_hardware_watchpoint): Add argument.
5102 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5103 (update_current_target): Update.
5104 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5106 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5108 * remote.c (remote_check_watch_resources): Add 'self' argument.
5109 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5110 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5112 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5113 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5115 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5117 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5119 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5121 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5123 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5125 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5126 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5128 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5131 2014-02-19 Tom Tromey <tromey@redhat.com>
5133 * target.h (struct target_ops) <to_post_attach>: Add argument.
5134 (target_post_attach): Add argument.
5135 * target.c (debug_to_post_attach): Add argument.
5136 (update_current_target): Update.
5137 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5138 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5139 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5140 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5141 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5143 2014-02-19 Tom Tromey <tromey@redhat.com>
5145 * windows-nat.c (windows_close): Add 'self' argument.
5146 * tracepoint.c (tfile_close): Add 'self' argument.
5147 * target.h (struct target_ops) <to_close>: Add argument.
5148 * target.c (target_close): Add argument.
5149 (update_current_target): Update.
5150 * remote.c (remote_close): Add 'self' argument.
5151 * remote-sim.c (gdbsim_close): Add 'self' argument.
5152 * remote-mips.c (mips_close): Add 'self' argument.
5153 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5154 * record-full.c (record_full_close): Add 'self' argument.
5155 * record-btrace.c (record_btrace_close): Add 'self' argument.
5156 * monitor.h (monitor_close): Add 'self' argument.
5157 * monitor.c (monitor_close): Add 'self' argument.
5158 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5159 * linux-nat.c (linux_nat_close): Add argument.
5160 * go32-nat.c (go32_close): Add 'self' argument.
5161 * exec.c (exec_close_1): Add 'self' argument.
5162 * ctf.c (ctf_close): Add 'self' argument.
5163 * corelow.c (core_close): Add 'self' argument.
5164 (core_close_cleanup): Update.
5165 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5166 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5168 2014-02-19 Tom Tromey <tromey@redhat.com>
5170 * remote.c (remote_load): New function.
5171 (init_remote_ops): Use it.
5173 2014-02-19 Tom Tromey <tromey@redhat.com>
5175 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5177 * common/linux-btrace.h (linux_supports_btrace): Update.
5178 * remote.c (remote_supports_btrace): Add "self" argument.
5179 * target-delegates.c: Rebuild.
5180 * target.c (target_supports_btrace): Remove.
5181 * target.h (struct target_ops) <to_supports_btrace>: Add
5182 target_ops argument.
5183 (target_supports_btrace): New define.
5185 2014-02-19 Tom Tromey <tromey@redhat.com>
5187 * record-full.c (record_full_beneath_to_resume_ops)
5188 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5189 (record_full_beneath_to_wait)
5190 (record_full_beneath_to_store_registers_ops)
5191 (record_full_beneath_to_store_registers)
5192 (record_full_beneath_to_xfer_partial_ops)
5193 (record_full_beneath_to_xfer_partial)
5194 (record_full_beneath_to_insert_breakpoint_ops)
5195 (record_full_beneath_to_insert_breakpoint)
5196 (record_full_beneath_to_remove_breakpoint_ops)
5197 (record_full_beneath_to_remove_breakpoint)
5198 (record_full_beneath_to_stopped_by_watchpoint)
5199 (record_full_beneath_to_stopped_data_address)
5200 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5201 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5202 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5203 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5204 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5205 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5206 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5207 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5208 (record_full_resume, record_full_wait_1)
5209 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5210 (record_full_store_registers, record_full_xfer_partial)
5211 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5212 (record_full_async, record_full_core_xfer_partial): Use target
5214 * target-delegates.c: Rebuild.
5215 * target.c (current_xfer_partial): Remove.
5216 (update_current_target): Do not INHERIT or de_fault
5217 to_insert_breakpoint, to_remove_breakpoint,
5218 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5219 to_is_async_p, to_async. Do not set to_xfer_partial field.
5220 (default_xfer_partial): Simplify.
5221 (current_xfer_partial): Remove.
5222 (target_wait, target_resume): Simplify.
5223 (find_default_can_async_p, find_default_is_async_p): Update.
5224 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5225 to_xfer_partial, to_stopped_by_watchpoint,
5226 to_stopped_data_address.
5227 (target_store_registers): Simplify.
5228 (forward_target_remove_breakpoint)
5229 (forward_target_insert_breakpoint): Remove.
5230 (target_remove_breakpoint, target_insert_breakpoint)
5231 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5232 * target.h (struct target_ops) <to_resume, to_wait,
5233 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5234 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5235 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5237 (forward_target_remove_breakpoint)
5238 (forward_target_insert_breakpoint): Remove.
5239 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5241 (record_btrace_insert_breakpoint): Delegate directly.
5243 2014-02-19 Tom Tromey <tromey@redhat.com>
5246 * target-delegates.c: New file.
5247 * target.c: Include target-delegates.c.
5248 (init_dummy_target): Call install_dummy_methods.
5249 (complete_target_initialization): Call install_delegators.
5250 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5251 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5252 * make-target-delegates: New file.
5254 2014-02-19 Tom Tromey <tromey@redhat.com>
5256 * record.c (find_record_target): Use find_target_at.
5257 * target.c (find_target_at): New function.
5258 * target.h (find_target_at): Declare.
5260 2014-02-19 Tom Tromey <tromey@redhat.com>
5262 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5264 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5266 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5267 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5269 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5271 * linux-nat.c (save_sigtrap): Update.
5272 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5273 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5274 (linux_nat_close): Update.
5275 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5277 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5279 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5280 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5281 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5282 (tmp_to_async): Add 'ops' argument.
5283 (record_full_stopped_by_watchpoint, record_full_async)
5284 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5286 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5287 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5288 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5289 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5290 (remote_is_async_p, remote_async): Add 'ops' argument.
5291 (remote_stopped_data_address): Update.
5292 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5293 * target.c (update_current_target)
5294 (find_default_can_async_p, find_default_is_async_p): Update.
5295 (init_dummy_target): Update.
5296 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5297 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5298 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5299 (target_can_async_p, target_is_async_p, target_async)
5300 (target_stopped_by_watchpoint): Update.
5302 2014-02-19 Yao Qi <yao@codesourcery.com>
5305 * gdbarch.sh: Remove startup_gdbarch.
5306 * gdbarch.c: Regenerated.
5307 * gdbarch.h: Likewise.
5309 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5311 * rl78-tdep.c (rl78_g10_register_name): New function.
5312 (rl78_return_value): Add g10 support.
5313 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5316 2014-02-17 Doug Evans <xdje42@gmail.com>
5318 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5319 (SUBDIR_GUILE_SRCS): Ditto.
5320 (scm-gsmob.o): Ditto.
5322 2014-02-17 Yao Qi <yao@codesourcery.com>
5324 * gnu-nat.c (ILL_RPC): Declare defined function.
5326 2014-02-17 Yao Qi <yao@codesourcery.com>
5328 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5329 mach_msg_type_number_t.
5330 (gnu_write_inferior): Likewise.
5332 2014-02-17 Yao Qi <yao@codesourcery.com>
5334 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5336 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5337 (inf_validate_procs, inf_signal): Likewise.
5338 (S_exception_raise_request): Likewise.
5339 (do_mach_notify_dead_name): Likewise.
5340 (steal_exc_port): Likewise.
5341 (gnu_read_inferior): Change 'copy_count''s type to
5342 mach_msg_type_number_t.
5343 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5346 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5348 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5349 flag. Adjust all users; in particular...
5350 (gnu_wait): ..., don't decrement its value in here...
5351 (gnu_create_inferior): ..., and instead set the flag in here,
5352 around the startup_inferior call, and call that one with
5353 START_INFERIOR_TRAPS_EXPECTED.
5355 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5356 (ILL_RPC): ... new macro.
5357 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5358 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5359 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5360 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5361 functions with ILL_RPC macro.
5362 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5363 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5364 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5365 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5366 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5367 (S_proc_getlogin_reply, S_proc_getsid_reply)
5368 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5369 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5370 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5371 (S_proc_getnports_reply, S_proc_is_important_reply)
5372 (S_proc_get_code_reply): New stub functions, generated with
5375 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5376 collected the type check structures.
5378 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5380 2014-02-14 Doug Evans <dje@google.com>
5382 * target.c (target_write_partial): Fix result type.
5384 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5386 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5387 the proper offsets to access fpregset_t.
5389 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5391 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5392 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5393 * h8300-tdep.c (setmachinelist): Remove global.
5394 * hppa-tdep.c (hppa_sigtramp): Remove global.
5395 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5396 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5397 * ravenscar-thread.c (update_target_observer): Remove global.
5398 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5400 2014-02-12 Tom Tromey <tromey@redhat.com>
5402 * common/rsp-low.c: Update comments.
5403 * common/rsp-low.h: Update comments.
5405 2014-02-12 Tom Tromey <tromey@redhat.com>
5407 * common/rsp-low.c (convert_ascii_to_int): Remove.
5408 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5410 2014-02-12 Tom Tromey <tromey@redhat.com>
5412 * common/rsp-low.h (unhexify): Don't declare.
5413 * common/rsp-low.c (unhexify): Remove.
5415 2014-02-12 Tom Tromey <tromey@redhat.com>
5417 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5418 * common/rsp-low.c (convert_int_to_ascii): Remove.
5420 2014-02-12 Tom Tromey <tromey@redhat.com>
5422 * common/rsp-low.h (hexify): Don't declare.
5423 * common/rsp-low.c (hexify): Remove.
5425 2014-02-12 Tom Tromey <tromey@redhat.com>
5427 * common/rsp-low.c (hexify): Never take strlen of argument.
5429 2014-02-12 Tom Tromey <tromey@redhat.com>
5431 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5432 * remote.c (extended_remote_run, remote_rcmd)
5433 (remote_download_trace_state_variable, remote_save_trace_data)
5434 (remote_set_trace_notes): Update.
5435 * tracepoint.c (encode_source_string, tfile_write_status)
5436 (tfile_write_uploaded_tsv): Update.
5438 2014-02-12 Tom Tromey <tromey@redhat.com>
5440 * tracepoint.c: Include rsp-low.h.
5441 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5442 * remote.c: Include rsp-low.h.
5443 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5444 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5445 (remote_unescape_input): Move to common/rsp-low.c.
5446 * common/rsp-low.h: New file.
5447 * common/rsp-low.c: New file.
5448 * Makefile.in (SFILES): Add common/rsp-low.c.
5449 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5450 (COMMON_OBS): Add rsp-low.o.
5451 (rsp-low.o): New target.
5453 2014-02-12 Tom Tromey <tromey@redhat.com>
5455 * utils.h: Include print-utils.h.
5456 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5457 (int_string, core_addr_to_string, core_addr_to_string_nz)
5458 (hex_string, hex_string_custom): Don't declare.
5459 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5460 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5461 (hex_string_custom, int_string, core_addr_to_string)
5462 (core_addr_to_string_nz, host_address_to_string): Move to
5463 common/print-utils.c.
5464 * common/print-utils.h: New file.
5465 * common/print-utils.c: New file
5466 * Makefile.in (SFILES): Add common/print-utils.c.
5467 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5468 (COMMON_OBS): Add print-utils.o.
5469 (print-utils.o): New target.
5471 2014-02-12 Tom Tromey <tromey@redhat.com>
5473 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5475 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5477 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5479 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5481 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5482 if a PT_IO ptrace request returns sucessfully but indicates that 0
5483 bytes were transferred.
5485 2014-02-12 Pedro Alves <palves@redhat.com>
5486 Kevin Buettner <kevinb@redhat.com>
5488 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5489 TYPE_INSTANCE_FLAG_CODE_SPACE.
5491 2014-02-12 Pedro Alves <palves@redhat.com>
5493 * h8300-tdep.c (pseudo_from_raw_register)
5494 (raw_from_pseudo_register): New functions.
5495 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5498 2014-02-12 Pedro Alves <palves@redhat.com>
5500 * h8300-tdep.c (h8300_register_sim_regno): New function.
5501 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5502 gdbarch_register_sim_regno hook.
5504 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5506 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5508 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5510 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5512 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5514 * obsd-tdep.h (obsd_init_abi): New prototype.
5515 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5516 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5517 (obsd_init_abi): New functions.
5518 * i386obsd-tdep.c: Include "obsd-tdep.h".
5519 (i386obsd_init_abi): Call obsd_init_abi.
5520 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5521 (amd64obsd_init_abi): Call obsd_init_abi.
5522 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5523 obsd-tdep.c to gdb_target_obs.
5525 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5527 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5528 double float arguments to 16-byte in the argument slots.
5530 2014-02-11 Doug Evans <xdje42@gmail.com>
5532 * configure.ac: Don't crash if pkg-config is not found and guile
5533 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5535 * configure: Regenerate.
5537 2014-02-11 Yao Qi <yao@codesourcery.com>
5539 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5540 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5541 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5542 * gnu-nat.c (gnu_xfer_memory): Likewise.
5543 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5544 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5545 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5546 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5548 2014-02-11 Yao Qi <yao@codesourcery.com>
5550 * target.h (enum target_xfer_error): Rename to ...
5551 (enum target_xfer_status): ... it. New. All users updated.
5552 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5554 (TARGET_XFER_STATUS_ERROR_P): New macro.
5555 (target_xfer_error_to_string): Remove declaration.
5556 (target_xfer_status_to_string): Declare.
5557 (target_xfer_partial_ftype): Adjust it.
5558 (struct target_ops) <to_xfer_partial>: Return
5559 target_xfer_status. Add argument xfered_len. Update
5561 * target.c (target_xfer_error_to_string): Rename to ...
5562 (target_xfer_status_to_string): ... it. New. All callers
5564 (target_read_live_memory): Likewise. Call target_xfer_partial
5565 instead of target_read.
5566 (memory_xfer_live_readonly_partial): Return
5567 target_xfer_status. Add argument xfered_len.
5568 (raw_memory_xfer_partial): Likewise.
5569 (memory_xfer_partial_1): Likewise.
5570 (memory_xfer_partial): Likewise.
5571 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5572 properly. Update debug message.
5573 (default_xfer_partial, current_xfer_partial): Likewise.
5574 (target_write_partial): Likewise.
5575 (target_read_partial): Likewise. All callers updated.
5576 (read_whatever_is_readable): Likewise.
5577 (target_write_with_progress): Likewise.
5578 (target_read_alloc_1): Likewise.
5580 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5581 * auxv.c (procfs_xfer_auxv): Likewise.
5582 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5583 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5584 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5585 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5586 * corefile.c (read_memory): Adjust.
5587 * corelow.c (core_xfer_partial): Likewise.
5588 * ctf.c (ctf_xfer_partial): Likewise.
5589 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5591 (darwin_xfer_partial): Likewise.
5592 * exec.c (section_table_xfer_memory_partial): Likewise. All
5594 (exec_xfer_partial): Likewise.
5595 * exec.h (section_table_xfer_memory_partial): Update
5597 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5599 (gnu_xfer_partial): Likewise.
5600 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5601 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5602 (ia64_hpux_xfer_solib_got): Likewise.
5603 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5604 type of 'partial_len' to ULONGEST.
5605 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5606 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5607 (linux_nat_xfer_partial): Likewise.
5608 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5609 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5610 * monitor.c (monitor_xfer_memory): Likewise.
5611 (monitor_xfer_partial): Likewise.
5612 * procfs.c (procfs_xfer_partial): Likewise.
5613 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5614 * record-full.c (record_full_xfer_partial): Likewise.
5615 (record_full_core_xfer_partial): Likewise.
5616 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5617 (gdbsim_xfer_partial): Likewise.
5618 * remote.c (remote_write_bytes_aux): Likewise. All callers
5620 (remote_write_bytes, remote_read_bytes): Likewise. All
5622 (remote_flash_erase): Likewise. All callers updated.
5623 (remote_write_qxfer): Likewise. All callers updated.
5624 (remote_read_qxfer): Likewise. All callers updated.
5625 (remote_xfer_partial): Likewise.
5626 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5627 (rs6000_xfer_shared_libraries): Likewise.
5628 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5629 (sol_thread_xfer_partial): Likewise.
5630 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5631 (sparc_xfer_partial): Likewise.
5632 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5634 (spu_xfer_partial): Likewise.
5635 * spu-multiarch.c (spu_xfer_partial): Likewise.
5636 * tracepoint.c (tfile_xfer_partial): Likewise.
5637 * windows-nat.c (windows_xfer_memory): Likewise.
5638 (windows_xfer_shared_libraries): Likewise.
5639 (windows_xfer_partial): Likewise.
5640 * valprint.c: Replace 'target_xfer_error' with
5641 'target_xfer_status' in comments.
5643 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5645 Checked in by Joel Brobecker <brobecker@adacore.com>.
5646 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5648 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5650 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5651 function parameters.
5653 2014-02-10 Will Newton <will.newton@linaro.org>
5655 * elfread.c (elf_rel_plt_read): Look for a .got section if
5656 looking up .got.plt fails.
5657 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5658 on address passed to elf_gnu_ifunc_record_cache.
5659 (elf_gnu_ifunc_resolve_addr): Likewise.
5660 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5662 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5664 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5665 (X_RETTURN): New macro.
5666 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5668 * sparc64-tdep.c (sparc64_init_abi): Hook
5669 sparc_in_function_epilogue_p.
5671 2014-02-10 Gary Benson <gbenson@redhat.com>
5673 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5674 Rename name_matcher to symbol_matcher.
5676 2014-02-10 Gary Benson <gbenson@redhat.com>
5678 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5679 Use expand_symtabs_file_matcher_ftype and
5680 expand_symtabs_symbol_matcher_ftype.
5682 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5684 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5685 (struct ada_symbol_cache): New.
5686 (ada_free_symbol_cache): Forward declare.
5687 (struct ada_pspace_data): New.
5688 (ada_pspace_data_handle): New static global.
5689 (get_ada_pspace_data, ada_pspace_data_cleanup)
5690 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5691 (cache_space, cache): Delete, now folded inside struct
5693 (ada_get_symbol_cache): New function.
5694 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5696 (_initialize_ada_language): Remove initialization of cache_space.
5697 Move call to observer_attach_inferior_exit up, grouping it
5698 with the other observer registrations inside this function.
5699 Rename command to be more general. Add call to
5700 register_program_space_data_with_cleanup.
5702 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5704 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5705 ada_new_objfile_observer.
5706 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5707 (_initialize_tasks): Update uses of ada_new_objfile_observer
5708 and ada_tasks_normal_stop_observer.
5710 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5712 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5713 returned by the 'Length attribute to integer.
5715 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5717 * ada-lang.c (_initialize_ada_language): Initialize
5718 cache_space obstack.
5720 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5722 * ada-lang.c (HASH_SIZE): New macro.
5723 (struct cache_entry): New type.
5724 (cache_space, cache): New static globals.
5725 (ada_clear_symbol_cache, find_entry): New functions.
5726 (lookup_cached_symbol, cache_symbol): Implement.
5727 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5728 (_initialize_ada_language): Attach ada_new_objfile_observer
5729 and ada_free_objfile_observer.
5731 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5733 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5734 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5735 struct block * parameter.
5736 (ada_lookup_symbol_list_worker): Constify local variable "block".
5737 Remove cast which is no longer necessary.
5739 2014-02-10 Doug Evans <xdje42@gmail.com>
5741 Add Guile as an extension language.
5742 * NEWS: Mention Guile scripting.
5743 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5744 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5745 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5746 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5747 (CLIBS): Add GUILE_LIBS.
5748 (install-guile): New rule.
5749 (guile.o): New rule.
5750 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5751 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5752 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5753 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5754 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5755 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5756 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5757 * configure.ac: New option --with-guile.
5758 * configure: Regenerate.
5759 * config.in: Regenerate.
5760 * auto-load.c: Remove #include "python/python.h". Add #include
5761 "gdb/section-scripts.h".
5762 (source_section_scripts): Handle Guile scripts.
5763 (_initialize_auto_load): Add name of Guile objfile script to
5764 scripts-directory help text.
5765 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5766 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5767 (struct breakpoint): New member scm_bp_object.
5768 * defs.h (enum command_control_type): New value guile_control.
5769 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5771 (show_user): Update comment.
5772 (_initialize_cli_cmds): Update help text for "show user". Update help
5773 text for max-user-call-depth.
5774 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5776 (multi_line_command_p): Add guile_control.
5777 (print_command_lines): Handle guile_control.
5778 (execute_control_command, recurse_read_control_structure): Ditto.
5779 (process_next_line): Recognize "guile" commands.
5780 * disasm.c (gdb_disassemble_info): Make non-static.
5781 * disasm.h: #include "dis-asm.h".
5782 (struct gdbarch): Add forward decl.
5783 (gdb_disassemble_info): Declare.
5784 * extension.c: #include "guile/guile.h".
5785 (extension_languages): Add guile.
5786 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5787 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5788 * gdbtypes.c (get_unsigned_type_max): New function.
5789 (get_signed_type_minmax): New function.
5790 * gdbtypes.h (get_unsigned_type_max): Declare.
5791 (get_signed_type_minmax): Declare.
5792 * guile/README: New file.
5793 * guile/guile-internal.h: New file.
5794 * guile/guile.c: New file.
5795 * guile/guile.h: New file.
5796 * guile/scm-arch.c: New file.
5797 * guile/scm-auto-load.c: New file.
5798 * guile/scm-block.c: New file.
5799 * guile/scm-breakpoint.c: New file.
5800 * guile/scm-disasm.c: New file.
5801 * guile/scm-exception.c: New file.
5802 * guile/scm-frame.c: New file.
5803 * guile/scm-gsmob.c: New file.
5804 * guile/scm-iterator.c: New file.
5805 * guile/scm-lazy-string.c: New file.
5806 * guile/scm-math.c: New file.
5807 * guile/scm-objfile.c: New file.
5808 * guile/scm-ports.c: New file.
5809 * guile/scm-pretty-print.c: New file.
5810 * guile/scm-safe-call.c: New file.
5811 * guile/scm-string.c: New file.
5812 * guile/scm-symbol.c: New file.
5813 * guile/scm-symtab.c: New file.
5814 * guile/scm-type.c: New file.
5815 * guile/scm-utils.c: New file.
5816 * guile/scm-value.c: New file.
5817 * guile/lib/gdb.scm: New file.
5818 * guile/lib/gdb/boot.scm: New file.
5819 * guile/lib/gdb/experimental.scm: New file.
5820 * guile/lib/gdb/init.scm: New file.
5821 * guile/lib/gdb/iterator.scm: New file.
5822 * guile/lib/gdb/printing.scm: New file.
5823 * guile/lib/gdb/types.scm: New file.
5824 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5825 (VPATH): Add $(GUILE_SRCDIR).
5826 (GUILE_DIR): New variable.
5827 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5828 (all): Add stamp-guile dependency.
5829 (stamp-guile): New rule.
5830 (clean-guile, install-guile, uninstall-guile): New rules.
5831 (install-only): Add install-guile dependency.
5832 (uninstall): Add uninstall-guile dependency.
5833 (clean): Add clean-guile dependency.
5835 2014-02-09 Doug Evans <xdje42@gmail.com>
5837 Revert this patch (which I approved, mea culpa).
5839 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5841 * Makefile.in (all-lib): Remove.
5842 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5844 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5846 Fix Python stack corruption.
5847 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5850 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5852 * Makefile.in (all-lib): Remove.
5853 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5855 2014-02-07 Doug Evans <dje@google.com>
5857 * extension-priv.h (extension_language_script_ops): Add comment.
5858 (extension_language_ops): Add comment.
5859 (active_ext_lang_state): Fix typo in comment.
5861 2014-02-07 Pedro Alves <palves@redhat.com>
5863 PR breakpoints/16292
5864 * infrun.c (handle_signal_stop) <signal arrives while stepping
5865 over a breakpoint>: Switch back to the stepping thread.
5867 2014-02-07 Yao Qi <yao@codesourcery.com>
5869 * target.c (target_xfer_partial): Return zero if LEN is zero.
5871 2014-02-07 Yao Qi <yao@codesourcery.com>
5873 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5874 (ld_so_xfer_auxv): Likewise.
5875 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5876 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5877 * corelow.c (core_xfer_partial): Likewise.
5878 * ctf.c (ctf_xfer_partial): Likewise.
5879 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5880 (darwin_xfer_partial): Likewise.
5881 * exec.c (exec_xfer_partial): Likewise.
5882 * gnu-nat.c (gnu_xfer_partial): Likewise.
5883 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5884 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5885 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5886 * linux-nat.c (linux_xfer_siginfo): Likewise.
5887 (linux_proc_xfer_spu): Likewise.
5888 * procfs.c (procfs_xfer_partial): Likewise.
5889 * record-full.c (record_full_xfer_partial): Likewise.
5890 (record_full_core_xfer_partial): Likewise.
5891 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5892 * remote.c (remote_write_qxfer): Likewise.
5893 (remote_write_qxfer, remote_read_qxfer): Likewise.
5894 (remote_xfer_partial): Likewise.
5895 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5896 (rs6000_xfer_shared_libraries): Likewise.
5897 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5898 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5899 (spu_xfer_partial): Likewise.
5900 * target.c (memory_xfer_partial_1): Likewise.
5901 * tracepoint.c (tfile_xfer_partial): Likewise.
5902 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5903 (windows_xfer_partial): Likewise.
5905 2014-02-07 Yao Qi <yao@codesourcery.com>
5907 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5909 (core_xfer_shared_libraries_aix): Likewise.
5910 * gdbarch.c, gdbarch.h: Regenerated.
5911 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5912 ULONGEST. Change 'len_avail' type to ULONGEST.
5913 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5914 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5916 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5918 2014-02-07 Yao Qi <yao@codesourcery.com>
5920 * corefile.c (memory_error): Get 'exception' from ERR and pass
5921 'exception' to throw_error.
5923 2014-02-06 Doug Evans <xdje42@gmail.com>
5925 * configure.ac (libpython checking): Remove all but python.o from
5926 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5927 * configure: Regenerate.
5929 * Makefile.in (SFILES): Add extension.c.
5930 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5931 (COMMON_OBS): Add extension.o.
5932 * extension.h: New file.
5933 * extension-priv.h: New file.
5934 * extension.c: New file.
5936 * python/python-internal.h: #include "extension.h".
5937 (gdbpy_auto_load_enabled): Declare.
5938 (gdbpy_apply_val_pretty_printer): Declare.
5939 (gdbpy_apply_frame_filter): Declare.
5940 (gdbpy_preserve_values): Declare.
5941 (gdbpy_breakpoint_cond_says_stop): Declare.
5942 (gdbpy_breakpoint_has_cond): Declare.
5943 (void source_python_script_for_objfile): Delete.
5944 * python/python.c: #include "extension-priv.h".
5945 Delete inclusion of "observer.h".
5946 (extension_language_python): Moved here and renamed from
5947 script_language_python in py-auto-load.c.
5948 Redefined to be of type extension_language_defn.
5949 (python_extension_script_ops): New global.
5950 (python_extension_ops): New global.
5951 (struct python_env): New member previous_active.
5952 (restore_python_env): Call restore_active_ext_lang.
5953 (ensure_python_env): Call set_active_ext_lang.
5954 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5956 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5958 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5960 (gdbpy_eval_from_control_command): Renamed from
5961 eval_python_from_control_command, made static. New arg extlang.
5962 (gdbpy_source_script) Renamed from source_python_script, made static.
5964 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5965 result to int. New arg extlang.
5966 (gdbpy_source_objfile_script): Renamed from
5967 source_python_script_for_objfile, made static. New arg extlang.
5968 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5969 static. New args extlang, extlang_printers. Change result type to
5971 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5972 static. New arg extlang. Rename arg printers to extlang_printers
5973 and change type to ext_lang_type_printers *.
5974 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5975 static. Replace argument arg with extlang, extlang_printers.
5976 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5977 (!HAVE_PYTHON, source_python_script): Delete.
5978 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5979 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5980 (!HAVE_PYTHON, start_type_printers): Delete.
5981 (!HAVE_PYTHON, apply_type_printers): Delete.
5982 (!HAVE_PYTHON, free_type_printers): Delete.
5983 (_initialize_python): Delete call to observer_attach_before_prompt.
5984 (finalize_python): Set/restore active extension language.
5985 (gdbpy_finish_initialization) Renamed from
5986 finish_python_initialization, made static. New arg extlang.
5987 (gdbpy_initialized): New function.
5988 * python/python.h: #include "extension.h". Delete #include
5989 "value.h", "mi/mi-cmds.h".
5990 (extension_language_python): Declare.
5991 (GDBPY_AUTO_FILE_NAME): Delete.
5992 (enum py_bt_status): Moved to extension.h and renamed to
5994 (enum frame_filter_flags): Moved to extension.h.
5995 (enum py_frame_args): Moved to extension.h and renamed to
5996 ext_lang_frame_args.
5997 (finish_python_initialization): Delete.
5998 (eval_python_from_control_command): Delete.
5999 (source_python_script): Delete.
6000 (apply_val_pretty_printer): Delete.
6001 (apply_frame_filter): Delete.
6002 (preserve_python_values): Delete.
6003 (gdbpy_script_language_defn): Delete.
6004 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6005 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6007 * auto-load.c: #include "extension.h".
6008 (GDB_AUTO_FILE_NAME): Delete.
6009 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6010 (script_language_gdb): Delete, moved to extension.c and renamed to
6011 extension_language_gdb.
6012 (source_gdb_script_for_objfile): Delete.
6013 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6014 (loaded_script): Change type of language member to
6015 struct extension_language_defn *.
6016 (init_loaded_scripts_info): Initialize
6017 unsupported_script_warning_printed.
6018 (maybe_add_script): Make static. Change type of language arg to
6019 struct extension_language_defn *.
6020 (clear_section_scripts): Reset unsupported_script_warning_printed.
6021 (auto_load_objfile_script_1): Rewrite to use extension language API.
6022 (auto_load_objfile_script): Make public. Remove support-compiled-in
6023 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6024 (source_section_scripts): Rewrite to use extension language API.
6025 (load_auto_scripts_for_objfile): Rewrite to use
6026 auto_load_scripts_for_objfile.
6027 (collect_matching_scripts_data): Change type of language member to
6028 struct extension_language_defn *.
6029 (auto_load_info_scripts): Change type of language arg to
6030 struct extension_language_defn *.
6031 (unsupported_script_warning_print): New function.
6032 (script_not_found_warning_print): Make static.
6033 (_initialize_auto_load): Rewrite construction of scripts-directory
6035 * auto-load.h (struct objfile): Add forward decl.
6036 (struct script_language): Delete.
6037 (struct auto_load_pspace_info): Add forward decl.
6038 (struct extension_language_defn): Add forward decl.
6039 (maybe_add_script): Delete.
6040 (auto_load_objfile_script): Declare.
6041 (script_not_found_warning_print): Delete.
6042 (auto_load_info_scripts): Update prototype.
6043 (auto_load_gdb_scripts_enabled): Declare.
6044 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6045 auto_load_python_scripts_enabled and made public.
6046 (script_language_python): Delete, moved to python.c.
6047 (gdbpy_script_language_defn): Delete.
6048 (info_auto_load_python_scripts): Update to use
6049 extension_language_python.
6051 * breakpoint.c (condition_command): Replace call to
6052 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6053 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6054 with call to breakpoint_ext_lang_cond_says_stop.
6055 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6056 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6057 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6058 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6060 (local_setattro): Print name of extension language with existing
6063 * valprint.c (val_print, value_print): Update to call
6064 apply_ext_lang_val_pretty_printer.
6065 * cp-valprint.c (cp_print_value): Update call to
6066 apply_ext_lang_val_pretty_printer.
6067 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6068 (gdbpy_apply_val_pretty_printer): Renamed from
6069 apply_val_pretty_printer. New arg extlang.
6070 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6072 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6073 extension language API.
6074 * cli/cli-script.c (execute_control_command): Update to call
6075 eval_ext_lang_from_control_command.
6077 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6078 enum ext_lang_bt_status values. Update call to
6079 apply_ext_lang_frame_filter.
6080 (mi_cmd_stack_list_locals): Ditto.
6081 (mi_cmd_stack_list_args): Ditto.
6082 (mi_cmd_stack_list_variables): Ditto.
6083 * mi/mi-main.c: Delete #include "python/python-internal.h".
6084 Add #include "extension.h".
6085 (mi_cmd_list_features): Replace reference to python internal variable
6086 gdb_python_initialized with call to ext_lang_initialized_p.
6088 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6089 Update to use enum ext_lang_frame_args. Update to call
6090 apply_ext_lang_frame_filter.
6091 * python/py-framefilter.c (extract_sym): Update to use enum
6093 (extract_value, py_print_type, py_print_value): Ditto.
6094 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6095 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6096 (py_print_frame): Ditto.
6097 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6098 New arg extlang. Update to use enum ext_lang_bt_status.
6100 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6101 finish_python_initialization. Replace with call to
6102 finish_ext_lang_initialization.
6104 * typeprint.c (do_free_global_table): Update to call
6105 free_ext_lang_type_printers.
6106 (create_global_typedef_table): Update to call
6107 start_ext_lang_type_printers.
6108 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6109 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6110 (type_print_options): Change type of global_printers from "void *"
6111 to "struct ext_lang_type_printers *".
6113 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6114 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6115 (gdbpy_preserve_values): Renamed from preserve_python_values.
6117 (!HAVE_PYTHON, preserve_python_values): Delete.
6119 * utils.c (quit_flag): Delete, moved to extension.c.
6120 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6123 * eval.c: Delete #include "python/python.h".
6124 * main.c: Delete #include "python/python.h".
6126 * defs.h: Update comment.
6128 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6132 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6134 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6137 2014-02-05 Yao Qi <yao@codesourcery.com>
6139 * remote.c (remote_pass_signals): Remove local 'buf' and use
6141 (remote_program_signals): Likewise.
6143 2014-02-05 Yao Qi <yao@codesourcery.com>
6145 * ctf.c: Include "inferior.h" and "gdbthread.h".
6146 (CTF_PID): A new macro.
6147 (ctf_open): Call inferior_appeared and add_thread_silent.
6148 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6149 (ctf_thread_alive): New function.
6150 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6152 2014-02-05 Yao Qi <yao@codesourcery.com>
6156 2013-05-24 Yao Qi <yao@codesourcery.com>
6158 * tracepoint.c (TFILE_PID): Remove.
6159 (tfile_open): Don't add thread and inferior.
6160 (tfile_close): Don't set 'inferior_ptid'. Don't call
6161 exit_inferior_silent.
6162 (tfile_thread_alive): Remove.
6163 (init_tfile_ops): Don't set field 'to_thread_alive' of
6166 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6168 * remote.c (remote_start_remote): Call remote_check_symbols even
6169 if only symbol-file (not file) has been given.
6171 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6173 * gdbarch.sh (skip_entrypoint): New callback.
6174 * gdbarch.c, gdbarch.h: Regenerate.
6175 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6176 * infrun.c (fill_in_stop_func): Likewise.
6177 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6178 (ppc_elfv2_elf_make_msymbol_special): New function.
6179 (ppc_elfv2_skip_entrypoint): Likewise.
6180 (ppc_linux_init_abi): Install them for ELFv2.
6182 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6184 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6185 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6186 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6187 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6188 structures returned in GPRs.
6190 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6192 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6193 offset to the stack parameter list for the ELFv2 ABI.
6195 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6197 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6198 set_gdbarch_convert_from_func_ptr_addr and
6199 set_gdbarch_elf_make_msymbol_special for ELFv1.
6200 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6201 function descriptors on ELFv1.
6202 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6203 set up r12 at function entry.
6205 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6207 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6208 (struct gdbarch_tdep): New member elf_abi.
6210 * rs6000-tdep.c: Include "elf/ppc64.h".
6211 (rs6000_gdbarch_init): Detect ELF ABI version.
6213 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6215 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6216 within a register pair holding a DFP 128-bit value on little-endian.
6217 (ppc64_sysv_abi_return_value_base): Likewise.
6218 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6219 (dfp_pseudo_register_write): Likewise.
6221 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6223 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6224 offset on little-endian when passing _Decimal32.
6225 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6227 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6229 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6230 of the overlapped FP register within the VSX register on little-
6232 (efpr_pseudo_register_write): Likewise.
6234 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6236 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6237 offset on little-endian when passing small structures.
6239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6241 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6242 (struct ppc64_sysv_argpos): New data structure.
6243 (ppc64_sysv_abi_push_float): Remove.
6244 (ppc64_sysv_abi_push_val): New function.
6245 (ppc64_sysv_abi_push_integer): Likewise.
6246 (ppc64_sysv_abi_push_freg): Likewise.
6247 (ppc64_sysv_abi_push_vreg): Likewise.
6248 (ppc64_sysv_abi_push_param): Likewise.
6249 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6250 (ppc64_sysv_abi_return_value_base): New function.
6251 (ppc64_sysv_abi_return_value): Refactor to use it.
6253 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6255 * NEWS: Document new target powerpc64le-*-linux*.
6257 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6259 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6260 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6262 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6263 register set used in ELF core dumps. Add floating-point register set.
6265 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6267 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6268 dwarf2_to_gdb[] table using symbolic constants. Adjust
6269 penultimate entry from number representing the PC register
6270 to symbolic constant representing the MDR register. Add
6271 constant for the PC register to the end of the table.
6273 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6275 * bsd-kvm.c: Include <sys/param.h>
6277 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6279 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6281 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6283 * ada-lang.h (clear_ada_sym_cache): Delete.
6285 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6287 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6289 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6291 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6292 the sigreturn register save area only if the syscall is
6295 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6297 * valops.c (value_slice): Minor reformatting.
6299 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6301 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6303 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6305 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6307 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6308 (ada_ignore_descriptive_types_p): New static global.
6309 (find_parallel_type_by_descriptive_type): Return immediately
6310 if ada_ignore_descriptive_types_p is set.
6311 (_initialize_ada_language): Register new commands "maintenance
6312 set ada", "maintenance show ada", "maintenance set ada
6313 ignore-descriptive-types" and "maintenance show ada
6314 ignore-descriptive-types".
6315 * NEWS: Add entry for new "maint ada set/show
6316 ignore-descriptive-types" commands.
6318 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6320 * record-btrace.c (record_btrace_close): Call btrace_teardown
6323 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6325 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6328 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6330 * ada-typeprint (type_is_full_subrange_of_target_type):
6332 (print_range): Add parameter bounds_prefered_p. If not set,
6333 try printing range types using the name of their base type.
6334 (print_range_type): Add parameter bounds_prefered_p.
6335 Use it in call to print_range.
6336 (print_array_type, ada_print_type): Update calls to print_range
6337 and print_range_type.
6339 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6341 * ada-typeprint.c (print_array_type, print_choices, print_range)
6342 (print_range_bound, print_dynamic_range_bound, print_range_type):
6345 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6347 * ada-typeprint.c (print_range): Add missing empty line
6348 after local declaration.
6350 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6352 * ada-valprint.c (print_optional_low_bound): Get index_type's
6353 target type for as long as it is a TYPE_CODE_RANGE.
6355 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6357 * procfs.c (procfs_make_note_section): Remove assertion and
6360 2014-01-24 Yao Qi <yao@codesourcery.com>
6362 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6363 * corelow.c (get_core_siginfo): Likewise.
6365 2014-01-24 Yao Qi <yao@codesourcery.com>
6367 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6368 ULONGEST. Don't check 'len' is negative.
6369 (remote_write_bytes): Change type of 'len' to ULONGEST.
6371 2014-01-23 Tom Tromey <tromey@redhat.com>
6374 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6375 Handle exception from frame.block.
6376 (FrameVars.fetch_frame_locals): Likewise.
6378 2014-01-23 Tom Tromey <tromey@redhat.com>
6381 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6382 on a NULL pointer. Move "goto error" to correct place.
6384 2014-01-23 Tom Tromey <tromey@redhat.com>
6387 * python/py-framefilter.c (apply_frame_filter): Call
6388 ensure_python_env after computing gdbarch.
6390 2014-01-23 Yao Qi <yao@codesourcery.com>
6392 * target.c (raw_memory_xfer_partial): Change argument type
6393 from void * to gdb_byte *.
6394 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6396 2014-01-22 Doug Evans <dje@google.com>
6398 New gdbserver option --debug-format=timestamp.
6401 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6403 * syscalls/s390x-linux.xml: New file.
6404 * syscalls/s390-linux.xml: New file.
6405 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6406 (XML_SYSCALL_FILENAME_S390X): Likewise.
6407 (op_svc): New enum value for SVC opcode.
6408 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6409 (s390_linux_get_syscall_number): New function.
6410 (s390_gdbarch_init): Register '*get_syscall_number' and the
6411 syscall xml file name.
6412 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6413 "s390-linux.xml" and "s390x-linux.xml".
6414 * NEWS: Announce new feature.
6416 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6418 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6420 2014-01-22 Pedro Alves <palves@redhat.com>
6422 * xtensa-config.c: Include defs.h.
6424 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6426 * common/common-utils.h: Add "ARI:" comment beside __func__
6429 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6431 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6432 documentation a bit.
6434 2014-01-21 Roland McGrath <mcgrathr@google.com>
6436 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6437 * configure: Regenerate.
6438 * aclocal.m4: Regenerate.
6439 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6440 New substituted variables.
6441 (install-strip): New target.
6442 (INSTALL_SCRIPT): New substituted variable.
6443 (FLAGS_TO_PASS): Add it.
6444 (install-only): Use $(INSTALL_SCRIPT) rather than
6445 $(INSTALL_PROGRAM) for gcore.
6447 2014-01-20 Tom Tromey <tromey@redhat.com>
6449 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6452 2014-01-20 Tom Tromey <tromey@redhat.com>
6454 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6455 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6456 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6457 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6458 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6459 (struct cmd_list_element) <flags>: Remove.
6460 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6461 doc_allocated>: New fields.
6462 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6464 * maint.c (maintenance_do_deprecate): Update.
6465 * top.c (execute_command): Update.
6467 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6469 * xtensa-linux-nat.c: Include asm/ptrace.h.
6471 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6473 * Makefile.in (SFILES): Add d-support.c.
6474 (COMMON_OBS): Add d-support.o.
6475 * d-lang.h (d_parse_symbol): Add comment, now defined in
6477 * d-lang.c (parse_call_convention)
6478 (parse_attributes, parse_function_types)
6479 (parse_function_args, parse_type, parse_identifier)
6480 (call_convention_p, d_parse_symbol): Move functions to ...
6481 * d-support.c: ... New file.
6483 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6485 * d-lang.h (d_parse_symbol): Add declaration.
6486 * d-lang.c (extract_identifiers)
6487 (extract_type_info): Remove functions.
6488 (parse_call_convention, parse_attributes)
6489 (parse_function_types, parse_function_args)
6490 (parse_type, parse_identifier, call_convention_p)
6491 (d_parse_symbol): New functions.
6492 (d_demangle): Use d_parse_symbol to demangle D symbols.
6494 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6496 * d-lang.h (struct builtin_d_type): New data type.
6497 (builtin_d_type): Add declaration.
6498 * d-lang.c (d_language_arch_info, build_d_types)
6499 (builtin_d_type): New functions.
6500 (enum d_primitive_types): New data type.
6501 (d_language_defn): Change c_language_arch_info to
6502 d_language_arch_info.
6503 (d_type_data): New static variable.
6504 (_initialize_d_language): Initialize d_type_data.
6506 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6508 * d-lang.h (d_main_name): Add declaration.
6509 * d-lang.c (d_main_name): New function.
6510 * symtab.c (find_main_name): Add call to d_main_name.
6512 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6514 * d-lang.c (d_language_defn): Change macro_expansion_c to
6517 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6519 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6521 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6523 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6524 gdb_exception" declaration.
6525 * remote.c (getpkt_or_notif_sane): Likewise.
6527 2014-01-17 Doug Evans <dje@google.com>
6529 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6530 function, contents of dirnames_to_char_ptr_vec_append moved here.
6531 (delim_string_to_char_ptr_vec): New function.
6532 (dirnames_to_char_ptr_vec_append): Rewrite.
6533 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6535 2014-01-17 Doug Evans <dje@google.com>
6537 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6539 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6540 #include "common-utils.h".
6541 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6542 * common/vec.h (VEC_ASSERT_PASS): Update.
6543 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6544 (MACH_CHECK_ERROR): Update.
6546 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6548 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6550 * gdbarch.h: Regenerate.
6552 2014-01-16 Tom Tromey <tromey@redhat.com>
6554 * value.c (struct value) <regnum>: Move earlier.
6556 2014-01-16 Tom Tromey <tromey@redhat.com>
6558 * remote.c (extended_remote_create_inferior): Rename from
6559 extended_remote_create_inferior_1. Add "ops" argument. Remove
6562 2014-01-16 Pedro Alves <palves@redhat.com>
6564 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6565 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6568 2014-01-16 Doug Evans <dje@google.com>
6570 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6572 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6574 * btrace.h (btrace_thread_flag): New.
6575 (struct btrace_thread_info) <flags>: New.
6576 * record-btrace.c (record_btrace_resume_thread)
6577 (record_btrace_find_thread_to_move, btrace_step_no_history)
6578 (btrace_step_stopped, record_btrace_start_replaying)
6579 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6580 (record_btrace_find_resume_thread): New.
6581 (record_btrace_resume, record_btrace_wait): Extend.
6582 (record_btrace_can_execute_reverse): New.
6583 (record_btrace_open): Fail in non-stop mode.
6584 (record_btrace_set_replay): Split into this, ...
6585 (record_btrace_stop_replaying): ... this, ...
6586 (record_btrace_clear_histories): ... and this.
6587 (init_record_btrace_ops): Init to_can_execute_reverse.
6588 * NEWS: Announce it.
6590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6592 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6593 (forward_target_decr_pc_after_break)
6594 (target_decr_pc_after_break): New.
6595 * target.c (forward_target_decr_pc_after_break)
6596 (target_decr_pc_after_break): New.
6597 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6598 instead of gdbarch_decr_pc_after_break.
6599 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6600 instead of gdbarch_decr_pc_after_break.
6601 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6602 instead of gdbarch_decr_pc_after_break.
6603 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6604 instead of gdbarch_decr_pc_after_break.
6605 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6606 instead of gdbarch_decr_pc_after_break.
6607 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6608 instead of gdbarch_decr_pc_after_break.
6610 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6612 * btrace.c: Include regcache.h.
6613 (btrace_add_pc): New.
6614 (btrace_enable): Call btrace_add_pc.
6615 (btrace_is_empty): New.
6616 * btrace.h (btrace_is_empty): New.
6617 * record-btrace.c (require_btrace, record_btrace_info): Call
6620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6622 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6623 Support delta reads.
6624 (linux_disable_btrace): Change return type.
6625 * common/linux-btrace.h (linux_read_btrace): Change parameters
6626 and return type to allow error reporting. Update users.
6627 (linux_disable_btrace): Change return type. Update users.
6628 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6630 (btrace_error): New.
6631 (btrace_block) <begin>: Comment on BEGIN == 0.
6632 * btrace.c (btrace_compute_ftrace): Start from the end of
6634 (btrace_stitch_trace, btrace_clear_history): New.
6635 (btrace_fetch): Read delta trace, return if replaying.
6636 (btrace_clear): Move clear history code to btrace_clear_history.
6637 (parse_xml_btrace): Throw an error if parsing failed.
6638 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6639 and return type to allow error reporting.
6640 (target_read_btrace): Change parameters and return type to allow
6642 * target.c (target_read_btrace): Update.
6643 * remote.c (remote_read_btrace): Support delta reads. Pass
6645 * NEWS: Announce it.
6647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6649 * record.h (record_btrace_frame_unwind)
6650 (record_btrace_tailcall_frame_unwind): New declarations.
6651 * dwarf2-frame: Include record.h
6652 (dwarf2_frame_cfa): Throw an error for btrace frames.
6653 * record-btrace.c: Include hashtab.h.
6654 (btrace_get_bfun_name): New.
6655 (btrace_call_history): Call btrace_get_bfun_name.
6656 (struct btrace_frame_cache): New.
6658 (bfcache_hash, bfcache_eq, bfcache_new): New.
6659 (btrace_get_frame_function): New.
6660 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6661 (record_btrace_frame_this_id): Compute own id.
6662 (record_btrace_frame_prev_register): Provide PC, throw_error
6663 for all other registers.
6664 (record_btrace_frame_sniffer): Detect btrace frames.
6665 (record_btrace_tailcall_frame_sniffer): New.
6666 (record_btrace_frame_dealloc_cache): New.
6667 (record_btrace_frame_unwind): Add new functions.
6668 (record_btrace_tailcall_frame_unwind): New.
6669 (_initialize_record_btrace): Allocate cache.
6670 * btrace.c (btrace_clear): Call reinit_frame_cache.
6671 * NEWS: Announce it.
6673 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6675 * record-btrace.c (record_btrace_set_replay)
6676 (record_btrace_goto_begin, record_btrace_goto_end)
6677 (record_btrace_goto): New.
6678 (init_record_btrace_ops): Initialize them.
6679 * NEWS: Announce it.
6681 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6683 * record-btrace.c (record_btrace_find_new_threads)
6684 (record_btrace_thread_alive): New.
6685 (init_record_btrace_ops): Initialize to_find_new_threads and
6688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6690 * record-btrace.c (record_btrace_resume): New.
6691 (record_btrace_wait): New.
6692 (init_record_btrace_ops): Initialize to_wait and to_resume.
6694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6696 * record-btrace.c (record_btrace_xfer_partial)
6697 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6698 (record_btrace_allow_memory_access): New.
6699 (init_record_btrace_ops): Initialize new methods.
6700 * target.c (raw_memory_xfer_partial): Bail out if target reports
6701 that this memory is not available.
6703 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6705 * target.h (target_ops) <to_insert_breakpoint>
6706 <to_remove_breakpoint>: Add target_ops parameter.
6707 (forward_target_insert_breakpoint): New.
6708 (forward_target_remove_breakpoint): New.
6709 (memory_remove_breakpoint, memory_insert_breakpoint):
6710 Add target_ops parameter.
6711 * target.c (target_insert_breakpoint): Split into this and ...
6712 (forward_target_insert_breakpoint): ... this.
6713 (target_remove_breakpoint): Split into this and ...
6714 (forward_target_remove_breakpoint): ... this.
6715 (debug_to_insert_breakpoint): Add target_ops parameter.
6716 Call forward_target_insert_breakpoint.
6717 (debug_to_remove_breakpoint): Add target_ops parameter.
6718 Call forward_target_remove_breakpoint.
6719 (update_current_target): Do not inherit or default to_insert_breakpoint
6720 and to_remove_breakpoint.
6721 * corelow.c (ignore): Add target_ops parameter.
6722 * exec.c (ignore): Add target_ops parameter.
6723 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6724 Add target_ops parameter.
6725 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6726 Add target_ops parameter.
6727 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6728 Add target_ops parameter.
6729 * record-full.c (record_full_beneath_to_insert_breakpoint)
6730 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6731 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6732 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6733 (record_full_core_remove_breakpoint): Add target_ops parameter.
6735 (record_full_beneath_to_insert_breakpoint_ops)
6736 (record_full_beneath_to_remove_breakpoint_ops)
6737 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6738 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6739 tmp_to_remove_breakpoint_ops,
6740 record_full_beneath_to_insert_breakpoint_ops, and
6741 record_full_beneath_to_remove_breakpoint_ops.
6742 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6743 (m32r_remove_breakpoint): Add target_ops parameter.
6744 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6745 Add target_ops parameter.
6746 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6747 Add target_ops parameter.
6749 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6750 Markus Metzger <markus.t.metzger@intel.com>
6752 * record-btrace.c: Include frame-unwind.h.
6753 (record_btrace_frame_unwind_stop_reason)
6754 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6755 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6757 (init_record_btrace_ops): Install it.
6759 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6761 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6764 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6766 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6769 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6771 * frame-unwind.c: Include target.h.
6772 (frame_unwind_try_unwinder): New function with code from ...
6773 (frame_unwind_find_by_frame): ... here. New variable
6774 unwinder_from_target, call also target_get_unwinder)
6775 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6776 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6777 * target.h (struct target_ops): New fields to_get_unwinder and
6778 to_get_tailcall_unwinder.
6779 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6783 * record-btrace.c (record_btrace_fetch_registers)
6784 (record_btrace_store_registers)
6785 (record_btrace_to_prepare_to_store): New.
6786 (init_record_btrace_ops): Add the above.
6788 2014-01-16 Tom Tromey <tromey@redhat.com>
6790 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6791 * target.h (struct target_ops) <to_prepare_to_store>: Add
6793 (target_prepare_to_store): Add argument.
6794 * target.c (debug_to_prepare_to_store): Add argument.
6795 (update_current_target): Update.
6796 * remote.c (remote_prepare_to_store): Add 'self' argument.
6797 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6798 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6799 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6800 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6802 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6803 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6804 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6805 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6806 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6810 * btrace.h (replay) <replay>: New.
6811 (btrace_is_replaying): New.
6812 * btrace.c (btrace_clear): Free replay iterator.
6813 (btrace_is_replaying): New.
6814 * record-btrace.c (record_btrace_is_replaying): New.
6815 (record_btrace_info): Print insn number if replaying.
6816 (record_btrace_insn_history): Start at replay position.
6817 (record_btrace_call_history): Start at replay position.
6818 (init_record_btrace_ops): Init to_record_is_replaying.
6820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6822 * record-btrace.c (record_btrace_insn_history_range): Include
6824 (record_btrace_insn_history_from): Adjust range.
6825 (record_btrace_call_history_range): Include
6827 (record_btrace_call_history_from): Adjust range.
6828 * NEWS: Announce changes.
6830 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6832 * record.h (enum record_print_flag)
6833 <record_print_indent_calls>: New.
6834 * record.c (get_call_history_modifiers): Recognize /c modifier.
6835 (_initialize_record): Document /c modifier.
6836 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6837 Reorder fields. Optionally indent the function name. Update
6839 * NEWS: Announce changes.
6841 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6843 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6847 * btrace.c (ftrace_new_function): Start counting at one.
6848 * record-btrace.c (record_btrace_info): Adjust number of calls
6850 * NEWS: Announce it.
6852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6854 * record-btrace.c (btrace_call_history_insn_range): Print
6855 insn range as [begin, end].
6857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6859 * btrace.h (struct btrace_func_link): New.
6860 (enum btrace_function_flag): New.
6861 (struct btrace_inst): Rename to ...
6862 (struct btrace_insn): ...this. Update all users.
6863 (struct btrace_func) <ibegin, iend>: Remove.
6864 (struct btrace_func_link): New.
6865 (struct btrace_func): Rename to ...
6866 (struct btrace_function): ...this. Update all users.
6867 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6868 (number, level, flags>: New.
6869 (struct btrace_insn_iterator): Rename to ...
6870 (struct btrace_insn_history): ...this.
6872 (struct btrace_insn_iterator, btrace_call_iterator): New.
6873 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6874 (struct btrace_target_info) <begin, end, level>
6875 <insn_history, call_history>: New.
6876 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6877 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6878 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6879 (btrace_call_number, btrace_call_begin, btrace_call_end)
6880 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6881 (btrace_find_function_by_number, btrace_set_insn_history)
6882 (btrace_set_call_history): New.
6883 * btrace.c (btrace_init_insn_iterator)
6884 (btrace_init_func_iterator, compute_itrace): Remove.
6885 (ftrace_print_function_name, ftrace_print_filename)
6886 (ftrace_skip_file): Change
6888 (ftrace_init_func): Remove.
6889 (ftrace_debug): Use new btrace_function fields.
6890 (ftrace_function_switched): Also consider gaining and
6891 losing symbol information).
6892 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6893 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6894 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6896 (ftrace_new_function): Move. Remove debug print.
6897 (ftrace_update_lines, ftrace_update_insns): New.
6898 (ftrace_update_function): Check for call, ret, and jump.
6899 (compute_ftrace): Renamed to ...
6900 (btrace_compute_ftrace): ...this. Rewritten to compute call
6902 (btrace_fetch, btrace_clear): Updated.
6903 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6904 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6905 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6906 (btrace_call_number, btrace_call_begin, btrace_call_end)
6907 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6908 (btrace_find_function_by_number, btrace_set_insn_history)
6909 (btrace_set_call_history): New.
6910 * record-btrace.c (require_btrace): Use new btrace thread
6912 (record_btrace_info, btrace_insn_history)
6913 (record_btrace_insn_history, record_btrace_insn_history_range):
6914 Use new btrace thread info fields and new iterator.
6915 (btrace_func_history_src_line): Rename to ...
6916 (btrace_call_history_src_line): ...this. Use new btrace
6918 (btrace_func_history): Rename to ...
6919 (btrace_call_history): ...this. Use new btrace thread info
6920 fields and new iterator.
6921 (record_btrace_call_history, record_btrace_call_history_range):
6922 Use new btrace thread info fields and new iterator.
6924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6926 * frame.h (frame_id_build_unavailable_stack_special): New.
6927 * frame.c (frame_id_build_unavailable_stack_special): New.
6929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6931 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6932 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6933 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6935 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6936 (i386_insn_is_jump, i386_jmp_p): New.
6937 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6938 insn_is_jump to gdbarch.
6939 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6940 * gdbarch.h: Regenerated.
6941 * gdbarch.c: Regenerated.
6942 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6943 (default_insn_is_jump): New.
6944 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6945 (default_insn_is_jump): New.
6947 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6949 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6951 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6952 (btrace_read_type) <btrace_read_new>: Change to ...
6953 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6957 * common/linux-btrace.c (linux_read_btrace): Free trace from
6960 2014-01-15 Doug Evans <dje@google.com>
6962 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6965 2014-01-15 Tom Tromey <tromey@redhat.com>
6967 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6968 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6969 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6970 (set_objfile_main_name): New function.
6971 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6972 language_of_main>: New fields.
6973 (set_objfile_main_name): Declare.
6974 * symtab.c (find_main_name): Loop over objfiles to find the main
6976 (set_main_name): Now static.
6977 (get_main_info): Add comment.
6978 * symtab.h (set_main_name): Don't declare.
6980 2014-01-15 Tom Tromey <tromey@redhat.com>
6982 * symtab.c (main_progspace_key): New global.
6983 (struct main_info): New.
6984 (name_of_main, language_of_main): Remove.
6985 (get_main_info, main_info_cleanup): New function.
6986 (set_main_name, main_name, main_language): Use get_main_info.
6987 (_initialize_symtab): Initialize main_progspace_key.
6989 2014-01-15 Tom Tromey <tromey@redhat.com>
6991 * dbxread.c (process_one_symbol): Update.
6992 * dwarf2read.c (read_partial_die): Update.
6993 * symfile.c (set_initial_language): Call main_language.
6994 * symtab.c (language_of_main): Now static.
6995 (set_main_name): Add 'lang' parameter.
6996 (find_main_name): Update.
6997 (main_language): New function.
6998 (symtab_observer_executable_changed): Update.
6999 * symtab.h (set_main_name): Update.
7000 (language_of_main): Remove.
7001 (main_language): Declare.
7003 2014-01-15 Tom Tromey <tromey@redhat.com>
7005 * symfile.c (init_entry_point_info): Use new "initialized" field.
7007 * objfiles.h (struct entry_point) <initialized>: New field.
7008 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7009 (struct objfile) <ei>: ...here. Remove.
7010 * objfiles.c (entry_point_address_query): Update.
7012 2014-01-15 Tom Tromey <tromey@redhat.com>
7014 * objfiles.c (entry_point_address_query): Relocate entry point
7016 (objfile_relocate1): Do not relocate entry point address.
7017 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7018 <the_bfd_section_index>: New field.
7019 * symfile.c (init_entry_point_info): Find the entry point's
7022 2014-01-15 Tom Tromey <tromey@redhat.com>
7024 * solib-frv.c (enable_break): Use entry_point_address_query.
7026 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7028 * NEWS: Add note on improved process record-replay on
7029 arm*-linux* targets.
7031 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7033 * arm-tdep.c (enum arm_record_result): New enum.
7034 (arm_record_unsupported_insn): New function.
7035 (arm_record_coproc_data_proc): Removed.
7036 (thumb2_record_ld_st_multiple): New function.
7037 (thumb2_record_ld_st_dual_ex_tbb): New function.
7038 (thumb2_record_data_proc_sreg_mimm): New function.
7039 (thumb2_record_ps_dest_generic): New function.
7040 (thumb2_record_branch_misc_cntrl): New function.
7041 (thumb2_record_str_single_data): New function.
7042 (thumb2_record_ld_mem_hints): New function.
7043 (thumb2_record_ld_word): New function.
7044 (thumb2_record_lmul_lmla_div): New function.
7045 (thumb2_record_decode_insn_handler): New function.
7046 (decode_insn): Add thumb32 instruction handlers.
7048 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7050 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7051 (struct arm_linux_record_tdep): Declare.
7052 (arm_canonicalize_syscall): New function.
7053 (arm_all_but_pc_registers_record): New function.
7054 (arm_linux_syscall_record): New function.
7055 (arm_linux_init_abi): Add syscall recording constructs.
7056 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7057 decoding. (arm_record_coproc_data_proc): Update arm syscall
7059 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7060 <arm_syscall_record>: New field.
7061 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7064 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7066 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7067 register for push instruction recording.
7069 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7071 * arm-tdep.c (thumb_record_misc): Update to correct logical
7072 error while recording ldm, ldmia and pop instructions.
7074 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7076 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7078 2014-01-15 Pedro Alves <palves@redhat.com>
7080 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7081 (go32_resume, go32_fetch_registers, store_register)
7082 (go32_store_registers, go32_prepare_to_store)
7083 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7084 (go32_create_inferior, go32_can_run, go32_terminal_init)
7085 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7088 2014-01-15 Tom Tromey <tromey@redhat.com>
7090 * target.h (async_callback_ftype): New typedef.
7091 (struct target_ops) <to_async>: Use it.
7093 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7095 * python/py-value.c (get_field_type): Remove unnecessary curly
7096 braces for single-statement if block.
7098 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7100 * python/py-type.c (convert_field): Add missing empty line
7103 2014-01-14 Doug Evans <dje@google.com>
7105 * symfile.h (expand_symtabs_matching): Renamed from
7106 expand_partial_symbol_names. Update prototype.
7107 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7108 * symfile.c (expand_symtabs_matching): Renamed from
7109 expand_partial_symbol_names. New args file_matcher, kind.
7110 Rename arg fun to symbol_matcher.
7111 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7112 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7113 ada_expand_partial_symbol_name.
7114 (ada_make_symbol_completion_list): Update to call
7115 expand_symtabs_matching.
7116 (ada_add_global_exceptions): Call expand_symtabs_matching.
7117 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7118 call map_symbol_filenames.
7119 * symtab.c (sources_info): Update to call map_symbol_filenames.
7120 (search_symbols): Call expand_symtabs_matching.
7121 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7122 (default_make_symbol_completion_list_break_on): Update to call
7123 expand_symtabs_matching.
7124 (make_source_files_completion_list): Update to call
7125 map_symbol_filenames.
7127 2014-01-14 Doug Evans <dje@google.com>
7129 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7130 (expand_symtabs_symbol_matcher_ftype): New typedef.
7131 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7132 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7133 * symfile.c (expand_partial_symbol_names): Update to use
7134 expand_symtabs_symbol_matcher_ftype.
7135 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7136 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7137 Arg name_matcher renamed to symbol_matcher.
7138 * psymtab.c (recursively_search_psymtabs): Update to use
7139 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7141 (expand_symtabs_matching_via_partial): Update to use
7142 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7143 Arg name_matcher renamed to symbol_matcher.
7145 2014-01-14 Doug Evans <dje@google.com>
7147 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7148 (map_partial_symbol_filenames): Ditto.
7149 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7150 (map_partial_symbol_filenames): Ditto.
7151 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7152 (map_partial_symbol_filenames): Ditto.
7153 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7154 (map_partial_symbol_filenames): Ditto.
7155 * symtab.c: Delete #include "psymtab.h".
7157 2014-01-14 Pedro Alves <palves@redhat.com>
7158 Tom Tromey <tromey@redhat.com>
7160 * infrun.c (use_displaced_stepping): Use find_record_target
7161 instead of RECORD_IS_USED.
7162 (adjust_pc_after_break): Use record_full_is_used instead of
7164 * record-btrace.c (record_btrace_open): Call record_preopen
7165 instead of checking RECORD_IS_USED.
7166 * record-full.c (record_full_shortname)
7167 (record_full_core_shortname): New globals.
7168 (record_full_is_used): New function.
7169 (find_full_open): Call record_preopen instead of checking
7171 (init_record_full_ops): Set the target's shortname to
7172 record_full_shortname.
7173 (init_record_full_core_ops): Set the target's shortname to
7174 record_full_core_shortname.
7175 * record-full.h (record_full_is_used): Declare.
7176 * record.c (find_record_target): Make extern.
7177 (record_preopen): New function.
7178 * record.h (RECORD_IS_USED): Delete macro.
7179 (find_record_target, record_preopen): Declare functions.
7181 2014-01-14 Yao Qi <yao@codesourcery.com>
7183 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7184 'len''s type to ULONGEST.
7185 (core_xfer_shared_libraries_aix): Likewise.
7186 * gdbarch.c, gdbarch.h: Regenerated.
7187 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7188 Change type of 'len' to ULONGEST.
7189 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7190 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7192 2014-01-14 Yao Qi <yao@codesourcery.com>
7194 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7195 type of 'len' to ULONGEST.
7196 (linux_xfer_osdata_processgroups): Likewise.
7197 (linux_xfer_osdata_threads): Likewise.
7198 (linux_xfer_osdata_fds): Likewise.
7199 (linux_xfer_osdata_isockets): Likewise.
7200 (linux_xfer_osdata_shm): Likewise.
7201 (linux_xfer_osdata_sem): Likewise.
7202 (linux_xfer_osdata_msg): Likewise.
7203 (linux_common_xfer_osdata): Likewise.
7204 (struct osdata_type) <getter>: Likewise.
7205 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7208 2014-01-14 Yao Qi <yao@codesourcery.com>
7210 * target.h (target_xfer_partial_ftype): Update.
7211 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7213 * aix-thread.c (aix_thread_xfer_partial): Change type of
7214 argument 'len' to ULONGEST.
7215 * auxv.c (procfs_xfer_auxv): Likewise.
7216 (ld_so_xfer_auxv): Likewise.
7217 (memory_xfer_auxv): Likewise.
7218 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7219 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7220 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7221 * corelow.c (core_xfer_partial): Likewise.
7222 * ctf.c (ctf_xfer_partial): Likewise.
7223 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7225 (darwin_read_dyld_info): Likewise.
7226 (darwin_xfer_partial): Likewise.
7227 * exec.c (section_table_xfer_memory_partial): Likewise.
7228 (exec_xfer_partial): Likewise.
7229 * exec.h (section_table_xfer_memory_partial): Update
7231 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7232 instead of plongest.
7233 (gnu_xfer_partial): Likewise.
7234 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7235 (ia64_hpux_xfer_solib_got): Likewise.
7236 (ia64_hpux_xfer_partial): Likewise.
7237 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7238 * inf-ptrace.c (inf_ptrace_xfer_partial):
7239 * inf-ttrace.c (inf_ttrace_xfer_partial):
7240 * linux-nat.c (linux_xfer_siginfo): Likewise.
7241 (linux_nat_xfer_partial): Likewise.
7242 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7243 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7244 * monitor.c (monitor_xfer_memory): Likewise.
7245 (monitor_xfer_partial): Likewise.
7246 * procfs.c (procfs_xfer_partial): Likewise.
7247 * record-full.c (record_full_xfer_partial): Likewise.
7248 (record_full_core_xfer_partial): Likewise.
7249 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7250 instead of plongest.
7251 (gdbsim_xfer_partial): Likewise.
7252 * remote.c (remote_xfer_partial): Likewise.
7253 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7254 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7256 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7257 (rs6000_xfer_shared_libraries): Likewise.
7258 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7259 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7260 (sparc_xfer_partial): Likewise.
7261 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7262 (spu_xfer_partial): Likewise.
7263 * spu-multiarch.c (spu_xfer_partial): Likewise.
7264 * target.c (target_read_live_memory): Likewise.
7265 (memory_xfer_live_readonly_partial): Likewise.
7266 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7267 (target_xfer_partial, default_xfer_partial): Likewise.
7268 (current_xfer_partial): Likewise.
7269 * tracepoint.c (tfile_xfer_partial): Likewise.
7270 * windows-nat.c (windows_xfer_memory): Likewise. Call
7271 pulongest instead of plongest.
7272 (windows_xfer_partial): Likewise.
7273 (windows_xfer_shared_libraries): Likewise.
7275 2014-01-14 Yao Qi <yao@codesourcery.com>
7277 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7278 target_xfer_partial_ftype.
7280 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7284 * valops.c (value_struct_elt_bitpos): New function
7285 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7286 object to 'None' if the field name is an empty string ("").
7287 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7288 attribute to look for a field when 'name' is 'None'.
7289 (get_field_type): New function
7291 2014-01-13 Doug Evans <dje@google.com>
7294 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7295 (try_open_dwop_file): Ditto.
7296 * gdb_bfd.c: #include "vec.h".
7297 (bfdp): New typedef.
7298 (struct gdb_bfd_data): New member included_bfds.
7299 (gdb_bfd_unref): Unref all included bfds.
7300 (gdb_bfd_record_inclusion): New function.
7301 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7303 2014-01-13 Tom Tromey <tromey@redhat.com>
7305 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7307 2014-01-13 Tom Tromey <tromey@redhat.com>
7309 * defs.h (use_windows): Remove.
7310 * gdb.c (main): Update.
7311 * main.c (captured_main, gdb_main): Update.
7312 * main.h (struct captured_main_args) <use_windows>: Remove.
7313 * top.c (use_windows): Remove.
7315 2014-01-13 Tom Tromey <tromey@redhat.com>
7317 * defs.h (deprecated_flush_hook): Remove.
7319 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7322 * linux-thread-db.c (try_thread_db_load): Add parameter
7323 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7324 (try_thread_db_load_from_pdir_1): Move it there from here.
7325 (try_thread_db_load_from_sdir): Update caller.
7326 (try_thread_db_load_from_dir): Move it there from here.
7328 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7330 * regformats/regdat.sh: Always rewrite the register file.
7332 2014-01-13 Pedro Alves <palves@redhat.com>
7334 * Makefile.in (CHECK_HEADERS): New variable.
7335 (check-headers:): New rule.
7337 2014-01-13 Tom Tromey <tromey@redhat.com>
7339 * cli/cli-setshow.c (do_set_command): Update.
7340 * defs.h (deprecated_set_hook): Remove.
7341 * top.c (deprecated_set_hook): Remove.
7343 2014-01-13 Pedro Alves <palves@redhat.com>
7345 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7346 the tracepoint if the PC is a pseudo-register.
7348 2014-01-13 Tom Tromey <tromey@redhat.com>
7350 * defs.h (XCALLOC): Remove.
7351 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7352 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7353 * dwarf2loc.c (allocate_piece_closure): Likewise.
7354 * elfread.c (elf_symfile_segments): Likewise.
7355 (elf_symfile_segments): Likewise.
7356 * gdbtypes.c (copy_type_recursive): Likewise.
7357 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7358 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7359 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7361 * mt-tdep.c (mt_gdbarch_init): Likewise.
7362 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7364 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7365 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7366 * registry.c (registry_alloc_data): Likewise.
7367 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7368 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7369 * serial.c (serial_fdopen_ops): Likewise.
7370 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7372 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7373 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7376 2014-01-13 Tom Tromey <tromey@redhat.com>
7378 * defs.h (XMALLOC): Remove.
7379 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7380 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7381 * cli-out.c (struct ui_out *): Likewise.
7382 * cli/cli-dump.c (add_dump_command): Likewise.
7383 (add_dump_command): Likewise.
7384 * complaints.c (get_complaints): Likewise.
7385 (find_complaint): Likewise.
7386 * dwarf2-frame.c (execute_cfa_program): Likewise.
7387 * dwarf2read.c (abbrev_table_read_table): Likewise.
7388 * gdbarch.sh: Likewise.
7389 * gdbarch.c: Rebuild.
7390 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7391 * interps.c (interp_new): Likewise.
7392 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7393 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7394 * mi/mi-console.c (mi_console_file_new): Likewise.
7395 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7396 * mi/mi-out.c (mi_out_new): Likewise.
7397 * mi/mi-parse.c (mi_parse): Likewise.
7398 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7399 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7400 * observer.c (xalloc_observer_list_node): Likewise.
7401 * regcache.c (regcache_xmalloc_1): Likewise.
7402 * reggroups.c (reggroup_new): Likewise.
7403 (_initialize_reggroup): Likewise.
7404 * registry.c (register_data_with_cleanup): Likewise.
7405 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7406 * ser-base.c (serial_ttystate): Likewise.
7407 * ser-mingw.c (make_pipe_state): Likewise.
7408 * ser-pipe.c (pipe_open): Likewise.
7409 * serial.c (serial_open): Likewise.
7410 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7411 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7412 (tui_alloc_win_info): Likewise.
7413 (tui_add_content_elements): Likewise.
7414 * tui/tui-file.c (tui_file_new): Likewise.
7415 * tui/tui-out.c (tui_out_new): Likewise.
7416 * ui-file.c (mem_file_new): Likewise.
7417 * ui-out.c (push_level): Likewise.
7418 (make_cleanup_ui_out_end): Likewise.
7419 (append_header_to_list): Likewise.
7420 (ui_out_new): Likewise.
7421 * user-regs.c (user_reg_add_builtin): Likewise.
7423 2014-01-13 Tom Tromey <tromey@redhat.com>
7425 * defs.h (XZALLOC): Remove.
7426 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7427 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7428 (get_ada_tasks_inferior_data): Likewise.
7429 * auto-load.c (get_auto_load_pspace_data): Likewise.
7430 * auxv.c (get_auxv_inferior_data): Likewise.
7431 * bfd-target.c (target_bfd_reopen): Likewise.
7432 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7433 (deprecated_insert_raw_breakpoint): Likewise.
7434 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7435 * corelow.c (core_open): Likewise.
7436 * darwin-nat.c (darwin_check_new_threads): Likewise.
7437 (darwin_attach_pid): Likewise.
7438 * dummy-frame.c (dummy_frame_push): Likewise.
7439 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7440 * dwarf2loc.c (allocate_piece_closure): Likewise.
7441 * elfread.c (elf_symfile_segments): Likewise.
7442 * eval.c (ptrmath_type_p): Likewise.
7443 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7444 * gdbtypes.c (alloc_type_arch): Likewise.
7445 (alloc_type_instance): Likewise.
7446 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7447 * inf-child.c (inf_child_can_use_agent): Likewise.
7448 * inflow.c (get_inflow_inferior_data): Likewise.
7449 * infrun.c (save_infcall_suspend_state): Likewise.
7450 * jit.c (jit_reader_load): Likewise.
7451 (get_jit_objfile_data): Likewise.
7452 (get_jit_program_space_data): Likewise.
7453 (jit_object_open_impl): Likewise.
7454 (jit_symtab_open_impl): Likewise.
7455 (jit_block_open_impl): Likewise.
7456 (jit_frame_sniffer): Likewise.
7457 * linux-fork.c (add_fork): Likewise.
7458 * maint.c (make_command_stats_cleanup): Likewise.
7459 * objfiles.c (get_objfile_pspace_data): Likewise.
7460 * opencl-lang.c (struct lval_closure): Likewise.
7461 * osdata.c (osdata_start_osdata): Likewise.
7462 * progspace.c (new_address_space): Likewise.
7463 (add_program_space): Likewise.
7464 * remote-sim.c (get_sim_inferior_data): Likewise.
7465 * sh-tdep.c (sh_gdbarch_init): Likewise.
7466 * skip.c (Ignore): Likewise.
7467 (skip_delete_command): Likewise.
7468 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7469 (library_list_start_library): Likewise.
7470 (solib_aix_current_sos): Likewise.
7471 * solib-darwin.c (get_darwin_info): Likewise.
7472 (darwin_current_sos): Likewise.
7473 * solib-dsbt.c (get_dsbt_info): Likewise.
7474 * solib-ia64-hpux.c (new_so_list): Likewise.
7475 (ia64_hpux_get_solib_linkage_addr): Likewise.
7476 * solib-spu.c (append_ocl_sos): Likewise.
7477 (spu_current_sos): Likewise.
7478 * solib-svr4.c (get_svr4_info): Likewise.
7479 (svr4_keep_data_in_core): Likewise.
7480 (library_list_start_library): Likewise.
7481 (svr4_default_sos): Likewise.
7482 (svr4_read_so_list): Likewise.
7483 * solib-target.c (library_list_start_library): Likewise.
7484 (solib_target_current_sos): Likewise.
7485 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7486 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7487 * symfile.c (default_symfile_segments): Likewise.
7488 * target-descriptions.c (tdesc_data_init): Likewise.
7489 (tdesc_create_reg): Likewise.
7490 (struct tdesc_type *): Likewise.
7491 (tdesc_create_vector): Likewise.
7492 (tdesc_set_struct_size): Likewise.
7493 (struct tdesc_type *): Likewise.
7494 (tdesc_free_feature): Likewise.
7495 (tdesc_create_feature): Likewise.
7496 * windows-nat.c (windows_add_thread): Likewise.
7497 (windows_make_so): Likewise.
7498 * xml-support.c (gdb_xml_body_text): Likewise.
7499 (gdb_xml_create_parser_and_cleanup): Likewise.
7500 (xml_process_xincludes): Likewise.
7501 * xml-syscall.c (allocate_syscalls_info): Likewise.
7502 (syscall_create_syscall_desc): Likewise.
7504 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7506 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7507 function, with code from i386_stap_parse_special_token.
7508 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7509 (i386_stap_parse_special_token): Move code to the two functions
7512 2014-01-09 Pedro Alves <palves@redhat.com>
7513 Hui Zhu <hui@codesourcery.com>
7516 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7517 bp_err_string. Don't mark the location shlib_disabled if the
7518 error thrown wasn't a generic or memory error. Catch errors
7519 thrown while inserting breakpoints in overlayed code. Output
7520 error message of software breakpoints.
7521 * remote.c (remote_insert_breakpoint): If this breakpoint has
7522 target-side commands but this stub doesn't support Z0 packets,
7523 throw NOT_SUPPORTED_ERROR error.
7524 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7525 * target.h (target_insert_breakpoint): Extend comment.
7526 (target_insert_hw_breakpoint): Add comment.
7528 2014-01-08 Pedro Alves <palves@redhat.com>
7530 * remote.c (remote_add_thread): Add threads silently if starting
7532 (remote_notice_new_inferior): If in all-stop, and starting up,
7533 don't call notice_new_inferior.
7534 (get_current_thread): New function, factored out from ...
7535 (add_current_inferior_and_thread): ... this. Adjust.
7536 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7537 found any thread, then select the remote's current thread as GDB's
7540 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7542 * NEWS: Create a new section for the next release branch.
7543 Rename the section of the current branch, now that it has
7546 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7548 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7549 * version.in: Bump version to 7.7.50.DATE-cvs.
7551 2014-01-08 Yao Qi <yao@codesourcery.com>
7553 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7554 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7555 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7557 2014-01-08 Yao Qi <yao@codesourcery.com>
7559 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7560 return value of bfd_get_filename to symbol_file_add_from_bfd.
7562 2014-01-08 Pierre Muller <muller@sourceware.org>
7565 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7566 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7567 to prim_record_mininal_symbol_and_info.
7568 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7569 in call to prim_record_minimal_symbol_and_info.
7570 (read_pe_exported_syms): Set index field of section_data.
7572 2014-01-07 Andrew Pinski <apinski@cavium.com>
7574 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7575 * features/aarch64.c: Regenerate.
7577 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7579 * target.c (return_null): Define.
7580 (update_current_target): Use it instead of return_zero for
7581 functions that return a pointer.
7583 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7585 * source.c (add_path): Fix check for duplicated paths in the previously
7588 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7590 * ada-lang.c: Remove duplicated include statements.
7591 * alphabsd-nat.c: Ditto.
7592 * amd64-darwin-tdep.c: Ditto.
7593 * amd64fbsd-nat.c: Ditto.
7594 * auto-load.c: Ditto.
7596 * breakpoint.c: Ditto.
7598 * fork-child.c: Ditto.
7599 * gdb_usleep.c: Ditto.
7600 * i386-darwin-tdep.c: Ditto.
7601 * i386fbsd-nat.c: Ditto.
7603 * inferior.c: Ditto.
7605 * linux-nat.c: Ditto.
7606 * linux-tdep.c: Ditto.
7607 * m68kbsd-nat.c: Ditto.
7608 * m68klinux-nat.c: Ditto.
7609 * microblaze-tdep.c: Ditto.
7610 * mips-linux-tdep.c: Ditto.
7611 * mn10300-tdep.c: Ditto.
7612 * nto-tdep.c: Ditto.
7613 * opencl-lang.c: Ditto.
7615 * printcmd.c: Ditto.
7616 * regcache.c: Ditto.
7617 * remote-m32r-sdi.c: Ditto.
7621 * tilegx-linux-nat.c: Ditto.
7622 * tilegx-tdep.c: Ditto.
7623 * tracepoint.c: Ditto.
7625 * vaxbsd-nat.c: Ditto.
7626 * windows-nat.c: Ditto.
7627 * xtensa-tdep.c: Ditto.
7629 2014-01-07 Yao Qi <yao@codesourcery.com>
7631 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7633 2014-01-07 Yao Qi <yao@codesourcery.com>
7634 Joel Brobecker <brobecker@adacore.com>
7636 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7637 (pdc_write_regs): Likewise.
7638 (fetch_regs_kernel_thread): Likewise.
7639 (store_regs_kernel_thread): Likewise.
7641 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7643 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7644 tagged type objects to their actual type.
7646 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7648 * ada-valprint.c (print_field_values): Add "language" parameter.
7649 Update calls to print_field_values and print_variant_part.
7650 Pass new parameter "language" in call to val_print instead
7651 of "current_language". Replace call to ada_val_print by call
7653 (print_variant_part): Add "language" parameter.
7654 (ada_val_print_struct_union): Update call to print_field_values.
7656 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7658 * ada-valprint.c (ui_memcpy): Delete.
7659 (ada_print_floating): Update documentation. Add empty line
7660 between between function documentation and implementation.
7661 Delete variable "buffer". Use ui_file_xstrdup in place of
7662 ui_file_put. Minor adjustments following this change.
7664 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7666 * ada-valprint.c (ada_val_print_string): New function,
7667 extracted from ada_val_print_array.
7668 (ada_val_print_array): Replace extracted code by call
7669 to ada_val_print_string followed by a return. Move
7670 "else" branch to the function's top block.
7672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7674 * ada-valprint.c (ada_val_print_array): Move implementation
7675 down. Rename parameter "offset" and "val" into "offset_aligned"
7676 and "original_value" respectively. Add parameter "offset".
7678 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7680 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7681 re-organizing the code. Change the "???" message printed
7682 when target type is a TYPE_CODE_UNDEF into
7683 "<ref to undefined type>".
7685 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7687 * ada-valprint.c (print_record): Delete, implementation inlined...
7688 (ada_val_print_struct_union): ... here. Remove call to
7689 ada_check_typedef in inlined implementation.
7691 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7693 * ada-valprint.c (ada_val_print_gnat_array): New function,
7694 extracted from ada_val_print_1;
7695 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7696 (ada_val_print_flt, ada_val_print_struct_union)
7697 (ada_val_print_ref): Likewise.
7698 (ada_val_print_1): Delete variables i and elttype.
7699 Replace extracted-out code by call to corresponding
7702 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7704 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7706 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7708 * ada-valprint.c (ada_val_print_1): Replace calls to
7709 ada_val_print_1 by calls to val_print.
7711 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7713 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7714 Update calls to self accordingly. Replace calls to c_val_print
7715 by calls to val_print.
7717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7719 * ada-valprint.c (print_record): Delete declaration.
7720 (adjust_type_signedness, ada_val_print_1): Likewise.
7721 (ada_val_print): Move function implementation down.
7722 (print_variant_part, print_field_values, print_record):
7723 Move function implementation up.
7725 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7727 * python/py-type.c (typy_get_name): New function.
7728 (type_object_getset): Add entry for attribute "name".
7729 * NEWS: Add entry mentioning this new attribute.
7731 2014-01-07 Yao Qi <yao@codesourcery.com>
7733 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7736 2014-01-07 Yao Qi <yao@codesourcery.com>
7738 * gnu-nat.c (info_port_rights): Add qualifier const to
7741 2014-01-07 Yao Qi <yao@codesourcery.com>
7743 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7745 2014-01-07 Yao Qi <yao@codesourcery.com>
7747 * gnu-nat.c (make_inf) Update declaration.
7748 (make_inf): Make it static.
7749 (inf_set_traced): Likewise.
7750 (inf_port_to_thread, inf_task_died_status): Likewise.
7752 2014-01-07 Yao Qi <yao@codesourcery.com>
7754 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7756 2014-01-07 Yao Qi <yao@codesourcery.com>
7758 * gnu-nat.c (_initialize_gnu_nat): Declare.
7760 2014-01-07 Yao Qi <yao@codesourcery.com>
7762 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7764 (struct gdbarch_info) <byte_order>: Change type to
7766 <byte_order_for_code>: Likewise.
7767 * gdbarch.c, gdbarch.h: Regenerated.
7769 2014-01-06 Sasha Smundak <asmundak@google.com>
7771 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7773 2014-01-06 Tom Tromey <tromey@redhat.com>
7775 * doublest.c (convert_doublest_to_floatformat): Use const, not
7777 * somread.c (som_symtab_read): Likewise.
7779 2014-01-07 Hui Zhu <hui@codesourcery.com>
7781 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7782 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7783 (gdb_bfd_fopen): Ditto.
7784 (gdb_bfd_openr): Ditto.
7785 (gdb_bfd_openw): Ditto.
7786 (gdb_bfd_openr_iovec): Ditto.
7787 (gdb_bfd_fdopenr): Ditto.
7788 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7789 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7791 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7793 * symfile-mem.c (symbol_file_add_from_memory): Removed
7794 gdb_bfd_stash_filename.
7796 2014-01-03 Doug Evans <dje@google.com>
7798 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7801 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7803 Update year range in copyright notice of all files.
7805 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7807 * top.c (print_gdb_version): Set copyright year to 2014.
7809 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7811 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7813 For older changes see ChangeLog-2013.
7819 version-control: never