mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:18:11 +00:00
LibDebug: Miscellaneous fixes from #2097
This commit is contained in:
parent
42b61cfe2c
commit
5fd64045b1
5 changed files with 5 additions and 5 deletions
|
@ -186,7 +186,7 @@ NonnullOwnPtr<DebugInfo::VariableInfo> DebugInfo::create_variable_info(const Dwa
|
|||
if (type_name.has_value()) {
|
||||
variable_info->type = type_name.value().data.as_string;
|
||||
} else {
|
||||
dbg() << "Unnamed DWRAF type at offset: " << type_die.offset();
|
||||
dbg() << "Unnamed DWARF type at offset: " << type_die.offset();
|
||||
variable_info->name = "[Unnamed Type]";
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ public:
|
|||
|
||||
struct VariablesScope {
|
||||
bool is_function { false };
|
||||
Optional<String> name;
|
||||
String name;
|
||||
u32 address_low { 0 };
|
||||
u32 address_high { 0 };
|
||||
Vector<Dwarf::DIE> dies_of_variables;
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace Dwarf {
|
|||
|
||||
class CompilationUnit;
|
||||
|
||||
// DIE = Dwarf Information Entry
|
||||
// DIE = Debugging Information Entry
|
||||
class DIE {
|
||||
public:
|
||||
DIE(const CompilationUnit&, u32 offset);
|
||||
|
|
|
@ -42,7 +42,7 @@ ByteBuffer DwarfInfo::section_data(const String& section_name)
|
|||
{
|
||||
auto section = m_elf->image().lookup_section(section_name);
|
||||
ASSERT(!section.is_undefined());
|
||||
return ByteBuffer::wrap(reinterpret_cast<const u8*>(section.raw_data()), section.size());
|
||||
return section.wrapping_byte_buffer();
|
||||
}
|
||||
|
||||
void DwarfInfo::populate_compilation_units()
|
||||
|
|
|
@ -38,7 +38,7 @@ namespace Dwarf {
|
|||
|
||||
class DwarfInfo : public RefCounted<DwarfInfo> {
|
||||
public:
|
||||
static NonnullRefPtr<DwarfInfo> create(NonnullRefPtr<const ELF::Loader> elf) { return adopt(*new DwarfInfo(elf)); }
|
||||
static NonnullRefPtr<DwarfInfo> create(NonnullRefPtr<const ELF::Loader> elf) { return adopt(*new DwarfInfo(move(elf))); }
|
||||
|
||||
const ByteBuffer& debug_info_data() const { return m_debug_info_data; }
|
||||
const ByteBuffer& abbreviation_data() const { return m_abbreviation_data; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue