MCPcopy Create free account
hub / github.com/GPUOpen-Tools/radeon_gpu_analyzer / GetInfo

Method GetInfo

external/celf/Src/CElfSymbolTable.cpp:141–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool
142CElfSymbolTable::GetInfo(
143 const_SymbolIterator sym,
144 std::string* name,
145 unsigned char* bind,
146 unsigned char* type,
147 unsigned char* other,
148 CElfSection** section,
149 Elf64_Addr* value,
150 Elf64_Xword* size) const
151{
152 if (name == NULL || bind == NULL || type == NULL || other == NULL ||
153 section == NULL || value == NULL || size == NULL)
154 {
155 return false;
156 }
157
158 *name = sym->symName;
159 unsigned char info = sym->symEntry.st_info;
160 *bind = ELF32_ST_BIND(info);
161 *type = ELF32_ST_TYPE(info);
162 *other = sym->symEntry.st_other;
163 *section = sym->symSection;
164 *value = sym->symEntry.st_value;
165 *size = sym->symEntry.st_size;
166
167 return true;
168}
169
170bool
171CElfSymbolTable::SetInfo(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected