GDB (xrefs)

Functions | Variables
/tmp/gdb-8.1/gdb/i386-nbsd-tdep.c File Reference
`#include "defs.h"`
`#include "arch-utils.h"`
`#include "frame.h"`
`#include "gdbcore.h"`
`#include "regcache.h"`
`#include "regset.h"`
`#include "osabi.h"`
`#include "symtab.h"`
`#include "trad-frame.h"`
`#include "tramp-frame.h"`
`#include "i386-tdep.h"`
`#include "i387-tdep.h"`
`#include "nbsd-tdep.h"`
`#include "solib-svr4.h"`

Go to the source code of this file.

## Functions
static void | i386nbsd_sigtramp_cache_init (const struct tramp_frame *, struct frame_info *, struct trad_frame_cache *, CORE_ADDR)
static void | i386nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
static void | i386nbsdelf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
void | _initialize_i386nbsd_tdep (void)

## Variables
static int | i386nbsd_r_reg_offset []
int | i386nbsd_sc_reg_offset []
int | i386nbsd_mc_reg_offset []
static const struct tramp_frame | i386nbsd_sigtramp_sc16
static const struct tramp_frame | i386nbsd_sigtramp_sc2
static const struct tramp_frame | i386nbsd_sigtramp_si2
static const struct tramp_frame | i386nbsd_sigtramp_si31
static const struct tramp_frame | i386nbsd_sigtramp_si4

## Function Documentation

## ◆ _initialize_i386nbsd_tdep()

void _initialize_i386nbsd_tdep | ( | void |  | ) |

Definition at line 320 of file i386-nbsd-tdep.c.

References GDB_OSABI_NETBSD, gdbarch_register_osabi(), and i386nbsdelf_init_abi().

## ◆ i386nbsd_init_abi()

static void i386nbsd_init_abi | ( | struct gdbarch_info | info,
|  | struct gdbarch * | gdbarch
| ) |  |
| static

Definition at line 268 of file i386-nbsd-tdep.c.

References gdbarch_tdep(), gdbarch_tdep::gregset_num_regs, gdbarch_tdep::gregset_reg_offset, i386bsd_init_abi(), i386nbsd_r_reg_offset, i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2, i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31, i386nbsd_sigtramp_si4, reg_struct_return, gdbarch_tdep::sc_num_regs, gdbarch_tdep::sc_reg_offset, gdbarch_tdep::sigcontext_addr, gdbarch_tdep::sigtramp_end, gdbarch_tdep::sigtramp_p, gdbarch_tdep::sigtramp_start, gdbarch_tdep::sizeof_gregset, gdbarch_tdep::struct_return, and tramp_frame_prepend_unwinder().

Referenced by i386nbsdelf_init_abi().

## ◆ i386nbsd_sigtramp_cache_init()

static void i386nbsd_sigtramp_cache_init | ( | const struct tramp_frame * | self,
|  | struct frame_info * | this_frame,
|  | struct trad_frame_cache * | this_cache,
|  | CORE_ADDR | func
| ) |  |
| static

Definition at line 226 of file i386-nbsd-tdep.c.

References gdbarch::byte_order, frame_id_build(), func, gdbarch_byte_order(), get_frame_arch(), get_frame_register_unsigned(), I386_ESP_REGNUM, i386nbsd_mc_reg_offset, i386nbsd_sc_reg_offset, i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2, gdbarch::num_regs, read_memory_unsigned_integer(), reg_offset, trad_frame_set_id(), and trad_frame_set_reg_addr().

## ◆ i386nbsdelf_init_abi()

static void i386nbsdelf_init_abi | ( | struct gdbarch_info | info,
|  | struct gdbarch * | gdbarch
| ) |  |
| static

Definition at line 301 of file i386-nbsd-tdep.c.

References gdbarch_tdep(), i386_elf_init_abi(), i386nbsd_init_abi(), pcc_struct_return, set_solib_svr4_fetch_link_map_offsets(), gdbarch_tdep::struct_return, and svr4_ilp32_fetch_link_map_offsets().

Referenced by _initialize_i386nbsd_tdep().

## Variable Documentation

## ◆ i386nbsd_mc_reg_offset

int i386nbsd_mc_reg_offset[]

Initial value:
=
{
11 * 4,
10 * 4,
9 * 4,
8 * 4,
7 * 4,
6 * 4,
5 * 4,
4 * 4,
14 * 4,
16 * 4,
15 * 4,
18 * 4,
3 * 4,
2 * 4,
1 * 4,
0 * 4
}

Definition at line 79 of file i386-nbsd-tdep.c.

Referenced by i386nbsd_sigtramp_cache_init().

## ◆ i386nbsd_r_reg_offset

int i386nbsd_r_reg_offset[]
| static

Initial value:
=
{
0 * 4,
1 * 4,
2 * 4,
3 * 4,
4 * 4,
5 * 4,
6 * 4,
7 * 4,
8 * 4,
9 * 4,
10 * 4,
11 * 4,
12 * 4,
13 * 4,
14 * 4,
15 * 4
}

Definition at line 37 of file i386-nbsd-tdep.c.

Referenced by i386nbsd_init_abi().

## ◆ i386nbsd_sc_reg_offset

int i386nbsd_sc_reg_offset[]

Initial value:
=
{
10 * 4,
9 * 4,
8 * 4,
7 * 4,
14 * 4,
6 * 4,
5 * 4,
4 * 4,
11 * 4,
13 * 4,
12 * 4,
15 * 4,
3 * 4,
2 * 4,
1 * 4,
0 * 4
}

Definition at line 58 of file i386-nbsd-tdep.c.

Referenced by i386nbsd_sigtramp_cache_init().

## ◆ i386nbsd_sigtramp_sc16

const struct tramp_frame i386nbsd_sigtramp_sc16
| static

Initial value:
=
{
SIGTRAMP_FRAME,
1,
{
{ 0x8d, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x10, -1 },
{ 0x50, -1 },
{ 0x50, -1 },
{ 0xb8, -1 }, { 0x27, -1 }, {0x01, -1 }, {0x00, -1 }, {0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1},
{ 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1},
{ TRAMP_SENTINEL_INSN, -1 }
},
i386nbsd_sigtramp_cache_init
}
TRAMP_SENTINEL_INSN
#define TRAMP_SENTINEL_INSN
Definition: tramp-frame.h:44
SIGTRAMP_FRAME
Definition: frame.h:255
i386nbsd_sigtramp_cache_init
static void i386nbsd_sigtramp_cache_init(const struct tramp_frame *, struct frame_info *, struct trad_frame_cache *, CORE_ADDR)
Definition: i386-nbsd-tdep.c:226

Definition at line 104 of file i386-nbsd-tdep.c.

Referenced by i386nbsd_init_abi(), and i386nbsd_sigtramp_cache_init().

## ◆ i386nbsd_sigtramp_sc2

const struct tramp_frame i386nbsd_sigtramp_sc2
| static

Initial value:
=
{
SIGTRAMP_FRAME,
1,
{
{ 0x8d, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x0c, -1 },
{ 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
{ 0xb8, -1 }, { 0x27, -1 }, {0x01, -1 }, {0x00, -1 }, {0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1},
{ 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
{ 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1},
{ TRAMP_SENTINEL_INSN, -1 }
},
i386nbsd_sigtramp_cache_init
}
TRAMP_SENTINEL_INSN
#define TRAMP_SENTINEL_INSN
Definition: tramp-frame.h:44
SIGTRAMP_FRAME
Definition: frame.h:255
i386nbsd_sigtramp_cache_init
static void i386nbsd_sigtramp_cache_init(const struct tramp_frame *, struct frame_info *, struct trad_frame_cache *, CORE_ADDR)
Definition: i386-nbsd-tdep.c:226

Definition at line 126 of file i386-nbsd-tdep.c.

Referenced by i386nbsd_init_abi(), and i386nbsd_sigtramp_cache_init().

## ◆ i386nbsd_sigtramp_si2

const struct tramp_frame i386nbsd_sigtramp_si2
| static

Initial value:
=
{
SIGTRAMP_FRAME,
1,
{
{ 0x8b, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x08, -1 },
{ 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
{ 0xb8, -1 }, { 0x34, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1 },
{ 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
{ 0xb8, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 }, { 0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1 },
{ TRAMP_SENTINEL_INSN, -1 }
},
i386nbsd_sigtramp_cache_init
}
TRAMP_SENTINEL_INSN
#define TRAMP_SENTINEL_INSN
Definition: tramp-frame.h:44
SIGTRAMP_FRAME
Definition: frame.h:255
i386nbsd_sigtramp_cache_init
static void i386nbsd_sigtramp_cache_init(const struct tramp_frame *, struct frame_info *, struct trad_frame_cache *, CORE_ADDR)
Definition: i386-nbsd-tdep.c:226

Definition at line 150 of file i386-nbsd-tdep.c.

Referenced by i386nbsd_init_abi().

## ◆ i386nbsd_sigtramp_si31

const struct tramp_frame i386nbsd_sigtramp_si31
| static

Initial value:
=
{
SIGTRAMP_FRAME,
1,
{
{ 0x8d, -1 }, { 0x84, -1 }, { 0x24, -1 },
{ 0x8c, -1 }, { 0x00, -1 }, { 0x00, -1 }, { 0x00, -1 },
{ 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
{ 0xb8, -1 }, { 0x34, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1},
{ 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
{ 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1},
{ TRAMP_SENTINEL_INSN, -1 }
},
i386nbsd_sigtramp_cache_init
}
TRAMP_SENTINEL_INSN
#define TRAMP_SENTINEL_INSN
Definition: tramp-frame.h:44
SIGTRAMP_FRAME
Definition: frame.h:255
i386nbsd_sigtramp_cache_init
static void i386nbsd_sigtramp_cache_init(const struct tramp_frame *, struct frame_info *, struct trad_frame_cache *, CORE_ADDR)
Definition: i386-nbsd-tdep.c:226

Definition at line 174 of file i386-nbsd-tdep.c.

Referenced by i386nbsd_init_abi().

## ◆ i386nbsd_sigtramp_si4

const struct tramp_frame i386nbsd_sigtramp_si4
| static

Initial value:
=
{
SIGTRAMP_FRAME,
1,
{
{ 0x8d, -1 }, { 0x84, -1 }, { 0x24, -1 },
{ 0x8c, -1 }, { 0x00, -1 }, { 0x00, -1 }, { 0x00, -1 },
{ 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
{ 0xb8, -1 }, { 0x34, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1},
{ 0xc7, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
{ 0xff, -1 }, { 0xff, -1 }, { 0xff, -1 }, { 0xff, -1 },
{ 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 },
{ 0xcd, -1 }, { 0x80, -1},
{ TRAMP_SENTINEL_INSN, -1 }
},
i386nbsd_sigtramp_cache_init
}
TRAMP_SENTINEL_INSN
#define TRAMP_SENTINEL_INSN
Definition: tramp-frame.h:44
SIGTRAMP_FRAME
Definition: frame.h:255
i386nbsd_sigtramp_cache_init
static void i386nbsd_sigtramp_cache_init(const struct tramp_frame *, struct frame_info *, struct trad_frame_cache *, CORE_ADDR)
Definition: i386-nbsd-tdep.c:226

Definition at line 199 of file i386-nbsd-tdep.c.

Referenced by i386nbsd_init_abi().