GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
linespec_location_spec Struct Reference

#include "location.h"

Inheritance diagram for linespec_location_spec:
location_spec

Public Member Functions

 linespec_location_spec (const char **linespec, symbol_name_match_type match_type)
 
 ~linespec_location_spec ()
 
location_spec_up clone () const override
 
bool empty_p () const override
 
- Public Member Functions inherited from location_spec
virtual ~location_spec ()=default
 
const char * to_string () const
 
void set_string (std::string &&string)
 
enum location_spec_type type () const
 

Public Attributes

symbol_name_match_type match_type
 
char * spec_string = nullptr
 

Protected Member Functions

 linespec_location_spec (const linespec_location_spec &other)
 
std::string compute_string () const override
 
- Protected Member Functions inherited from location_spec
 location_spec (enum location_spec_type t)
 
 location_spec (enum location_spec_type t, std::string &&str)
 
 location_spec (const location_spec &other)
 

Additional Inherited Members

- Protected Attributes inherited from location_spec
std::string m_as_string
 

Detailed Description

Definition at line 147 of file location.h.

Constructor & Destructor Documentation

◆ linespec_location_spec() [1/2]

linespec_location_spec::linespec_location_spec ( const char ** linespec,
symbol_name_match_type match_type )

Definition at line 68 of file location.c.

References linespec_lex_to_end(), remove_trailing_whitespace(), and spec_string.

◆ ~linespec_location_spec()

linespec_location_spec::~linespec_location_spec ( )

Definition at line 90 of file location.c.

References spec_string, and xfree().

◆ linespec_location_spec() [2/2]

linespec_location_spec::linespec_location_spec ( const linespec_location_spec & other)
protected

Definition at line 107 of file location.c.

Member Function Documentation

◆ clone()

location_spec_up linespec_location_spec::clone ( ) const
overridevirtual

Implements location_spec.

Definition at line 96 of file location.c.

◆ compute_string()

std::string linespec_location_spec::compute_string ( ) const
overrideprotectedvirtual

Implements location_spec.

Definition at line 116 of file location.c.

References FULL, match_type, and spec_string.

◆ empty_p()

bool linespec_location_spec::empty_p ( ) const
overridevirtual

Implements location_spec.

Definition at line 102 of file location.c.

Member Data Documentation

◆ match_type

symbol_name_match_type linespec_location_spec::match_type

Definition at line 159 of file location.h.

Referenced by compute_string(), and location_spec_to_sals().

◆ spec_string

char* linespec_location_spec::spec_string = nullptr

The documentation for this struct was generated from the following files: