GDB (API)
Defines | Functions
/home/stan/gdb/src/gdb/ppc64-tdep.c File Reference
#include "defs.h"
#include "frame.h"
#include "gdbcore.h"
#include "ppc-tdep.h"
#include "ppc64-tdep.h"
#include "elf-bfd.h"

Go to the source code of this file.

Defines

#define insn_d(opcd, rts, ra, d)
#define insn_ds(opcd, rts, ra, d, xo)
#define insn_xfx(opcd, rts, spr, xo)
#define MAX(a, b)   ((a) > (b) ? (a) : (b))

Functions

CORE_ADDR ppc64_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
CORE_ADDR ppc64_convert_from_func_ptr_addr (struct gdbarch *gdbarch, CORE_ADDR addr, struct target_ops *targ)
void ppc64_elf_make_msymbol_special (asymbol *sym, struct minimal_symbol *msym)

Define Documentation

#define insn_d (   opcd,
  rts,
  ra,
 
)
Value:
((((opcd) & 0x3f) << 26)                      \
   | (((rts) & 0x1f) << 21)                     \
   | (((ra) & 0x1f) << 16)                      \
   | ((d) & 0xffff))

Definition at line 31 of file ppc64-tdep.c.

#define insn_ds (   opcd,
  rts,
  ra,
  d,
  xo 
)
Value:
((((opcd) & 0x3f) << 26)                      \
   | (((rts) & 0x1f) << 21)                     \
   | (((ra) & 0x1f) << 16)                      \
   | ((d) & 0xfffc)                             \
   | ((xo) & 0x3))

Definition at line 37 of file ppc64-tdep.c.

#define insn_xfx (   opcd,
  rts,
  spr,
  xo 
)
Value:
((((opcd) & 0x3f) << 26)                      \
   | (((rts) & 0x1f) << 21)                     \
   | (((spr) & 0x1f) << 16)                     \
   | (((spr) & 0x3e0) << 6)                     \
   | (((xo) & 0x3ff) << 1))

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

#define MAX (   a,
 
)    ((a) > (b) ? (a) : (b))

Function Documentation

CORE_ADDR ppc64_convert_from_func_ptr_addr ( struct gdbarch *  gdbarch,
CORE_ADDR  addr,
struct target_ops targ 
)

Definition at line 353 of file ppc64-tdep.c.

void ppc64_elf_make_msymbol_special ( asymbol *  sym,
struct minimal_symbol msym 
)

Definition at line 402 of file ppc64-tdep.c.

CORE_ADDR ppc64_skip_trampoline_code ( struct frame_info *  frame,
CORE_ADDR  pc 
)

Definition at line 300 of file ppc64-tdep.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines