GDBserver
Functions | Variables
target.c File Reference
#include "server.h"
#include "tracepoint.h"

Go to the source code of this file.

Functions

void set_desired_thread (int use_general)
 
int read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
 
int target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
 
int target_read_uint32 (CORE_ADDR memaddr, uint32_t *result)
 
int write_inferior_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len)
 
int target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
 
ptid_t mywait (ptid_t ptid, struct target_waitstatus *ourstatus, int options, int connected_wait)
 
void target_stop_and_wait (ptid_t ptid)
 
void target_continue_no_signal (ptid_t ptid)
 
int start_non_stop (int nonstop)
 
void set_target_ops (struct target_ops *target)
 
const char * target_pid_to_str (ptid_t ptid)
 
int kill_inferior (int pid)
 

Variables

struct target_opsthe_target
 

Function Documentation

int kill_inferior ( int  pid)
ptid_t mywait ( ptid_t  ptid,
struct target_waitstatus *  ourstatus,
int  options,
int  connected_wait 
)
int read_inferior_memory ( CORE_ADDR  memaddr,
unsigned char *  myaddr,
int  len 
)
void set_desired_thread ( int  use_general)
void set_target_ops ( struct target_ops target)

Definition at line 184 of file target.c.

References xmalloc().

Referenced by initialize_low().

int start_non_stop ( int  nonstop)

Definition at line 170 of file target.c.

References target_ops::start_non_stop.

Referenced by captured_main(), handle_general_set(), and process_serial_event().

void target_continue_no_signal ( ptid_t  ptid)
const char* target_pid_to_str ( ptid_t  ptid)
int target_read_memory ( CORE_ADDR  memaddr,
gdb_byte myaddr,
ssize_t  len 
)

Definition at line 54 of file target.c.

References read_inferior_memory().

Referenced by agent_run_command().

int target_read_uint32 ( CORE_ADDR  memaddr,
uint32_t *  result 
)

Definition at line 62 of file target.c.

References read_inferior_memory().

Referenced by agent_capability_check(), and agent_get_helper_thread_id().

void target_stop_and_wait ( ptid_t  ptid)
int target_write_memory ( CORE_ADDR  memaddr,
const gdb_byte myaddr,
ssize_t  len 
)

Definition at line 93 of file target.c.

References write_inferior_memory().

Referenced by agent_run_command().

int write_inferior_memory ( CORE_ADDR  memaddr,
const unsigned char *  myaddr,
int  len 
)

Variable Documentation

struct target_ops* the_target