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)
 
const char * find_template_name_end (const char *p)
 
std::string copy_name (struct stoken token)
 
static expression_up parse_exp_in_context (const char **stringptr, CORE_ADDR pc, const struct block *block, parser_flags flags, innermost_block_tracker *tracker, std::unique_ptr< expr_completion_base > *completer)
 
expression_up parse_exp_1 (const char **stringptr, CORE_ADDR pc, const struct block *block, parser_flags flags, innermost_block_tracker *tracker)
 
expression_up parse_expression (const char *string, innermost_block_tracker *tracker, parser_flags flags)
 
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)
 
bool fits_in_type (int n_sign, const gdb_mpz &n, int type_bits, bool type_signed_p)
 
void parser_fprintf (FILE *x, const char *y,...)
 
void _initialize_parse ()
 

Variables

static unsigned int expressiondebug = 0
 
static bool parser_debug
 

Function Documentation

◆ _initialize_parse()

void _initialize_parse ( )

Definition at line 609 of file parse.c.

Referenced by initialize_all_files().

◆ copy_name()

std::string copy_name ( struct stoken token)

◆ find_template_name_end()

const char * find_template_name_end ( const char * p)

Definition at line 250 of file parse.c.

Referenced by lex_one_token().

◆ fits_in_type() [1/2]

bool fits_in_type ( int n_sign,
const gdb_mpz & n,
int type_bits,
bool type_signed_p )

Definition at line 567 of file parse.c.

References gdb_mpz::pow(), and gdb_mpz::sgn().

◆ fits_in_type() [2/2]

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

Definition at line 530 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,
parser_flags flags,
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,
parser_flags flags,
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,
parser_flags flags )

◆ parse_expression_for_completion()

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

Definition at line 489 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 592 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
static

Definition at line 65 of file parse.c.