GDB (xrefs)
Classes | Macros | Functions | Variables
/tmp/gdb-7.10/gdb/m68klinux-tdep.c File Reference
#include "defs.h"
#include "gdbcore.h"
#include "doublest.h"
#include "floatformat.h"
#include "frame.h"
#include "target.h"
#include "gdbtypes.h"
#include "osabi.h"
#include "regcache.h"
#include "objfiles.h"
#include "symtab.h"
#include "m68k-tdep.h"
#include "trad-frame.h"
#include "frame-unwind.h"
#include "glibc-tdep.h"
#include "solib-svr4.h"
#include "auxv.h"
#include "observer.h"
#include "elf/common.h"
#include "linux-tdep.h"
#include "regset.h"

Go to the source code of this file.

Classes

struct  m68k_linux_sigtramp_info
 

Macros

#define M68K_LINUX_JB_ELEMENT_SIZE   4
 
#define M68K_LINUX_JB_PC   7
 
#define IS_SIGTRAMP(insn1, insn2)
 
#define IS_RT_SIGTRAMP(insn1, insn2)
 
#define M68K_LINUX_GREGS_SIZE   (20 * 4)
 
#define M68K_LINUX_FPREGS_SIZE   (27 * 4)
 

Functions

static int m68k_linux_pc_in_sigtramp (struct frame_info *this_frame)
 
static void m68k_linux_inferior_created (struct target_ops *objfile, int from_tty)
 
static struct m68k_linux_sigtramp_info m68k_linux_get_sigtramp_info (struct frame_info *this_frame)
 
static struct trad_frame_cachem68k_linux_sigtramp_frame_cache (struct frame_info *this_frame, void **this_cache)
 
static void m68k_linux_sigtramp_frame_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
 
static struct valuem68k_linux_sigtramp_frame_prev_register (struct frame_info *this_frame, void **this_cache, int regnum)
 
static int m68k_linux_sigtramp_frame_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)
 
static void m68k_linux_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
 
static void m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_m68k_linux_tdep (void)
 

Variables

static int m68k_linux_sigcontext_reg_offset [M68K_NUM_REGS]
 
static int m68k_uclinux_sigcontext_reg_offset [M68K_NUM_REGS]
 
static int m68k_linux_ucontext_reg_offset [M68K_NUM_REGS]
 
static int target_is_uclinux
 
static const struct frame_unwind m68k_linux_sigtramp_frame_unwind
 
static const struct regcache_map_entry m68k_linux_gregmap []
 
static const struct regcache_map_entry m68k_linux_fpregmap []
 
static const struct regset m68k_linux_gregset
 
static const struct regset m68k_linux_fpregset
 
initialize_file_ftype _initialize_m68k_linux_tdep
 

Macro Definition Documentation

#define IS_RT_SIGTRAMP (   insn1,
  insn2 
)
Value:
(/* movel #173,d0; trap #0 */ \
(insn1 == 0x203c0000 && insn2 == 0x00ad4e40) \
/* moveq #82,d0; notb d0; trap #0 */ \
|| (insn1 == 0x70524600 && (insn2 >> 16) == 0x4e40))

Definition at line 55 of file m68klinux-tdep.c.

Referenced by m68k_linux_pc_in_sigtramp().

#define IS_SIGTRAMP (   insn1,
  insn2 
)
Value:
(/* addaw #20,sp; moveq #119,d0; trap #0 */ \
(insn1 == 0xdefc0014 && insn2 == 0x70774e40) \
/* moveq #119,d0; trap #0 */ \
|| insn1 == 0x70774e40)

Definition at line 49 of file m68klinux-tdep.c.

Referenced by m68k_linux_pc_in_sigtramp().

#define M68K_LINUX_FPREGS_SIZE   (27 * 4)

Definition at line 356 of file m68klinux-tdep.c.

Referenced by m68k_linux_iterate_over_regset_sections().

#define M68K_LINUX_GREGS_SIZE   (20 * 4)

Definition at line 345 of file m68klinux-tdep.c.

Referenced by m68k_linux_iterate_over_regset_sections().

#define M68K_LINUX_JB_ELEMENT_SIZE   4

Definition at line 44 of file m68klinux-tdep.c.

Referenced by m68k_linux_init_abi().

#define M68K_LINUX_JB_PC   7

Definition at line 45 of file m68klinux-tdep.c.

Referenced by m68k_linux_init_abi().

Function Documentation

void _initialize_m68k_linux_tdep ( void  )
static struct m68k_linux_sigtramp_info m68k_linux_get_sigtramp_info ( struct frame_info this_frame)
static
static void m68k_linux_inferior_created ( struct target_ops objfile,
int  from_tty 
)
static

Definition at line 216 of file m68klinux-tdep.c.

References target_is_uclinux.

Referenced by _initialize_m68k_linux_tdep().

static void m68k_linux_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
)
static
static void m68k_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 375 of file m68klinux-tdep.c.

References M68K_LINUX_FPREGS_SIZE, and M68K_LINUX_GREGS_SIZE.

Referenced by m68k_linux_init_abi().

static int m68k_linux_pc_in_sigtramp ( struct frame_info this_frame)
static
static struct trad_frame_cache* m68k_linux_sigtramp_frame_cache ( struct frame_info this_frame,
void **  this_cache 
)
static
static struct value* m68k_linux_sigtramp_frame_prev_register ( struct frame_info this_frame,
void **  this_cache,
int  regnum 
)
static
static int m68k_linux_sigtramp_frame_sniffer ( const struct frame_unwind self,
struct frame_info this_frame,
void **  this_prologue_cache 
)
static

Definition at line 313 of file m68klinux-tdep.c.

References m68k_linux_pc_in_sigtramp().

static void m68k_linux_sigtramp_frame_this_id ( struct frame_info this_frame,
void **  this_cache,
struct frame_id this_id 
)
static

Definition at line 292 of file m68klinux-tdep.c.

References m68k_linux_sigtramp_frame_cache(), and trad_frame_get_id().

Variable Documentation

initialize_file_ftype _initialize_m68k_linux_tdep
const struct regcache_map_entry m68k_linux_fpregmap[]
static
Initial value:

Definition at line 347 of file m68klinux-tdep.c.

const struct regset m68k_linux_fpregset
static
Initial value:
=
{
}
void regcache_supply_regset(const struct regset *regset, struct regcache *regcache, int regnum, const void *buf, size_t size)
Definition: regcache.c:1149
static const struct regcache_map_entry m68k_linux_fpregmap[]
void regcache_collect_regset(const struct regset *regset, const struct regcache *regcache, int regnum, void *buf, size_t size)
Definition: regcache.c:1162

Definition at line 366 of file m68klinux-tdep.c.

const struct regcache_map_entry m68k_linux_gregmap[]
static
Initial value:

Definition at line 332 of file m68klinux-tdep.c.

const struct regset m68k_linux_gregset
static
Initial value:
=
{
}
static const struct regcache_map_entry m68k_linux_gregmap[]
void regcache_supply_regset(const struct regset *regset, struct regcache *regcache, int regnum, const void *buf, size_t size)
Definition: regcache.c:1149
void regcache_collect_regset(const struct regset *regset, const struct regcache *regcache, int regnum, void *buf, size_t size)
Definition: regcache.c:1162

Definition at line 360 of file m68klinux-tdep.c.

int m68k_linux_sigcontext_reg_offset[M68K_NUM_REGS]
static

Definition at line 100 of file m68klinux-tdep.c.

Referenced by m68k_linux_get_sigtramp_info().

const struct frame_unwind m68k_linux_sigtramp_frame_unwind
static
Initial value:
=
{
NULL,
}
static struct value * m68k_linux_sigtramp_frame_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)
static void m68k_linux_sigtramp_frame_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:180
static int m68k_linux_sigtramp_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)

Definition at line 320 of file m68klinux-tdep.c.

int m68k_linux_ucontext_reg_offset[M68K_NUM_REGS]
static

Definition at line 167 of file m68klinux-tdep.c.

Referenced by m68k_linux_get_sigtramp_info().

int m68k_uclinux_sigcontext_reg_offset[M68K_NUM_REGS]
static

Definition at line 133 of file m68klinux-tdep.c.

Referenced by m68k_linux_get_sigtramp_info().

int target_is_uclinux
static

Definition at line 213 of file m68klinux-tdep.c.

Referenced by m68k_linux_get_sigtramp_info(), and m68k_linux_inferior_created().