GDBserver
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/gdbserver/target.h File Reference
#include "target/resume.h"
#include "target/wait.h"
#include "target/waitstatus.h"

Go to the source code of this file.

Classes

struct  thread_resume
struct  target_ops

Defines

#define create_inferior(program, args)   (*the_target->create_inferior) (program, args)
#define myattach(pid)   (*the_target->attach) (pid)
#define detach_inferior(pid)   (*the_target->detach) (pid)
#define mourn_inferior(PROC)   (*the_target->mourn) (PROC)
#define mythread_alive(pid)   (*the_target->thread_alive) (pid)
#define fetch_inferior_registers(regcache, regno)   (*the_target->fetch_registers) (regcache, regno)
#define store_inferior_registers(regcache, regno)   (*the_target->store_registers) (regcache, regno)
#define join_inferior(pid)   (*the_target->join) (pid)
#define target_supports_non_stop()   (the_target->supports_non_stop ? (*the_target->supports_non_stop ) () : 0)
#define target_async(enable)   (the_target->async ? (*the_target->async) (enable) : 0)
#define target_supports_multi_process()
#define target_process_qsupported(query)
#define target_supports_tracepoints()
#define target_supports_fast_tracepoints()   (the_target->install_fast_tracepoint_jump_pad != NULL)
#define target_get_min_fast_tracepoint_insn_len()
#define thread_stopped(thread)   (*the_target->thread_stopped) (thread)
#define pause_all(freeze)
#define unpause_all(unfreeze)
#define cancel_breakpoints()
#define stabilize_threads()
#define install_fast_tracepoint_jump_pad(tpoint, tpaddr,collector, lockaddr,orig_size,jump_entry,trampoline, trampoline_size, jjump_pad_insn,jjump_pad_insn_size,adjusted_insn_addr,adjusted_insn_addr_end, err)
#define target_emit_ops()   (the_target->emit_ops ? (*the_target->emit_ops) () : NULL)
#define target_supports_disable_randomization()
#define target_supports_agent()
#define target_supports_btrace()   (the_target->supports_btrace ? (*the_target->supports_btrace) () : 0)
#define target_enable_btrace(ptid)   (*the_target->enable_btrace) (ptid)
#define target_disable_btrace(tinfo)   (*the_target->disable_btrace) (tinfo)
#define target_read_btrace(tinfo, buffer, type)   (*the_target->read_btrace) (tinfo, buffer, type)
#define target_supports_range_stepping()
#define prepare_to_access_memory()
#define done_accessing_memory()
#define target_core_of_thread(ptid)

Functions

void set_target_ops (struct target_ops *)
int kill_inferior (int)
int start_non_stop (int nonstop)
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)
int write_inferior_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len)
void set_desired_inferior (int id)
const char * target_pid_to_str (ptid_t)

Variables

struct target_opsthe_target

Define Documentation

#define cancel_breakpoints ( )
#define create_inferior (   program,
  args 
)    (*the_target->create_inferior) (program, args)

Definition at line 374 of file target.h.

Referenced by start_inferior().

#define detach_inferior (   pid)    (*the_target->detach) (pid)

Definition at line 382 of file target.h.

Referenced by detach_or_kill_inferior_callback(), and process_serial_event().

#define done_accessing_memory ( )
#define fetch_inferior_registers (   regcache,
  regno 
)    (*the_target->fetch_registers) (regcache, regno)

Definition at line 391 of file target.h.

Referenced by get_thread_regcache(), ppc_arch_setup(), and s390_arch_setup().

#define install_fast_tracepoint_jump_pad (   tpoint,
  tpaddr,
  collector,
  lockaddr,
  orig_size,
  jump_entry,
  trampoline,
  trampoline_size,
  jjump_pad_insn,
  jjump_pad_insn_size,
  adjusted_insn_addr,
  adjusted_insn_addr_end,
  err 
)
Value:
(*the_target->install_fast_tracepoint_jump_pad) (tpoint, tpaddr,        \
                                                   collector,lockaddr,  \
                                                   orig_size, jump_entry, \
                                                   trampoline,          \
                                                   trampoline_size,     \
                                                   jjump_pad_insn,      \
                                                   jjump_pad_insn_size, \
                                                   adjusted_insn_addr,  \
                                                   adjusted_insn_addr_end, \
                                                   err)

Definition at line 459 of file target.h.

Referenced by install_fast_tracepoint().

#define join_inferior (   pid)    (*the_target->join) (pid)

Definition at line 397 of file target.h.

Referenced by process_serial_event().

#define mourn_inferior (   PROC)    (*the_target->mourn) (PROC)

Definition at line 385 of file target.h.

Referenced by handle_target_event(), handle_v_cont(), and myresume().

#define myattach (   pid)    (*the_target->attach) (pid)

Definition at line 377 of file target.h.

Referenced by attach_inferior().

#define mythread_alive (   pid)    (*the_target->thread_alive) (pid)

Definition at line 388 of file target.h.

Referenced by process_serial_event().

#define pause_all (   freeze)
#define stabilize_threads ( )
Value:
do                                              \
    {                                           \
      if (the_target->stabilize_threads)        \
        (*the_target->stabilize_threads) ();    \
    } while (0)

Definition at line 452 of file target.h.

Referenced by cmd_qtdp(), cmd_qtstart(), handle_status(), linux_detach(), and linux_wait_1().

#define store_inferior_registers (   regcache,
  regno 
)    (*the_target->store_registers) (regcache, regno)

Definition at line 394 of file target.h.

Referenced by regcache_invalidate_thread().

#define target_async (   enable)    (the_target->async ? (*the_target->async) (enable) : 0)

Definition at line 403 of file target.h.

Referenced by handle_accept_event().

#define target_core_of_thread (   ptid)
Value:

Definition at line 526 of file target.h.

Referenced by handle_qxfer_threads_proper(), and prepare_resume_reply().

#define target_disable_btrace (   tinfo)    (*the_target->disable_btrace) (tinfo)

Definition at line 497 of file target.h.

Referenced by handle_btrace_disable(), and remove_thread().

#define target_emit_ops ( )    (the_target->emit_ops ? (*the_target->emit_ops) () : NULL)
#define target_enable_btrace (   ptid)    (*the_target->enable_btrace) (ptid)

Definition at line 494 of file target.h.

Referenced by handle_btrace_enable().

#define target_process_qsupported (   query)
Value:
do                                                      \
    {                                                   \
      if (the_target->process_qsupported)               \
        the_target->process_qsupported (query);         \
    } while (0)

Definition at line 410 of file target.h.

Referenced by handle_query().

#define target_read_btrace (   tinfo,
  buffer,
  type 
)    (*the_target->read_btrace) (tinfo, buffer, type)

Definition at line 500 of file target.h.

Referenced by handle_qxfer_btrace().

#define target_supports_agent ( )
Value:

Definition at line 487 of file target.h.

Referenced by handle_query().

#define target_supports_btrace ( )    (the_target->supports_btrace ? (*the_target->supports_btrace) () : 0)

Definition at line 491 of file target.h.

Referenced by handle_btrace_general_set(), and handle_query().

Value:

Definition at line 483 of file target.h.

Referenced by handle_query().

Definition at line 421 of file target.h.

Referenced by handle_query().

Value:

Definition at line 406 of file target.h.

Referenced by handle_query().

#define target_supports_non_stop ( )    (the_target->supports_non_stop ? (*the_target->supports_non_stop ) () : 0)

Definition at line 400 of file target.h.

Referenced by handle_query().

Value:

Definition at line 503 of file target.h.

Referenced by handle_v_requests().

Value:

Definition at line 417 of file target.h.

Referenced by handle_general_set(), handle_query(), and main().

#define thread_stopped (   thread)    (*the_target->thread_stopped) (thread)

Definition at line 428 of file target.h.

Referenced by queue_stop_reply_callback().

#define unpause_all (   unfreeze)
Value:
do                                              \
    {                                           \
      if (the_target->unpause_all)              \
        (*the_target->unpause_all) (unfreeze);  \
    } while (0)

Definition at line 438 of file target.h.

Referenced by clear_installed_tracepoints(), cmd_qtdp(), cmd_qtstart(), cmd_qtstatus(), run_inferior_command(), stop_tracing(), and upload_fast_traceframes().


Function Documentation

int kill_inferior ( int  )
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_inferior ( int  id)
void set_target_ops ( struct target_ops )

Definition at line 123 of file target.c.

References memcpy(), and xmalloc().

Referenced by initialize_low().

int start_non_stop ( int  nonstop)

Definition at line 109 of file target.c.

References target_ops::start_non_stop.

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

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

Variable Documentation

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines