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

#include "cooked-index.h"

Inheritance diagram for cooked_index_entry:

Public Types

enum  comparison_mode { MATCH , SORT , COMPLETE }
 

Public Member Functions

 cooked_index_entry (sect_offset die_offset_, enum dwarf_tag tag_, cooked_index_flag flags_, const char *name_, const cooked_index_entry *parent_entry_, dwarf2_per_cu_data *per_cu_)
 
bool matches (block_search_flags search_flags) const
 
bool matches (domain_enum domain) const
 
bool matches (enum search_domain kind) const
 
const char * full_name (struct obstack *storage, bool for_main=false) const
 
bool operator< (const cooked_index_entry &other) const
 

Static Public Member Functions

static int compare (const char *stra, const char *strb, comparison_mode mode)
 

Public Attributes

const char * name
 
const char * canonical = nullptr
 
enum dwarf_tag tag
 
cooked_index_flag flags
 
sect_offset die_offset
 
const cooked_index_entryparent_entry
 
dwarf2_per_cu_dataper_cu
 

Private Member Functions

void write_scope (struct obstack *storage, const char *sep, bool for_name) const
 

Detailed Description

Definition at line 71 of file cooked-index.h.

Member Enumeration Documentation

◆ comparison_mode

Enumerator
MATCH 
SORT 
COMPLETE 

Definition at line 158 of file cooked-index.h.

Constructor & Destructor Documentation

◆ cooked_index_entry()

cooked_index_entry::cooked_index_entry ( sect_offset  die_offset_,
enum dwarf_tag  tag_,
cooked_index_flag  flags_,
const char *  name_,
const cooked_index_entry parent_entry_,
dwarf2_per_cu_data per_cu_ 
)
inline

Definition at line 73 of file cooked-index.h.

Member Function Documentation

◆ compare()

int cooked_index_entry::compare ( const char *  stra,
const char *  strb,
comparison_mode  mode 
)
static

Definition at line 44 of file cooked-index.c.

References c1, c2, COMPLETE, and MATCH.

Referenced by operator<().

◆ full_name()

const char * cooked_index_entry::full_name ( struct obstack *  storage,
bool  for_main = false 
) const

◆ matches() [1/3]

bool cooked_index_entry::matches ( block_search_flags  search_flags) const
inline

◆ matches() [2/3]

bool cooked_index_entry::matches ( domain_enum  domain) const
inline

◆ matches() [3/3]

bool cooked_index_entry::matches ( enum search_domain  kind) const
inline

◆ operator<()

bool cooked_index_entry::operator< ( const cooked_index_entry other) const
inline

Definition at line 201 of file cooked-index.h.

References canonical, compare(), and SORT.

◆ write_scope()

void cooked_index_entry::write_scope ( struct obstack *  storage,
const char *  sep,
bool  for_name 
) const
private

Definition at line 190 of file cooked-index.c.

References canonical, name, parent_entry, and write_scope().

Referenced by full_name(), and write_scope().

Member Data Documentation

◆ canonical

const char* cooked_index_entry::canonical = nullptr

◆ die_offset

sect_offset cooked_index_entry::die_offset

◆ flags

cooked_index_flag cooked_index_entry::flags

Definition at line 217 of file cooked-index.h.

Referenced by full_name(), debug_names::insert(), and matches().

◆ name

const char* cooked_index_entry::name

◆ parent_entry

const cooked_index_entry* cooked_index_entry::parent_entry

◆ per_cu

dwarf2_per_cu_data* cooked_index_entry::per_cu

◆ tag

enum dwarf_tag cooked_index_entry::tag

Definition at line 215 of file cooked-index.h.

Referenced by debug_names::insert(), and matches().


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