GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
parse.c File Reference
#include "defs.h"
#include <ctype.h>
#include "arch-utils.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "frame.h"
#include "expression.h"
#include "value.h"
#include "command.h"
#include "language.h"
#include "parser-defs.h"
#include "gdbcmd.h"
#include "symfile.h"
#include "inferior.h"
#include "target-float.h"
#include "block.h"
#include "source.h"
#include "objfiles.h"
#include "user-regs.h"
#include <algorithm>
#include "gdbsupport/gdb_optional.h"
#include "c-exp.h"

Go to the source code of this file.

Functions

static void show_expressiondebug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_parserdebug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static expression_up parse_exp_in_context (const char **, CORE_ADDR, const struct block *, int, bool, innermost_block_tracker *, std::unique_ptr< expr_completion_base > *)
 
typefind_minsym_type_and_address (minimal_symbol *msymbol, struct objfile *objfile, CORE_ADDR *address_p)
 
const char * find_template_name_end (const char *p)
 
std::string copy_name (struct stoken token)
 
expression_up parse_exp_1 (const char **stringptr, CORE_ADDR pc, const struct block *block, int comma, innermost_block_tracker *tracker)
 
expression_up parse_expression (const char *string, innermost_block_tracker *tracker, bool void_context_p)
 
expression_up parse_expression_with_language (const char *string, enum language lang)
 
expression_up parse_expression_for_completion (const char *string, std::unique_ptr< expr_completion_base > *completer)
 
bool parse_float (const char *p, int len, const struct type *type, gdb_byte *data)
 
bool fits_in_type (int n_sign, ULONGEST n, int type_bits, bool type_signed_p)
 
void parser_fprintf (FILE *x, const char *y,...)
 
bool exp_uses_objfile (struct expression *exp, struct objfile *objfile)
 
void _initialize_parse ()
 

Variables

static unsigned int expressiondebug = 0
 
bool parser_debug
 

Function Documentation

◆ _initialize_parse()

void _initialize_parse ( )

Definition at line 684 of file parse.c.

Referenced by initialize_all_files().

◆ copy_name()

std::string copy_name ( struct stoken  token)

◆ exp_uses_objfile()

bool exp_uses_objfile ( struct expression exp,
struct objfile objfile 
)

◆ find_minsym_type_and_address()

type * find_minsym_type_and_address ( minimal_symbol msymbol,
struct objfile objfile,
CORE_ADDR *  address_p 
)

◆ find_template_name_end()

const char * find_template_name_end ( const char *  p)

Definition at line 338 of file parse.c.

Referenced by lex_one_token().

◆ fits_in_type()

bool fits_in_type ( int  n_sign,
ULONGEST  n,
int  type_bits,
bool  type_signed_p 
)

Definition at line 619 of file parse.c.

Referenced by parse_number(), parse_number(), parse_number(), parse_number(), and processInt().

◆ parse_exp_1()

expression_up parse_exp_1 ( const char **  stringptr,
CORE_ADDR  pc,
const struct block block,
int  comma,
innermost_block_tracker tracker 
)

◆ parse_exp_in_context()

static expression_up parse_exp_in_context ( const char **  stringptr,
CORE_ADDR  pc,
const struct block block,
int  comma,
bool  void_context_p,
innermost_block_tracker tracker,
std::unique_ptr< expr_completion_base > *  completer 
)
static

◆ parse_expression()

expression_up parse_expression ( const char *  string,
innermost_block_tracker tracker,
bool  void_context_p 
)

◆ parse_expression_for_completion()

expression_up parse_expression_for_completion ( const char *  string,
std::unique_ptr< expr_completion_base > *  completer 
)

Definition at line 578 of file parse.c.

References parse_exp_in_context().

Referenced by complete_expression().

◆ parse_expression_with_language()

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

◆ parse_float()

bool parse_float ( const char *  p,
int  len,
const struct type type,
gdb_byte *  data 
)

◆ parser_fprintf()

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

Definition at line 655 of file parse.c.

References gdb_printf(), gdb_stderr, and gdb_vprintf().

◆ show_expressiondebug()

static void show_expressiondebug ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 57 of file parse.c.

References gdb_printf().

◆ show_parserdebug()

static void show_parserdebug ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 68 of file parse.c.

References gdb_printf().

Variable Documentation

◆ expressiondebug

unsigned int expressiondebug = 0
static

Definition at line 55 of file parse.c.

Referenced by parse_exp_in_context().

◆ parser_debug

bool parser_debug

Definition at line 65 of file parse.c.

Referenced by ada_parse(), c_parse(), d_parse(), f_language::parser(), and go_language::parser().