GDB (API)
Defines | Typedefs | Functions | Variables
/home/stan/gdb/src/gdb/ppc-linux-nat.c File Reference
#include "defs.h"
#include "gdb_string.h"
#include "observer.h"
#include "frame.h"
#include "inferior.h"
#include "gdbthread.h"
#include "gdbcore.h"
#include "regcache.h"
#include "gdb_assert.h"
#include "target.h"
#include "linux-nat.h"
#include <stdint.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/user.h>
#include <sys/ioctl.h>
#include "gdb_wait.h"
#include <fcntl.h>
#include <sys/procfs.h>
#include <sys/ptrace.h>
#include "gregset.h"
#include "ppc-tdep.h"
#include "ppc-linux-tdep.h"
#include "elf/common.h"
#include "auxv.h"

Go to the source code of this file.

Defines

#define PT_ORIG_R3   34
#define PT_TRAP   40
#define PPC_FEATURE_CELL   0x00010000
#define PPC_FEATURE_BOOKE   0x00008000
#define PPC_FEATURE_HAS_DFP   0x00000400 /* Decimal Floating Point. */
#define PTRACE_GETVRREGS   18
#define PTRACE_SETVRREGS   19
#define PTRACE_GETVSXREGS   27
#define PTRACE_SETVSXREGS   28
#define PTRACE_GETEVRREGS   20
#define PTRACE_SETEVRREGS   21
#define PTRACE_GET_DEBUGREG   25
#define PTRACE_SET_DEBUGREG   26
#define PTRACE_GETSIGINFO   0x4202
#define PPC_PTRACE_GETHWDBGINFO   0x89
#define PPC_PTRACE_SETHWDEBUG   0x88
#define PPC_PTRACE_DELHWDEBUG   0x87
#define PPC_DEBUG_FEATURE_INSN_BP_RANGE   0x1
#define PPC_DEBUG_FEATURE_INSN_BP_MASK   0x2
#define PPC_DEBUG_FEATURE_DATA_BP_RANGE   0x4
#define PPC_DEBUG_FEATURE_DATA_BP_MASK   0x8
#define PPC_BREAKPOINT_TRIGGER_EXECUTE   0x1
#define PPC_BREAKPOINT_TRIGGER_READ   0x2
#define PPC_BREAKPOINT_TRIGGER_WRITE   0x4
#define PPC_BREAKPOINT_TRIGGER_RW   0x6
#define PPC_BREAKPOINT_MODE_EXACT   0x0
#define PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE   0x1
#define PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE   0x2
#define PPC_BREAKPOINT_MODE_MASK   0x3
#define PPC_BREAKPOINT_CONDITION_NONE   0x0
#define PPC_BREAKPOINT_CONDITION_AND   0x1
#define PPC_BREAKPOINT_CONDITION_EXACT   0x1
#define PPC_BREAKPOINT_CONDITION_OR   0x2
#define PPC_BREAKPOINT_CONDITION_AND_OR   0x3
#define PPC_BREAKPOINT_CONDITION_BE_ALL   0x00ff0000
#define PPC_BREAKPOINT_CONDITION_BE_SHIFT   16
#define PPC_BREAKPOINT_CONDITION_BE(n)   (1<<((n)+PPC_BREAKPOINT_CONDITION_BE_SHIFT))
#define PPC_DEBUG_FEATURE_DATA_BP_DAWR   0x10
#define PTRACE_GETREGS   12
#define PTRACE_SETREGS   13
#define PTRACE_GETFPREGS   14
#define PTRACE_SETFPREGS   15
#define SIZEOF_VRREGS   33*16+4
#define SIZEOF_VSXREGS   32*8
#define PPC_DEBUG_CURRENT_VERSION   1

Typedefs

typedef char gdb_vrregset_t [SIZEOF_VRREGS]
typedef char gdb_vsxregset_t [SIZEOF_VSXREGS]
typedef struct thread_points * thread_points_p

Functions

 DEF_VEC_P (thread_points_p)
 VEC (thread_points_p)
void supply_gregset (struct regcache *regcache, const gdb_gregset_t *gregsetp)
void fill_gregset (const struct regcache *regcache, gdb_gregset_t *gregsetp, int regno)
void supply_fpregset (struct regcache *regcache, const gdb_fpregset_t *fpregsetp)
void fill_fpregset (const struct regcache *regcache, gdb_fpregset_t *fpregsetp, int regno)
void _initialize_ppc_linux_nat (void)

Variables

int have_ptrace_getsetvsxregs = 1
int have_ptrace_getvrregs = 1
int have_ptrace_getsetevrregs = 1
int have_ptrace_getsetregs = 1
int have_ptrace_getsetfpregs = 1

Define Documentation

#define PPC_BREAKPOINT_CONDITION_AND   0x1

Definition at line 170 of file ppc-linux-nat.c.

Definition at line 173 of file ppc-linux-nat.c.

Definition at line 176 of file ppc-linux-nat.c.

#define PPC_BREAKPOINT_CONDITION_BE_ALL   0x00ff0000

Definition at line 174 of file ppc-linux-nat.c.

Definition at line 175 of file ppc-linux-nat.c.

Definition at line 171 of file ppc-linux-nat.c.

Definition at line 169 of file ppc-linux-nat.c.

#define PPC_BREAKPOINT_CONDITION_OR   0x2

Definition at line 172 of file ppc-linux-nat.c.

#define PPC_BREAKPOINT_MODE_EXACT   0x0

Definition at line 163 of file ppc-linux-nat.c.

#define PPC_BREAKPOINT_MODE_MASK   0x3

Definition at line 166 of file ppc-linux-nat.c.

Definition at line 165 of file ppc-linux-nat.c.

Definition at line 164 of file ppc-linux-nat.c.

Definition at line 157 of file ppc-linux-nat.c.

#define PPC_BREAKPOINT_TRIGGER_READ   0x2

Definition at line 158 of file ppc-linux-nat.c.

#define PPC_BREAKPOINT_TRIGGER_RW   0x6

Definition at line 160 of file ppc-linux-nat.c.

#define PPC_BREAKPOINT_TRIGGER_WRITE   0x4

Definition at line 159 of file ppc-linux-nat.c.

#define PPC_DEBUG_CURRENT_VERSION   1
#define PPC_DEBUG_FEATURE_DATA_BP_DAWR   0x10

Definition at line 183 of file ppc-linux-nat.c.

Definition at line 143 of file ppc-linux-nat.c.

Definition at line 142 of file ppc-linux-nat.c.

Definition at line 141 of file ppc-linux-nat.c.

Definition at line 140 of file ppc-linux-nat.c.

#define PPC_FEATURE_BOOKE   0x00008000

Definition at line 67 of file ppc-linux-nat.c.

#define PPC_FEATURE_CELL   0x00010000

Definition at line 64 of file ppc-linux-nat.c.

#define PPC_FEATURE_HAS_DFP   0x00000400 /* Decimal Floating Point. */

Definition at line 70 of file ppc-linux-nat.c.

#define PPC_PTRACE_DELHWDEBUG   0x87

Definition at line 126 of file ppc-linux-nat.c.

#define PPC_PTRACE_GETHWDBGINFO   0x89

Definition at line 124 of file ppc-linux-nat.c.

#define PPC_PTRACE_SETHWDEBUG   0x88

Definition at line 125 of file ppc-linux-nat.c.

#define PT_ORIG_R3   34

Definition at line 53 of file ppc-linux-nat.c.

#define PT_TRAP   40

Definition at line 56 of file ppc-linux-nat.c.

#define PTRACE_GET_DEBUGREG   25

Definition at line 106 of file ppc-linux-nat.c.

#define PTRACE_GETEVRREGS   20

Definition at line 99 of file ppc-linux-nat.c.

#define PTRACE_GETFPREGS   14

Definition at line 195 of file ppc-linux-nat.c.

#define PTRACE_GETREGS   12

Definition at line 189 of file ppc-linux-nat.c.

#define PTRACE_GETSIGINFO   0x4202

Definition at line 112 of file ppc-linux-nat.c.

#define PTRACE_GETVRREGS   18

Definition at line 85 of file ppc-linux-nat.c.

#define PTRACE_GETVSXREGS   27

Definition at line 91 of file ppc-linux-nat.c.

#define PTRACE_SET_DEBUGREG   26

Definition at line 109 of file ppc-linux-nat.c.

#define PTRACE_SETEVRREGS   21

Definition at line 100 of file ppc-linux-nat.c.

#define PTRACE_SETFPREGS   15

Definition at line 198 of file ppc-linux-nat.c.

#define PTRACE_SETREGS   13

Definition at line 192 of file ppc-linux-nat.c.

#define PTRACE_SETVRREGS   19

Definition at line 86 of file ppc-linux-nat.c.

#define PTRACE_SETVSXREGS   28

Definition at line 92 of file ppc-linux-nat.c.

#define SIZEOF_VRREGS   33*16+4

Definition at line 228 of file ppc-linux-nat.c.

#define SIZEOF_VSXREGS   32*8

Definition at line 264 of file ppc-linux-nat.c.


Typedef Documentation

Definition at line 230 of file ppc-linux-nat.c.

Definition at line 266 of file ppc-linux-nat.c.

typedef struct thread_points * thread_points_p

Function Documentation

void _initialize_ppc_linux_nat ( void  )

Definition at line 2529 of file ppc-linux-nat.c.

void fill_fpregset ( const struct regcache *  regcache,
gdb_fpregset_t fpregsetp,
int  regno 
)

Definition at line 2385 of file ppc-linux-nat.c.

void fill_gregset ( const struct regcache *  regcache,
gdb_gregset_t gregsetp,
int  regno 
)

Definition at line 2365 of file ppc-linux-nat.c.

void supply_fpregset ( struct regcache *  regcache,
const gdb_fpregset_t fpregsetp 
)

Definition at line 2376 of file ppc-linux-nat.c.

void supply_gregset ( struct regcache *  regcache,
const gdb_gregset_t gregsetp 
)

Definition at line 2357 of file ppc-linux-nat.c.

Definition at line 1404 of file ppc-linux-nat.c.


Variable Documentation

Definition at line 309 of file ppc-linux-nat.c.

Definition at line 321 of file ppc-linux-nat.c.

Definition at line 315 of file ppc-linux-nat.c.

Definition at line 297 of file ppc-linux-nat.c.

Definition at line 303 of file ppc-linux-nat.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines