GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/ax-general.c File Reference
#include "defs.h"
#include "ax.h"
#include "value.h"
#include "gdb_string.h"
#include "user-regs.h"
#include "ax.def"

Go to the source code of this file.

Defines

#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 []

Define 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 107 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 281 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 218 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 233 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 152 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 343 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 198 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 322 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 190 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 77 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 164 of file ax-general.c.

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

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) [read]
struct agent_expr* new_agent_expr ( struct gdbarch gdbarch,
CORE_ADDR  scope 
) [read]
static LONGEST read_const ( struct agent_expr x,
int  o,
int  n 
) [static]

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

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

Referenced by ax_print(), and ax_reqs().


Variable Documentation

struct aop_map aop_map[]

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines