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

#include "file-and-dir.h"

Public Member Functions

 file_and_directory (const char *name, const char *dir)
 
bool is_unknown () const
 
void set_comp_dir (std::string &&dir)
 
const char * get_comp_dir () const
 
const char * intern_comp_dir (struct objfile *objfile)
 
const char * get_name () const
 
void set_name (gdb::unique_xmalloc_ptr< char > name)
 
const char * get_fullname ()
 
void forget_fullname ()
 

Private Attributes

const char * m_name
 
gdb::unique_xmalloc_ptr< char > m_name_storage
 
const char * m_comp_dir
 
std::string m_comp_dir_storage
 
gdb::unique_xmalloc_ptr< char > m_fullname
 

Detailed Description

Definition at line 37 of file file-and-dir.h.

Constructor & Destructor Documentation

◆ file_and_directory()

file_and_directory::file_and_directory ( const char * name,
const char * dir )
inline

Definition at line 39 of file file-and-dir.h.

Member Function Documentation

◆ forget_fullname()

void file_and_directory::forget_fullname ( )
inline

Definition at line 103 of file file-and-dir.h.

References m_fullname.

◆ get_comp_dir()

const char * file_and_directory::get_comp_dir ( ) const
inline

◆ get_fullname()

const char * file_and_directory::get_fullname ( )
inline

◆ get_name()

const char * file_and_directory::get_name ( ) const
inline

◆ intern_comp_dir()

const char * file_and_directory::intern_comp_dir ( struct objfile * objfile)
inline

Definition at line 71 of file file-and-dir.h.

References objfile::intern(), m_comp_dir, and m_comp_dir_storage.

Referenced by dw2_get_file_names_reader(), and read_file_scope().

◆ is_unknown()

bool file_and_directory::is_unknown ( ) const
inline

Definition at line 46 of file file-and-dir.h.

References m_name.

Referenced by dw2_get_file_names_reader().

◆ set_comp_dir()

void file_and_directory::set_comp_dir ( std::string && dir)
inline

Definition at line 52 of file file-and-dir.h.

References m_comp_dir, and m_comp_dir_storage.

Referenced by find_file_and_directory().

◆ set_name()

void file_and_directory::set_name ( gdb::unique_xmalloc_ptr< char > name)
inline

Definition at line 88 of file file-and-dir.h.

References m_name, m_name_storage, and name.

Referenced by find_file_and_directory().

Member Data Documentation

◆ m_comp_dir

const char* file_and_directory::m_comp_dir
private

Definition at line 120 of file file-and-dir.h.

Referenced by get_comp_dir(), intern_comp_dir(), and set_comp_dir().

◆ m_comp_dir_storage

std::string file_and_directory::m_comp_dir_storage
private

Definition at line 123 of file file-and-dir.h.

Referenced by get_comp_dir(), intern_comp_dir(), and set_comp_dir().

◆ m_fullname

gdb::unique_xmalloc_ptr<char> file_and_directory::m_fullname
private

Definition at line 126 of file file-and-dir.h.

Referenced by forget_fullname(), and get_fullname().

◆ m_name

const char* file_and_directory::m_name
private

Definition at line 111 of file file-and-dir.h.

Referenced by get_name(), is_unknown(), and set_name().

◆ m_name_storage

gdb::unique_xmalloc_ptr<char> file_and_directory::m_name_storage
private

Definition at line 114 of file file-and-dir.h.

Referenced by set_name().


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