GDB (xrefs)
Classes | Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-7.10/gdb/ax.h File Reference
#include "doublest.h"
#include "vec.h"
#include "ax.def"

Go to the source code of this file.

Classes

union  agent_val
 
struct  agent_expr
 
struct  aop_map
 

Macros

#define DEFOP(NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED, VALUE)   aop_ ## NAME = VALUE,
 
#define ax_float(EXPR)   (ax_simple ((EXPR), aop_float))
 

Typedefs

typedef struct agent_expragent_expr_p
 

Enumerations

enum  agent_flaws {
  agent_flaw_none = 0, agent_flaw_bad_instruction, agent_flaw_incomplete_instruction, agent_flaw_bad_jump,
  agent_flaw_height_mismatch, agent_flaw_hole
}
 
enum  agent_op { aop_last }
 

Functions

 DEF_VEC_P (agent_expr_p)
 
struct agent_exprnew_agent_expr (struct gdbarch *, CORE_ADDR)
 
void free_agent_expr (struct agent_expr *)
 
struct cleanupmake_cleanup_free_agent_expr (struct agent_expr *)
 
void ax_simple (struct agent_expr *EXPR, enum agent_op OP)
 
void ax_pick (struct agent_expr *EXPR, int DEPTH)
 
void ax_ext (struct agent_expr *EXPR, int N)
 
void ax_zero_ext (struct agent_expr *EXPR, int N)
 
void ax_trace_quick (struct agent_expr *EXPR, int N)
 
int ax_goto (struct agent_expr *EXPR, enum agent_op OP)
 
void ax_label (struct agent_expr *EXPR, int patch, int target)
 
void ax_const_l (struct agent_expr *EXPR, LONGEST l)
 
void ax_const_d (struct agent_expr *EXPR, LONGEST d)
 
void ax_reg (struct agent_expr *EXPR, int REG)
 
void ax_reg_mask (struct agent_expr *ax, int reg)
 
void ax_tsv (struct agent_expr *expr, 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 *EXPR)
 
void ax_reqs (struct agent_expr *ax)
 

Variables

struct aop_map aop_map []
 

Macro Definition Documentation

#define ax_float (   EXPR)    (ax_simple ((EXPR), aop_float))

Definition at line 201 of file ax.h.

#define DEFOP (   NAME,
  SIZE,
  DATA_SIZE,
  CONSUMED,
  PRODUCED,
  VALUE 
)    aop_ ## NAME = VALUE,

Definition at line 175 of file ax.h.

Typedef Documentation

typedef struct agent_expr* agent_expr_p

Definition at line 166 of file ax.h.

Enumeration Type Documentation

Enumerator
agent_flaw_none 
agent_flaw_bad_instruction 
agent_flaw_incomplete_instruction 
agent_flaw_bad_jump 
agent_flaw_height_mismatch 
agent_flaw_hole 

Definition at line 56 of file ax.h.

enum agent_op
Enumerator
aop_last 

Definition at line 173 of file ax.h.

Function Documentation

void ax_const_d ( struct agent_expr EXPR,
LONGEST  d 
)

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

References _, and error().

void ax_const_l ( struct agent_expr EXPR,
LONGEST  l 
)
void ax_ext ( struct agent_expr EXPR,
int  N 
)
int ax_goto ( struct agent_expr EXPR,
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 EXPR,
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 EXPR,
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 EXPR 
)
void ax_reg ( struct agent_expr EXPR,
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 EXPR,
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 EXPR,
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 expr,
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 EXPR,
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().

DEF_VEC_P ( agent_expr_p  )
void free_agent_expr ( struct agent_expr )
struct cleanup* make_cleanup_free_agent_expr ( struct agent_expr )
struct agent_expr* new_agent_expr ( struct gdbarch ,
CORE_ADDR   
)

Variable Documentation

struct aop_map aop_map[]

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