GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/ax-general.c File Reference
#include "defs.h"
#include "ax.h"
#include "value.h"
#include "user-regs.h"
#include "ax.def"

Go to the source code of this file.

Macros

#define DEFOP(NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED, VALUE)   , { # NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED }
 

Functions

static void grow_expr (struct agent_expr *x, int n)
 
static void append_const (struct agent_expr *x, LONGEST val, int n)
 
static LONGEST read_const (struct agent_expr *x, int o, int n)
 
static void generic_ext (struct agent_expr *x, enum agent_op op, int n)
 
struct agent_exprnew_agent_expr (struct gdbarch *gdbarch, CORE_ADDR scope)
 
void free_agent_expr (struct agent_expr *x)
 
static void do_free_agent_expr_cleanup (void *x)
 
struct cleanupmake_cleanup_free_agent_expr (struct agent_expr *x)
 
void ax_simple (struct agent_expr *x, enum agent_op op)
 
void ax_pick (struct agent_expr *x, int depth)
 
void ax_ext (struct agent_expr *x, int n)
 
void ax_zero_ext (struct agent_expr *x, int n)
 
void ax_trace_quick (struct agent_expr *x, int n)
 
int ax_goto (struct agent_expr *x, enum agent_op op)
 
void ax_label (struct agent_expr *x, int patch, int target)
 
void ax_const_l (struct agent_expr *x, LONGEST l)
 
void ax_const_d (struct agent_expr *x, LONGEST d)
 
void ax_reg (struct agent_expr *x, int reg)
 
void ax_tsv (struct agent_expr *x, enum agent_op op, int num)
 
void ax_string (struct agent_expr *x, const char *str, int slen)
 
void ax_print (struct ui_file *f, struct agent_expr *x)
 
void ax_reg_mask (struct agent_expr *ax, int reg)
 
void ax_reqs (struct agent_expr *ax)
 

Variables

struct aop_map aop_map []
 

Macro Definition Documentation

#define DEFOP (   NAME,
  SIZE,
  DATA_SIZE,
  CONSUMED,
  PRODUCED,
  VALUE 
)    , { # NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED }

Function Documentation

static void append_const ( struct agent_expr x,
LONGEST  val,
int  n 
)
static

Definition at line 105 of file ax-general.c.

References agent_expr::buf, grow_expr(), and agent_expr::len.

Referenced by ax_const_l(), and ax_pick().

void ax_const_d ( struct agent_expr x,
LONGEST  d 
)

Definition at line 279 of file ax-general.c.

References _, and error().

void ax_const_l ( struct agent_expr x,
LONGEST  l 
)
void ax_ext ( struct agent_expr x,
int  n 
)
int ax_goto ( struct agent_expr x,
enum agent_op  op 
)

Definition at line 216 of file ax-general.c.

References agent_expr::buf, grow_expr(), and agent_expr::len.

Referenced by dwarf2_compile_expr_to_ax(), and gen_expr().

void ax_label ( struct agent_expr x,
int  patch,
int  target 
)

Definition at line 231 of file ax-general.c.

References _, agent_expr::buf, and error().

Referenced by dwarf2_compile_expr_to_ax(), and gen_expr().

void ax_pick ( struct agent_expr x,
int  depth 
)

Definition at line 150 of file ax-general.c.

References _, append_const(), ax_simple(), and error().

Referenced by dwarf2_compile_expr_to_ax().

void ax_print ( struct ui_file f,
struct agent_expr x 
)
void ax_reg ( struct agent_expr x,
int  reg 
)
void ax_reg_mask ( struct agent_expr ax,
int  reg 
)
void ax_reqs ( struct agent_expr ax)
void ax_simple ( struct agent_expr x,
enum agent_op  op 
)
void ax_string ( struct agent_expr x,
const char *  str,
int  slen 
)

Definition at line 341 of file ax-general.c.

References _, agent_expr::buf, grow_expr(), internal_error(), and agent_expr::len.

Referenced by gen_printf().

void ax_trace_quick ( struct agent_expr x,
int  n 
)

Definition at line 196 of file ax-general.c.

References _, agent_expr::buf, error(), grow_expr(), and agent_expr::len.

Referenced by access_memory(), gen_bitfield_ref(), and gen_fetch().

void ax_tsv ( struct agent_expr x,
enum agent_op  op,
int  num 
)

Definition at line 320 of file ax-general.c.

References _, agent_expr::buf, grow_expr(), internal_error(), and agent_expr::len.

Referenced by gen_expr().

void ax_zero_ext ( struct agent_expr x,
int  n 
)

Definition at line 188 of file ax-general.c.

References generic_ext().

Referenced by access_memory(), dwarf2_compile_expr_to_ax(), gen_bitfield_ref(), and gen_extend().

static void do_free_agent_expr_cleanup ( void *  x)
static

Definition at line 75 of file ax-general.c.

References free_agent_expr().

Referenced by make_cleanup_free_agent_expr().

void free_agent_expr ( struct agent_expr x)
static void generic_ext ( struct agent_expr x,
enum agent_op  op,
int  n 
)
static

Definition at line 162 of file ax-general.c.

References _, agent_expr::buf, error(), grow_expr(), and agent_expr::len.

Referenced by ax_ext(), and ax_zero_ext().

static void grow_expr ( struct agent_expr x,
int  n 
)
static
struct cleanup* make_cleanup_free_agent_expr ( struct agent_expr x)
struct agent_expr* new_agent_expr ( struct gdbarch gdbarch,
CORE_ADDR  scope 
)
static LONGEST read_const ( struct agent_expr x,
int  o,
int  n 
)
static

Definition at line 122 of file ax-general.c.

References _, agent_expr::buf, error(), and agent_expr::len.

Referenced by ax_print(), and ax_reqs().

Variable Documentation

struct aop_map aop_map[]

Definition at line 364 of file ax-general.c.