GDB (API)
Functions | Variables
/home/stan/gdb/src/gdb/parse.c File Reference
#include "defs.h"
#include <ctype.h>
#include "arch-utils.h"
#include "gdb_string.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "frame.h"
#include "expression.h"
#include "value.h"
#include "command.h"
#include "language.h"
#include "f-lang.h"
#include "parser-defs.h"
#include "gdbcmd.h"
#include "symfile.h"
#include "inferior.h"
#include "doublest.h"
#include "gdb_assert.h"
#include "block.h"
#include "source.h"
#include "objfiles.h"
#include "exceptions.h"
#include "user-regs.h"

Go to the source code of this file.

Functions

void _initialize_parse (void)
void start_arglist (void)
int end_arglist (void)
void initialize_expout (int initial_size, const struct language_defn *lang, struct gdbarch *gdbarch)
void reallocate_expout (void)
void write_exp_elt_opcode (enum exp_opcode expelt)
void write_exp_elt_sym (struct symbol *expelt)
void write_exp_elt_block (const struct block *b)
void write_exp_elt_objfile (struct objfile *objfile)
void write_exp_elt_longcst (LONGEST expelt)
void write_exp_elt_dblcst (DOUBLEST expelt)
void write_exp_elt_decfloatcst (gdb_byte expelt[16])
void write_exp_elt_type (struct type *expelt)
void write_exp_elt_intern (struct internalvar *expelt)
void write_exp_string (struct stoken str)
void write_exp_string_vector (int type, struct stoken_vector *vec)
void write_exp_bitstring (struct stoken str)
void write_exp_msymbol (struct bound_minimal_symbol bound_msym)
void mark_struct_expression (void)
void mark_completion_tag (enum type_code tag, const char *ptr, int length)
void write_dollar_variable (struct stoken str)
const char * find_template_name_end (const char *p)
char * copy_name (struct stoken token)
int prefixify_expression (struct expression *expr)
int length_of_subexp (struct expression *expr, int endpos)
void operator_length (const struct expression *expr, int endpos, int *oplenp, int *argsp)
void operator_length_standard (const struct expression *expr, int endpos, int *oplenp, int *argsp)
struct expressionparse_exp_1 (const char **stringptr, CORE_ADDR pc, const struct block *block, int comma)
struct expressionparse_expression (const char *string)
struct typeparse_expression_for_completion (const char *string, char **name, enum type_code *code)
void null_post_parser (struct expression **exp, int void_context_p)
int parse_float (const char *p, int len, DOUBLEST *d, const char **suffix)
int parse_c_float (struct gdbarch *gdbarch, const char *p, int len, DOUBLEST *d, struct type **t)
void insert_type (enum type_pieces tp)
void push_type (enum type_pieces tp)
void push_type_int (int n)
void insert_type_address_space (char *string)
enum type_pieces pop_type (void)
int pop_type_int (void)
struct type_stackappend_type_stack (struct type_stack *to, struct type_stack *from)
void push_type_stack (struct type_stack *stack)
struct type_stackget_type_stack (void)
void type_stack_cleanup (void *arg)
void push_typelist (VEC(type_ptr)*list)
struct typefollow_types (struct type *follow_type)
void parser_fprintf (FILE *x, const char *y,...)
int operator_check_standard (struct expression *exp, int pos, int(*objfile_func)(struct objfile *objfile, void *data), void *data)
int exp_uses_objfile (struct expression *exp, struct objfile *objfile)

Variables

struct exp_descriptor exp_descriptor_standard
struct expressionexpout
int expout_size
int expout_ptr
struct blockexpression_context_block
CORE_ADDR expression_context_pc
struct blockinnermost_block
int arglist_len
const char * lexptr
const char * prev_lexptr
int paren_depth
int comma_terminates
int parse_completion
int parser_debug

Function Documentation

void _initialize_parse ( void  )
struct type_stack* append_type_stack ( struct type_stack to,
struct type_stack from 
) [read]

Definition at line 1573 of file parse.c.

char* copy_name ( struct stoken  token)

Definition at line 808 of file parse.c.

int end_arglist ( void  )

Definition at line 162 of file parse.c.

int exp_uses_objfile ( struct expression exp,
struct objfile objfile 
)

Definition at line 1905 of file parse.c.

const char* find_template_name_end ( const char *  p)

Definition at line 737 of file parse.c.

struct type* follow_types ( struct type follow_type) [read]

Definition at line 1637 of file parse.c.

struct type_stack* get_type_stack ( void  ) [read]

Definition at line 1599 of file parse.c.

void initialize_expout ( int  initial_size,
const struct language_defn lang,
struct gdbarch *  gdbarch 
)

Definition at line 194 of file parse.c.

void insert_type ( enum type_pieces  tp)

Definition at line 1472 of file parse.c.

void insert_type_address_space ( char *  string)

Definition at line 1515 of file parse.c.

int length_of_subexp ( struct expression expr,
int  endpos 
)

Definition at line 854 of file parse.c.

void mark_completion_tag ( enum type_code  tag,
const char *  ptr,
int  length 
)

Definition at line 602 of file parse.c.

void mark_struct_expression ( void  )

Definition at line 590 of file parse.c.

void null_post_parser ( struct expression **  exp,
int  void_context_p 
)

Definition at line 1353 of file parse.c.

int operator_check_standard ( struct expression exp,
int  pos,
int(*)(struct objfile *objfile, void *data)  objfile_func,
void *  data 
)

Definition at line 1775 of file parse.c.

void operator_length ( const struct expression expr,
int  endpos,
int oplenp,
int argsp 
)

Definition at line 874 of file parse.c.

void operator_length_standard ( const struct expression expr,
int  endpos,
int oplenp,
int argsp 
)

Definition at line 884 of file parse.c.

int parse_c_float ( struct gdbarch *  gdbarch,
const char *  p,
int  len,
DOUBLEST d,
struct type **  t 
)

Definition at line 1393 of file parse.c.

struct expression* parse_exp_1 ( const char **  stringptr,
CORE_ADDR  pc,
const struct block block,
int  comma 
) [read]

Definition at line 1134 of file parse.c.

struct expression* parse_expression ( const char *  string) [read]

Definition at line 1283 of file parse.c.

struct type* parse_expression_for_completion ( const char *  string,
char **  name,
enum type_code code 
) [read]

Definition at line 1302 of file parse.c.

int parse_float ( const char *  p,
int  len,
DOUBLEST d,
const char **  suffix 
)

Definition at line 1365 of file parse.c.

void parser_fprintf ( FILE *  x,
const char *  y,
  ... 
)

Definition at line 1757 of file parse.c.

enum type_pieces pop_type ( void  )

Definition at line 1535 of file parse.c.

int pop_type_int ( void  )

Definition at line 1543 of file parse.c.

int prefixify_expression ( struct expression expr)

Definition at line 836 of file parse.c.

void push_type ( enum type_pieces  tp)

Definition at line 1493 of file parse.c.

void push_type_int ( int  n)

Definition at line 1500 of file parse.c.

void push_type_stack ( struct type_stack stack)

Definition at line 1587 of file parse.c.

void push_typelist ( VEC(type_ptr)*  list)

Definition at line 1627 of file parse.c.

void reallocate_expout ( void  )

Definition at line 208 of file parse.c.

void start_arglist ( void  )

Definition at line 147 of file parse.c.

void type_stack_cleanup ( void *  arg)

Definition at line 1614 of file parse.c.

void write_dollar_variable ( struct stoken  str)

Definition at line 641 of file parse.c.

void write_exp_bitstring ( struct stoken  str)

Definition at line 460 of file parse.c.

void write_exp_elt_block ( const struct block b)

Definition at line 259 of file parse.c.

void write_exp_elt_dblcst ( DOUBLEST  expelt)

Definition at line 289 of file parse.c.

void write_exp_elt_decfloatcst ( gdb_byte  expelt[16])

Definition at line 299 of file parse.c.

void write_exp_elt_intern ( struct internalvar *  expelt)

Definition at line 321 of file parse.c.

void write_exp_elt_longcst ( LONGEST  expelt)

Definition at line 279 of file parse.c.

void write_exp_elt_objfile ( struct objfile objfile)

Definition at line 269 of file parse.c.

void write_exp_elt_opcode ( enum exp_opcode  expelt)

Definition at line 239 of file parse.c.

void write_exp_elt_sym ( struct symbol expelt)

Definition at line 249 of file parse.c.

void write_exp_elt_type ( struct type expelt)

Definition at line 311 of file parse.c.

void write_exp_msymbol ( struct bound_minimal_symbol  bound_msym)

Definition at line 499 of file parse.c.

void write_exp_string ( struct stoken  str)

Definition at line 352 of file parse.c.

void write_exp_string_vector ( int  type,
struct stoken_vector vec 
)

Definition at line 403 of file parse.c.


Variable Documentation

Definition at line 76 of file parse.c.

Definition at line 81 of file parse.c.

struct expression* expout

Definition at line 70 of file parse.c.

Definition at line 72 of file parse.c.

Definition at line 71 of file parse.c.

Definition at line 73 of file parse.c.

Definition at line 74 of file parse.c.

Definition at line 75 of file parse.c.

const char* lexptr

Definition at line 78 of file parse.c.

Definition at line 80 of file parse.c.

Definition at line 84 of file parse.c.

Definition at line 108 of file parse.c.

Definition at line 79 of file parse.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines