diff --git a/src/apps/debugger/dwarf/DebugInfoEntries.cpp b/src/apps/debugger/dwarf/DebugInfoEntries.cpp index 34b0b4c890..56fe294597 100644 --- a/src/apps/debugger/dwarf/DebugInfoEntries.cpp +++ b/src/apps/debugger/dwarf/DebugInfoEntries.cpp @@ -872,6 +872,15 @@ DIEFormalParameter::AddAttribute_abstract_origin(uint16 attributeName, } +status_t +DIEFormalParameter::AddAttribute_artificial(uint16 attributeName, + const AttributeValue& value) +{ + fArtificial = value.flag; + return B_OK; +} + + status_t DIEFormalParameter::AddAttribute_const_value(uint16 attributeName, const AttributeValue& value) diff --git a/src/apps/debugger/dwarf/DebugInfoEntries.h b/src/apps/debugger/dwarf/DebugInfoEntries.h index 6f7d904528..7086689e62 100644 --- a/src/apps/debugger/dwarf/DebugInfoEntries.h +++ b/src/apps/debugger/dwarf/DebugInfoEntries.h @@ -558,16 +558,19 @@ public: const ConstantAttributeValue* ConstValue() const { return &fValue; } + bool IsArtificial() const { return fArtificial; } + virtual status_t AddAttribute_abstract_origin( uint16 attributeName, const AttributeValue& value); + virtual status_t AddAttribute_artificial(uint16 attributeName, + const AttributeValue& value); virtual status_t AddAttribute_const_value(uint16 attributeName, const AttributeValue& value); virtual status_t AddAttribute_type(uint16 attributeName, const AttributeValue& value); // TODO: -// DW_AT_artificial // DW_AT_default_value // DW_AT_endianity // DW_AT_is_optional @@ -579,6 +582,7 @@ private: DebugInfoEntry* fAbstractOrigin; DIEType* fType; ConstantAttributeValue fValue; + bool fArtificial; };