GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
ax-general.c File Reference
#include "defs.h"
#include "ax.h"
#include "gdbarch.h"
#include "value.h"
#include "user-regs.h"
#include "gdbsupport/ax.def"

Go to the source code of this file.

Classes

struct  aop_map
 

Macros

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

Functions

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)
 
void ax_raw_byte (struct agent_expr *x, gdb_byte byte)
 
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

static struct aop_map aop_map []
 

Macro Definition Documentation

◆ DEFOP

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

Function Documentation

◆ append_const()

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

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

References agent_expr::buf.

Referenced by ax_const_l(), and ax_pick().

◆ ax_const_d()

void ax_const_d ( struct agent_expr * x,
LONGEST d )

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

◆ ax_const_l()

void ax_const_l ( struct agent_expr * x,
LONGEST l )

◆ ax_ext()

void ax_ext ( struct agent_expr * x,
int n )

◆ ax_goto()

int ax_goto ( struct agent_expr * x,
enum agent_op op )

◆ ax_label()

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

◆ ax_pick()

void ax_pick ( struct agent_expr * x,
int depth )

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

References append_const(), and ax_simple().

Referenced by dwarf2_compile_expr_to_ax().

◆ ax_print()

void ax_print ( struct ui_file * f,
struct agent_expr * x )

◆ ax_raw_byte()

void ax_raw_byte ( struct agent_expr * x,
gdb_byte byte )

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

References agent_expr::buf.

Referenced by ax_simple(), and gen_printf().

◆ ax_reg()

void ax_reg ( struct agent_expr * x,
int reg )

◆ ax_reg_mask()

void ax_reg_mask ( struct agent_expr * ax,
int reg )

◆ ax_reqs()

void ax_reqs ( struct agent_expr * ax)

◆ ax_simple()

void ax_simple ( struct agent_expr * x,
enum agent_op op )

◆ ax_string()

void ax_string ( struct agent_expr * x,
const char * str,
int slen )

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

References agent_expr::buf.

Referenced by gen_printf().

◆ ax_trace_quick()

void ax_trace_quick ( struct agent_expr * x,
int n )

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

References agent_expr::buf.

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

◆ ax_tsv()

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

◆ ax_zero_ext()

void ax_zero_ext ( struct agent_expr * x,
int n )

◆ generic_ext()

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

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

References agent_expr::buf.

Referenced by ax_ext(), and ax_zero_ext().

◆ read_const()

static LONGEST read_const ( struct agent_expr * x,
int o,
int n )
static

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

References agent_expr::buf.

Referenced by ax_print(), and ax_reqs().

Variable Documentation

◆ aop_map

struct aop_map aop_map[]
static
Initial value:
=
{
{0, 0, 0, 0, 0}
#define DEFOP(NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED, VALUE) \
}

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