GDB (xrefs)
|
#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 |
void _initialize_parse | ( | ) |
Definition at line 609 of file parse.c.
Referenced by initialize_all_files().
std::string copy_name | ( | struct stoken | token | ) |
Definition at line 319 of file parse.c.
References token.
Referenced by partial_symtab::add_psymbol(), classify_inner_name(), classify_inner_name(), classify_name(), classify_name(), classify_name(), classify_packaged_name(), classify_unsafe_function(), general_symbol_info::compute_and_set_names(), lex_one_token(), lex_one_token(), lex_one_token(), parser_state::push_dollar(), minimal_symbol_reader::record_full(), record_minimal_symbol(), write_name_assoc(), yylex(), yylex(), yylex(), yylex(), and yyparse().
const char * find_template_name_end | ( | const char * | p | ) |
Definition at line 250 of file parse.c.
Referenced by lex_one_token().
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().
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().
expression_up parse_exp_1 | ( | const char ** | stringptr, |
CORE_ADDR | pc, | ||
const struct block * | block, | ||
parser_flags | flags, | ||
innermost_block_tracker * | tracker ) |
Definition at line 446 of file parse.c.
References flags, and parse_exp_in_context().
Referenced by ada_read_renaming_var_value(), agent_eval_command_one(), create_breakpoint(), encode_actions_1(), find_condition_and_thread(), maint_agent_printf_command(), parse_cmd_to_aexpr(), parse_to_comma_and_eval(), ada_catchpoint::re_set(), set_breakpoint_condition(), set_breakpoint_location_condition(), update_breakpoint_locations(), update_watchpoint(), validate_actionline(), varobj_create(), varobj_set_value(), and watch_command_1().
|
static |
Definition at line 329 of file parse.c.
References compunit_symtab::blockvector(), symtab::compunit(), current_language, block::entry_pc(), error_no_arg(), expr_builder::expout, expressiondebug, flags, func, gdb_stdlog, get_current_arch(), get_current_source_symtab_and_line(), get_selected_block(), language_defn::la_language, language_def(), language_mode_auto, language_unknown, parser_state::lexptr, block::linkage_function(), parser_state::m_completion_state, parser_state::parse_completion, language_defn::parser(), PARSER_LEAVE_BLOCK_ALONE, expr_builder::release(), set_language(), blockvector::static_block(), and symtab_and_line::symtab.
Referenced by parse_exp_1(), parse_expression(), and parse_expression_for_completion().
expression_up parse_expression | ( | const char * | string, |
innermost_block_tracker * | tracker, | ||
parser_flags | flags ) |
Definition at line 458 of file parse.c.
References flags, and parse_exp_in_context().
Referenced by check_thread_db_callback(), display_command(), do_one_display(), dump_arc_instruction_command(), execute_control_command_1(), gnuv3_get_type_from_type_info(), info_mach_region_command(), init_if_undefined_command(), maintenance_print_type(), mi_cmd_data_evaluate_expression(), output_command(), parse_and_eval(), parse_and_eval_address(), parse_and_eval_long(), parse_and_eval_type(), parse_expression_with_language(), print_object_command(), print_variable_or_computed(), process_print_command_args(), set_command(), whatis_exp(), and x_command().
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().
expression_up parse_expression_with_language | ( | const char * | string, |
enum language | lang ) |
Definition at line 472 of file parse.c.
References current_language, language_defn::la_language, parse_expression(), and set_language().
Referenced by dtrace_process_dof_probe().
bool parse_float | ( | const char * | p, |
int | len, | ||
const struct type * | type, | ||
gdb_byte * | data ) |
Definition at line 520 of file parse.c.
References target_float_from_string().
Referenced by rust_parser::lex_number(), parse_number(), parse_number(), parse_number(), parse_number(), parse_number(), parse_number(), and processReal().
void parser_fprintf | ( | FILE * | x, |
const char * | y, | ||
... ) |
Definition at line 592 of file parse.c.
References gdb_printf(), gdb_stderr, and gdb_vprintf().
|
static |
Definition at line 57 of file parse.c.
References gdb_printf().
|
static |
Definition at line 68 of file parse.c.
References gdb_printf().
|
static |
Definition at line 55 of file parse.c.
Referenced by parse_exp_in_context().