GDB (xrefs)
Loading...
Searching...
No Matches
Macros | Functions | Variables
or1k-linux-tdep.c File Reference
#include "defs.h"
#include "or1k-tdep.h"
#include "osabi.h"
#include "glibc-tdep.h"
#include "linux-tdep.h"
#include "solib-svr4.h"
#include "regset.h"
#include "tramp-frame.h"
#include "trad-frame.h"
#include "gdbarch.h"
#include "features/or1k-linux.c"

Go to the source code of this file.

Macros

#define OR1K_RT_SIGRETURN   139
 
#define OR1K_INST_L_ORI_R11_R0_IMM   0xa9600000
 
#define OR1K_INST_L_SYS_1   0x20000001
 
#define OR1K_INST_L_NOP   0x15000000
 
#define SIGFRAME_SIGINFO_SIZE   128
 
#define UCONTEXT_MCONTEXT_OFFSET   20
 

Functions

static void or1k_linux_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
 
static void or1k_linux_sigframe_init (const struct tramp_frame *self, frame_info_ptr this_frame, struct trad_frame_cache *this_cache, CORE_ADDR func)
 
static void or1k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_or1k_linux_tdep ()
 

Variables

static const struct regcache_map_entry or1k_linux_gregmap []
 
static const struct regset or1k_linux_gregset
 
static const struct tramp_frame or1k_linux_sigframe
 

Macro Definition Documentation

◆ OR1K_INST_L_NOP

#define OR1K_INST_L_NOP   0x15000000

Definition at line 73 of file or1k-linux-tdep.c.

◆ OR1K_INST_L_ORI_R11_R0_IMM

#define OR1K_INST_L_ORI_R11_R0_IMM   0xa9600000

Definition at line 71 of file or1k-linux-tdep.c.

◆ OR1K_INST_L_SYS_1

#define OR1K_INST_L_SYS_1   0x20000001

Definition at line 72 of file or1k-linux-tdep.c.

◆ OR1K_RT_SIGRETURN

#define OR1K_RT_SIGRETURN   139

Definition at line 69 of file or1k-linux-tdep.c.

◆ SIGFRAME_SIGINFO_SIZE

#define SIGFRAME_SIGINFO_SIZE   128

Definition at line 114 of file or1k-linux-tdep.c.

Referenced by or1k_linux_sigframe_init().

◆ UCONTEXT_MCONTEXT_OFFSET

#define UCONTEXT_MCONTEXT_OFFSET   20

Definition at line 115 of file or1k-linux-tdep.c.

Referenced by or1k_linux_sigframe_init().

Function Documentation

◆ _initialize_or1k_linux_tdep()

void _initialize_or1k_linux_tdep ( )

◆ or1k_linux_init_abi()

static void or1k_linux_init_abi ( struct gdbarch_info info,
struct gdbarch * gdbarch )
static

◆ or1k_linux_iterate_over_regset_sections()

static void or1k_linux_iterate_over_regset_sections ( struct gdbarch * gdbarch,
iterate_over_regset_sections_cb * cb,
void * cb_data,
const struct regcache * regcache )
static

Definition at line 54 of file or1k-linux-tdep.c.

References or1k_linux_gregset.

Referenced by or1k_linux_init_abi().

◆ or1k_linux_sigframe_init()

static void or1k_linux_sigframe_init ( const struct tramp_frame * self,
frame_info_ptr this_frame,
struct trad_frame_cache * this_cache,
CORE_ADDR func )
static

Variable Documentation

◆ or1k_linux_gregmap

const struct regcache_map_entry or1k_linux_gregmap[]
static
Initial value:
=
{
{ 32, OR1K_ZERO_REGNUM, 4 },
{ 1, OR1K_NPC_REGNUM, 4 },
{ 0 }
}
#define OR1K_NPC_REGNUM
Definition or1k-tdep.h:42
#define OR1K_ZERO_REGNUM
Definition or1k-tdep.h:33

Definition at line 37 of file or1k-linux-tdep.c.

◆ or1k_linux_gregset

const struct regset or1k_linux_gregset
static
Initial value:
=
{
}
static const struct regcache_map_entry or1k_linux_gregmap[]
void regcache_collect_regset(const struct regset *regset, const struct regcache *regcache, int regnum, void *buf, size_t size)
Definition regcache.c:1273
void regcache_supply_regset(const struct regset *regset, struct regcache *regcache, int regnum, const void *buf, size_t size)
Definition regcache.c:1251

Definition at line 46 of file or1k-linux-tdep.c.

Referenced by or1k_linux_iterate_over_regset_sections().

◆ or1k_linux_sigframe

const struct tramp_frame or1k_linux_sigframe
static
Initial value:
= {
4,
{
{ OR1K_INST_L_SYS_1, ULONGEST_MAX },
{ OR1K_INST_L_NOP, ULONGEST_MAX },
},
NULL
}
@ SIGTRAMP_FRAME
Definition frame.h:198
#define OR1K_RT_SIGRETURN
#define OR1K_INST_L_NOP
static void or1k_linux_sigframe_init(const struct tramp_frame *self, frame_info_ptr this_frame, struct trad_frame_cache *this_cache, CORE_ADDR func)
#define OR1K_INST_L_SYS_1
#define OR1K_INST_L_ORI_R11_R0_IMM
#define TRAMP_SENTINEL_INSN
Definition tramp-frame.h:44

Definition at line 75 of file or1k-linux-tdep.c.

Referenced by or1k_linux_init_abi().