5b6d1e4fa4
This commit adds multi-target support to GDB. What this means is that with this commit, GDB can now be connected to different targets at the same time. E.g., you can debug a live native process and a core dump at the same time, connect to multiple gdbservers, etc. Actually, the word "target" is overloaded in gdb. We already have a target stack, with pushes several target_ops instances on top of one another. We also have "info target" already, which means something completely different to what this patch does. So from here on, I'll be using the "target connections" term, to mean an open process_stratum target, pushed on a target stack. This patch makes gdb have multiple target stacks, and multiple process_stratum targets open simultaneously. The user-visible changes / commands will also use this terminology, but of course it's all open to debate. User-interface-wise, not that much changes. The main difference is that each inferior may have its own target connection. A target connection (e.g., a target extended-remote connection) may support debugging multiple processes, just as before. Say you're debugging against gdbserver in extended-remote mode, and you do "add-inferior" to prepare to spawn a new process, like: (gdb) target extended-remote :9999 ... (gdb) start ... (gdb) add-inferior Added inferior 2 (gdb) inferior 2 [Switching to inferior 2 [<null>] (<noexec>)] (gdb) file a.out ... (gdb) start ... At this point, you have two inferiors connected to the same gdbserver. With this commit, GDB will maintain a target stack per inferior, instead of a global target stack. To preserve the behavior above, by default, "add-inferior" makes the new inferior inherit a copy of the target stack of the current inferior. Same across a fork - the child inherits a copy of the target stack of the parent. While the target stacks are copied, the targets themselves are not. Instead, target_ops is made a refcounted_object, which means that target_ops instances are refcounted, which each inferior counting for a reference. What if you want to create an inferior and connect it to some _other_ target? For that, this commit introduces a new "add-inferior -no-connection" option that makes the new inferior not share the current inferior's target. So you could do: (gdb) target extended-remote :9999 Remote debugging using :9999 ... (gdb) add-inferior -no-connection [New inferior 2] Added inferior 2 (gdb) inferior 2 [Switching to inferior 2 [<null>] (<noexec>)] (gdb) info inferiors Num Description Executable 1 process 18401 target:/home/pedro/tmp/main * 2 <null> (gdb) tar extended-remote :10000 Remote debugging using :10000 ... (gdb) info inferiors Num Description Executable 1 process 18401 target:/home/pedro/tmp/main * 2 process 18450 target:/home/pedro/tmp/main (gdb) A following patch will extended "info inferiors" to include a column indicating which connection an inferior is bound to, along with a couple other UI tweaks. Other than that, debugging is the same as before. Users interact with inferiors and threads as before. The only difference is that inferiors may be bound to processes running in different machines. That's pretty much all there is to it in terms of noticeable UI changes. On to implementation. Since we can be connected to different systems at the same time, a ptid_t is no longer a unique identifier. Instead a thread can be identified by a pair of ptid_t and 'process_stratum_target *', the later being the instance of the process_stratum target that owns the process/thread. Note that process_stratum_target inherits from target_ops, and all process_stratum targets inherit from process_stratum_target. In earlier patches, many places in gdb were converted to refer to threads by thread_info pointer instead of ptid_t, but there are still places in gdb where we start with a pid/tid and need to find the corresponding inferior or thread_info objects. So you'll see in the patch many places adding a process_stratum_target parameter to functions that used to take only a ptid_t. Since each inferior has its own target stack now, we can always find the process_stratum target for an inferior. That is done via a inf->process_target() convenience method. Since each inferior has its own target stack, we need to handle the "beneath" calls when servicing target calls. The solution I settled with is just to make sure to switch the current inferior to the inferior you want before making a target call. Not relying on global context is just not feasible in current GDB. Fortunately, there aren't that many places that need to do that, because generally most code that calls target methods already has the current context pointing to the right inferior/thread. Note, to emphasize -- there's no method to "switch to this target stack". Instead, you switch the current inferior, and that implicitly switches the target stack. In some spots, we need to iterate over all inferiors so that we reach all target stacks. Native targets are still singletons. There's always only a single instance of such targets. Remote targets however, we'll have one instance per remote connection. The exec target is still a singleton. There's only one instance. I did not see the point of instanciating more than one exec_target object. After vfork, we need to make sure to push the exec target on the new inferior. See exec_on_vfork. For type safety, functions that need a {target, ptid} pair to identify a thread, take a process_stratum_target pointer for target parameter instead of target_ops *. Some shared code in gdb/nat/ also need to gain a target pointer parameter. This poses an issue, since gdbserver doesn't have process_stratum_target, only target_ops. To fix this, this commit renames gdbserver's target_ops to process_stratum_target. I think this makes sense. There's no concept of target stack in gdbserver, and gdbserver's target_ops really implements a process_stratum-like target. The thread and inferior iterator functions also gain process_stratum_target parameters. These are used to be able to iterate over threads and inferiors of a given target. Following usual conventions, if the target pointer is null, then we iterate over threads and inferiors of all targets. I tried converting "add-inferior" to the gdb::option framework, as a preparatory patch, but that stumbled on the fact that gdb::option does not support file options yet, for "add-inferior -exec". I have a WIP patchset that adds that, but it's not a trivial patch, mainly due to need to integrate readline's filename completion, so I deferred that to some other time. In infrun.c/infcmd.c, the main change is that we need to poll events out of all targets. See do_target_wait. Right after collecting an event, we switch the current inferior to an inferior bound to the target that reported the event, so that target methods can be used while handling the event. This makes most of the code transparent to multi-targets. See fetch_inferior_event. infrun.c:stop_all_threads is interesting -- in this function we need to stop all threads of all targets. What the function does is send an asynchronous stop request to all threads, and then synchronously waits for events, with target_wait, rinse repeat, until all it finds are stopped threads. Now that we have multiple targets, it's not efficient to synchronously block in target_wait waiting for events out of one target. Instead, we implement a mini event loop, with interruptible_select, select'ing on one file descriptor per target. For this to work, we need to be able to ask the target for a waitable file descriptor. Such file descriptors already exist, they are the descriptors registered in the main event loop with add_file_handler, inside the target_async implementations. This commit adds a new target_async_wait_fd target method that just returns the file descriptor in question. See wait_one / stop_all_threads in infrun.c. The 'threads_executing' global is made a per-target variable. Since it is only relevant to process_stratum_target targets, this is where it is put, instead of in target_ops. You'll notice that remote.c includes some FIXME notes. These refer to the fact that the global arrays that hold data for the remote packets supported are still globals. For example, if we connect to two different servers/stubs, then each might support different remote protocol features. They might even be different architectures, like e.g., one ARM baremetal stub, and a x86 gdbserver, to debug a host/controller scenario as a single program. That isn't going to work correctly today, because of said globals. I'm leaving fixing that for another pass, since it does not appear to be trivial, and I'd rather land the base work first. It's already useful to be able to debug multiple instances of the same server (e.g., a distributed cluster, where you have full control over the servers installed), so I think as is it's already reasonable incremental progress. Current limitations: - You can only resume more that one target at the same time if all targets support asynchronous debugging, and support non-stop mode. It should be possible to support mixed all-stop + non-stop backends, but that is left for another time. This means that currently in order to do multi-target with gdbserver you need to issue "maint set target-non-stop on". I would like to make that mode be the default, but we're not there yet. Note that I'm talking about how the target backend works, only. User-visible all-stop mode works just fine. - As explained above, connecting to different remote servers at the same time is likely to produce bad results if they don't support the exact set of RSP features. FreeBSD updates courtesy of John Baldwin. gdb/ChangeLog: 2020-01-10 Pedro Alves <palves@redhat.com> John Baldwin <jhb@FreeBSD.org> * aarch64-linux-nat.c (aarch64_linux_nat_target::thread_architecture): Adjust. * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. (task_command_1): Likewise. * aix-thread.c (sync_threadlists, aix_thread_target::resume) (aix_thread_target::wait, aix_thread_target::fetch_registers) (aix_thread_target::store_registers) (aix_thread_target::thread_alive): Adjust. * amd64-fbsd-tdep.c: Include "inferior.h". (amd64fbsd_get_thread_local_address): Pass down target. * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle thread's gdbarch instead of target_gdbarch. * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to get_last_target_status. * break-catch-syscall.c (print_it_catch_syscall): Likewise. * breakpoint.c (breakpoints_should_be_inserted_now): Consider all inferiors. (update_inserted_breakpoint_locations): Skip if inferiors with no execution. (update_global_location_list): When handling moribund locations, find representative inferior for location's pspace, and use thread count of its process_stratum target. * bsd-kvm.c (bsd_kvm_target_open): Pass target down. * bsd-uthread.c (bsd_uthread_target::wait): Use as_process_stratum_target and adjust thread_change_ptid and add_thread calls. (bsd_uthread_target::update_thread_list): Use as_process_stratum_target and adjust find_thread_ptid, thread_change_ptid and add_thread calls. * btrace.c (maint_btrace_packet_history_cmd): Adjust find_thread_ptid call. * corelow.c (add_to_thread_list): Adjust add_thread call. (core_target_open): Adjust add_thread_silent and thread_count calls. (core_target::pid_to_str): Adjust find_inferior_ptid call. * ctf.c (ctf_target_open): Adjust add_thread_silent call. * event-top.c (async_disconnect): Pop targets from all inferiors. * exec.c (add_target_sections): Push exec target on all inferiors sharing the program space. (remove_target_sections): Remove the exec target from all inferiors sharing the program space. (exec_on_vfork): New. * exec.h (exec_on_vfork): Declare. * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. Pass it down. (fbsd_nat_target::update_thread_list): Adjust. (fbsd_nat_target::resume): Adjust. (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it down. (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. * fbsd-tdep.c (fbsd_corefile_thread): Adjust get_thread_arch_regcache call. * fork-child.c (gdb_startup_inferior): Pass target down to startup_inferior and set_executing. * gdbthread.h (struct process_stratum_target): Forward declare. (add_thread, add_thread_silent, add_thread_with_info) (in_thread_list): Add process_stratum_target parameter. (find_thread_ptid(inferior*, ptid_t)): New overload. (find_thread_ptid, thread_change_ptid): Add process_stratum_target parameter. (all_threads()): Delete overload. (all_threads, all_non_exited_threads): Add process_stratum_target parameter. (all_threads_safe): Use brace initialization. (thread_count): Add process_stratum_target parameter. (set_resumed, set_running, set_stop_requested, set_executing) (threads_are_executing, finish_thread_state): Add process_stratum_target parameter. (switch_to_thread): Use is_current_thread. * i386-fbsd-tdep.c: Include "inferior.h". (i386fbsd_get_thread_local_address): Pass down target. * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. * inf-child.c (inf_child_target::maybe_unpush_target): Remove have_inferiors check. * inf-ptrace.c (inf_ptrace_target::create_inferior) (inf_ptrace_target::attach): Adjust. * infcall.c (run_inferior_call): Adjust. * infcmd.c (run_command_1): Pass target to scoped_finish_thread_state. (proceed_thread_callback): Skip inferiors with no execution. (continue_command): Rename 'all_threads' local to avoid hiding 'all_threads' function. Adjust get_last_target_status call. (prepare_one_step): Adjust set_running call. (signal_command): Use user_visible_resume_target. Compare thread pointers instead of inferior_ptid. (info_program_command): Adjust to pass down target. (attach_command): Mark target's 'thread_executing' flag. (stop_current_target_threads_ns): New, factored out from ... (interrupt_target_1): ... this. Switch inferior before making target calls. * inferior-iter.h (struct all_inferiors_iterator, struct all_inferiors_range) (struct all_inferiors_safe_range) (struct all_non_exited_inferiors_range): Filter on process_stratum_target too. Remove explicit. * inferior.c (inferior::inferior): Push dummy target on target stack. (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): Add process_stratum_target parameter, and pass it down. (have_live_inferiors): Adjust. (switch_to_inferior_and_push_target): New. (add_inferior_command, clone_inferior_command): Handle "-no-connection" parameter. Use switch_to_inferior_and_push_target. (_initialize_inferior): Mention "-no-connection" option in the help of "add-inferior" and "clone-inferior" commands. * inferior.h: Include "process-stratum-target.h". (interrupt_target_1): Use bool. (struct inferior) <push_target, unpush_target, target_is_pushed, find_target_beneath, top_target, process_target, target_at, m_stack>: New. (discard_all_inferiors): Delete. (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) (all_inferiors, all_non_exited_inferiors): Add process_stratum_target parameter. * infrun.c: Include "gdb_select.h" and <unordered_map>. (target_last_proc_target): New global. (follow_fork_inferior): Push target on new inferior. Pass target to add_thread_silent. Call exec_on_vfork. Handle target's reference count. (follow_fork): Adjust get_last_target_status call. Also consider target. (follow_exec): Push target on new inferior. (struct execution_control_state) <target>: New field. (user_visible_resume_target): New. (do_target_resume): Call target_async. (resume_1): Set target's threads_executing flag. Consider resume target. (commit_resume_all_targets): New. (proceed): Also consider resume target. Skip threads of inferiors with no execution. Commit resumtion in all targets. (start_remote): Pass current inferior to wait_for_inferior. (infrun_thread_stop_requested): Consider target as well. Pass thread_info pointer to clear_inline_frame_state instead of ptid. (infrun_thread_thread_exit): Consider target as well. (random_pending_event_thread): New inferior parameter. Use it. (do_target_wait): Rename to ... (do_target_wait_1): ... this. Add inferior parameter, and pass it down. (threads_are_resumed_pending_p, do_target_wait): New. (prepare_for_detach): Adjust calls. (wait_for_inferior): New inferior parameter. Handle it. Use do_target_wait_1 instead of do_target_wait. (fetch_inferior_event): Adjust. Switch to representative inferior. Pass target down. (set_last_target_status): Add process_stratum_target parameter. Save target in global. (get_last_target_status): Add process_stratum_target parameter and handle it. (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. (context_switch): Check inferior_ptid == null_ptid before calling inferior_thread(). (get_inferior_stop_soon): Pass down target. (wait_one): Rename to ... (poll_one_curr_target): ... this. (struct wait_one_event): New. (wait_one): New. (stop_all_threads): Adjust. (handle_no_resumed, handle_inferior_event): Adjust to consider the event's target. (switch_back_to_stepped_thread): Also consider target. (print_stop_event): Update. (normal_stop): Update. Also consider the resume target. * infrun.h (wait_for_inferior): Remove declaration. (user_visible_resume_target): New declaration. (get_last_target_status, set_last_target_status): New process_stratum_target parameter. * inline-frame.c (clear_inline_frame_state(ptid_t)): Add process_stratum_target parameter, and use it. (clear_inline_frame_state (thread_info*)): New. * inline-frame.c (clear_inline_frame_state(ptid_t)): Add process_stratum_target parameter. (clear_inline_frame_state (thread_info*)): Declare. * linux-fork.c (delete_checkpoint_command): Pass target down to find_thread_ptid. (checkpoint_command): Adjust. * linux-nat.c (linux_nat_target::follow_fork): Switch to thread instead of just tweaking inferior_ptid. (linux_nat_switch_fork): Pass target down to thread_change_ptid. (exit_lwp): Pass target down to find_thread_ptid. (attach_proc_task_lwp_callback): Pass target down to add_thread/set_running/set_executing. (linux_nat_target::attach): Pass target down to thread_change_ptid. (get_detach_signal): Pass target down to find_thread_ptid. Consider last target status's target. (linux_resume_one_lwp_throw, resume_lwp) (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) (stop_wait_callback, save_stop_reason, linux_nat_filter_event) (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. (linux_nat_target::async_wait_fd): New. (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass target down. * linux-nat.h (linux_nat_target::async_wait_fd): Declare. * linux-tdep.c (get_thread_arch_regcache): Pass target down. * linux-thread-db.c (struct thread_db_info::process_target): New field. (add_thread_db_info): Save target. (get_thread_db_info): New process_stratum_target parameter. Also match target. (delete_thread_db_info): New process_stratum_target parameter. Also match target. (thread_from_lwp): Adjust to pass down target. (thread_db_notice_clone): Pass down target. (check_thread_db_callback): Pass down target. (try_thread_db_load_1): Always push the thread_db target. (try_thread_db_load, record_thread): Pass target down. (thread_db_target::detach): Pass target down. Always unpush the thread_db target. (thread_db_target::wait, thread_db_target::mourn_inferior): Pass target down. Always unpush the thread_db target. (find_new_threads_callback, thread_db_find_new_threads_2) (thread_db_target::update_thread_list): Pass target down. (thread_db_target::pid_to_str): Pass current inferior down. (thread_db_target::get_thread_local_address): Pass target down. (thread_db_target::resume, maintenance_check_libthread_db): Pass target down. * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. * procfs.c (procfs_target::procfs_init_inferior): Declare. (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. (procfs_init_inferior): Rename to ... (procfs_target::procfs_init_inferior): ... this and adjust. (procfs_target::create_inferior, procfs_notice_thread) (procfs_do_thread_registers): Adjust. * ppc-fbsd-tdep.c: Include "inferior.h". (ppcfbsd_get_thread_local_address): Pass down target. * proc-service.c (ps_xfer_memory): Switch current inferior and program space as well. (get_ps_regcache): Pass target down. * process-stratum-target.c (process_stratum_target::thread_address_space) (process_stratum_target::thread_architecture): Pass target down. * process-stratum-target.h (process_stratum_target::threads_executing): New field. (as_process_stratum_target): New. * ravenscar-thread.c (ravenscar_thread_target::update_inferior_ptid): Pass target down. (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target down. * record-btrace.c (record_btrace_target::info_record): Adjust. (record_btrace_target::record_method) (record_btrace_target::record_is_replaying) (record_btrace_target::fetch_registers) (get_thread_current_frame_id, record_btrace_target::resume) (record_btrace_target::wait, record_btrace_target::stop): Pass target down. * record-full.c (record_full_wait_1): Switch to event thread. Pass target down. * regcache.c (regcache::regcache) (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add process_stratum_target parameter and handle it. (current_thread_target): New global. (get_thread_regcache): Add process_stratum_target parameter and handle it. Switch inferior before calling target method. (get_thread_regcache): Pass target down. (get_thread_regcache_for_ptid): Pass target down. (registers_changed_ptid): Add process_stratum_target parameter and handle it. (registers_changed_thread, registers_changed): Pass target down. (test_get_thread_arch_aspace_regcache): New. (current_regcache_test): Define a couple local test_target_ops instances and use them for testing. (readwrite_regcache): Pass process_stratum_target parameter. (cooked_read_test, cooked_write_test): Pass mock_target down. * regcache.h (get_thread_regcache, get_thread_arch_regcache) (get_thread_arch_aspace_regcache): Add process_stratum_target parameter. (regcache::target): New method. (regcache::regcache, regcache::get_thread_arch_aspace_regcache) (regcache::registers_changed_ptid): Add process_stratum_target parameter. (regcache::m_target): New field. (registers_changed_ptid): Add process_stratum_target parameter. * remote.c (remote_state::supports_vCont_probed): New field. (remote_target::async_wait_fd): New method. (remote_unpush_and_throw): Add remote_target parameter. (get_current_remote_target): Adjust. (remote_target::remote_add_inferior): Push target. (remote_target::remote_add_thread) (remote_target::remote_notice_new_inferior) (get_remote_thread_info): Pass target down. (remote_target::update_thread_list): Skip threads of inferiors bound to other targets. (remote_target::close): Don't discard inferiors. (remote_target::add_current_inferior_and_thread) (remote_target::process_initial_stop_replies) (remote_target::start_remote) (remote_target::remote_serial_quit_handler): Pass down target. (remote_target::remote_unpush_target): New remote_target parameter. Unpush the target from all inferiors. (remote_target::remote_unpush_and_throw): New remote_target parameter. Pass it down. (remote_target::open_1): Check whether the current inferior has execution instead of checking whether any inferior is live. Pass target down. (remote_target::remote_detach_1): Pass down target. Use remote_unpush_target. (extended_remote_target::attach): Pass down target. (remote_target::remote_vcont_probe): Set supports_vCont_probed. (remote_target::append_resumption): Pass down target. (remote_target::append_pending_thread_resumptions) (remote_target::remote_resume_with_hc, remote_target::resume) (remote_target::commit_resume): Pass down target. (remote_target::remote_stop_ns): Check supports_vCont_probed. (remote_target::interrupt_query) (remote_target::remove_new_fork_children) (remote_target::check_pending_events_prevent_wildcard_vcont) (remote_target::remote_parse_stop_reply) (remote_target::process_stop_reply): Pass down target. (first_remote_resumed_thread): New remote_target parameter. Pass it down. (remote_target::wait_as): Pass down target. (unpush_and_perror): New remote_target parameter. Pass it down. (remote_target::readchar, remote_target::remote_serial_write) (remote_target::getpkt_or_notif_sane_1) (remote_target::kill_new_fork_children, remote_target::kill): Pass down target. (remote_target::mourn_inferior): Pass down target. Use remote_unpush_target. (remote_target::core_of_thread) (remote_target::remote_btrace_maybe_reopen): Pass down target. (remote_target::pid_to_exec_file) (remote_target::thread_handle_to_thread_info): Pass down target. (remote_target::async_wait_fd): New. * riscv-fbsd-tdep.c: Include "inferior.h". (riscv_fbsd_get_thread_local_address): Pass down target. * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): Adjust. * solib-spu.c (spu_skip_standalone_loader): Pass down target. * solib-svr4.c (enable_break): Pass down target. * spu-multiarch.c (parse_spufs_run): Pass down target. * spu-tdep.c (spu2ppu_sniffer): Pass down target. * target-delegates.c: Regenerate. * target.c (g_target_stack): Delete. (current_top_target): Return the current inferior's top target. (target_has_execution_1): Refer to the passed-in inferior's top target. (target_supports_terminal_ours): Check whether the initial inferior was already created. (decref_target): New. (target_stack::push): Incref/decref the target. (push_target, push_target, unpush_target): Adjust. (target_stack::unpush): Defref target. (target_is_pushed): Return bool. Adjust to refer to the current inferior's target stack. (dispose_inferior): Delete, and inline parts ... (target_preopen): ... here. Only dispose of the current inferior. (target_detach): Hold strong target reference while detaching. Pass target down. (target_thread_name): Add assertion. (target_resume): Pass down target. (target_ops::beneath, find_target_at): Adjust to refer to the current inferior's target stack. (get_dummy_target): New. (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that has a thread running. (initialize_targets): Rename to ... (_initialize_target): ... this. * target.h: Include "gdbsupport/refcounted-object.h". (struct target_ops): Inherit refcounted_object. (target_ops::shortname, target_ops::longname): Make const. (target_ops::async_wait_fd): New method. (decref_target): Declare. (struct target_ops_ref_policy): New. (target_ops_ref): New typedef. (get_dummy_target): Declare function. (target_is_pushed): Return bool. * thread-iter.c (all_matching_threads_iterator::m_inf_matches) (all_matching_threads_iterator::all_matching_threads_iterator): Handle filter target. * thread-iter.h (struct all_matching_threads_iterator, struct all_matching_threads_range, class all_non_exited_threads_range): Filter by target too. Remove explicit. * thread.c (threads_executing): Delete. (inferior_thread): Pass down current inferior. (clear_thread_inferior_resources): Pass down thread pointer instead of ptid_t. (add_thread_silent, add_thread_with_info, add_thread): Add process_stratum_target parameter. Use it for thread and inferior searches. (is_current_thread): New. (thread_info::deletable): Use it. (find_thread_ptid, thread_count, in_thread_list) (thread_change_ptid, set_resumed, set_running): New process_stratum_target parameter. Pass it down. (set_executing): New process_stratum_target parameter. Pass it down. Adjust reference to 'threads_executing'. (threads_are_executing): New process_stratum_target parameter. Adjust reference to 'threads_executing'. (set_stop_requested, finish_thread_state): New process_stratum_target parameter. Pass it down. (switch_to_thread): Also match inferior. (switch_to_thread): New process_stratum_target parameter. Pass it down. (update_threads_executing): Reimplement. * top.c (quit_force): Pop targets from all inferior. (gdb_init): Don't call initialize_targets. * windows-nat.c (windows_nat_target) <get_windows_debug_event>: Declare. (windows_add_thread, windows_delete_thread): Adjust. (get_windows_debug_event): Rename to ... (windows_nat_target::get_windows_debug_event): ... this. Adjust. * tracefile-tfile.c (tfile_target_open): Pass down target. * gdbsupport/common-gdbthread.h (struct process_stratum_target): Forward declare. (switch_to_thread): Add process_stratum_target parameter. * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target parameter. Use it. (mi_on_resume): Pass target down. * nat/fork-inferior.c (startup_inferior): Add process_stratum_target parameter. Pass it down. * nat/fork-inferior.h (startup_inferior): Add process_stratum_target parameter. * python/py-threadevent.c (py_get_event_thread): Pass target down. gdb/gdbserver/ChangeLog: 2020-01-10 Pedro Alves <palves@redhat.com> * fork-child.c (post_fork_inferior): Pass target down to startup_inferior. * inferiors.c (switch_to_thread): Add process_stratum_target parameter. * lynx-low.c (lynx_target_ops): Now a process_stratum_target. * nto-low.c (nto_target_ops): Now a process_stratum_target. * linux-low.c (linux_target_ops): Now a process_stratum_target. * remote-utils.c (prepare_resume_reply): Pass the target to switch_to_thread. * target.c (the_target): Now a process_stratum_target. (done_accessing_memory): Pass the target to switch_to_thread. (set_target_ops): Ajust to use process_stratum_target. * target.h (struct target_ops): Rename to ... (struct process_stratum_target): ... this. (the_target, set_target_ops): Adjust. (prepare_to_access_memory): Adjust comment. * win32-low.c (child_xfer_memory): Adjust to use process_stratum_target. (win32_target_ops): Now a process_stratum_target.
4366 lines
130 KiB
C
4366 lines
130 KiB
C
/* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
|
|
/* vi:set ro: */
|
|
|
|
/* To regenerate this file, run:*/
|
|
/* make-target-delegates target.h > target-delegates.c */
|
|
|
|
struct dummy_target : public target_ops
|
|
{
|
|
const target_info &info () const override;
|
|
|
|
strata stratum () const override;
|
|
|
|
void post_attach (int arg0) override;
|
|
void detach (inferior *arg0, int arg1) override;
|
|
void disconnect (const char *arg0, int arg1) override;
|
|
void resume (ptid_t arg0, int arg1, enum gdb_signal arg2) override;
|
|
void commit_resume () override;
|
|
ptid_t wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2) override;
|
|
void fetch_registers (struct regcache *arg0, int arg1) override;
|
|
void store_registers (struct regcache *arg0, int arg1) override;
|
|
void prepare_to_store (struct regcache *arg0) override;
|
|
void files_info () override;
|
|
int insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
|
|
int remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2) override;
|
|
bool stopped_by_sw_breakpoint () override;
|
|
bool supports_stopped_by_sw_breakpoint () override;
|
|
bool stopped_by_hw_breakpoint () override;
|
|
bool supports_stopped_by_hw_breakpoint () override;
|
|
int can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2) override;
|
|
int ranged_break_num_registers () override;
|
|
int insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
|
|
int remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
|
|
int remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
|
|
int insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
|
|
int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
|
|
int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
|
|
bool stopped_by_watchpoint () override;
|
|
bool have_steppable_watchpoint () override;
|
|
bool stopped_data_address (CORE_ADDR *arg0) override;
|
|
bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override;
|
|
int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override;
|
|
bool can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override;
|
|
int masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1) override;
|
|
int can_do_single_step () override;
|
|
bool supports_terminal_ours () override;
|
|
void terminal_init () override;
|
|
void terminal_inferior () override;
|
|
void terminal_save_inferior () override;
|
|
void terminal_ours_for_output () override;
|
|
void terminal_ours () override;
|
|
void terminal_info (const char *arg0, int arg1) override;
|
|
void kill () override;
|
|
void load (const char *arg0, int arg1) override;
|
|
void post_startup_inferior (ptid_t arg0) override;
|
|
int insert_fork_catchpoint (int arg0) override;
|
|
int remove_fork_catchpoint (int arg0) override;
|
|
int insert_vfork_catchpoint (int arg0) override;
|
|
int remove_vfork_catchpoint (int arg0) override;
|
|
int follow_fork (int arg0, int arg1) override;
|
|
int insert_exec_catchpoint (int arg0) override;
|
|
int remove_exec_catchpoint (int arg0) override;
|
|
void follow_exec (struct inferior *arg0, const char *arg1) override;
|
|
int set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3) override;
|
|
void mourn_inferior () override;
|
|
void pass_signals (gdb::array_view<const unsigned char> arg0) override;
|
|
void program_signals (gdb::array_view<const unsigned char> arg0) override;
|
|
bool thread_alive (ptid_t arg0) override;
|
|
void update_thread_list () override;
|
|
std::string pid_to_str (ptid_t arg0) override;
|
|
const char *extra_thread_info (thread_info *arg0) override;
|
|
const char *thread_name (thread_info *arg0) override;
|
|
thread_info *thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2) override;
|
|
gdb::byte_vector thread_info_to_thread_handle (struct thread_info *arg0) override;
|
|
void stop (ptid_t arg0) override;
|
|
void interrupt () override;
|
|
void pass_ctrlc () override;
|
|
void rcmd (const char *arg0, struct ui_file *arg1) override;
|
|
char *pid_to_exec_file (int arg0) override;
|
|
void log_command (const char *arg0) override;
|
|
struct target_section_table *get_section_table () override;
|
|
thread_control_capabilities get_thread_control_capabilities () override;
|
|
bool attach_no_wait () override;
|
|
bool can_async_p () override;
|
|
bool is_async_p () override;
|
|
void async (int arg0) override;
|
|
int async_wait_fd () override;
|
|
void thread_events (int arg0) override;
|
|
bool supports_non_stop () override;
|
|
bool always_non_stop_p () override;
|
|
int find_memory_regions (find_memory_region_ftype arg0, void *arg1) override;
|
|
char *make_corefile_notes (bfd *arg0, int *arg1) override;
|
|
gdb_byte *get_bookmark (const char *arg0, int arg1) override;
|
|
void goto_bookmark (const gdb_byte *arg0, int arg1) override;
|
|
CORE_ADDR get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2) override;
|
|
enum target_xfer_status xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6) override;
|
|
ULONGEST get_memory_xfer_limit () override;
|
|
std::vector<mem_region> memory_map () override;
|
|
void flash_erase (ULONGEST arg0, LONGEST arg1) override;
|
|
void flash_done () override;
|
|
const struct target_desc *read_description () override;
|
|
ptid_t get_ada_task_ptid (long arg0, long arg1) override;
|
|
int auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3) override;
|
|
int search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4) override;
|
|
bool can_execute_reverse () override;
|
|
enum exec_direction_kind execution_direction () override;
|
|
bool supports_multi_process () override;
|
|
bool supports_enable_disable_tracepoint () override;
|
|
bool supports_disable_randomization () override;
|
|
bool supports_string_tracing () override;
|
|
bool supports_evaluation_of_breakpoint_conditions () override;
|
|
bool can_run_breakpoint_commands () override;
|
|
struct gdbarch *thread_architecture (ptid_t arg0) override;
|
|
struct address_space *thread_address_space (ptid_t arg0) override;
|
|
bool filesystem_is_local () override;
|
|
void trace_init () override;
|
|
void download_tracepoint (struct bp_location *arg0) override;
|
|
bool can_download_tracepoint () override;
|
|
void download_trace_state_variable (const trace_state_variable &arg0) override;
|
|
void enable_tracepoint (struct bp_location *arg0) override;
|
|
void disable_tracepoint (struct bp_location *arg0) override;
|
|
void trace_set_readonly_regions () override;
|
|
void trace_start () override;
|
|
int get_trace_status (struct trace_status *arg0) override;
|
|
void get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1) override;
|
|
void trace_stop () override;
|
|
int trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4) override;
|
|
bool get_trace_state_variable_value (int arg0, LONGEST *arg1) override;
|
|
int save_trace_data (const char *arg0) override;
|
|
int upload_tracepoints (struct uploaded_tp **arg0) override;
|
|
int upload_trace_state_variables (struct uploaded_tsv **arg0) override;
|
|
LONGEST get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2) override;
|
|
int get_min_fast_tracepoint_insn_len () override;
|
|
void set_disconnected_tracing (int arg0) override;
|
|
void set_circular_trace_buffer (int arg0) override;
|
|
void set_trace_buffer_size (LONGEST arg0) override;
|
|
bool set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override;
|
|
int core_of_thread (ptid_t arg0) override;
|
|
int verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2) override;
|
|
bool get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override;
|
|
void set_permissions () override;
|
|
bool static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1) override;
|
|
std::vector<static_tracepoint_marker> static_tracepoint_markers_by_strid (const char *arg0) override;
|
|
traceframe_info_up traceframe_info () override;
|
|
bool use_agent (bool arg0) override;
|
|
bool can_use_agent () override;
|
|
struct btrace_target_info *enable_btrace (ptid_t arg0, const struct btrace_config *arg1) override;
|
|
void disable_btrace (struct btrace_target_info *arg0) override;
|
|
void teardown_btrace (struct btrace_target_info *arg0) override;
|
|
enum btrace_error read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2) override;
|
|
const struct btrace_config *btrace_conf (const struct btrace_target_info *arg0) override;
|
|
enum record_method record_method (ptid_t arg0) override;
|
|
void stop_recording () override;
|
|
void info_record () override;
|
|
void save_record (const char *arg0) override;
|
|
bool supports_delete_record () override;
|
|
void delete_record () override;
|
|
bool record_is_replaying (ptid_t arg0) override;
|
|
bool record_will_replay (ptid_t arg0, int arg1) override;
|
|
void record_stop_replaying () override;
|
|
void goto_record_begin () override;
|
|
void goto_record_end () override;
|
|
void goto_record (ULONGEST arg0) override;
|
|
void insn_history (int arg0, gdb_disassembly_flags arg1) override;
|
|
void insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2) override;
|
|
void insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2) override;
|
|
void call_history (int arg0, record_print_flags arg1) override;
|
|
void call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2) override;
|
|
void call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2) override;
|
|
bool augmented_libraries_svr4_read () override;
|
|
const struct frame_unwind *get_unwinder () override;
|
|
const struct frame_unwind *get_tailcall_unwinder () override;
|
|
void prepare_to_generate_core () override;
|
|
void done_generating_core () override;
|
|
};
|
|
|
|
struct debug_target : public target_ops
|
|
{
|
|
const target_info &info () const override;
|
|
|
|
strata stratum () const override;
|
|
|
|
void post_attach (int arg0) override;
|
|
void detach (inferior *arg0, int arg1) override;
|
|
void disconnect (const char *arg0, int arg1) override;
|
|
void resume (ptid_t arg0, int arg1, enum gdb_signal arg2) override;
|
|
void commit_resume () override;
|
|
ptid_t wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2) override;
|
|
void fetch_registers (struct regcache *arg0, int arg1) override;
|
|
void store_registers (struct regcache *arg0, int arg1) override;
|
|
void prepare_to_store (struct regcache *arg0) override;
|
|
void files_info () override;
|
|
int insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
|
|
int remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2) override;
|
|
bool stopped_by_sw_breakpoint () override;
|
|
bool supports_stopped_by_sw_breakpoint () override;
|
|
bool stopped_by_hw_breakpoint () override;
|
|
bool supports_stopped_by_hw_breakpoint () override;
|
|
int can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2) override;
|
|
int ranged_break_num_registers () override;
|
|
int insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
|
|
int remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
|
|
int remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
|
|
int insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
|
|
int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
|
|
int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
|
|
bool stopped_by_watchpoint () override;
|
|
bool have_steppable_watchpoint () override;
|
|
bool stopped_data_address (CORE_ADDR *arg0) override;
|
|
bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override;
|
|
int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override;
|
|
bool can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override;
|
|
int masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1) override;
|
|
int can_do_single_step () override;
|
|
bool supports_terminal_ours () override;
|
|
void terminal_init () override;
|
|
void terminal_inferior () override;
|
|
void terminal_save_inferior () override;
|
|
void terminal_ours_for_output () override;
|
|
void terminal_ours () override;
|
|
void terminal_info (const char *arg0, int arg1) override;
|
|
void kill () override;
|
|
void load (const char *arg0, int arg1) override;
|
|
void post_startup_inferior (ptid_t arg0) override;
|
|
int insert_fork_catchpoint (int arg0) override;
|
|
int remove_fork_catchpoint (int arg0) override;
|
|
int insert_vfork_catchpoint (int arg0) override;
|
|
int remove_vfork_catchpoint (int arg0) override;
|
|
int follow_fork (int arg0, int arg1) override;
|
|
int insert_exec_catchpoint (int arg0) override;
|
|
int remove_exec_catchpoint (int arg0) override;
|
|
void follow_exec (struct inferior *arg0, const char *arg1) override;
|
|
int set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3) override;
|
|
void mourn_inferior () override;
|
|
void pass_signals (gdb::array_view<const unsigned char> arg0) override;
|
|
void program_signals (gdb::array_view<const unsigned char> arg0) override;
|
|
bool thread_alive (ptid_t arg0) override;
|
|
void update_thread_list () override;
|
|
std::string pid_to_str (ptid_t arg0) override;
|
|
const char *extra_thread_info (thread_info *arg0) override;
|
|
const char *thread_name (thread_info *arg0) override;
|
|
thread_info *thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2) override;
|
|
gdb::byte_vector thread_info_to_thread_handle (struct thread_info *arg0) override;
|
|
void stop (ptid_t arg0) override;
|
|
void interrupt () override;
|
|
void pass_ctrlc () override;
|
|
void rcmd (const char *arg0, struct ui_file *arg1) override;
|
|
char *pid_to_exec_file (int arg0) override;
|
|
void log_command (const char *arg0) override;
|
|
struct target_section_table *get_section_table () override;
|
|
thread_control_capabilities get_thread_control_capabilities () override;
|
|
bool attach_no_wait () override;
|
|
bool can_async_p () override;
|
|
bool is_async_p () override;
|
|
void async (int arg0) override;
|
|
int async_wait_fd () override;
|
|
void thread_events (int arg0) override;
|
|
bool supports_non_stop () override;
|
|
bool always_non_stop_p () override;
|
|
int find_memory_regions (find_memory_region_ftype arg0, void *arg1) override;
|
|
char *make_corefile_notes (bfd *arg0, int *arg1) override;
|
|
gdb_byte *get_bookmark (const char *arg0, int arg1) override;
|
|
void goto_bookmark (const gdb_byte *arg0, int arg1) override;
|
|
CORE_ADDR get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2) override;
|
|
enum target_xfer_status xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6) override;
|
|
ULONGEST get_memory_xfer_limit () override;
|
|
std::vector<mem_region> memory_map () override;
|
|
void flash_erase (ULONGEST arg0, LONGEST arg1) override;
|
|
void flash_done () override;
|
|
const struct target_desc *read_description () override;
|
|
ptid_t get_ada_task_ptid (long arg0, long arg1) override;
|
|
int auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3) override;
|
|
int search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4) override;
|
|
bool can_execute_reverse () override;
|
|
enum exec_direction_kind execution_direction () override;
|
|
bool supports_multi_process () override;
|
|
bool supports_enable_disable_tracepoint () override;
|
|
bool supports_disable_randomization () override;
|
|
bool supports_string_tracing () override;
|
|
bool supports_evaluation_of_breakpoint_conditions () override;
|
|
bool can_run_breakpoint_commands () override;
|
|
struct gdbarch *thread_architecture (ptid_t arg0) override;
|
|
struct address_space *thread_address_space (ptid_t arg0) override;
|
|
bool filesystem_is_local () override;
|
|
void trace_init () override;
|
|
void download_tracepoint (struct bp_location *arg0) override;
|
|
bool can_download_tracepoint () override;
|
|
void download_trace_state_variable (const trace_state_variable &arg0) override;
|
|
void enable_tracepoint (struct bp_location *arg0) override;
|
|
void disable_tracepoint (struct bp_location *arg0) override;
|
|
void trace_set_readonly_regions () override;
|
|
void trace_start () override;
|
|
int get_trace_status (struct trace_status *arg0) override;
|
|
void get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1) override;
|
|
void trace_stop () override;
|
|
int trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4) override;
|
|
bool get_trace_state_variable_value (int arg0, LONGEST *arg1) override;
|
|
int save_trace_data (const char *arg0) override;
|
|
int upload_tracepoints (struct uploaded_tp **arg0) override;
|
|
int upload_trace_state_variables (struct uploaded_tsv **arg0) override;
|
|
LONGEST get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2) override;
|
|
int get_min_fast_tracepoint_insn_len () override;
|
|
void set_disconnected_tracing (int arg0) override;
|
|
void set_circular_trace_buffer (int arg0) override;
|
|
void set_trace_buffer_size (LONGEST arg0) override;
|
|
bool set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override;
|
|
int core_of_thread (ptid_t arg0) override;
|
|
int verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2) override;
|
|
bool get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override;
|
|
void set_permissions () override;
|
|
bool static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1) override;
|
|
std::vector<static_tracepoint_marker> static_tracepoint_markers_by_strid (const char *arg0) override;
|
|
traceframe_info_up traceframe_info () override;
|
|
bool use_agent (bool arg0) override;
|
|
bool can_use_agent () override;
|
|
struct btrace_target_info *enable_btrace (ptid_t arg0, const struct btrace_config *arg1) override;
|
|
void disable_btrace (struct btrace_target_info *arg0) override;
|
|
void teardown_btrace (struct btrace_target_info *arg0) override;
|
|
enum btrace_error read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2) override;
|
|
const struct btrace_config *btrace_conf (const struct btrace_target_info *arg0) override;
|
|
enum record_method record_method (ptid_t arg0) override;
|
|
void stop_recording () override;
|
|
void info_record () override;
|
|
void save_record (const char *arg0) override;
|
|
bool supports_delete_record () override;
|
|
void delete_record () override;
|
|
bool record_is_replaying (ptid_t arg0) override;
|
|
bool record_will_replay (ptid_t arg0, int arg1) override;
|
|
void record_stop_replaying () override;
|
|
void goto_record_begin () override;
|
|
void goto_record_end () override;
|
|
void goto_record (ULONGEST arg0) override;
|
|
void insn_history (int arg0, gdb_disassembly_flags arg1) override;
|
|
void insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2) override;
|
|
void insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2) override;
|
|
void call_history (int arg0, record_print_flags arg1) override;
|
|
void call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2) override;
|
|
void call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2) override;
|
|
bool augmented_libraries_svr4_read () override;
|
|
const struct frame_unwind *get_unwinder () override;
|
|
const struct frame_unwind *get_tailcall_unwinder () override;
|
|
void prepare_to_generate_core () override;
|
|
void done_generating_core () override;
|
|
};
|
|
|
|
void
|
|
target_ops::post_attach (int arg0)
|
|
{
|
|
this->beneath ()->post_attach (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::post_attach (int arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::post_attach (int arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->post_attach (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->post_attach (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->post_attach (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::detach (inferior *arg0, int arg1)
|
|
{
|
|
this->beneath ()->detach (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::detach (inferior *arg0, int arg1)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::detach (inferior *arg0, int arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->detach (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->detach (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->detach (", this->beneath ()->shortname ());
|
|
target_debug_print_inferior_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::disconnect (const char *arg0, int arg1)
|
|
{
|
|
this->beneath ()->disconnect (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::disconnect (const char *arg0, int arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::disconnect (const char *arg0, int arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->disconnect (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->disconnect (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->disconnect (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::resume (ptid_t arg0, int arg1, enum gdb_signal arg2)
|
|
{
|
|
this->beneath ()->resume (arg0, arg1, arg2);
|
|
}
|
|
|
|
void
|
|
dummy_target::resume (ptid_t arg0, int arg1, enum gdb_signal arg2)
|
|
{
|
|
noprocess ();
|
|
}
|
|
|
|
void
|
|
debug_target::resume (ptid_t arg0, int arg1, enum gdb_signal arg2)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->resume (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->resume (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->resume (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_step (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_enum_gdb_signal (arg2);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::commit_resume ()
|
|
{
|
|
this->beneath ()->commit_resume ();
|
|
}
|
|
|
|
void
|
|
dummy_target::commit_resume ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::commit_resume ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->commit_resume (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->commit_resume ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->commit_resume (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
ptid_t
|
|
target_ops::wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2)
|
|
{
|
|
return this->beneath ()->wait (arg0, arg1, arg2);
|
|
}
|
|
|
|
ptid_t
|
|
dummy_target::wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2)
|
|
{
|
|
return default_target_wait (this, arg0, arg1, arg2);
|
|
}
|
|
|
|
ptid_t
|
|
debug_target::wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2)
|
|
{
|
|
ptid_t result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->wait (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->wait (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->wait (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_target_waitstatus_p (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_options (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_ptid_t (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::fetch_registers (struct regcache *arg0, int arg1)
|
|
{
|
|
this->beneath ()->fetch_registers (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::fetch_registers (struct regcache *arg0, int arg1)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::fetch_registers (struct regcache *arg0, int arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->fetch_registers (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->fetch_registers (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->fetch_registers (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_regcache_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::store_registers (struct regcache *arg0, int arg1)
|
|
{
|
|
this->beneath ()->store_registers (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::store_registers (struct regcache *arg0, int arg1)
|
|
{
|
|
noprocess ();
|
|
}
|
|
|
|
void
|
|
debug_target::store_registers (struct regcache *arg0, int arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->store_registers (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->store_registers (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->store_registers (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_regcache_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::prepare_to_store (struct regcache *arg0)
|
|
{
|
|
this->beneath ()->prepare_to_store (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::prepare_to_store (struct regcache *arg0)
|
|
{
|
|
noprocess ();
|
|
}
|
|
|
|
void
|
|
debug_target::prepare_to_store (struct regcache *arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->prepare_to_store (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->prepare_to_store (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->prepare_to_store (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_regcache_p (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::files_info ()
|
|
{
|
|
this->beneath ()->files_info ();
|
|
}
|
|
|
|
void
|
|
dummy_target::files_info ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::files_info ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->files_info (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->files_info ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->files_info (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
int
|
|
target_ops::insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
|
|
{
|
|
return this->beneath ()->insert_breakpoint (arg0, arg1);
|
|
}
|
|
|
|
int
|
|
dummy_target::insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
|
|
{
|
|
noprocess ();
|
|
}
|
|
|
|
int
|
|
debug_target::insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insert_breakpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->insert_breakpoint (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insert_breakpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_gdbarch_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_bp_target_info_p (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2)
|
|
{
|
|
return this->beneath ()->remove_breakpoint (arg0, arg1, arg2);
|
|
}
|
|
|
|
int
|
|
dummy_target::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2)
|
|
{
|
|
noprocess ();
|
|
}
|
|
|
|
int
|
|
debug_target::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->remove_breakpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->remove_breakpoint (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->remove_breakpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_gdbarch_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_bp_target_info_p (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_enum_remove_bp_reason (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::stopped_by_sw_breakpoint ()
|
|
{
|
|
return this->beneath ()->stopped_by_sw_breakpoint ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::stopped_by_sw_breakpoint ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::stopped_by_sw_breakpoint ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_by_sw_breakpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->stopped_by_sw_breakpoint ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_by_sw_breakpoint (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_stopped_by_sw_breakpoint ()
|
|
{
|
|
return this->beneath ()->supports_stopped_by_sw_breakpoint ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_stopped_by_sw_breakpoint ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_stopped_by_sw_breakpoint ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_stopped_by_sw_breakpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_stopped_by_sw_breakpoint ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_stopped_by_sw_breakpoint (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::stopped_by_hw_breakpoint ()
|
|
{
|
|
return this->beneath ()->stopped_by_hw_breakpoint ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::stopped_by_hw_breakpoint ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::stopped_by_hw_breakpoint ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_by_hw_breakpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->stopped_by_hw_breakpoint ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_by_hw_breakpoint (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_stopped_by_hw_breakpoint ()
|
|
{
|
|
return this->beneath ()->supports_stopped_by_hw_breakpoint ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_stopped_by_hw_breakpoint ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_stopped_by_hw_breakpoint ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_stopped_by_hw_breakpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_stopped_by_hw_breakpoint ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_stopped_by_hw_breakpoint (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2)
|
|
{
|
|
return this->beneath ()->can_use_hw_breakpoint (arg0, arg1, arg2);
|
|
}
|
|
|
|
int
|
|
dummy_target::can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
debug_target::can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->can_use_hw_breakpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->can_use_hw_breakpoint (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->can_use_hw_breakpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_enum_bptype (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::ranged_break_num_registers ()
|
|
{
|
|
return this->beneath ()->ranged_break_num_registers ();
|
|
}
|
|
|
|
int
|
|
dummy_target::ranged_break_num_registers ()
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::ranged_break_num_registers ()
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->ranged_break_num_registers (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->ranged_break_num_registers ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->ranged_break_num_registers (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
|
|
{
|
|
return this->beneath ()->insert_hw_breakpoint (arg0, arg1);
|
|
}
|
|
|
|
int
|
|
dummy_target::insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insert_hw_breakpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->insert_hw_breakpoint (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insert_hw_breakpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_gdbarch_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_bp_target_info_p (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
|
|
{
|
|
return this->beneath ()->remove_hw_breakpoint (arg0, arg1);
|
|
}
|
|
|
|
int
|
|
dummy_target::remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->remove_hw_breakpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->remove_hw_breakpoint (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->remove_hw_breakpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_gdbarch_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_bp_target_info_p (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
|
|
{
|
|
return this->beneath ()->remove_watchpoint (arg0, arg1, arg2, arg3);
|
|
}
|
|
|
|
int
|
|
dummy_target::remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->remove_watchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->remove_watchpoint (arg0, arg1, arg2, arg3);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->remove_watchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_enum_target_hw_bp_type (arg2);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_expression_p (arg3);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
|
|
{
|
|
return this->beneath ()->insert_watchpoint (arg0, arg1, arg2, arg3);
|
|
}
|
|
|
|
int
|
|
dummy_target::insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insert_watchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->insert_watchpoint (arg0, arg1, arg2, arg3);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insert_watchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_enum_target_hw_bp_type (arg2);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_expression_p (arg3);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
|
|
{
|
|
return this->beneath ()->insert_mask_watchpoint (arg0, arg1, arg2);
|
|
}
|
|
|
|
int
|
|
dummy_target::insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
debug_target::insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insert_mask_watchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->insert_mask_watchpoint (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insert_mask_watchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_enum_target_hw_bp_type (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
|
|
{
|
|
return this->beneath ()->remove_mask_watchpoint (arg0, arg1, arg2);
|
|
}
|
|
|
|
int
|
|
dummy_target::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
debug_target::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->remove_mask_watchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->remove_mask_watchpoint (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->remove_mask_watchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_enum_target_hw_bp_type (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::stopped_by_watchpoint ()
|
|
{
|
|
return this->beneath ()->stopped_by_watchpoint ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::stopped_by_watchpoint ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::stopped_by_watchpoint ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_by_watchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->stopped_by_watchpoint ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_by_watchpoint (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::have_steppable_watchpoint ()
|
|
{
|
|
return this->beneath ()->have_steppable_watchpoint ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::have_steppable_watchpoint ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::have_steppable_watchpoint ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->have_steppable_watchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->have_steppable_watchpoint ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->have_steppable_watchpoint (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::stopped_data_address (CORE_ADDR *arg0)
|
|
{
|
|
return this->beneath ()->stopped_data_address (arg0);
|
|
}
|
|
|
|
bool
|
|
dummy_target::stopped_data_address (CORE_ADDR *arg0)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::stopped_data_address (CORE_ADDR *arg0)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_data_address (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->stopped_data_address (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_data_address (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR_p (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2)
|
|
{
|
|
return this->beneath ()->watchpoint_addr_within_range (arg0, arg1, arg2);
|
|
}
|
|
|
|
bool
|
|
dummy_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2)
|
|
{
|
|
return default_watchpoint_addr_within_range (this, arg0, arg1, arg2);
|
|
}
|
|
|
|
bool
|
|
debug_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->watchpoint_addr_within_range (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->watchpoint_addr_within_range (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->watchpoint_addr_within_range (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1)
|
|
{
|
|
return this->beneath ()->region_ok_for_hw_watchpoint (arg0, arg1);
|
|
}
|
|
|
|
int
|
|
dummy_target::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1)
|
|
{
|
|
return default_region_ok_for_hw_watchpoint (this, arg0, arg1);
|
|
}
|
|
|
|
int
|
|
debug_target::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->region_ok_for_hw_watchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->region_ok_for_hw_watchpoint (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->region_ok_for_hw_watchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3)
|
|
{
|
|
return this->beneath ()->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3);
|
|
}
|
|
|
|
bool
|
|
dummy_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->can_accel_watchpoint_condition (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->can_accel_watchpoint_condition (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg2);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_expression_p (arg3);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1)
|
|
{
|
|
return this->beneath ()->masked_watch_num_registers (arg0, arg1);
|
|
}
|
|
|
|
int
|
|
dummy_target::masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->masked_watch_num_registers (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->masked_watch_num_registers (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->masked_watch_num_registers (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::can_do_single_step ()
|
|
{
|
|
return this->beneath ()->can_do_single_step ();
|
|
}
|
|
|
|
int
|
|
dummy_target::can_do_single_step ()
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::can_do_single_step ()
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->can_do_single_step (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->can_do_single_step ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->can_do_single_step (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_terminal_ours ()
|
|
{
|
|
return this->beneath ()->supports_terminal_ours ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_terminal_ours ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_terminal_ours ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_terminal_ours (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_terminal_ours ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_terminal_ours (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::terminal_init ()
|
|
{
|
|
this->beneath ()->terminal_init ();
|
|
}
|
|
|
|
void
|
|
dummy_target::terminal_init ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::terminal_init ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_init (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->terminal_init ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_init (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::terminal_inferior ()
|
|
{
|
|
this->beneath ()->terminal_inferior ();
|
|
}
|
|
|
|
void
|
|
dummy_target::terminal_inferior ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::terminal_inferior ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_inferior (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->terminal_inferior ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_inferior (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::terminal_save_inferior ()
|
|
{
|
|
this->beneath ()->terminal_save_inferior ();
|
|
}
|
|
|
|
void
|
|
dummy_target::terminal_save_inferior ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::terminal_save_inferior ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_save_inferior (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->terminal_save_inferior ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_save_inferior (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::terminal_ours_for_output ()
|
|
{
|
|
this->beneath ()->terminal_ours_for_output ();
|
|
}
|
|
|
|
void
|
|
dummy_target::terminal_ours_for_output ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::terminal_ours_for_output ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_ours_for_output (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->terminal_ours_for_output ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_ours_for_output (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::terminal_ours ()
|
|
{
|
|
this->beneath ()->terminal_ours ();
|
|
}
|
|
|
|
void
|
|
dummy_target::terminal_ours ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::terminal_ours ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_ours (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->terminal_ours ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_ours (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::terminal_info (const char *arg0, int arg1)
|
|
{
|
|
this->beneath ()->terminal_info (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::terminal_info (const char *arg0, int arg1)
|
|
{
|
|
default_terminal_info (this, arg0, arg1);
|
|
}
|
|
|
|
void
|
|
debug_target::terminal_info (const char *arg0, int arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_info (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->terminal_info (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_info (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::kill ()
|
|
{
|
|
this->beneath ()->kill ();
|
|
}
|
|
|
|
void
|
|
dummy_target::kill ()
|
|
{
|
|
noprocess ();
|
|
}
|
|
|
|
void
|
|
debug_target::kill ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->kill (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->kill ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->kill (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::load (const char *arg0, int arg1)
|
|
{
|
|
this->beneath ()->load (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::load (const char *arg0, int arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::load (const char *arg0, int arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->load (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->load (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->load (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::post_startup_inferior (ptid_t arg0)
|
|
{
|
|
this->beneath ()->post_startup_inferior (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::post_startup_inferior (ptid_t arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::post_startup_inferior (ptid_t arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->post_startup_inferior (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->post_startup_inferior (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->post_startup_inferior (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
int
|
|
target_ops::insert_fork_catchpoint (int arg0)
|
|
{
|
|
return this->beneath ()->insert_fork_catchpoint (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::insert_fork_catchpoint (int arg0)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
debug_target::insert_fork_catchpoint (int arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insert_fork_catchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->insert_fork_catchpoint (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insert_fork_catchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::remove_fork_catchpoint (int arg0)
|
|
{
|
|
return this->beneath ()->remove_fork_catchpoint (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::remove_fork_catchpoint (int arg0)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
debug_target::remove_fork_catchpoint (int arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->remove_fork_catchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->remove_fork_catchpoint (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->remove_fork_catchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::insert_vfork_catchpoint (int arg0)
|
|
{
|
|
return this->beneath ()->insert_vfork_catchpoint (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::insert_vfork_catchpoint (int arg0)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
debug_target::insert_vfork_catchpoint (int arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insert_vfork_catchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->insert_vfork_catchpoint (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insert_vfork_catchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::remove_vfork_catchpoint (int arg0)
|
|
{
|
|
return this->beneath ()->remove_vfork_catchpoint (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::remove_vfork_catchpoint (int arg0)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
debug_target::remove_vfork_catchpoint (int arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->remove_vfork_catchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->remove_vfork_catchpoint (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->remove_vfork_catchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::follow_fork (int arg0, int arg1)
|
|
{
|
|
return this->beneath ()->follow_fork (arg0, arg1);
|
|
}
|
|
|
|
int
|
|
dummy_target::follow_fork (int arg0, int arg1)
|
|
{
|
|
return default_follow_fork (this, arg0, arg1);
|
|
}
|
|
|
|
int
|
|
debug_target::follow_fork (int arg0, int arg1)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->follow_fork (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->follow_fork (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->follow_fork (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::insert_exec_catchpoint (int arg0)
|
|
{
|
|
return this->beneath ()->insert_exec_catchpoint (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::insert_exec_catchpoint (int arg0)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
debug_target::insert_exec_catchpoint (int arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insert_exec_catchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->insert_exec_catchpoint (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insert_exec_catchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::remove_exec_catchpoint (int arg0)
|
|
{
|
|
return this->beneath ()->remove_exec_catchpoint (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::remove_exec_catchpoint (int arg0)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
debug_target::remove_exec_catchpoint (int arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->remove_exec_catchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->remove_exec_catchpoint (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->remove_exec_catchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::follow_exec (struct inferior *arg0, const char *arg1)
|
|
{
|
|
this->beneath ()->follow_exec (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::follow_exec (struct inferior *arg0, const char *arg1)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::follow_exec (struct inferior *arg0, const char *arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->follow_exec (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->follow_exec (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->follow_exec (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_inferior_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_const_char_p (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
int
|
|
target_ops::set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3)
|
|
{
|
|
return this->beneath ()->set_syscall_catchpoint (arg0, arg1, arg2, arg3);
|
|
}
|
|
|
|
int
|
|
dummy_target::set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
debug_target::set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->set_syscall_catchpoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->set_syscall_catchpoint (arg0, arg1, arg2, arg3);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->set_syscall_catchpoint (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_bool (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg2);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_gdb_array_view_const_int (arg3);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::mourn_inferior ()
|
|
{
|
|
this->beneath ()->mourn_inferior ();
|
|
}
|
|
|
|
void
|
|
dummy_target::mourn_inferior ()
|
|
{
|
|
default_mourn_inferior (this);
|
|
}
|
|
|
|
void
|
|
debug_target::mourn_inferior ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->mourn_inferior (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->mourn_inferior ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->mourn_inferior (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::pass_signals (gdb::array_view<const unsigned char> arg0)
|
|
{
|
|
this->beneath ()->pass_signals (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::pass_signals (gdb::array_view<const unsigned char> arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::pass_signals (gdb::array_view<const unsigned char> arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->pass_signals (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->pass_signals (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->pass_signals (", this->beneath ()->shortname ());
|
|
target_debug_print_signals (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::program_signals (gdb::array_view<const unsigned char> arg0)
|
|
{
|
|
this->beneath ()->program_signals (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::program_signals (gdb::array_view<const unsigned char> arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::program_signals (gdb::array_view<const unsigned char> arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->program_signals (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->program_signals (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->program_signals (", this->beneath ()->shortname ());
|
|
target_debug_print_signals (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
bool
|
|
target_ops::thread_alive (ptid_t arg0)
|
|
{
|
|
return this->beneath ()->thread_alive (arg0);
|
|
}
|
|
|
|
bool
|
|
dummy_target::thread_alive (ptid_t arg0)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::thread_alive (ptid_t arg0)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->thread_alive (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->thread_alive (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->thread_alive (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::update_thread_list ()
|
|
{
|
|
this->beneath ()->update_thread_list ();
|
|
}
|
|
|
|
void
|
|
dummy_target::update_thread_list ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::update_thread_list ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->update_thread_list (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->update_thread_list ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->update_thread_list (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
std::string
|
|
target_ops::pid_to_str (ptid_t arg0)
|
|
{
|
|
return this->beneath ()->pid_to_str (arg0);
|
|
}
|
|
|
|
std::string
|
|
dummy_target::pid_to_str (ptid_t arg0)
|
|
{
|
|
return default_pid_to_str (this, arg0);
|
|
}
|
|
|
|
std::string
|
|
debug_target::pid_to_str (ptid_t arg0)
|
|
{
|
|
std::string result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->pid_to_str (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->pid_to_str (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->pid_to_str (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_std_string (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
const char *
|
|
target_ops::extra_thread_info (thread_info *arg0)
|
|
{
|
|
return this->beneath ()->extra_thread_info (arg0);
|
|
}
|
|
|
|
const char *
|
|
dummy_target::extra_thread_info (thread_info *arg0)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
const char *
|
|
debug_target::extra_thread_info (thread_info *arg0)
|
|
{
|
|
const char * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->extra_thread_info (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->extra_thread_info (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->extra_thread_info (", this->beneath ()->shortname ());
|
|
target_debug_print_thread_info_p (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_const_char_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
const char *
|
|
target_ops::thread_name (thread_info *arg0)
|
|
{
|
|
return this->beneath ()->thread_name (arg0);
|
|
}
|
|
|
|
const char *
|
|
dummy_target::thread_name (thread_info *arg0)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
const char *
|
|
debug_target::thread_name (thread_info *arg0)
|
|
{
|
|
const char * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->thread_name (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->thread_name (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->thread_name (", this->beneath ()->shortname ());
|
|
target_debug_print_thread_info_p (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_const_char_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
thread_info *
|
|
target_ops::thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2)
|
|
{
|
|
return this->beneath ()->thread_handle_to_thread_info (arg0, arg1, arg2);
|
|
}
|
|
|
|
thread_info *
|
|
dummy_target::thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
thread_info *
|
|
debug_target::thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2)
|
|
{
|
|
thread_info * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->thread_handle_to_thread_info (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->thread_handle_to_thread_info (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->thread_handle_to_thread_info (", this->beneath ()->shortname ());
|
|
target_debug_print_const_gdb_byte_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_inferior_p (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_thread_info_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
gdb::byte_vector
|
|
target_ops::thread_info_to_thread_handle (struct thread_info *arg0)
|
|
{
|
|
return this->beneath ()->thread_info_to_thread_handle (arg0);
|
|
}
|
|
|
|
gdb::byte_vector
|
|
dummy_target::thread_info_to_thread_handle (struct thread_info *arg0)
|
|
{
|
|
return gdb::byte_vector ();
|
|
}
|
|
|
|
gdb::byte_vector
|
|
debug_target::thread_info_to_thread_handle (struct thread_info *arg0)
|
|
{
|
|
gdb::byte_vector result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->thread_info_to_thread_handle (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->thread_info_to_thread_handle (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->thread_info_to_thread_handle (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_thread_info_p (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_gdb_byte_vector (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::stop (ptid_t arg0)
|
|
{
|
|
this->beneath ()->stop (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::stop (ptid_t arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::stop (ptid_t arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->stop (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->stop (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->stop (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::interrupt ()
|
|
{
|
|
this->beneath ()->interrupt ();
|
|
}
|
|
|
|
void
|
|
dummy_target::interrupt ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::interrupt ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->interrupt (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->interrupt ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->interrupt (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::pass_ctrlc ()
|
|
{
|
|
this->beneath ()->pass_ctrlc ();
|
|
}
|
|
|
|
void
|
|
dummy_target::pass_ctrlc ()
|
|
{
|
|
default_target_pass_ctrlc (this);
|
|
}
|
|
|
|
void
|
|
debug_target::pass_ctrlc ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->pass_ctrlc (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->pass_ctrlc ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->pass_ctrlc (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::rcmd (const char *arg0, struct ui_file *arg1)
|
|
{
|
|
this->beneath ()->rcmd (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::rcmd (const char *arg0, struct ui_file *arg1)
|
|
{
|
|
default_rcmd (this, arg0, arg1);
|
|
}
|
|
|
|
void
|
|
debug_target::rcmd (const char *arg0, struct ui_file *arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->rcmd (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->rcmd (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->rcmd (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_ui_file_p (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
char *
|
|
target_ops::pid_to_exec_file (int arg0)
|
|
{
|
|
return this->beneath ()->pid_to_exec_file (arg0);
|
|
}
|
|
|
|
char *
|
|
dummy_target::pid_to_exec_file (int arg0)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
char *
|
|
debug_target::pid_to_exec_file (int arg0)
|
|
{
|
|
char * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->pid_to_exec_file (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->pid_to_exec_file (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->pid_to_exec_file (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_char_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::log_command (const char *arg0)
|
|
{
|
|
this->beneath ()->log_command (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::log_command (const char *arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::log_command (const char *arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->log_command (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->log_command (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->log_command (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
struct target_section_table *
|
|
target_ops::get_section_table ()
|
|
{
|
|
return this->beneath ()->get_section_table ();
|
|
}
|
|
|
|
struct target_section_table *
|
|
dummy_target::get_section_table ()
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
struct target_section_table *
|
|
debug_target::get_section_table ()
|
|
{
|
|
struct target_section_table * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_section_table (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_section_table ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_section_table (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_struct_target_section_table_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
thread_control_capabilities
|
|
target_ops::get_thread_control_capabilities ()
|
|
{
|
|
return this->beneath ()->get_thread_control_capabilities ();
|
|
}
|
|
|
|
thread_control_capabilities
|
|
dummy_target::get_thread_control_capabilities ()
|
|
{
|
|
return tc_none;
|
|
}
|
|
|
|
thread_control_capabilities
|
|
debug_target::get_thread_control_capabilities ()
|
|
{
|
|
thread_control_capabilities result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_thread_control_capabilities (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_thread_control_capabilities ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_thread_control_capabilities (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_thread_control_capabilities (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::attach_no_wait ()
|
|
{
|
|
return this->beneath ()->attach_no_wait ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::attach_no_wait ()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
bool
|
|
debug_target::attach_no_wait ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->attach_no_wait (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->attach_no_wait ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->attach_no_wait (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::can_async_p ()
|
|
{
|
|
return this->beneath ()->can_async_p ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::can_async_p ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::can_async_p ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->can_async_p (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->can_async_p ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->can_async_p (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::is_async_p ()
|
|
{
|
|
return this->beneath ()->is_async_p ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::is_async_p ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::is_async_p ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->is_async_p (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->is_async_p ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->is_async_p (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::async (int arg0)
|
|
{
|
|
this->beneath ()->async (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::async (int arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::async (int arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->async (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->async (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->async (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
int
|
|
target_ops::async_wait_fd ()
|
|
{
|
|
return this->beneath ()->async_wait_fd ();
|
|
}
|
|
|
|
int
|
|
dummy_target::async_wait_fd ()
|
|
{
|
|
noprocess ();
|
|
}
|
|
|
|
int
|
|
debug_target::async_wait_fd ()
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->async_wait_fd (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->async_wait_fd ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->async_wait_fd (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::thread_events (int arg0)
|
|
{
|
|
this->beneath ()->thread_events (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::thread_events (int arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::thread_events (int arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->thread_events (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->thread_events (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->thread_events (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_non_stop ()
|
|
{
|
|
return this->beneath ()->supports_non_stop ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_non_stop ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_non_stop ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_non_stop (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_non_stop ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_non_stop (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::always_non_stop_p ()
|
|
{
|
|
return this->beneath ()->always_non_stop_p ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::always_non_stop_p ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::always_non_stop_p ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->always_non_stop_p (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->always_non_stop_p ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->always_non_stop_p (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::find_memory_regions (find_memory_region_ftype arg0, void *arg1)
|
|
{
|
|
return this->beneath ()->find_memory_regions (arg0, arg1);
|
|
}
|
|
|
|
int
|
|
dummy_target::find_memory_regions (find_memory_region_ftype arg0, void *arg1)
|
|
{
|
|
return dummy_find_memory_regions (this, arg0, arg1);
|
|
}
|
|
|
|
int
|
|
debug_target::find_memory_regions (find_memory_region_ftype arg0, void *arg1)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->find_memory_regions (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->find_memory_regions (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->find_memory_regions (", this->beneath ()->shortname ());
|
|
target_debug_print_find_memory_region_ftype (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_void_p (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
char *
|
|
target_ops::make_corefile_notes (bfd *arg0, int *arg1)
|
|
{
|
|
return this->beneath ()->make_corefile_notes (arg0, arg1);
|
|
}
|
|
|
|
char *
|
|
dummy_target::make_corefile_notes (bfd *arg0, int *arg1)
|
|
{
|
|
return dummy_make_corefile_notes (this, arg0, arg1);
|
|
}
|
|
|
|
char *
|
|
debug_target::make_corefile_notes (bfd *arg0, int *arg1)
|
|
{
|
|
char * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->make_corefile_notes (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->make_corefile_notes (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->make_corefile_notes (", this->beneath ()->shortname ());
|
|
target_debug_print_bfd_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int_p (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_char_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
gdb_byte *
|
|
target_ops::get_bookmark (const char *arg0, int arg1)
|
|
{
|
|
return this->beneath ()->get_bookmark (arg0, arg1);
|
|
}
|
|
|
|
gdb_byte *
|
|
dummy_target::get_bookmark (const char *arg0, int arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
gdb_byte *
|
|
debug_target::get_bookmark (const char *arg0, int arg1)
|
|
{
|
|
gdb_byte * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_bookmark (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_bookmark (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_bookmark (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_gdb_byte_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::goto_bookmark (const gdb_byte *arg0, int arg1)
|
|
{
|
|
this->beneath ()->goto_bookmark (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::goto_bookmark (const gdb_byte *arg0, int arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::goto_bookmark (const gdb_byte *arg0, int arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->goto_bookmark (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->goto_bookmark (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->goto_bookmark (", this->beneath ()->shortname ());
|
|
target_debug_print_const_gdb_byte_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
CORE_ADDR
|
|
target_ops::get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2)
|
|
{
|
|
return this->beneath ()->get_thread_local_address (arg0, arg1, arg2);
|
|
}
|
|
|
|
CORE_ADDR
|
|
dummy_target::get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2)
|
|
{
|
|
generic_tls_error ();
|
|
}
|
|
|
|
CORE_ADDR
|
|
debug_target::get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2)
|
|
{
|
|
CORE_ADDR result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_thread_local_address (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_thread_local_address (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_thread_local_address (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
enum target_xfer_status
|
|
target_ops::xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6)
|
|
{
|
|
return this->beneath ()->xfer_partial (arg0, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
}
|
|
|
|
enum target_xfer_status
|
|
dummy_target::xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6)
|
|
{
|
|
return TARGET_XFER_E_IO;
|
|
}
|
|
|
|
enum target_xfer_status
|
|
debug_target::xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6)
|
|
{
|
|
enum target_xfer_status result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->xfer_partial (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->xfer_partial (arg0, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->xfer_partial (", this->beneath ()->shortname ());
|
|
target_debug_print_enum_target_object (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_const_char_p (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_gdb_byte_p (arg2);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_const_gdb_byte_p (arg3);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_ULONGEST (arg4);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_ULONGEST (arg5);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_ULONGEST_p (arg6);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_enum_target_xfer_status (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
ULONGEST
|
|
target_ops::get_memory_xfer_limit ()
|
|
{
|
|
return this->beneath ()->get_memory_xfer_limit ();
|
|
}
|
|
|
|
ULONGEST
|
|
dummy_target::get_memory_xfer_limit ()
|
|
{
|
|
return ULONGEST_MAX;
|
|
}
|
|
|
|
ULONGEST
|
|
debug_target::get_memory_xfer_limit ()
|
|
{
|
|
ULONGEST result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_memory_xfer_limit (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_memory_xfer_limit ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_memory_xfer_limit (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_ULONGEST (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
std::vector<mem_region>
|
|
target_ops::memory_map ()
|
|
{
|
|
return this->beneath ()->memory_map ();
|
|
}
|
|
|
|
std::vector<mem_region>
|
|
dummy_target::memory_map ()
|
|
{
|
|
return std::vector<mem_region> ();
|
|
}
|
|
|
|
std::vector<mem_region>
|
|
debug_target::memory_map ()
|
|
{
|
|
std::vector<mem_region> result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->memory_map (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->memory_map ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->memory_map (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_std_vector_mem_region (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::flash_erase (ULONGEST arg0, LONGEST arg1)
|
|
{
|
|
this->beneath ()->flash_erase (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::flash_erase (ULONGEST arg0, LONGEST arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::flash_erase (ULONGEST arg0, LONGEST arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->flash_erase (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->flash_erase (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->flash_erase (", this->beneath ()->shortname ());
|
|
target_debug_print_ULONGEST (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_LONGEST (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::flash_done ()
|
|
{
|
|
this->beneath ()->flash_done ();
|
|
}
|
|
|
|
void
|
|
dummy_target::flash_done ()
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::flash_done ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->flash_done (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->flash_done ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->flash_done (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
const struct target_desc *
|
|
target_ops::read_description ()
|
|
{
|
|
return this->beneath ()->read_description ();
|
|
}
|
|
|
|
const struct target_desc *
|
|
dummy_target::read_description ()
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
const struct target_desc *
|
|
debug_target::read_description ()
|
|
{
|
|
const struct target_desc * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->read_description (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->read_description ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->read_description (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_const_struct_target_desc_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
ptid_t
|
|
target_ops::get_ada_task_ptid (long arg0, long arg1)
|
|
{
|
|
return this->beneath ()->get_ada_task_ptid (arg0, arg1);
|
|
}
|
|
|
|
ptid_t
|
|
dummy_target::get_ada_task_ptid (long arg0, long arg1)
|
|
{
|
|
return default_get_ada_task_ptid (this, arg0, arg1);
|
|
}
|
|
|
|
ptid_t
|
|
debug_target::get_ada_task_ptid (long arg0, long arg1)
|
|
{
|
|
ptid_t result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_ada_task_ptid (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_ada_task_ptid (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_ada_task_ptid (", this->beneath ()->shortname ());
|
|
target_debug_print_long (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_long (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_ptid_t (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3)
|
|
{
|
|
return this->beneath ()->auxv_parse (arg0, arg1, arg2, arg3);
|
|
}
|
|
|
|
int
|
|
dummy_target::auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3)
|
|
{
|
|
return default_auxv_parse (this, arg0, arg1, arg2, arg3);
|
|
}
|
|
|
|
int
|
|
debug_target::auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->auxv_parse (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->auxv_parse (arg0, arg1, arg2, arg3);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->auxv_parse (", this->beneath ()->shortname ());
|
|
target_debug_print_gdb_byte_pp (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_gdb_byte_p (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR_p (arg2);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR_p (arg3);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4)
|
|
{
|
|
return this->beneath ()->search_memory (arg0, arg1, arg2, arg3, arg4);
|
|
}
|
|
|
|
int
|
|
dummy_target::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4)
|
|
{
|
|
return default_search_memory (this, arg0, arg1, arg2, arg3, arg4);
|
|
}
|
|
|
|
int
|
|
debug_target::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->search_memory (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->search_memory (arg0, arg1, arg2, arg3, arg4);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->search_memory (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_ULONGEST (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_const_gdb_byte_p (arg2);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_ULONGEST (arg3);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR_p (arg4);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::can_execute_reverse ()
|
|
{
|
|
return this->beneath ()->can_execute_reverse ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::can_execute_reverse ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::can_execute_reverse ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->can_execute_reverse (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->can_execute_reverse ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->can_execute_reverse (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
enum exec_direction_kind
|
|
target_ops::execution_direction ()
|
|
{
|
|
return this->beneath ()->execution_direction ();
|
|
}
|
|
|
|
enum exec_direction_kind
|
|
dummy_target::execution_direction ()
|
|
{
|
|
return default_execution_direction (this);
|
|
}
|
|
|
|
enum exec_direction_kind
|
|
debug_target::execution_direction ()
|
|
{
|
|
enum exec_direction_kind result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->execution_direction (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->execution_direction ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->execution_direction (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_enum_exec_direction_kind (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_multi_process ()
|
|
{
|
|
return this->beneath ()->supports_multi_process ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_multi_process ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_multi_process ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_multi_process (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_multi_process ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_multi_process (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_enable_disable_tracepoint ()
|
|
{
|
|
return this->beneath ()->supports_enable_disable_tracepoint ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_enable_disable_tracepoint ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_enable_disable_tracepoint ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_enable_disable_tracepoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_enable_disable_tracepoint ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_enable_disable_tracepoint (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_disable_randomization ()
|
|
{
|
|
return this->beneath ()->supports_disable_randomization ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_disable_randomization ()
|
|
{
|
|
return find_default_supports_disable_randomization (this);
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_disable_randomization ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_disable_randomization (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_disable_randomization ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_disable_randomization (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_string_tracing ()
|
|
{
|
|
return this->beneath ()->supports_string_tracing ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_string_tracing ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_string_tracing ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_string_tracing (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_string_tracing ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_string_tracing (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_evaluation_of_breakpoint_conditions ()
|
|
{
|
|
return this->beneath ()->supports_evaluation_of_breakpoint_conditions ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_evaluation_of_breakpoint_conditions ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_evaluation_of_breakpoint_conditions ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_evaluation_of_breakpoint_conditions (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_evaluation_of_breakpoint_conditions ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_evaluation_of_breakpoint_conditions (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::can_run_breakpoint_commands ()
|
|
{
|
|
return this->beneath ()->can_run_breakpoint_commands ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::can_run_breakpoint_commands ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::can_run_breakpoint_commands ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->can_run_breakpoint_commands (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->can_run_breakpoint_commands ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->can_run_breakpoint_commands (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
struct gdbarch *
|
|
target_ops::thread_architecture (ptid_t arg0)
|
|
{
|
|
return this->beneath ()->thread_architecture (arg0);
|
|
}
|
|
|
|
struct gdbarch *
|
|
dummy_target::thread_architecture (ptid_t arg0)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
struct gdbarch *
|
|
debug_target::thread_architecture (ptid_t arg0)
|
|
{
|
|
struct gdbarch * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->thread_architecture (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->thread_architecture (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->thread_architecture (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_struct_gdbarch_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
struct address_space *
|
|
target_ops::thread_address_space (ptid_t arg0)
|
|
{
|
|
return this->beneath ()->thread_address_space (arg0);
|
|
}
|
|
|
|
struct address_space *
|
|
dummy_target::thread_address_space (ptid_t arg0)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
struct address_space *
|
|
debug_target::thread_address_space (ptid_t arg0)
|
|
{
|
|
struct address_space * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->thread_address_space (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->thread_address_space (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->thread_address_space (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_struct_address_space_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::filesystem_is_local ()
|
|
{
|
|
return this->beneath ()->filesystem_is_local ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::filesystem_is_local ()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool
|
|
debug_target::filesystem_is_local ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->filesystem_is_local (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->filesystem_is_local ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->filesystem_is_local (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::trace_init ()
|
|
{
|
|
this->beneath ()->trace_init ();
|
|
}
|
|
|
|
void
|
|
dummy_target::trace_init ()
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::trace_init ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->trace_init (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->trace_init ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->trace_init (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::download_tracepoint (struct bp_location *arg0)
|
|
{
|
|
this->beneath ()->download_tracepoint (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::download_tracepoint (struct bp_location *arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::download_tracepoint (struct bp_location *arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->download_tracepoint (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->download_tracepoint (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->download_tracepoint (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_bp_location_p (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
bool
|
|
target_ops::can_download_tracepoint ()
|
|
{
|
|
return this->beneath ()->can_download_tracepoint ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::can_download_tracepoint ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::can_download_tracepoint ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->can_download_tracepoint (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->can_download_tracepoint ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->can_download_tracepoint (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::download_trace_state_variable (const trace_state_variable &arg0)
|
|
{
|
|
this->beneath ()->download_trace_state_variable (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::download_trace_state_variable (const trace_state_variable &arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::download_trace_state_variable (const trace_state_variable &arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->download_trace_state_variable (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->download_trace_state_variable (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->download_trace_state_variable (", this->beneath ()->shortname ());
|
|
target_debug_print_const_trace_state_variable_r (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::enable_tracepoint (struct bp_location *arg0)
|
|
{
|
|
this->beneath ()->enable_tracepoint (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::enable_tracepoint (struct bp_location *arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::enable_tracepoint (struct bp_location *arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->enable_tracepoint (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->enable_tracepoint (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->enable_tracepoint (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_bp_location_p (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::disable_tracepoint (struct bp_location *arg0)
|
|
{
|
|
this->beneath ()->disable_tracepoint (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::disable_tracepoint (struct bp_location *arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::disable_tracepoint (struct bp_location *arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->disable_tracepoint (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->disable_tracepoint (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->disable_tracepoint (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_bp_location_p (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::trace_set_readonly_regions ()
|
|
{
|
|
this->beneath ()->trace_set_readonly_regions ();
|
|
}
|
|
|
|
void
|
|
dummy_target::trace_set_readonly_regions ()
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::trace_set_readonly_regions ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->trace_set_readonly_regions (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->trace_set_readonly_regions ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->trace_set_readonly_regions (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::trace_start ()
|
|
{
|
|
this->beneath ()->trace_start ();
|
|
}
|
|
|
|
void
|
|
dummy_target::trace_start ()
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::trace_start ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->trace_start (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->trace_start ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->trace_start (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
int
|
|
target_ops::get_trace_status (struct trace_status *arg0)
|
|
{
|
|
return this->beneath ()->get_trace_status (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::get_trace_status (struct trace_status *arg0)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::get_trace_status (struct trace_status *arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_trace_status (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_trace_status (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_trace_status (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_trace_status_p (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1)
|
|
{
|
|
this->beneath ()->get_tracepoint_status (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_tracepoint_status (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->get_tracepoint_status (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_tracepoint_status (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_breakpoint_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_uploaded_tp_p (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::trace_stop ()
|
|
{
|
|
this->beneath ()->trace_stop ();
|
|
}
|
|
|
|
void
|
|
dummy_target::trace_stop ()
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::trace_stop ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->trace_stop (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->trace_stop ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->trace_stop (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
int
|
|
target_ops::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4)
|
|
{
|
|
return this->beneath ()->trace_find (arg0, arg1, arg2, arg3, arg4);
|
|
}
|
|
|
|
int
|
|
dummy_target::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->trace_find (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->trace_find (arg0, arg1, arg2, arg3, arg4);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->trace_find (", this->beneath ()->shortname ());
|
|
target_debug_print_enum_trace_find_type (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (arg2);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (arg3);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int_p (arg4);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::get_trace_state_variable_value (int arg0, LONGEST *arg1)
|
|
{
|
|
return this->beneath ()->get_trace_state_variable_value (arg0, arg1);
|
|
}
|
|
|
|
bool
|
|
dummy_target::get_trace_state_variable_value (int arg0, LONGEST *arg1)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::get_trace_state_variable_value (int arg0, LONGEST *arg1)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_trace_state_variable_value (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_trace_state_variable_value (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_trace_state_variable_value (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_LONGEST_p (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::save_trace_data (const char *arg0)
|
|
{
|
|
return this->beneath ()->save_trace_data (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::save_trace_data (const char *arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
int
|
|
debug_target::save_trace_data (const char *arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->save_trace_data (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->save_trace_data (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->save_trace_data (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::upload_tracepoints (struct uploaded_tp **arg0)
|
|
{
|
|
return this->beneath ()->upload_tracepoints (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::upload_tracepoints (struct uploaded_tp **arg0)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
debug_target::upload_tracepoints (struct uploaded_tp **arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->upload_tracepoints (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->upload_tracepoints (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->upload_tracepoints (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_uploaded_tp_pp (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::upload_trace_state_variables (struct uploaded_tsv **arg0)
|
|
{
|
|
return this->beneath ()->upload_trace_state_variables (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::upload_trace_state_variables (struct uploaded_tsv **arg0)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
debug_target::upload_trace_state_variables (struct uploaded_tsv **arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->upload_trace_state_variables (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->upload_trace_state_variables (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->upload_trace_state_variables (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_uploaded_tsv_pp (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
LONGEST
|
|
target_ops::get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2)
|
|
{
|
|
return this->beneath ()->get_raw_trace_data (arg0, arg1, arg2);
|
|
}
|
|
|
|
LONGEST
|
|
dummy_target::get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
LONGEST
|
|
debug_target::get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2)
|
|
{
|
|
LONGEST result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_raw_trace_data (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_raw_trace_data (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_raw_trace_data (", this->beneath ()->shortname ());
|
|
target_debug_print_gdb_byte_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_ULONGEST (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_LONGEST (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_LONGEST (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::get_min_fast_tracepoint_insn_len ()
|
|
{
|
|
return this->beneath ()->get_min_fast_tracepoint_insn_len ();
|
|
}
|
|
|
|
int
|
|
dummy_target::get_min_fast_tracepoint_insn_len ()
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::get_min_fast_tracepoint_insn_len ()
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_min_fast_tracepoint_insn_len (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_min_fast_tracepoint_insn_len ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_min_fast_tracepoint_insn_len (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::set_disconnected_tracing (int arg0)
|
|
{
|
|
this->beneath ()->set_disconnected_tracing (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::set_disconnected_tracing (int arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::set_disconnected_tracing (int arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->set_disconnected_tracing (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->set_disconnected_tracing (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->set_disconnected_tracing (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::set_circular_trace_buffer (int arg0)
|
|
{
|
|
this->beneath ()->set_circular_trace_buffer (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::set_circular_trace_buffer (int arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::set_circular_trace_buffer (int arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->set_circular_trace_buffer (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->set_circular_trace_buffer (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->set_circular_trace_buffer (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::set_trace_buffer_size (LONGEST arg0)
|
|
{
|
|
this->beneath ()->set_trace_buffer_size (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::set_trace_buffer_size (LONGEST arg0)
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::set_trace_buffer_size (LONGEST arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->set_trace_buffer_size (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->set_trace_buffer_size (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->set_trace_buffer_size (", this->beneath ()->shortname ());
|
|
target_debug_print_LONGEST (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
bool
|
|
target_ops::set_trace_notes (const char *arg0, const char *arg1, const char *arg2)
|
|
{
|
|
return this->beneath ()->set_trace_notes (arg0, arg1, arg2);
|
|
}
|
|
|
|
bool
|
|
dummy_target::set_trace_notes (const char *arg0, const char *arg1, const char *arg2)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::set_trace_notes (const char *arg0, const char *arg1, const char *arg2)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->set_trace_notes (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->set_trace_notes (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->set_trace_notes (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_const_char_p (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_const_char_p (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::core_of_thread (ptid_t arg0)
|
|
{
|
|
return this->beneath ()->core_of_thread (arg0);
|
|
}
|
|
|
|
int
|
|
dummy_target::core_of_thread (ptid_t arg0)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int
|
|
debug_target::core_of_thread (ptid_t arg0)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->core_of_thread (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->core_of_thread (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->core_of_thread (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
int
|
|
target_ops::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2)
|
|
{
|
|
return this->beneath ()->verify_memory (arg0, arg1, arg2);
|
|
}
|
|
|
|
int
|
|
dummy_target::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2)
|
|
{
|
|
return default_verify_memory (this, arg0, arg1, arg2);
|
|
}
|
|
|
|
int
|
|
debug_target::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2)
|
|
{
|
|
int result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->verify_memory (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->verify_memory (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->verify_memory (", this->beneath ()->shortname ());
|
|
target_debug_print_const_gdb_byte_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_ULONGEST (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_int (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::get_tib_address (ptid_t arg0, CORE_ADDR *arg1)
|
|
{
|
|
return this->beneath ()->get_tib_address (arg0, arg1);
|
|
}
|
|
|
|
bool
|
|
dummy_target::get_tib_address (ptid_t arg0, CORE_ADDR *arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
bool
|
|
debug_target::get_tib_address (ptid_t arg0, CORE_ADDR *arg1)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_tib_address (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_tib_address (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_tib_address (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_CORE_ADDR_p (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::set_permissions ()
|
|
{
|
|
this->beneath ()->set_permissions ();
|
|
}
|
|
|
|
void
|
|
dummy_target::set_permissions ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::set_permissions ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->set_permissions (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->set_permissions ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->set_permissions (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
bool
|
|
target_ops::static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1)
|
|
{
|
|
return this->beneath ()->static_tracepoint_marker_at (arg0, arg1);
|
|
}
|
|
|
|
bool
|
|
dummy_target::static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->static_tracepoint_marker_at (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->static_tracepoint_marker_at (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->static_tracepoint_marker_at (", this->beneath ()->shortname ());
|
|
target_debug_print_CORE_ADDR (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_static_tracepoint_marker_p (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
std::vector<static_tracepoint_marker>
|
|
target_ops::static_tracepoint_markers_by_strid (const char *arg0)
|
|
{
|
|
return this->beneath ()->static_tracepoint_markers_by_strid (arg0);
|
|
}
|
|
|
|
std::vector<static_tracepoint_marker>
|
|
dummy_target::static_tracepoint_markers_by_strid (const char *arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
std::vector<static_tracepoint_marker>
|
|
debug_target::static_tracepoint_markers_by_strid (const char *arg0)
|
|
{
|
|
std::vector<static_tracepoint_marker> result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->static_tracepoint_markers_by_strid (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->static_tracepoint_markers_by_strid (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->static_tracepoint_markers_by_strid (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_std_vector_static_tracepoint_marker (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
traceframe_info_up
|
|
target_ops::traceframe_info ()
|
|
{
|
|
return this->beneath ()->traceframe_info ();
|
|
}
|
|
|
|
traceframe_info_up
|
|
dummy_target::traceframe_info ()
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
traceframe_info_up
|
|
debug_target::traceframe_info ()
|
|
{
|
|
traceframe_info_up result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->traceframe_info (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->traceframe_info ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->traceframe_info (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_traceframe_info_up (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::use_agent (bool arg0)
|
|
{
|
|
return this->beneath ()->use_agent (arg0);
|
|
}
|
|
|
|
bool
|
|
dummy_target::use_agent (bool arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
bool
|
|
debug_target::use_agent (bool arg0)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->use_agent (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->use_agent (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->use_agent (", this->beneath ()->shortname ());
|
|
target_debug_print_bool (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::can_use_agent ()
|
|
{
|
|
return this->beneath ()->can_use_agent ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::can_use_agent ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::can_use_agent ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->can_use_agent (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->can_use_agent ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->can_use_agent (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
struct btrace_target_info *
|
|
target_ops::enable_btrace (ptid_t arg0, const struct btrace_config *arg1)
|
|
{
|
|
return this->beneath ()->enable_btrace (arg0, arg1);
|
|
}
|
|
|
|
struct btrace_target_info *
|
|
dummy_target::enable_btrace (ptid_t arg0, const struct btrace_config *arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
struct btrace_target_info *
|
|
debug_target::enable_btrace (ptid_t arg0, const struct btrace_config *arg1)
|
|
{
|
|
struct btrace_target_info * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->enable_btrace (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->enable_btrace (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->enable_btrace (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_const_struct_btrace_config_p (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_struct_btrace_target_info_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::disable_btrace (struct btrace_target_info *arg0)
|
|
{
|
|
this->beneath ()->disable_btrace (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::disable_btrace (struct btrace_target_info *arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::disable_btrace (struct btrace_target_info *arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->disable_btrace (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->disable_btrace (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->disable_btrace (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_btrace_target_info_p (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::teardown_btrace (struct btrace_target_info *arg0)
|
|
{
|
|
this->beneath ()->teardown_btrace (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::teardown_btrace (struct btrace_target_info *arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::teardown_btrace (struct btrace_target_info *arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->teardown_btrace (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->teardown_btrace (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->teardown_btrace (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_btrace_target_info_p (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
enum btrace_error
|
|
target_ops::read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2)
|
|
{
|
|
return this->beneath ()->read_btrace (arg0, arg1, arg2);
|
|
}
|
|
|
|
enum btrace_error
|
|
dummy_target::read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
enum btrace_error
|
|
debug_target::read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2)
|
|
{
|
|
enum btrace_error result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->read_btrace (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->read_btrace (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->read_btrace (", this->beneath ()->shortname ());
|
|
target_debug_print_struct_btrace_data_p (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_struct_btrace_target_info_p (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_enum_btrace_read_type (arg2);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_enum_btrace_error (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
const struct btrace_config *
|
|
target_ops::btrace_conf (const struct btrace_target_info *arg0)
|
|
{
|
|
return this->beneath ()->btrace_conf (arg0);
|
|
}
|
|
|
|
const struct btrace_config *
|
|
dummy_target::btrace_conf (const struct btrace_target_info *arg0)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
const struct btrace_config *
|
|
debug_target::btrace_conf (const struct btrace_target_info *arg0)
|
|
{
|
|
const struct btrace_config * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->btrace_conf (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->btrace_conf (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->btrace_conf (", this->beneath ()->shortname ());
|
|
target_debug_print_const_struct_btrace_target_info_p (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_const_struct_btrace_config_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
enum record_method
|
|
target_ops::record_method (ptid_t arg0)
|
|
{
|
|
return this->beneath ()->record_method (arg0);
|
|
}
|
|
|
|
enum record_method
|
|
dummy_target::record_method (ptid_t arg0)
|
|
{
|
|
return RECORD_METHOD_NONE;
|
|
}
|
|
|
|
enum record_method
|
|
debug_target::record_method (ptid_t arg0)
|
|
{
|
|
enum record_method result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->record_method (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->record_method (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->record_method (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_enum_record_method (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::stop_recording ()
|
|
{
|
|
this->beneath ()->stop_recording ();
|
|
}
|
|
|
|
void
|
|
dummy_target::stop_recording ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::stop_recording ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->stop_recording (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->stop_recording ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->stop_recording (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::info_record ()
|
|
{
|
|
this->beneath ()->info_record ();
|
|
}
|
|
|
|
void
|
|
dummy_target::info_record ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::info_record ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->info_record (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->info_record ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->info_record (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::save_record (const char *arg0)
|
|
{
|
|
this->beneath ()->save_record (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::save_record (const char *arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::save_record (const char *arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->save_record (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->save_record (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->save_record (", this->beneath ()->shortname ());
|
|
target_debug_print_const_char_p (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
bool
|
|
target_ops::supports_delete_record ()
|
|
{
|
|
return this->beneath ()->supports_delete_record ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::supports_delete_record ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::supports_delete_record ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->supports_delete_record (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->supports_delete_record ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->supports_delete_record (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::delete_record ()
|
|
{
|
|
this->beneath ()->delete_record ();
|
|
}
|
|
|
|
void
|
|
dummy_target::delete_record ()
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::delete_record ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->delete_record (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->delete_record ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->delete_record (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
bool
|
|
target_ops::record_is_replaying (ptid_t arg0)
|
|
{
|
|
return this->beneath ()->record_is_replaying (arg0);
|
|
}
|
|
|
|
bool
|
|
dummy_target::record_is_replaying (ptid_t arg0)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::record_is_replaying (ptid_t arg0)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->record_is_replaying (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->record_is_replaying (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->record_is_replaying (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
bool
|
|
target_ops::record_will_replay (ptid_t arg0, int arg1)
|
|
{
|
|
return this->beneath ()->record_will_replay (arg0, arg1);
|
|
}
|
|
|
|
bool
|
|
dummy_target::record_will_replay (ptid_t arg0, int arg1)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::record_will_replay (ptid_t arg0, int arg1)
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->record_will_replay (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->record_will_replay (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->record_will_replay (", this->beneath ()->shortname ());
|
|
target_debug_print_ptid_t (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::record_stop_replaying ()
|
|
{
|
|
this->beneath ()->record_stop_replaying ();
|
|
}
|
|
|
|
void
|
|
dummy_target::record_stop_replaying ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::record_stop_replaying ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->record_stop_replaying (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->record_stop_replaying ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->record_stop_replaying (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::goto_record_begin ()
|
|
{
|
|
this->beneath ()->goto_record_begin ();
|
|
}
|
|
|
|
void
|
|
dummy_target::goto_record_begin ()
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::goto_record_begin ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->goto_record_begin (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->goto_record_begin ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->goto_record_begin (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::goto_record_end ()
|
|
{
|
|
this->beneath ()->goto_record_end ();
|
|
}
|
|
|
|
void
|
|
dummy_target::goto_record_end ()
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::goto_record_end ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->goto_record_end (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->goto_record_end ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->goto_record_end (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::goto_record (ULONGEST arg0)
|
|
{
|
|
this->beneath ()->goto_record (arg0);
|
|
}
|
|
|
|
void
|
|
dummy_target::goto_record (ULONGEST arg0)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::goto_record (ULONGEST arg0)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->goto_record (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->goto_record (arg0);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->goto_record (", this->beneath ()->shortname ());
|
|
target_debug_print_ULONGEST (arg0);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::insn_history (int arg0, gdb_disassembly_flags arg1)
|
|
{
|
|
this->beneath ()->insn_history (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::insn_history (int arg0, gdb_disassembly_flags arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::insn_history (int arg0, gdb_disassembly_flags arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insn_history (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->insn_history (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insn_history (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_gdb_disassembly_flags (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2)
|
|
{
|
|
this->beneath ()->insn_history_from (arg0, arg1, arg2);
|
|
}
|
|
|
|
void
|
|
dummy_target::insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insn_history_from (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->insn_history_from (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insn_history_from (", this->beneath ()->shortname ());
|
|
target_debug_print_ULONGEST (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_gdb_disassembly_flags (arg2);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2)
|
|
{
|
|
this->beneath ()->insn_history_range (arg0, arg1, arg2);
|
|
}
|
|
|
|
void
|
|
dummy_target::insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->insn_history_range (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->insn_history_range (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->insn_history_range (", this->beneath ()->shortname ());
|
|
target_debug_print_ULONGEST (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_ULONGEST (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_gdb_disassembly_flags (arg2);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::call_history (int arg0, record_print_flags arg1)
|
|
{
|
|
this->beneath ()->call_history (arg0, arg1);
|
|
}
|
|
|
|
void
|
|
dummy_target::call_history (int arg0, record_print_flags arg1)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::call_history (int arg0, record_print_flags arg1)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->call_history (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->call_history (arg0, arg1);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->call_history (", this->beneath ()->shortname ());
|
|
target_debug_print_int (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_record_print_flags (arg1);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2)
|
|
{
|
|
this->beneath ()->call_history_from (arg0, arg1, arg2);
|
|
}
|
|
|
|
void
|
|
dummy_target::call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->call_history_from (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->call_history_from (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->call_history_from (", this->beneath ()->shortname ());
|
|
target_debug_print_ULONGEST (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_int (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_record_print_flags (arg2);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2)
|
|
{
|
|
this->beneath ()->call_history_range (arg0, arg1, arg2);
|
|
}
|
|
|
|
void
|
|
dummy_target::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2)
|
|
{
|
|
tcomplain ();
|
|
}
|
|
|
|
void
|
|
debug_target::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2)
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->call_history_range (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->call_history_range (arg0, arg1, arg2);
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->call_history_range (", this->beneath ()->shortname ());
|
|
target_debug_print_ULONGEST (arg0);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_ULONGEST (arg1);
|
|
fputs_unfiltered (", ", gdb_stdlog);
|
|
target_debug_print_record_print_flags (arg2);
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
bool
|
|
target_ops::augmented_libraries_svr4_read ()
|
|
{
|
|
return this->beneath ()->augmented_libraries_svr4_read ();
|
|
}
|
|
|
|
bool
|
|
dummy_target::augmented_libraries_svr4_read ()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
debug_target::augmented_libraries_svr4_read ()
|
|
{
|
|
bool result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->augmented_libraries_svr4_read (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->augmented_libraries_svr4_read ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->augmented_libraries_svr4_read (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_bool (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
const struct frame_unwind *
|
|
target_ops::get_unwinder ()
|
|
{
|
|
return this->beneath ()->get_unwinder ();
|
|
}
|
|
|
|
const struct frame_unwind *
|
|
dummy_target::get_unwinder ()
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
const struct frame_unwind *
|
|
debug_target::get_unwinder ()
|
|
{
|
|
const struct frame_unwind * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_unwinder (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_unwinder ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_unwinder (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_const_struct_frame_unwind_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
const struct frame_unwind *
|
|
target_ops::get_tailcall_unwinder ()
|
|
{
|
|
return this->beneath ()->get_tailcall_unwinder ();
|
|
}
|
|
|
|
const struct frame_unwind *
|
|
dummy_target::get_tailcall_unwinder ()
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
const struct frame_unwind *
|
|
debug_target::get_tailcall_unwinder ()
|
|
{
|
|
const struct frame_unwind * result;
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->get_tailcall_unwinder (...)\n", this->beneath ()->shortname ());
|
|
result = this->beneath ()->get_tailcall_unwinder ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->get_tailcall_unwinder (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (") = ", gdb_stdlog);
|
|
target_debug_print_const_struct_frame_unwind_p (result);
|
|
fputs_unfiltered ("\n", gdb_stdlog);
|
|
return result;
|
|
}
|
|
|
|
void
|
|
target_ops::prepare_to_generate_core ()
|
|
{
|
|
this->beneath ()->prepare_to_generate_core ();
|
|
}
|
|
|
|
void
|
|
dummy_target::prepare_to_generate_core ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::prepare_to_generate_core ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->prepare_to_generate_core (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->prepare_to_generate_core ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->prepare_to_generate_core (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|
|
void
|
|
target_ops::done_generating_core ()
|
|
{
|
|
this->beneath ()->done_generating_core ();
|
|
}
|
|
|
|
void
|
|
dummy_target::done_generating_core ()
|
|
{
|
|
}
|
|
|
|
void
|
|
debug_target::done_generating_core ()
|
|
{
|
|
fprintf_unfiltered (gdb_stdlog, "-> %s->done_generating_core (...)\n", this->beneath ()->shortname ());
|
|
this->beneath ()->done_generating_core ();
|
|
fprintf_unfiltered (gdb_stdlog, "<- %s->done_generating_core (", this->beneath ()->shortname ());
|
|
fputs_unfiltered (")\n", gdb_stdlog);
|
|
}
|
|
|