GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/sh-linux-tdep.c File Reference
#include "defs.h"
#include "osabi.h"
#include "solib-svr4.h"
#include "symtab.h"
#include "trad-frame.h"
#include "tramp-frame.h"
#include "glibc-tdep.h"
#include "sh-tdep.h"
#include "linux-tdep.h"

Go to the source code of this file.

Defines

#define REGSx16(base)
#define SH_MOVW   0x9305
#define SH_TRAP   0xc300
#define SH_OR_R0_R0   0x200b
#define SH_NR_SIGRETURN   0x0077
#define SH_NR_RT_SIGRETURN   0x00ad

Functions

static void sh_linux_sigtramp_cache (struct frame_info *this_frame, struct trad_frame_cache *this_cache, CORE_ADDR func, int regs_offset)
static void sh_linux_sigreturn_init (const struct tramp_frame *self, struct frame_info *this_frame, struct trad_frame_cache *this_cache, CORE_ADDR func)
static void sh_linux_rt_sigreturn_init (const struct tramp_frame *self, struct frame_info *this_frame, struct trad_frame_cache *this_cache, CORE_ADDR func)
static void sh_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
void _initialize_sh_linux_tdep (void)

Variables

static struct sh_corefile_regmap gregs_table []
static struct sh_corefile_regmap fpregs_table []
static struct tramp_frame sh_linux_sigreturn_tramp_frame
static struct tramp_frame sh_linux_rt_sigreturn_tramp_frame

Define Documentation

#define REGSx16 (   base)
Value:
{(base),      0}, \
  {(base) +  1, 4}, \
  {(base) +  2, 8}, \
  {(base) +  3, 12}, \
  {(base) +  4, 16}, \
  {(base) +  5, 20}, \
  {(base) +  6, 24}, \
  {(base) +  7, 28}, \
  {(base) +  8, 32}, \
  {(base) +  9, 36}, \
  {(base) + 10, 40}, \
  {(base) + 11, 44}, \
  {(base) + 12, 48}, \
  {(base) + 13, 52}, \
  {(base) + 14, 56}, \
  {(base) + 15, 60}

Definition at line 33 of file sh-linux-tdep.c.

#define SH_MOVW   0x9305

Definition at line 141 of file sh-linux-tdep.c.

#define SH_NR_RT_SIGRETURN   0x00ad

Definition at line 147 of file sh-linux-tdep.c.

#define SH_NR_SIGRETURN   0x0077

Definition at line 146 of file sh-linux-tdep.c.

#define SH_OR_R0_R0   0x200b

Definition at line 143 of file sh-linux-tdep.c.

#define SH_TRAP   0xc300

Definition at line 142 of file sh-linux-tdep.c.


Function Documentation

void _initialize_sh_linux_tdep ( void  )
static void sh_linux_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
) [static]
static void sh_linux_rt_sigreturn_init ( const struct tramp_frame self,
struct frame_info this_frame,
struct trad_frame_cache this_cache,
CORE_ADDR  func 
) [static]

Definition at line 126 of file sh-linux-tdep.c.

References sh_linux_sigtramp_cache().

static void sh_linux_sigreturn_init ( const struct tramp_frame self,
struct frame_info this_frame,
struct trad_frame_cache this_cache,
CORE_ADDR  func 
) [static]

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

References sh_linux_sigtramp_cache().

static void sh_linux_sigtramp_cache ( struct frame_info this_frame,
struct trad_frame_cache this_cache,
CORE_ADDR  func,
int  regs_offset 
) [static]

Variable Documentation

struct sh_corefile_regmap fpregs_table[] [static]
Initial value:
{
  REGSx16 (FR0_REGNUM),
  
  {FPSCR_REGNUM, 128},
  {FPUL_REGNUM,  132},
  {-1 , 0}
}

Definition at line 67 of file sh-linux-tdep.c.

struct sh_corefile_regmap gregs_table[] [static]
Initial value:
{
  REGSx16 (R0_REGNUM),
  {PC_REGNUM,   64},
  {PR_REGNUM,   68},
  {SR_REGNUM,   72},
  {GBR_REGNUM,  76},
  {MACH_REGNUM, 80},
  {MACL_REGNUM, 84},
  {-1 , 0}
}

Definition at line 53 of file sh-linux-tdep.c.

Initial value:
 {
  SIGTRAMP_FRAME,
  2,
  {
    { SH_MOVW, 0xffff },
    { SH_TRAP, 0xff00 }, 
    { SH_OR_R0_R0, 0xffff },
    { SH_OR_R0_R0, 0xffff },
    { SH_OR_R0_R0, 0xffff },
    { SH_OR_R0_R0, 0xffff },
    { SH_OR_R0_R0, 0xffff },
    { SH_NR_RT_SIGRETURN, 0xffff },
    { TRAMP_SENTINEL_INSN }
  },
  sh_linux_rt_sigreturn_init
}

Definition at line 166 of file sh-linux-tdep.c.

Initial value:
 {
  SIGTRAMP_FRAME,
  2,
  {
    { SH_MOVW, 0xffff },
    { SH_TRAP, 0xff00 }, 
    { SH_OR_R0_R0, 0xffff },
    { SH_OR_R0_R0, 0xffff },
    { SH_OR_R0_R0, 0xffff },
    { SH_OR_R0_R0, 0xffff },
    { SH_OR_R0_R0, 0xffff },
    { SH_NR_SIGRETURN, 0xffff },
    { TRAMP_SENTINEL_INSN }
  },
  sh_linux_sigreturn_init
}

Definition at line 149 of file sh-linux-tdep.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines