GDB (xrefs)
Loading...
Searching...
No Matches
Functions
location.c File Reference
#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.

Functions

static std::string explicit_to_string_internal (bool as_linespec, const explicit_location_spec *explicit_loc)
 
static char * maybe_xstrdup (const char *str)
 
location_spec_up new_linespec_location_spec (const char **linespec, symbol_name_match_type match_type)
 
const linespec_location_specas_linespec_location_spec (const location_spec *locspec)
 
location_spec_up new_address_location_spec (CORE_ADDR addr, const char *addr_string, int addr_string_len)
 
const address_location_specas_address_location_spec (const location_spec *locspec)
 
location_spec_up new_probe_location_spec (std::string &&probe)
 
const probe_location_specas_probe_location_spec (const location_spec *locspec)
 
const explicit_location_specas_explicit_location_spec (const location_spec *locspec)
 
explicit_location_specas_explicit_location_spec (location_spec *locspec)
 
static const char * find_end_quote (const char *s, char end_quote_char)
 
static gdb::unique_xmalloc_ptr< char > explicit_location_spec_lex_one (const char **inp, const struct language_defn *language, explicit_completion_info *completion_info)
 
static bool is_cp_operator (const char *start, const char *comma)
 
static const char * skip_op_false_positives (const char *start, const char *found)
 
static const char * first_of (const char *first, const char *new_tok)
 
static gdb::unique_xmalloc_ptr< char > explicit_location_spec_lex_one_function (const char **inp, const struct language_defn *language, explicit_completion_info *completion_info)
 
location_spec_up string_to_explicit_location_spec (const char **argp, const struct language_defn *language, explicit_completion_info *completion_info)
 
location_spec_up string_to_location_spec_basic (const char **stringp, const struct language_defn *language, symbol_name_match_type match_type)
 
location_spec_up string_to_location_spec (const char **stringp, const struct language_defn *language, symbol_name_match_type match_type)
 

Function Documentation

◆ as_address_location_spec()

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().

◆ as_explicit_location_spec() [1/2]

const explicit_location_spec * as_explicit_location_spec ( const location_spec * locspec)

◆ as_explicit_location_spec() [2/2]

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().

◆ as_linespec_location_spec()

const linespec_location_spec * as_linespec_location_spec ( const location_spec * locspec)

◆ as_probe_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().

◆ explicit_location_spec_lex_one()

static gdb::unique_xmalloc_ptr< char > explicit_location_spec_lex_one ( const char ** inp,
const struct language_defn * language,
explicit_completion_info * completion_info )
static

◆ explicit_location_spec_lex_one_function()

static gdb::unique_xmalloc_ptr< char > explicit_location_spec_lex_one_function ( const char ** inp,
const struct language_defn * language,
explicit_completion_info * completion_info )
static

◆ explicit_to_string_internal()

static std::string explicit_to_string_internal ( bool as_linespec,
const explicit_location_spec * explicit_loc )
static

◆ find_end_quote()

static const char * find_end_quote ( const char * s,
char end_quote_char )
static

Definition at line 354 of file location.c.

References scan().

Referenced by explicit_location_spec_lex_one().

◆ first_of()

static const char * first_of ( const char * first,
const char * new_tok )
static

Definition at line 519 of file location.c.

Referenced by explicit_location_spec_lex_one_function().

◆ is_cp_operator()

static bool is_cp_operator ( const char * start,
const char * comma )
static

Definition at line 462 of file location.c.

References CP_OPERATOR_LEN, and CP_OPERATOR_STR.

Referenced by skip_op_false_positives().

◆ maybe_xstrdup()

static char * maybe_xstrdup ( const char * str)
static

Definition at line 40 of file location.c.

◆ new_address_location_spec()

location_spec_up new_address_location_spec ( CORE_ADDR addr,
const char * addr_string,
int addr_string_len )

◆ new_linespec_location_spec()

location_spec_up new_linespec_location_spec ( const char ** linespec,
symbol_name_match_type match_type )

◆ new_probe_location_spec()

location_spec_up new_probe_location_spec ( std::string && probe)

◆ skip_op_false_positives()

static const char * skip_op_false_positives ( const char * start,
const char * found )
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().

◆ string_to_explicit_location_spec()

location_spec_up string_to_explicit_location_spec ( const char ** argp,
const struct language_defn * language,
explicit_completion_info * completion_info )

◆ 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 )

◆ string_to_location_spec_basic()

location_spec_up string_to_location_spec_basic ( const char ** stringp,
const struct language_defn * language,
symbol_name_match_type match_type )