GDBserver
Functions
regcache.c File Reference
#include "server.h"
#include "regdef.h"
#include "gdbthread.h"
#include "tdesc.h"
#include "rsp-low.h"

Go to the source code of this file.

Functions

struct regcacheget_thread_regcache (struct thread_info *thread, int fetch)
 
struct regcacheget_thread_regcache_for_ptid (ptid_t ptid)
 
void regcache_invalidate_thread (struct thread_info *thread)
 
void regcache_invalidate_pid (int pid)
 
void regcache_invalidate (void)
 
struct regcacheinit_register_cache (struct regcache *regcache, const struct target_desc *tdesc, unsigned char *regbuf)
 
struct regcachenew_register_cache (const struct target_desc *tdesc)
 
void free_register_cache (struct regcache *regcache)
 
void regcache_cpy (struct regcache *dst, struct regcache *src)
 
void registers_to_string (struct regcache *regcache, char *buf)
 
void registers_from_string (struct regcache *regcache, char *buf)
 
int find_regno (const struct target_desc *tdesc, const char *name)
 
struct reg * find_register_by_number (const struct target_desc *tdesc, int n)
 
static void free_register_cache_thread (struct thread_info *thread)
 
void regcache_release (void)
 
int register_cache_size (const struct target_desc *tdesc)
 
int register_size (const struct target_desc *tdesc, int n)
 
int regcache_register_size (const struct regcache *regcache, int n)
 
static unsigned char * register_data (struct regcache *regcache, int n, int fetch)
 
void supply_register (struct regcache *regcache, int n, const void *buf)
 
void supply_register_zeroed (struct regcache *regcache, int n)
 
void supply_regblock (struct regcache *regcache, const void *buf)
 
void supply_register_by_name (struct regcache *regcache, const char *name, const void *buf)
 
void collect_register (struct regcache *regcache, int n, void *buf)
 
enum register_status regcache_raw_read_unsigned (struct regcache *regcache, int regnum, ULONGEST *val)
 
void collect_register_as_string (struct regcache *regcache, int n, char *buf)
 
void collect_register_by_name (struct regcache *regcache, const char *name, void *buf)
 
CORE_ADDR regcache_read_pc (struct regcache *regcache)
 
void regcache_write_pc (struct regcache *regcache, CORE_ADDR pc)
 

Function Documentation

◆ collect_register()

void collect_register ( struct regcache regcache,
int  n,
void *  buf 
)

◆ collect_register_as_string()

void collect_register_as_string ( struct regcache regcache,
int  n,
char *  buf 
)

Definition at line 434 of file regcache.c.

References bin2hex(), register_data(), register_size(), and regcache::tdesc.

Referenced by outreg().

◆ collect_register_by_name()

void collect_register_by_name ( struct regcache regcache,
const char *  name,
void *  buf 
)

◆ find_register_by_number()

struct reg* find_register_by_number ( const struct target_desc tdesc,
int  n 
)

Definition at line 259 of file regcache.c.

References target_desc::reg_defs.

Referenced by register_data(), and register_size().

◆ find_regno()

int find_regno ( const struct target_desc tdesc,
const char *  name 
)

◆ free_register_cache()

void free_register_cache ( struct regcache regcache)

◆ free_register_cache_thread()

static void free_register_cache_thread ( struct thread_info thread)
static

◆ get_thread_regcache()

struct regcache* get_thread_regcache ( struct thread_info thread,
int  fetch 
)

◆ get_thread_regcache_for_ptid()

struct regcache* get_thread_regcache_for_ptid ( ptid_t  ptid)

Definition at line 69 of file regcache.c.

References find_thread_ptid(), and get_thread_regcache().

Referenced by aarch64_point_is_aligned().

◆ init_register_cache()

struct regcache* init_register_cache ( struct regcache regcache,
const struct target_desc tdesc,
unsigned char *  regbuf 
)

◆ new_register_cache()

struct regcache* new_register_cache ( const struct target_desc tdesc)

◆ regcache_cpy()

void regcache_cpy ( struct regcache dst,
struct regcache src 
)

◆ regcache_invalidate()

void regcache_invalidate ( void  )

◆ regcache_invalidate_pid()

void regcache_invalidate_pid ( int  pid)

Definition at line 99 of file regcache.c.

References for_each_thread(), and regcache_invalidate_thread().

Referenced by lynx_resume(), and regcache_invalidate().

◆ regcache_invalidate_thread()

void regcache_invalidate_thread ( struct thread_info thread)

◆ regcache_raw_read_unsigned()

enum register_status regcache_raw_read_unsigned ( struct regcache regcache,
int  regnum,
ULONGEST val 
)

◆ regcache_read_pc()

CORE_ADDR regcache_read_pc ( struct regcache regcache)

Definition at line 450 of file regcache.c.

References internal_error(), target_ops::read_pc, and the_target.

Referenced by get_next_pcs_syscall_next_pc(), and traceframe_get_pc().

◆ regcache_register_size()

int regcache_register_size ( const struct regcache regcache,
int  n 
)

Definition at line 301 of file regcache.c.

References register_size(), and regcache::tdesc.

Referenced by aarch64_point_is_aligned().

◆ regcache_release()

void regcache_release ( void  )

Definition at line 279 of file regcache.c.

References for_each_thread(), and free_register_cache_thread().

Referenced by x86_linux_update_xmltarget().

◆ regcache_write_pc()

void regcache_write_pc ( struct regcache regcache,
CORE_ADDR  pc 
)

◆ register_cache_size()

int register_cache_size ( const struct target_desc tdesc)

Definition at line 287 of file regcache.c.

References target_desc::registers_size, and regcache::tdesc.

Referenced by do_action_at_tracepoint().

◆ register_data()

static unsigned char* register_data ( struct regcache regcache,
int  n,
int  fetch 
)
static

◆ register_size()

int register_size ( const struct target_desc tdesc,
int  n 
)

◆ registers_from_string()

void registers_from_string ( struct regcache regcache,
char *  buf 
)

◆ registers_to_string()

void registers_to_string ( struct regcache regcache,
char *  buf 
)

◆ supply_regblock()

void supply_regblock ( struct regcache regcache,
const void *  buf 
)

◆ supply_register()

void supply_register ( struct regcache regcache,
int  n,
const void *  buf 
)

◆ supply_register_by_name()

void supply_register_by_name ( struct regcache regcache,
const char *  name,
const void *  buf 
)

◆ supply_register_zeroed()

void supply_register_zeroed ( struct regcache regcache,
int  n 
)