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

#include "location.h"

Inheritance diagram for explicit_location_spec:
location_spec

Public Member Functions

 explicit_location_spec ()
 
 ~explicit_location_spec ()
 
location_spec_up clone () const override
 
bool empty_p () const override
 
std::string to_linespec () const
 
- 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

char * source_filename = nullptr
 
char * function_name = nullptr
 
symbol_name_match_type func_name_match_type = symbol_name_match_type::WILD
 
char * label_name = nullptr
 
struct line_offset line_offset
 

Protected Member Functions

 explicit_location_spec (const explicit_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 193 of file location.h.

Constructor & Destructor Documentation

◆ explicit_location_spec() [1/2]

explicit_location_spec::explicit_location_spec ( )

Definition at line 164 of file location.c.

◆ ~explicit_location_spec()

explicit_location_spec::~explicit_location_spec ( )

Definition at line 169 of file location.c.

References function_name, label_name, source_filename, and xfree().

◆ explicit_location_spec() [2/2]

explicit_location_spec::explicit_location_spec ( const explicit_location_spec & other)
protected

Definition at line 176 of file location.c.

Member Function Documentation

◆ clone()

location_spec_up explicit_location_spec::clone ( ) const
overridevirtual

Implements location_spec.

Definition at line 188 of file location.c.

Referenced by canonicalize_linespec().

◆ compute_string()

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

Implements location_spec.

Definition at line 203 of file location.c.

References explicit_to_string_internal().

◆ empty_p()

bool explicit_location_spec::empty_p ( ) const
overridevirtual

Implements location_spec.

Definition at line 194 of file location.c.

References function_name, label_name, LINE_OFFSET_UNKNOWN, line_offset::sign, and source_filename.

◆ to_linespec()

std::string explicit_location_spec::to_linespec ( ) const

Definition at line 344 of file location.c.

References explicit_to_string_internal().

Referenced by canonicalize_linespec().

Member Data Documentation

◆ func_name_match_type

symbol_name_match_type explicit_location_spec::func_name_match_type = symbol_name_match_type::WILD

◆ function_name

char* explicit_location_spec::function_name = nullptr

◆ label_name

char* explicit_location_spec::label_name = nullptr

◆ line_offset

struct line_offset explicit_location_spec::line_offset

◆ source_filename

char* explicit_location_spec::source_filename = nullptr

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