GDB (xrefs)
|
#include "defs.h"
#include "gdbsupport/gdb_assert.h"
#include "gdbsupport/gdb-checked-static-cast.h"
#include "location.h"
#include "symtab.h"
#include "language.h"
#include "linespec.h"
#include "cli/cli-utils.h"
#include "probe.h"
#include "cp-support.h"
#include <ctype.h>
#include <string.h>
Go to the source code of this file.
const address_location_spec * as_address_location_spec | ( | const location_spec * | locspec | ) |
Definition at line 240 of file location.c.
References ADDRESS_LOCATION_SPEC, and location_spec::type().
Referenced by location_spec_to_sals().
const explicit_location_spec * as_explicit_location_spec | ( | const location_spec * | locspec | ) |
Definition at line 266 of file location.c.
References EXPLICIT_LOCATION_SPEC, and location_spec::type().
Referenced by canonicalize_linespec(), collect_explicit_location_matches(), location_completer(), and location_spec_to_sals().
explicit_location_spec * as_explicit_location_spec | ( | location_spec * | locspec | ) |
Definition at line 275 of file location.c.
References EXPLICIT_LOCATION_SPEC, and location_spec::type().
const linespec_location_spec * as_linespec_location_spec | ( | const location_spec * | locspec | ) |
Definition at line 221 of file location.c.
References LINESPEC_LOCATION_SPEC, and location_spec::type().
Referenced by static_marker_tracepoint::decode_location_spec(), location_spec_to_sals(), parse_breakpoint_sals(), and strace_marker_create_sals_from_location_spec().
const probe_location_spec * as_probe_location_spec | ( | const location_spec * | locspec | ) |
Definition at line 257 of file location.c.
References PROBE_LOCATION_SPEC, and location_spec::type().
|
static |
Definition at line 384 of file location.c.
References CP_OPERATOR_LEN, CP_OPERATOR_STR, find_end_quote(), get_gdb_linespec_parser_quote_characters(), language_cplus, linespec_lexer_lex_keyword(), explicit_completion_info::quoted_arg_end, and explicit_completion_info::quoted_arg_start.
Referenced by string_to_explicit_location_spec().
|
static |
Definition at line 535 of file location.c.
References find_toplevel_char(), first_of(), get_gdb_linespec_parser_quote_characters(), is_ada_operator(), language_ada, linespec_lexer_lex_keyword(), explicit_completion_info::quoted_arg_end, explicit_completion_info::quoted_arg_start, and skip_op_false_positives().
Referenced by string_to_explicit_location_spec().
|
static |
Definition at line 288 of file location.c.
References FULL, explicit_location_spec::func_name_match_type, explicit_location_spec::function_name, explicit_location_spec::label_name, explicit_location_spec::line_offset, LINE_OFFSET_NONE, LINE_OFFSET_PLUS, LINE_OFFSET_UNKNOWN, line_offset::offset, ui_file::printf(), ui_file::putc(), ui_file::puts(), string_file::release(), line_offset::sign, and explicit_location_spec::source_filename.
Referenced by explicit_location_spec::compute_string(), and explicit_location_spec::to_linespec().
|
static |
Definition at line 354 of file location.c.
References scan().
Referenced by explicit_location_spec_lex_one().
|
static |
Definition at line 519 of file location.c.
Referenced by explicit_location_spec_lex_one_function().
|
static |
Definition at line 462 of file location.c.
References CP_OPERATOR_LEN, and CP_OPERATOR_STR.
Referenced by skip_op_false_positives().
|
static |
Definition at line 40 of file location.c.
location_spec_up new_address_location_spec | ( | CORE_ADDR | addr, |
const char * | addr_string, | ||
int | addr_string_len ) |
Definition at line 230 of file location.c.
Referenced by bpfinishpy_init(), code_breakpoint::code_breakpoint(), create_thread_event_breakpoint(), and string_to_location_spec_basic().
location_spec_up new_linespec_location_spec | ( | const char ** | linespec, |
symbol_name_match_type | match_type ) |
Definition at line 211 of file location.c.
Referenced by decode_objc(), maint_agent_command_1(), strace_command(), strace_marker_create_sals_from_location_spec(), and string_to_location_spec_basic().
location_spec_up new_probe_location_spec | ( | std::string && | probe | ) |
Definition at line 249 of file location.c.
Referenced by create_exception_master_breakpoint_probe(), create_longjmp_master_breakpoint_probe(), parse_probes(), exception_catchpoint::re_set(), and string_to_location_spec_basic().
|
static |
Definition at line 500 of file location.c.
References find_toplevel_char(), and is_cp_operator().
Referenced by explicit_location_spec_lex_one_function().
location_spec_up string_to_explicit_location_spec | ( | const char ** | argp, |
const struct language_defn * | language, | ||
explicit_completion_info * | completion_info ) |
Definition at line 629 of file location.c.
References explicit_location_spec_lex_one(), explicit_location_spec_lex_one_function(), FULL, explicit_completion_info::last_option, LINE_OFFSET_UNKNOWN, linespec_lexer_lex_keyword(), linespec_parse_line_offset(), explicit_completion_info::quoted_arg_end, explicit_completion_info::quoted_arg_start, and explicit_completion_info::saw_explicit_location_spec_option.
Referenced by location_completer(), and string_to_location_spec().
location_spec_up string_to_location_spec | ( | const char ** | stringp, |
const struct language_defn * | language, | ||
symbol_name_match_type | match_type ) |
Definition at line 825 of file location.c.
References explicit_location_spec::func_name_match_type, string_to_explicit_location_spec(), and string_to_location_spec_basic().
Referenced by bppy_init(), break_command_1(), break_range_command(), create_tracepoint_from_upload(), decode_line_with_current_source(), decode_line_with_last_displayed(), dprintf_command(), edit_command(), ftrace_command(), info_scope_command(), list_command(), strace_command(), trace_command(), and until_break_command().
location_spec_up string_to_location_spec_basic | ( | const char ** | stringp, |
const struct language_defn * | language, | ||
symbol_name_match_type | match_type ) |
Definition at line 785 of file location.c.
References linespec_expression_to_pc(), new_address_location_spec(), new_linespec_location_spec(), new_probe_location_spec(), and probe_linespec_to_static_ops().
Referenced by gdbscm_register_breakpoint_x(), mi_cmd_break_insert_1(), and string_to_location_spec().