GDB (xrefs)
Loading...
Searching...
No Matches
Macros | Functions | Variables
i386-gnu-tdep.c File Reference
#include "defs.h"
#include "gdbcore.h"
#include "osabi.h"
#include "solib-svr4.h"
#include "i386-tdep.h"

Go to the source code of this file.

Macros

#define GNU_SIGTRAMP_LEN   (sizeof gnu_sigtramp_code)
 
#define GNU_SIGTRAMP_TAIL   5 /* length of tail after RA */
 
#define I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET   20
 

Functions

static CORE_ADDR i386_gnu_sigtramp_start (frame_info_ptr this_frame)
 
static int i386_gnu_sigtramp_p (frame_info_ptr this_frame)
 
static CORE_ADDR i386_gnu_sigcontext_addr (frame_info_ptr this_frame)
 
static void i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_i386gnu_tdep ()
 

Variables

static const gdb_byte gnu_sigtramp_code []
 
static int i386_gnu_sc_reg_offset []
 
static int i386gnu_gregset_reg_offset []
 

Macro Definition Documentation

◆ GNU_SIGTRAMP_LEN

#define GNU_SIGTRAMP_LEN   (sizeof gnu_sigtramp_code)

Definition at line 52 of file i386-gnu-tdep.c.

Referenced by i386_gnu_sigtramp_start().

◆ GNU_SIGTRAMP_TAIL

#define GNU_SIGTRAMP_TAIL   5 /* length of tail after RA */

Definition at line 53 of file i386-gnu-tdep.c.

Referenced by i386_gnu_sigtramp_start().

◆ I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET

#define I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET   20

Definition at line 94 of file i386-gnu-tdep.c.

Referenced by i386_gnu_sigcontext_addr().

Function Documentation

◆ _initialize_i386gnu_tdep()

void _initialize_i386gnu_tdep ( )

Definition at line 198 of file i386-gnu-tdep.c.

References GDB_OSABI_HURD, gdbarch_register_osabi(), and i386gnu_init_abi().

◆ i386_gnu_sigcontext_addr()

static CORE_ADDR i386_gnu_sigcontext_addr ( frame_info_ptr this_frame)
static

◆ i386_gnu_sigtramp_p()

static int i386_gnu_sigtramp_p ( frame_info_ptr this_frame)
static

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

References find_pc_partial_function(), get_frame_pc(), i386_gnu_sigtramp_start(), and name.

Referenced by i386gnu_init_abi().

◆ i386_gnu_sigtramp_start()

static CORE_ADDR i386_gnu_sigtramp_start ( frame_info_ptr this_frame)
static

◆ i386gnu_init_abi()

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

Variable Documentation

◆ gnu_sigtramp_code

const gdb_byte gnu_sigtramp_code[]
static
Initial value:
=
{
0xb8, 0xe7, 0xff, 0xff, 0xff,
0x9a, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00,
0x89, 0x01,
0x89, 0xdc,
0xff, 0xd2,
0x83, 0xc4, 0x0c,
0xc3,
0xf4,
}

Definition at line 34 of file i386-gnu-tdep.c.

Referenced by i386_gnu_sigtramp_start().

◆ i386_gnu_sc_reg_offset

int i386_gnu_sc_reg_offset[]
static
Initial value:
=
{
11 * 4,
10 * 4,
9 * 4,
8 * 4,
7 * 4,
6 * 4,
5 * 4,
4 * 4,
12 * 4,
14 * 4,
13 * 4,
16 * 4,
3 * 4,
2 * 4,
1 * 4,
0 * 4
}

Definition at line 132 of file i386-gnu-tdep.c.

Referenced by i386gnu_init_abi().

◆ i386gnu_gregset_reg_offset

int i386gnu_gregset_reg_offset[]
static
Initial value:
=
{
11 * 4,
10 * 4,
9 * 4,
8 * 4,
17 * 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 153 of file i386-gnu-tdep.c.

Referenced by i386gnu_init_abi().