GDB (xrefs)
Classes | Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/expression.h File Reference
#include "symtab.h"
#include "std-operator.def"
#include "ada-operator.def"

Go to the source code of this file.

Classes

union  exp_element
 
struct  expression
 

Macros

#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))
 

Typedefs

typedef gdb::unique_xmalloc_ptr< expressionexpression_up
 

Enumerations

enum  exp_opcode { OP, OP }
 
enum  noside { EVAL_NORMAL, EVAL_SKIP, EVAL_AVOID_SIDE_EFFECTS }
 
enum  range_type { BOTH_BOUND_DEFAULT, LOW_BOUND_DEFAULT, HIGH_BOUND_DEFAULT, NONE_BOUND_DEFAULT }
 

Functions

expression_up parse_expression (const char *)
 
expression_up parse_expression_with_language (const char *string, enum language lang)
 
struct typeparse_expression_for_completion (const char *, char **, enum type_code *)
 
expression_up parse_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 *)
 
const char * op_name (struct expression *exp, enum exp_opcode opcode)
 
const char * op_string (enum exp_opcode)
 
void dump_raw_expression (struct expression *, struct ui_file *, const char *)
 
void dump_prefix_expression (struct expression *, struct ui_file *)
 

Variables

int parse_completion
 
const struct blockinnermost_block
 

Macro Definition Documentation

◆ BYTES_TO_EXP_ELEM

#define BYTES_TO_EXP_ELEM (   bytes)    (((bytes) + sizeof (union exp_element) - 1) / sizeof (union exp_element))

◆ EXP_ELEM_TO_BYTES

#define EXP_ELEM_TO_BYTES (   elements)    ((elements) * sizeof (union exp_element))

◆ OP

#define OP (   name)    name ,

Definition at line 44 of file expression.h.

Typedef Documentation

◆ expression_up

Definition at line 87 of file expression.h.

Enumeration Type Documentation

◆ exp_opcode

enum exp_opcode
Enumerator
OP 
OP 

Definition at line 42 of file expression.h.

◆ noside

enum noside
Enumerator
EVAL_NORMAL 
EVAL_SKIP 
EVAL_AVOID_SIDE_EFFECTS 

Definition at line 123 of file expression.h.

◆ range_type

enum range_type
Enumerator
BOTH_BOUND_DEFAULT 
LOW_BOUND_DEFAULT 
HIGH_BOUND_DEFAULT 
NONE_BOUND_DEFAULT 

Definition at line 161 of file expression.h.

Function Documentation

◆ dump_prefix_expression()

void dump_prefix_expression ( struct expression ,
struct ui_file  
)

◆ dump_raw_expression()

void dump_raw_expression ( struct expression ,
struct ui_file ,
const char *   
)

◆ evaluate_subexp_standard()

struct value* evaluate_subexp_standard ( struct type ,
struct expression ,
int *  ,
enum  noside 
)

◆ op_name()

const char* op_name ( struct expression exp,
enum exp_opcode  opcode 
)

◆ op_string()

const char* op_string ( enum  exp_opcode)

◆ parse_exp_1()

expression_up parse_exp_1 ( const char **  ,
CORE_ADDR  pc,
const struct block ,
int   
)

◆ parse_expression()

expression_up parse_expression ( const char *  )

◆ parse_expression_for_completion()

struct type* parse_expression_for_completion ( const char *  ,
char **  ,
enum type_code  
)

◆ parse_expression_with_language()

expression_up parse_expression_with_language ( const char *  string,
enum language  lang 
)

◆ print_expression()

void print_expression ( struct expression ,
struct ui_file  
)

Definition at line 36 of file expprint.c.

References PREC_NULL, and print_subexp().

Referenced by collection_list::append_exp(), dump_prefix_expression(), and print_varobj().

Variable Documentation

◆ innermost_block

const struct block* innermost_block

◆ parse_completion

int parse_completion