GDB (xrefs)
Classes | Defines | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/expression.h File Reference
#include "symtab.h"
#include "doublest.h"
#include "std-operator.def"
#include "ada-operator.def"

Go to the source code of this file.

Classes

union  exp_element
struct  expression

Defines

#define OP(name)   name ,
#define EXP_ELEM_TO_BYTES(elements)   ((elements) * sizeof (union exp_element))
#define BYTES_TO_EXP_ELEM(bytes)   (((bytes) + sizeof (union exp_element) - 1) / sizeof (union exp_element))

Enumerations

enum  exp_opcode
enum  noside { EVAL_NORMAL, EVAL_SKIP, EVAL_AVOID_SIDE_EFFECTS }

Functions

 OP (BINOP_ADD) OP(BINOP_SUB) OP(BINOP_MUL) OP(BINOP_DIV) OP(BINOP_REM) OP(BINOP_MOD) OP(BINOP_LSH) OP(BINOP_RSH) OP(BINOP_LOGICAL_AND) OP(BINOP_LOGICAL_OR) OP(BINOP_BITWISE_AND) OP(BINOP_BITWISE_IOR) OP(BINOP_BITWISE_XOR) OP(BINOP_EQUAL) OP(BINOP_NOTEQUAL) OP(BINOP_LESS) OP(BINOP_GTR) OP(BINOP_LEQ) OP(BINOP_GEQ) OP(BINOP_REPEAT) OP(BINOP_ASSIGN) OP(BINOP_COMMA) OP(BINOP_SUBSCRIPT) OP(BINOP_EXP) OP(BINOP_MIN) OP(BINOP_MAX) OP(BINOP_IN) OP(TERNOP_COND) OP(UNOP_NEG) OP(UNOP_LOGICAL_NOT) OP(UNOP_COMPLEMENT) OP(UNOP_IND) OP(UNOP_ADDR) OP(UNOP_PREINCREMENT) OP(UNOP_POSTINCREMENT) OP(UNOP_PREDECREMENT) OP(UNOP_POSTDECREMENT) OP(UNOP_SIZEOF) OP(UNOP_PLUS) OP(UNOP_CAP) OP(OP_BOOL) OP(OP_M2_STRING) OP_UNUSED_LAST
struct expressionparse_expression (const char *)
struct typeparse_expression_for_completion (const char *, char **, enum type_code *)
struct expressionparse_exp_1 (const char **, CORE_ADDR pc, const struct block *, int)
struct valueevaluate_subexp_standard (struct type *, struct expression *, int *, enum noside)
void print_expression (struct expression *, struct ui_file *)
char * op_name (struct expression *exp, enum exp_opcode opcode)
char * op_string (enum exp_opcode)
void dump_raw_expression (struct expression *, struct ui_file *, char *)
void dump_prefix_expression (struct expression *, struct ui_file *)

Variables

int parse_completion
struct blockinnermost_block

Define Documentation

#define BYTES_TO_EXP_ELEM (   bytes)    (((bytes) + sizeof (union exp_element) - 1) / sizeof (union exp_element))
#define EXP_ELEM_TO_BYTES (   elements)    ((elements) * sizeof (union exp_element))
#define OP (   name)    name ,

Definition at line 45 of file expression.h.


Enumeration Type Documentation

enum exp_opcode

Definition at line 43 of file expression.h.

enum noside
Enumerator:
EVAL_NORMAL 
EVAL_SKIP 
EVAL_AVOID_SIDE_EFFECTS 

Definition at line 119 of file expression.h.


Function Documentation

void dump_prefix_expression ( struct expression ,
struct ui_file  
)
void dump_raw_expression ( struct expression ,
struct ui_file ,
char *   
)
struct value* evaluate_subexp_standard ( struct type ,
struct expression ,
int ,
enum  noside 
) [read]
exp_opcode::OP ( BINOP_ADD  )
char* op_name ( struct expression exp,
enum exp_opcode  opcode 
)
char* op_string ( enum  exp_opcode)
struct expression* parse_exp_1 ( const char **  ,
CORE_ADDR  pc,
const struct block ,
int   
) [read]
struct expression* parse_expression ( const char *  ) [read]
struct type* parse_expression_for_completion ( const char *  ,
char **  ,
enum type_code  
) [read]
void print_expression ( struct expression ,
struct ui_file  
)

Definition at line 38 of file expprint.c.

References PREC_NULL, and print_subexp().

Referenced by append_exp(), and dump_prefix_expression().


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines