GDBserver
Functions
/home/stan/gdb/src/gdb/gdbserver/regcache.c File Reference
#include "server.h"
#include "regdef.h"
#include "gdbthread.h"
#include "tdesc.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

struct regcacheget_thread_regcache (struct thread_info *thread, int fetch)
void regcache_invalidate_thread (struct thread_info *thread)
static int regcache_invalidate_one (struct inferior_list_entry *entry, void *pid_p)
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)
struct reg * find_register_by_name (const struct target_desc *tdesc, const char *name)
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)
static void free_register_cache_thread_one (struct inferior_list_entry *entry)
void regcache_release (void)
int register_cache_size (const struct target_desc *tdesc)
int register_size (const struct target_desc *tdesc, 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)
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

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

Definition at line 419 of file regcache.c.

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

Referenced by outreg().

void collect_register_by_name ( struct regcache regcache,
const char *  name,
void *  buf 
)
struct reg* find_register_by_name ( const struct target_desc tdesc,
const char *  name 
) [read]

Definition at line 241 of file regcache.c.

References fatal(), target_desc::num_registers, and target_desc::reg_defs.

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

Definition at line 265 of file regcache.c.

References target_desc::reg_defs.

int find_regno ( const struct target_desc tdesc,
const char *  name 
)
void free_register_cache ( struct regcache regcache)
static void free_register_cache_thread ( struct thread_info thread) [static]
static void free_register_cache_thread_one ( struct inferior_list_entry entry) [static]

Definition at line 288 of file regcache.c.

References free_register_cache_thread().

Referenced by regcache_release().

struct regcache* get_thread_regcache ( struct thread_info thread,
int  fetch 
) [read]
struct regcache* init_register_cache ( struct regcache regcache,
const struct target_desc tdesc,
unsigned char *  regbuf 
) [read]
struct regcache* new_register_cache ( const struct target_desc tdesc) [read]
void regcache_cpy ( struct regcache dst,
struct regcache src 
)
void regcache_invalidate ( void  )
static int regcache_invalidate_one ( struct inferior_list_entry entry,
void *  pid_p 
) [static]

Definition at line 90 of file regcache.c.

References inferior_list_entry::id, ptid_get_pid(), and regcache_invalidate_thread().

Referenced by regcache_invalidate().

void regcache_invalidate_thread ( struct thread_info thread)
CORE_ADDR regcache_read_pc ( struct regcache regcache)

Definition at line 435 of file regcache.c.

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

Referenced by traceframe_get_pc().

void regcache_release ( void  )
void regcache_write_pc ( struct regcache regcache,
CORE_ADDR  pc 
)
int register_cache_size ( const struct target_desc tdesc)

Definition at line 304 of file regcache.c.

References target_desc::registers_size.

Referenced by do_action_at_tracepoint().

static unsigned char* register_data ( struct regcache regcache,
int  n,
int  fetch 
) [static]
int register_size ( const struct target_desc tdesc,
int  n 
)
void registers_from_string ( struct regcache regcache,
char *  buf 
)
void registers_to_string ( struct regcache regcache,
char *  buf 
)
void supply_regblock ( struct regcache regcache,
const void *  buf 
)
void supply_register ( struct regcache regcache,
int  n,
const void *  buf 
)
void supply_register_by_name ( struct regcache regcache,
const char *  name,
const void *  buf 
)
void supply_register_zeroed ( struct regcache regcache,
int  n 
)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines