GDB (xrefs)
Classes | Typedefs | Enumerations | Functions
/tmp/gdb-8.1/gdb/location.h File Reference

Go to the source code of this file.

Classes

struct  line_offset
 
struct  linespec_location
 
struct  explicit_location
 
struct  event_location_deleter
 
struct  explicit_completion_info
 

Typedefs

typedef std::unique_ptr< event_location, event_location_deleterevent_location_up
 

Enumerations

enum  offset_relative_sign { LINE_OFFSET_NONE, LINE_OFFSET_PLUS, LINE_OFFSET_MINUS, LINE_OFFSET_UNKNOWN }
 
enum  event_location_type { LINESPEC_LOCATION, ADDRESS_LOCATION, EXPLICIT_LOCATION, PROBE_LOCATION }
 

Functions

enum event_location_type event_location_type (const struct event_location *)
 
char * explicit_location_to_string (const struct explicit_location *explicit_loc)
 
char * explicit_location_to_linespec (const struct explicit_location *explicit_loc)
 
const char * event_location_to_string (struct event_location *location)
 
event_location_up new_linespec_location (const char **linespec, symbol_name_match_type match_type)
 
const linespec_locationget_linespec_location (const struct event_location *location)
 
event_location_up new_address_location (CORE_ADDR addr, const char *addr_string, int addr_string_len)
 
CORE_ADDR get_address_location (const struct event_location *location)
 
const char * get_address_string_location (const struct event_location *location)
 
event_location_up new_probe_location (const char *probe)
 
const char * get_probe_location (const struct event_location *location)
 
void initialize_explicit_location (struct explicit_location *explicit_loc)
 
event_location_up new_explicit_location (const struct explicit_location *explicit_loc)
 
struct explicit_locationget_explicit_location (struct event_location *location)
 
const struct explicit_locationget_explicit_location_const (const struct event_location *location)
 
event_location_up copy_event_location (const struct event_location *src)
 
event_location_up string_to_event_location (const char **argp, const struct language_defn *langauge, symbol_name_match_type match_type=symbol_name_match_type::WILD)
 
event_location_up string_to_event_location_basic (const char **argp, const struct language_defn *language, symbol_name_match_type match_type)
 
event_location_up string_to_explicit_location (const char **argp, const struct language_defn *language, explicit_completion_info *completion_info)
 
int event_location_empty_p (const struct event_location *location)
 
void set_event_location_string (struct event_location *location, const char *string)
 

Typedef Documentation

◆ event_location_up

Definition at line 140 of file location.h.

Enumeration Type Documentation

◆ event_location_type

Enumerator
LINESPEC_LOCATION 
ADDRESS_LOCATION 
EXPLICIT_LOCATION 
PROBE_LOCATION 

Definition at line 54 of file location.h.

◆ offset_relative_sign

Enumerator
LINE_OFFSET_NONE 
LINE_OFFSET_PLUS 
LINE_OFFSET_MINUS 
LINE_OFFSET_UNKNOWN 

Definition at line 27 of file location.h.

Function Documentation

◆ copy_event_location()

event_location_up copy_event_location ( const struct event_location src)

◆ event_location_empty_p()

int event_location_empty_p ( const struct event_location location)

◆ event_location_to_string()

const char* event_location_to_string ( struct event_location location)

◆ event_location_type()

Definition at line 70 of file location.c.

References EL_TYPE.

◆ explicit_location_to_linespec()

char* explicit_location_to_linespec ( const struct explicit_location explicit_loc)

Definition at line 299 of file location.c.

References explicit_to_string_internal().

Referenced by canonicalize_linespec().

◆ explicit_location_to_string()

char* explicit_location_to_string ( const struct explicit_location explicit_loc)

Definition at line 291 of file location.c.

References explicit_to_string_internal().

Referenced by event_location_to_string().

◆ get_address_location()

CORE_ADDR get_address_location ( const struct event_location location)

Definition at line 137 of file location.c.

References ADDRESS_LOCATION, EL_ADDRESS, EL_TYPE, and gdb_assert.

Referenced by event_location_to_sals().

◆ get_address_string_location()

const char* get_address_string_location ( const struct event_location location)

Definition at line 146 of file location.c.

References ADDRESS_LOCATION, EL_STRING, EL_TYPE, and gdb_assert.

Referenced by event_location_to_sals().

◆ get_explicit_location()

struct explicit_location* get_explicit_location ( struct event_location location)

◆ get_explicit_location_const()

const struct explicit_location* get_explicit_location_const ( const struct event_location location)

Definition at line 222 of file location.c.

References EL_EXPLICIT, EL_TYPE, EXPLICIT_LOCATION, and gdb_assert.

Referenced by event_location_to_sals().

◆ get_linespec_location()

const linespec_location* get_linespec_location ( const struct event_location location)

◆ get_probe_location()

const char* get_probe_location ( const struct event_location location)

Definition at line 169 of file location.c.

References EL_PROBE, EL_TYPE, gdb_assert, and PROBE_LOCATION.

Referenced by parse_probes().

◆ initialize_explicit_location()

void initialize_explicit_location ( struct explicit_location explicit_loc)

◆ new_address_location()

event_location_up new_address_location ( CORE_ADDR  addr,
const char *  addr_string,
int  addr_string_len 
)

◆ new_explicit_location()

event_location_up new_explicit_location ( const struct explicit_location explicit_loc)

◆ new_linespec_location()

event_location_up new_linespec_location ( const char **  linespec,
symbol_name_match_type  match_type 
)

◆ new_probe_location()

event_location_up new_probe_location ( const char *  probe)

◆ set_event_location_string()

void set_event_location_string ( struct event_location location,
const char *  string 
)

Definition at line 981 of file location.c.

References EL_STRING, and xfree().

Referenced by canonicalize_linespec().

◆ string_to_event_location()

event_location_up string_to_event_location ( const char **  argp,
const struct language_defn langauge,
symbol_name_match_type  match_type = symbol_name_match_type::WILD 
)

◆ string_to_event_location_basic()

event_location_up string_to_event_location_basic ( const char **  argp,
const struct language_defn language,
symbol_name_match_type  match_type 
)

◆ string_to_explicit_location()

event_location_up string_to_explicit_location ( const char **  argp,
const struct language_defn language,
explicit_completion_info completion_info 
)