GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include "frame.h"
#include "command.h"
#include "symfile.h"
#include "objfiles.h"
#include "source.h"
#include "demangle.h"
#include "value.h"
#include "completer.h"
#include "cp-abi.h"
#include "cp-support.h"
#include "parser-defs.h"
#include "block.h"
#include "objc-lang.h"
#include "linespec.h"
#include "language.h"
#include "interps.h"
#include "mi/mi-cmds.h"
#include "target.h"
#include "arch-utils.h"
#include <ctype.h>
#include "cli/cli-utils.h"
#include "filenames.h"
#include "ada-lang.h"
#include "stack.h"
Go to the source code of this file.
Classes | |
struct | address_entry |
struct | line_offset |
struct | linespec |
struct | linespec_canonical_name |
struct | linespec_state |
struct | collect_info |
struct | ls_token |
struct | ls_parser |
struct | symbol_and_data_callback |
struct | symbol_matcher_data |
struct | decode_line_2_item |
struct | decode_compound_collector |
struct | symtab_collector |
struct | collect_minsyms |
Macros | |
#define | IF_KEYWORD_INDEX 0 |
#define | LS_TOKEN_STOKEN(TOK) (TOK).data.string |
#define | LS_TOKEN_KEYWORD(TOK) (TOK).data.keyword |
#define | PARSER_STREAM(P) (*(P)->lexer.stream) |
#define | PARSER_STATE(PPTR) (&(PPTR)->state) |
#define | PARSER_RESULT(PPTR) (&(PPTR)->result) |
Typedefs | |
typedef struct symbol * | symbolp |
typedef struct type * | typep |
typedef struct bound_minimal_symbol | bound_minimal_symbol_d |
typedef struct linespec * | linespec_p |
typedef enum ls_token_type | linespec_token_type |
typedef struct ls_token | linespec_token |
typedef struct ls_parser | linespec_parser |
Enumerations | |
enum | offset_relative_sign { LINE_OFFSET_NONE, LINE_OFFSET_PLUS, LINE_OFFSET_MINUS, LINE_OFFSET_UNKNOWN } |
enum | ls_token_type { LSTOKEN_KEYWORD = 0, LSTOKEN_COLON, LSTOKEN_STRING, LSTOKEN_NUMBER, LSTOKEN_COMMA, LSTOKEN_EOI, LSTOKEN_CONSUMED } |
Variables | |
static const char *const | linespec_keywords [] = { "if", "thread", "task" } |
#define IF_KEYWORD_INDEX 0 |
Definition at line 249 of file linespec.c.
Referenced by linespec_lexer_lex_keyword().
#define LS_TOKEN_KEYWORD | ( | TOK | ) | (TOK).data.keyword |
Definition at line 271 of file linespec.c.
Referenced by copy_token_string(), and linespec_lexer_lex_one().
#define LS_TOKEN_STOKEN | ( | TOK | ) | (TOK).data.string |
Definition at line 270 of file linespec.c.
Referenced by copy_token_string(), linespec_lexer_lex_one(), linespec_lexer_lex_string(), linespec_parse_basic(), and parse_linespec().
#define PARSER_RESULT | ( | PPTR | ) | (&(PPTR)->result) |
Definition at line 300 of file linespec.c.
Referenced by linespec_parse_basic(), linespec_parser_delete(), linespec_parser_new(), and parse_linespec().
#define PARSER_STATE | ( | PPTR | ) | (&(PPTR)->state) |
Definition at line 296 of file linespec.c.
Referenced by decode_line_full(), linespec_lexer_lex_string(), linespec_parse_basic(), linespec_parser_delete(), linespec_parser_new(), and parse_linespec().
#define PARSER_STREAM | ( | P | ) | (*(P)->lexer.stream) |
Definition at line 285 of file linespec.c.
Referenced by linespec_lexer_lex_one(), linespec_lexer_lex_string(), linespec_lexer_peek_token(), and parse_linespec().
typedef struct bound_minimal_symbol bound_minimal_symbol_d |
Definition at line 63 of file linespec.c.
typedef struct linespec* linespec_p |
Definition at line 147 of file linespec.c.
typedef struct ls_parser linespec_parser |
Definition at line 302 of file linespec.c.
typedef struct ls_token linespec_token |
Definition at line 268 of file linespec.c.
typedef enum ls_token_type linespec_token_type |
Definition at line 244 of file linespec.c.
Definition at line 47 of file linespec.c.
Definition at line 50 of file linespec.c.
enum ls_token_type |
Enumerator | |
---|---|
LSTOKEN_KEYWORD | |
LSTOKEN_COLON | |
LSTOKEN_STRING | |
LSTOKEN_NUMBER | |
LSTOKEN_COMMA | |
LSTOKEN_EOI | |
LSTOKEN_CONSUMED |
Definition at line 221 of file linespec.c.
enum offset_relative_sign |
Enumerator | |
---|---|
LINE_OFFSET_NONE | |
LINE_OFFSET_PLUS | |
LINE_OFFSET_MINUS | |
LINE_OFFSET_UNKNOWN |
Definition at line 68 of file linespec.c.
|
static |
Definition at line 2849 of file linespec.c.
References add_matching_symbols_to_info(), and VEC_iterate.
Referenced by decode_objc(), find_function_symbols(), and find_method().
|
static |
Definition at line 3687 of file linespec.c.
References collect_symbols(), gdb_assert, iterate_over_all_matching_symtabs(), iterate_over_file_blocks(), symtab::language, language_asm, collect_info::result, search_minsyms_for_name(), set_current_program_space(), collect_info::state, SYMTAB_PSPACE, VAR_DOMAIN, VEC_iterate, and VEC_length.
Referenced by add_all_symbol_names_from_pspace(), and find_function_symbols().
|
static |
Definition at line 3543 of file linespec.c.
References BMSYMBOL_VALUE_ADDRESS, current_target, find_pc_sect_line(), gdbarch_convert_from_func_ptr_addr(), get_objfile_arch(), collect_minsyms::list_mode, bound_minimal_symbol::minsym, mst_abs, mst_bss, mst_data, mst_file_bss, mst_file_data, mst_slot_got_plt, MSYMBOL_OBJ_SECTION, MSYMBOL_VALUE_ADDRESS, bound_minimal_symbol::objfile, collect_minsyms::objfile, symtab_and_line::pc, symtab_and_line::section, symtab_and_line::symtab, collect_minsyms::symtab, minimal_symbol::type, and VEC_safe_push.
Referenced by search_minsyms_for_name().
|
static |
Definition at line 871 of file linespec.c.
References add_sal_to_sals_basic(), language_ada, symtab_and_line::line, symtabs_and_lines::nelts, linespec_canonical_name::suffix, linespec_canonical_name::symtab, symtab_and_line::symtab, symtab_to_fullname(), xrealloc(), and xstrprintf().
Referenced by convert_linespec_to_sals(), create_sals_line_offset(), decode_digits_list_mode(), and minsym_found().
|
static |
Definition at line 855 of file linespec.c.
References symtabs_and_lines::nelts, symtabs_and_lines::sals, and xrealloc().
Referenced by add_sal_to_sals(), decode_digits_ordinary(), and filter_results().
|
static |
Definition at line 1251 of file linespec.c.
References linespec_canonical_name::suffix, linespec_canonical_name::symtab, symtab_to_fullname(), and xstrprintf().
Referenced by decode_line_2(), and filter_results().
|
static |
Definition at line 1788 of file linespec.c.
References linespec_result::addr_string, linespec_state::canonical, linespec::expression, fprintf_filtered(), fputc_unfiltered(), fputs_unfiltered(), gdb_assert, linespec::labels, linespec::line_offset, LINE_OFFSET_NONE, LINE_OFFSET_PLUS, LINE_OFFSET_UNKNOWN, mem_fileopen(), line_offset::offset, line_offset::sign, linespec::source_filename, linespec_result::special_display, SYMBOL_NATURAL_NAME, ui_file_delete(), ui_file_xstrdup(), VEC_index, and VEC_length.
Referenced by convert_linespec_to_sals().
|
static |
Definition at line 3506 of file linespec.c.
References mst_file_bss, mst_file_data, mst_file_text, and mst_solib_trampoline.
Referenced by compare_msyms(), and search_minsyms_for_name().
|
static |
Definition at line 3797 of file linespec.c.
References destroy_linespec_result().
Referenced by make_cleanup_destroy_linespec_result().
Definition at line 2710 of file linespec.c.
References CHECK_TYPEDEF, LOC_TYPEDEF, SYMBOL_CLASS, SYMBOL_TYPE, TYPE_CODE, TYPE_CODE_NAMESPACE, TYPE_CODE_STRUCT, TYPE_CODE_UNION, and VEC_safe_push.
Referenced by VEC().
Definition at line 3423 of file linespec.c.
References linespec_state::list_mode, LOC_BLOCK, collect_info::result, collect_info::state, SYMBOL_CLASS, and VEC_safe_push.
Referenced by add_matching_symbols_to_info().
Definition at line 2818 of file linespec.c.
References bound_minimal_symbol::minsym, bound_minimal_symbol::objfile, and objfile::pspace.
Referenced by convert_linespec_to_sals().
Definition at line 3529 of file linespec.c.
References classify_mtype(), bound_minimal_symbol::minsym, and MSYMBOL_TYPE.
Referenced by search_minsyms_for_name().
Definition at line 2790 of file linespec.c.
References symbol_symtab(), and SYMTAB_PSPACE.
Referenced by convert_linespec_to_sals(), and find_method().
|
static |
Definition at line 2010 of file linespec.c.
References add_sal_to_sals(), canonicalize_linespec(), compare_msymbols(), compare_symbols(), create_sals_line_offset(), find_pc_line(), find_pc_overlay(), LINE_OFFSET_UNKNOWN, maybe_add_address(), bound_minimal_symbol::minsym, minsym_found(), symtabs_and_lines::nelts, bound_minimal_symbol::objfile, symtab_and_line::pc, objfile::pspace, qsort, set_current_program_space(), SYMBOL_NATURAL_NAME, symbol_symtab(), symbol_to_sal(), SYMTAB_PSPACE, symtab_to_fullname(), VEC_address, VEC_iterate, and VEC_length.
Referenced by decode_objc(), and parse_linespec().
|
static |
Definition at line 1307 of file linespec.c.
References linespec_sals::canonical, linespec_sals::sals, and VEC_safe_push.
Referenced by decode_line_2(), and decode_line_full().
|
static |
Definition at line 504 of file linespec.c.
References LS_TOKEN_KEYWORD, LS_TOKEN_STOKEN, LSTOKEN_KEYWORD, remove_trailing_whitespace(), savestring(), and ls_token::type.
Referenced by linespec_parse_basic(), parse_linespec(), and unexpected_linespec_error().
|
static |
Definition at line 1859 of file linespec.c.
References _, add_sal_to_sals(), best_entry, block_containing_function(), block_for_pc_sect(), decode_digits_list_mode(), decode_digits_ordinary(), do_cleanups(), init_sal(), initialize_defaults(), linetable_entry::line, symtab_and_line::line, LINE_OFFSET_MINUS, LINE_OFFSET_NONE, LINE_OFFSET_PLUS, make_cleanup(), symtabs_and_lines::nelts, NOT_FOUND_ERROR, symtab_and_line::pc, symtab_and_line::pspace, symtabs_and_lines::sals, symtab_and_line::section, set_current_program_space(), set_default_source_symtab_and_line(), skip_prologue_sal(), SYMBOL_NATURAL_NAME, symtab_to_fullname(), throw_error(), VEC_free, VEC_index, VEC_length, VEC_pop, and xfree().
Referenced by convert_linespec_to_sals().
|
static |
Definition at line 3290 of file linespec.c.
References add_sal_to_sals(), symtab_and_line::explicit_line, find_line_symtab(), gdb_assert, symtab_and_line::line, symtab_and_line::pc, symtab_and_line::pspace, set_current_program_space(), symtab_and_line::symtab, SYMTAB_PSPACE, and VEC_iterate.
Referenced by create_sals_line_offset().
|
static |
Definition at line 3324 of file linespec.c.
References add_sal_to_sals_basic(), gdb_assert, init_sal(), symtab_and_line::line, line, symtab_and_line::pc, symtab_and_line::pspace, set_current_program_space(), symtab_and_line::symtab, SYMTAB_PSPACE, VEC(), VEC_free, and VEC_iterate.
Referenced by create_sals_line_offset().
struct symtabs_and_lines decode_line_1 | ( | char ** | argptr, |
int | flags, | ||
struct symtab * | default_symtab, | ||
int | default_line | ||
) |
Definition at line 2518 of file linespec.c.
References current_language, do_cleanups(), linespec_parser_delete(), linespec_parser_new(), make_cleanup(), parse_linespec(), and save_current_program_space().
Referenced by decode_line_with_current_source(), decode_line_with_last_displayed(), edit_command(), gdbpy_decode_line(), list_command(), scope_info(), and until_break_command().
|
static |
Definition at line 1361 of file linespec.c.
References _, canonical_to_fullform(), command_line_input(), convert_results_to_lsals(), decode_line_2_compare_items(), decode_line_2_item::displayform, do_cleanups(), error(), error_no_arg(), filter_results(), get_number_or_range_state::finished, decode_line_2_item::fullform, gdb_assert, get_number_or_range(), init_number_or_range(), make_cleanup(), multiple_symbols_all, multiple_symbols_cancel, symtabs_and_lines::nelts, printf_unfiltered(), qsort, decode_line_2_item::selected, linespec_canonical_name::suffix, linespec_canonical_name::symtab, symtab_to_filename_for_display(), VEC(), VEC_cleanup, VEC_safe_push, xfree(), xmalloc(), and xstrprintf().
Referenced by decode_line_full().
Definition at line 1342 of file linespec.c.
References decode_line_2_item::displayform, and decode_line_2_item::fullform.
Referenced by decode_line_2().
void decode_line_full | ( | char ** | argptr, |
int | flags, | ||
struct symtab * | default_symtab, | ||
int | default_line, | ||
struct linespec_result * | canonical, | ||
const char * | select_mode, | ||
const char * | filter | ||
) |
Definition at line 2441 of file linespec.c.
References linespec_result::addr_string, linespec_state::canonical_names, convert_results_to_lsals(), current_language, decode_line_2(), DECODE_LINE_LIST_MODE, do_cleanups(), filter_results(), gdb_assert, interp_ui_out(), linespec_parser_delete(), linespec_parser_new(), make_cleanup(), multiple_symbols_all, multiple_symbols_ask, multiple_symbols_cancel, multiple_symbols_select_mode(), symtabs_and_lines::nelts, parse_linespec(), PARSER_STATE, linespec_result::pre_expanded, save_current_program_space(), linespec_canonical_name::suffix, top_level_interpreter(), ui_out_is_mi_like_p(), VEC(), VEC_cleanup, VEC_safe_push, and xfree().
Referenced by agent_command_1(), break_range_command(), decode_linespec_default(), and parse_breakpoint_sals().
struct symtabs_and_lines decode_line_with_current_source | ( | char * | string, |
int | flags | ||
) |
Definition at line 2543 of file linespec.c.
References _, decode_line_1(), error(), get_current_source_symtab_and_line(), symtab_and_line::line, and symtab_and_line::symtab.
Referenced by clear_command(), func_command(), info_macros_command(), mi_cmd_trace_find(), select_source_symtab(), and trace_find_line_command().
struct symtabs_and_lines decode_line_with_last_displayed | ( | char * | string, |
int | flags | ||
) |
Definition at line 2566 of file linespec.c.
References _, decode_line_1(), error(), get_last_displayed_line(), get_last_displayed_symtab(), last_displayed_sal_is_valid(), and symtabs_and_lines::sals.
Referenced by jump_command(), and line_info().
|
static |
Definition at line 2634 of file linespec.c.
References add_all_symbol_names_from_pspace(), convert_linespec_to_sals(), do_cleanups(), find_imps(), make_cleanup(), symtabs_and_lines::nelts, collect_info::result, symtabs_and_lines::sals, collect_info::state, VEC(), VEC_cleanup, VEC_empty, VEC_safe_push, and xstrprintf().
Referenced by parse_linespec().
DEF_VEC_O | ( | bound_minimal_symbol_d | ) |
DEF_VEC_P | ( | symbolp | ) |
DEF_VEC_P | ( | typep | ) |
void destroy_linespec_result | ( | struct linespec_result * | ls | ) |
Definition at line 3780 of file linespec.c.
References linespec_result::addr_string, linespec_sals::canonical, linespec_sals::sals, symtabs_and_lines::sals, VEC_free, VEC_iterate, and xfree().
Referenced by cleanup_linespec_result(), and decode_linespec_default().
Definition at line 928 of file linespec.c.
References address_entry::addr, and address_entry::pspace.
Referenced by linespec_state_constructor().
|
static |
Definition at line 1264 of file linespec.c.
References add_sal_to_sals_basic(), linespec_sals::canonical, canonical_to_fullform(), do_cleanups(), make_cleanup(), name, symtabs_and_lines::nelts, linespec_sals::sals, symtabs_and_lines::sals, VEC_iterate, VEC_safe_push, and xfree().
Referenced by decode_line_2(), and decode_line_full().
|
static |
Definition at line 3069 of file linespec.c.
References add_all_symbol_names_from_pspace(), add_matching_symbols_to_info(), do_cleanups(), find_imps(), make_cleanup(), collect_info::result, collect_info::state, VEC(), VEC_cleanup, VEC_empty, and VEC_free.
Referenced by find_linespec_symbols().
|
static |
Definition at line 3114 of file linespec.c.
References ada_name_for_lookup(), CATCH, cp_canonicalize_string_no_typedefs(), demangle_for_lookup(), do_cleanups(), END_CATCH, find_function_symbols(), find_method(), find_toplevel_string(), language_defn::la_language, linespec_state::language, language_ada, make_cleanup(), NOT_FOUND_ERROR, RETURN_MASK_ERROR, throw_exception(), TRY, VEC(), VEC_cleanup, VEC_empty, xfree(), and xmalloc().
Referenced by linespec_parse_basic().
|
static |
Definition at line 2895 of file linespec.c.
References _, add_all_symbol_names_from_pspace(), check_typedef(), compare_symbols(), do_cleanups(), program_space::executing_startup, find_methods(), find_superclass_methods(), gdb_assert, make_cleanup(), NOT_FOUND_ERROR, null_cleanup(), qsort, collect_info::result, set_current_program_space(), collect_info::state, symbol_symtab(), SYMBOL_TYPE, SYMTAB_PSPACE, throw_error(), VEC(), VEC_address, VEC_cleanup, VEC_empty, VEC_index, VEC_iterate, VEC_length, and VEC_truncate.
Referenced by find_linespec_symbols().
|
static |
Definition at line 1118 of file linespec.c.
References CHECK_TYPEDEF, startswith(), strcmp_iw(), TYPE_BASECLASS, TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELD_STUB, TYPE_FN_FIELDLIST1, TYPE_FN_FIELDLIST_LENGTH, TYPE_FN_FIELDLIST_NAME, TYPE_N_BASECLASSES, type_name_no_tag(), TYPE_NFN_FIELDS, and VEC_safe_push.
Referenced by find_method(), and find_superclass_methods().
Definition at line 535 of file linespec.c.
Referenced by linespec_lexer_lex_string().
|
static |
Definition at line 2861 of file linespec.c.
References do_cleanups(), find_methods(), make_cleanup(), null_cleanup(), VEC(), VEC_cleanup, VEC_empty, VEC_iterate, and VEC_length.
Referenced by find_method().
Definition at line 1187 of file linespec.c.
References scan().
Referenced by find_toplevel_string(), and skip_quote_char().
Definition at line 1222 of file linespec.c.
References find_toplevel_char(), and startswith().
Referenced by find_linespec_symbols().
Definition at line 1084 of file linespec.c.
References current_language, get_selected_block(), language_defn::la_language, and set_language().
|
static |
Definition at line 916 of file linespec.c.
References address_entry::addr, hash(), and address_entry::pspace.
Referenced by linespec_state_constructor().
void init_linespec_result | ( | struct linespec_result * | lr | ) |
Definition at line 3772 of file linespec.c.
Referenced by agent_command_1(), break_range_command(), create_breakpoint(), and decode_linespec_default().
Definition at line 2591 of file linespec.c.
References get_current_source_symtab_and_line(), symtab_and_line::line, and symtab_and_line::symtab.
Referenced by create_sals_line_offset(), and parse_linespec().
Definition at line 469 of file linespec.c.
References ada_opname_table, ada_opname_map::decoded, ada_opname_map::encoded, and startswith().
Referenced by linespec_lexer_lex_string(), and parse_linespec().
Definition at line 522 of file linespec.c.
References linespec_lexer_lex_keyword(), and skip_spaces().
Referenced by linespec_lexer_lex_one(), linespec_lexer_lex_string(), and parse_linespec().
Definition at line 975 of file linespec.c.
References symbol_and_data_callback::callback, symbol_and_data_callback::data, and SYMBOL_INLINED.
Referenced by iterate_over_all_matching_symtabs().
Definition at line 1001 of file linespec.c.
References symbol_matcher_data::lookup_name, and symbol_matcher_data::symbol_name_cmp.
Referenced by iterate_over_all_matching_symtabs().
|
static |
Definition at line 1017 of file linespec.c.
References ALL_DOMAIN, ALL_OBJFILE_COMPUNITS, ALL_OBJFILES, ALL_PSPACES, BLOCKVECTOR_BLOCK, BLOCKVECTOR_NBLOCKS, symbol_and_data_callback::callback, COMPUNIT_FILETABS, program_space::executing_startup, quick_symbol_functions::expand_symtabs_matching, FIRST_LOCAL_BLOCK, iterate_inline_only(), iterate_name_matcher(), iterate_over_file_blocks(), language_defn::la_get_symbol_name_cmp, language_defn::la_iterate_over_symbols, linespec_state::language, symbol_matcher_data::lookup_name, name, sym_fns::qf, set_current_program_space(), objfile::sf, strcmp_iw(), symbol_matcher_data::symbol_name_cmp, and SYMTAB_BLOCKVECTOR.
Referenced by add_matching_symbols_to_info(), and VEC().
|
static |
Definition at line 1101 of file linespec.c.
References BLOCK_SUPERBLOCK, BLOCKVECTOR_BLOCK, LA_ITERATE_OVER_SYMBOLS, STATIC_BLOCK, and SYMTAB_BLOCKVECTOR.
Referenced by add_matching_symbols_to_info(), iterate_over_all_matching_symtabs(), and VEC().
Definition at line 2612 of file linespec.c.
References _, current_program_space, program_space::executing_startup, NOT_FOUND_ERROR, parse_to_comma_and_eval(), throw_error(), and value_as_address().
Referenced by parse_linespec().
|
static |
Definition at line 829 of file linespec.c.
References ls_parser::current, ls_parser::lexer, linespec_lexer_lex_one(), LSTOKEN_CONSUMED, and ls_token::type.
Referenced by linespec_lexer_peek_token(), linespec_parse_basic(), and parse_linespec().
Definition at line 420 of file linespec.c.
References IF_KEYWORD_INDEX, len, linespec_keywords, and skip_spaces_const().
Referenced by is_closing_quote_enclosed(), linespec_lexer_lex_one(), linespec_lexer_lex_string(), and parse_breakpoint_sals().
|
static |
Definition at line 745 of file linespec.c.
References ls_parser::current, is_closing_quote_enclosed(), ls_parser::is_quote_enclosed, ls_parser::lexer, linespec_lexer_lex_keyword(), linespec_lexer_lex_string(), LS_TOKEN_KEYWORD, LS_TOKEN_STOKEN, LSTOKEN_COLON, LSTOKEN_COMMA, LSTOKEN_CONSUMED, LSTOKEN_EOI, LSTOKEN_KEYWORD, PARSER_STREAM, skip_spaces_const(), and ls_token::type.
Referenced by linespec_lexer_consume_token(), linespec_parse_basic(), parse_linespec(), and unexpected_linespec_error().
|
static |
Definition at line 573 of file linespec.c.
References _, error(), find_parameter_list_end(), is_ada_operator(), is_closing_quote_enclosed(), is_operator_name(), ls_parser::is_quote_enclosed, language_ada, language_cplus, len, linespec_lexer_lex_keyword(), LS_TOKEN_STOKEN, LSTOKEN_STRING, PARSER_STATE, PARSER_STREAM, skip_quote_char(), skip_spaces_const(), token, and ls_token::type.
Referenced by linespec_lexer_lex_one().
|
static |
Definition at line 838 of file linespec.c.
References ls_parser::current, ls_parser::lexer, linespec_lexer_consume_token(), and PARSER_STREAM.
Referenced by parse_linespec().
|
static |
Definition at line 1600 of file linespec.c.
References _, copy_token_string(), discard_cleanups(), do_cleanups(), find_linespec_symbols(), LINE_OFFSET_UNKNOWN, linespec_lexer_consume_token(), linespec_lexer_lex_one(), linespec_parse_line_offset(), linespec_parse_variable(), LS_TOKEN_STOKEN, LSTOKEN_COLON, LSTOKEN_COMMA, LSTOKEN_EOI, LSTOKEN_KEYWORD, LSTOKEN_NUMBER, LSTOKEN_STRING, make_cleanup(), name, NOT_FOUND_ERROR, PARSER_RESULT, PARSER_STATE, line_offset::sign, throw_error(), token, ls_token::type, unexpected_linespec_error(), VEC(), and xfree().
Referenced by parse_linespec().
|
static |
Definition at line 1577 of file linespec.c.
References LINE_OFFSET_MINUS, LINE_OFFSET_NONE, LINE_OFFSET_PLUS, line_offset::offset, line_offset::sign, and string.
Referenced by linespec_parse_basic().
|
static |
Definition at line 3366 of file linespec.c.
References _, access_value_history(), error(), get_internalvar_integer(), LINE_OFFSET_NONE, LINE_OFFSET_UNKNOWN, lookup_only_internalvar(), offset, line_offset::offset, line_offset::sign, TYPE_CODE, TYPE_CODE_INT, value_as_long(), and value_type().
Referenced by linespec_parse_basic(), and parse_linespec().
|
static |
Definition at line 2411 of file linespec.c.
References linespec_state_destructor(), PARSER_RESULT, PARSER_STATE, VEC_free, and xfree().
Referenced by decode_line_1(), and decode_line_full().
|
static |
Definition at line 2387 of file linespec.c.
References ls_parser::current, ls_parser::lexer, LINE_OFFSET_UNKNOWN, linespec_state_constructor(), LSTOKEN_CONSUMED, PARSER_RESULT, PARSER_STATE, and ls_token::type.
Referenced by decode_line_1(), and decode_line_full().
|
static |
Definition at line 2366 of file linespec.c.
References current_program_space, DECODE_LINE_FUNFIRSTLINE, DECODE_LINE_LIST_MODE, eq_address_entry(), hash_address_entry(), xcalloc(), and xfree().
Referenced by linespec_parser_new().
|
static |
Definition at line 2403 of file linespec.c.
Referenced by linespec_parser_delete().
struct cleanup* make_cleanup_destroy_linespec_result | ( | struct linespec_result * | ls | ) |
Definition at line 3805 of file linespec.c.
References cleanup_linespec_result(), and make_cleanup().
Referenced by agent_command_1(), break_range_command(), and create_breakpoint().
|
static |
Definition at line 941 of file linespec.c.
References address_entry::addr, and address_entry::pspace.
Referenced by convert_linespec_to_sals(), and minsym_found().
|
static |
Definition at line 3440 of file linespec.c.
References add_sal_to_sals(), COMPUNIT_LOCATIONS_VALID, current_target, find_pc_sect_line(), gdbarch_convert_from_func_ptr_addr(), get_objfile_arch(), language_asm, maybe_add_address(), MSYMBOL_NATURAL_NAME, MSYMBOL_OBJ_SECTION, MSYMBOL_VALUE_ADDRESS, objfile::pspace, skip_prologue_sal(), SYMTAB_COMPUNIT, and SYMTAB_LANGUAGE.
Referenced by convert_linespec_to_sals().
|
static |
Definition at line 2173 of file linespec.c.
References CATCH, convert_linespec_to_sals(), copy_token_string(), decode_objc(), discard_cleanups(), do_cleanups(), END_CATCH, exception_none, gdb_assert, initialize_defaults(), is_ada_operator(), is_closing_quote_enclosed(), LINE_OFFSET_UNKNOWN, linespec_expression_to_pc(), linespec_lexer_consume_token(), linespec_lexer_lex_one(), linespec_lexer_peek_token(), linespec_parse_basic(), linespec_parse_variable(), LS_TOKEN_STOKEN, LSTOKEN_COLON, LSTOKEN_COMMA, LSTOKEN_EOI, LSTOKEN_KEYWORD, LSTOKEN_NUMBER, LSTOKEN_STRING, make_cleanup(), PARSER_RESULT, PARSER_STATE, PARSER_STREAM, gdb_exception::reason, RETURN_MASK_ERROR, symtabs_and_lines::sals, line_offset::sign, skip_quote_char(), symbol_not_found_error(), throw_exception(), token, TRY, ls_token::type, unexpected_linespec_error(), VEC_safe_push, and xfree().
Referenced by decode_line_1(), and decode_line_full().
|
static |
Definition at line 3603 of file linespec.c.
References add_minsym(), ALL_OBJFILES, ALL_PSPACES, classify_mtype(), compare_msyms(), do_cleanups(), program_space::executing_startup, linespec_state::funfirstline, collect_minsyms::funfirstline, iterate_over_minimal_symbols(), linespec_state::list_mode, collect_minsyms::list_mode, make_cleanup(), bound_minimal_symbol::minsym, MSYMBOL_TYPE, collect_minsyms::objfile, qsort, collect_info::result, set_current_program_space(), collect_info::state, collect_minsyms::symtab, SYMTAB_OBJFILE, SYMTAB_PSPACE, VEC_address, VEC_cleanup, VEC_empty, VEC_index, VEC_iterate, VEC_length, and VEC_safe_push.
Referenced by add_matching_symbols_to_info().
Definition at line 485 of file linespec.c.
References find_toplevel_char().
Referenced by linespec_lexer_lex_string(), and parse_linespec().
|
static |
Definition at line 1504 of file linespec.c.
References _, have_full_symbols(), have_minimal_symbols(), have_partial_symbols(), NOT_FOUND_ERROR, and throw_error().
Referenced by parse_linespec().
|
static |
Definition at line 3731 of file linespec.c.
References symtab_and_line::explicit_pc, find_function_start_sal(), init_sal(), symtab_and_line::line, LOC_BLOCK, LOC_LABEL, symtab_and_line::pc, symtab_and_line::pspace, SYMBOL_CLASS, SYMBOL_LINE, symbol_symtab(), SYMBOL_VALUE_ADDRESS, symtab_and_line::symtab, and SYMTAB_PSPACE.
Referenced by convert_linespec_to_sals().
|
static |
Definition at line 1546 of file linespec.c.
References _, copy_token_string(), GENERIC_ERROR, linespec_lexer_lex_one(), LSTOKEN_KEYWORD, LSTOKEN_NUMBER, LSTOKEN_STRING, make_cleanup(), string, throw_error(), token, ls_token::type, and xfree().
Referenced by linespec_parse_basic(), and parse_linespec().
|
static |
Definition at line 320 of file linespec.c.
Referenced by decode_digits_ordinary(), decode_line_2(), decode_line_full(), decode_objc(), find_function_symbols(), find_linespec_symbols(), find_method(), find_superclass_methods(), and linespec_parse_basic().
|
static |
Definition at line 2738 of file linespec.c.
References collect_one_symbol(), discard_cleanups(), do_cleanups(), gdb_assert, iterate_over_all_matching_symtabs(), iterate_over_file_blocks(), make_cleanup(), make_cleanup_htab_delete(), set_current_program_space(), STRUCT_DOMAIN, SYMTAB_PSPACE, VAR_DOMAIN, VEC_cleanup, VEC_iterate, xcalloc(), and xfree().
|
static |
Definition at line 3017 of file linespec.c.
References add_symtabs_to_list(), ALL_PSPACES, do_cleanups(), program_space::executing_startup, iterate_over_symtabs(), make_cleanup_htab_delete(), and set_current_program_space().
Definition at line 248 of file linespec.c.
Referenced by linespec_lexer_lex_keyword().