90 else if (current != NULL)
92 else if (
first != NULL)
151 static unsigned char *
buffer = 0;
158 memcpy (
buffer, myaddr, len);
188 if (ourstatus->kind == TARGET_WAITKIND_LOADED)
189 ourstatus->kind = TARGET_WAITKIND_STOPPED;
199 if (ourstatus->kind == TARGET_WAITKIND_EXITED)
201 "\nChild exited with status %d\n", ourstatus->value.integer);
202 else if (ourstatus->kind == TARGET_WAITKIND_SIGNALLED)
203 fprintf (stderr,
"\nChild terminated with signal = 0x%x (%s)\n",
219 struct target_waitstatus status;
223 resume_info.
thread = ptid;
224 resume_info.
kind = resume_stop;
225 resume_info.
sig = GDB_SIGNAL_0;
229 mywait (ptid, &status, 0, 0);
256 resume_info.
thread = ptid;
257 resume_info.
kind = resume_continue;
258 resume_info.
sig = GDB_SIGNAL_0;
269 resume_info.
thread = ptid;
270 resume_info.
kind = resume_continue;
313 xsnprintf (buf,
sizeof (buf),
"<all threads>");
315 xsnprintf (buf,
sizeof (buf),
"<null thread>");
317 xsnprintf (buf,
sizeof (buf),
"Thread %d.0x%lx",
320 xsnprintf (buf,
sizeof (buf),
"LWP %d.%ld",
323 xsnprintf (buf,
sizeof (buf),
"Process %d",
363 enum target_terminal::terminal_state target_terminal::terminal_state
364 = target_terminal::terminal_is_ours;
369 target_terminal::init ()
378 target_terminal::inferior ()
387 target_terminal::ours ()
396 target_terminal::ours_for_output (
void)
404 target_terminal::info (
const char *arg,
int from_tty)
void check_mem_read(CORE_ADDR mem_addr, unsigned char *buf, int mem_len)
void target_mourn_inferior(ptid_t ptid)
struct thread_info * current_thread
int target_can_do_hardware_single_step(void)
int(* prepare_to_access_memory)(void)
constexpr int pid() const
struct thread_info * find_thread_ptid(ptid_t ptid)
int target_supports_multi_process(void)
int ptid_get_pid(const ptid_t &ptid)
static ptid_t ptid_of(const thread_info *thread)
int default_breakpoint_kind_from_pc(CORE_ADDR *pcptr)
int target_read_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
#define mythread_alive(pid)
void(* mourn)(struct process_info *proc)
int(* supports_multi_process)(void)
static void for_each_thread(Func func)
struct target_ops * the_target
static ptid_t prev_general_thread
int remote_connection_is_stdio(void)
int(* write_memory)(CORE_ADDR memaddr, const unsigned char *myaddr, int len)
int(* thread_stopped)(struct thread_info *thread)
process_info * find_process_pid(int pid)
long ptid_get_tid(const ptid_t &ptid)
int read_inferior_memory(CORE_ADDR memaddr, unsigned char *myaddr, int len)
void(* done_accessing_memory)(void)
int gdb_signal_to_host(enum gdb_signal)
void target_continue(ptid_t ptid, enum gdb_signal signal)
int target_read_uint32(CORE_ADDR memaddr, uint32_t *result)
void target_continue_no_signal(ptid_t ptid)
const char * gdb_signal_to_name(enum gdb_signal)
void set_target_ops(struct target_ops *target)
void check_mem_write(CORE_ADDR mem_addr, unsigned char *buf, const unsigned char *myaddr, int mem_len)
ptid_t target_wait(ptid_t ptid, struct target_waitstatus *status, int options)
long ptid_get_lwp(const ptid_t &ptid)
int kill_inferior(int pid)
ptid_t mywait(ptid_t ptid, struct target_waitstatus *ourstatus, int options, int connected_wait)
int write_inferior_memory(CORE_ADDR memaddr, const unsigned char *myaddr, int len)
ptid_t(* wait)(ptid_t ptid, struct target_waitstatus *status, int options)
void switch_to_thread(ptid_t ptid)
const gdb_byte *(* sw_breakpoint_from_kind)(int kind, int *size)
int xsnprintf(char *str, size_t size, const char *format,...)
void target_stop_and_wait(ptid_t ptid)
int prepare_to_access_memory(void)
const char * target_pid_to_str(ptid_t ptid)
void(* resume)(struct thread_resume *resume_info, size_t n)
int(* read_memory)(CORE_ADDR memaddr, unsigned char *myaddr, int len)
int ptid_equal(const ptid_t &ptid1, const ptid_t &ptid2)
#define thread_stopped(thread)
int(* start_non_stop)(int)
struct callback_event * first
int target_write_memory(CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
void gdb_agent_about_to_close(int pid)
void done_accessing_memory(void)
int start_non_stop(int nonstop)