Skip to content

Commit

Permalink
Store template parameters for DIEClassBaseType.
Browse files Browse the repository at this point in the history
  • Loading branch information
anevilyak committed Dec 3, 2012
1 parent 05b08d4 commit 07eedfe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/apps/debugger/dwarf/DebugInfoEntries.cpp
Expand Up @@ -477,7 +477,12 @@ DIEClassBaseType::AddChild(DebugInfoEntry* child)
case DW_TAG_subprogram:
fMemberFunctions.Add(child);
return B_OK;
// TODO: Templates!
case DW_TAG_template_type_parameter:
fTemplateTypeParameters.Add(child);
return B_OK;
case DW_TAG_template_value_parameter:
fTemplateValueParameters.Add(child);
return B_OK;
// TODO: Variants!
default:
{
Expand Down
6 changes: 6 additions & 0 deletions src/apps/debugger/dwarf/DebugInfoEntries.h
Expand Up @@ -353,6 +353,10 @@ class DIEClassBaseType : public DIECompoundType {

const DebugInfoEntryList& BaseTypes() const
{ return fBaseTypes; }
const DebugInfoEntryList& TemplateTypeParameters() const
{ return fTemplateTypeParameters; }
const DebugInfoEntryList& TemplateValueParameters() const
{ return fTemplateValueParameters; }

virtual status_t AddChild(DebugInfoEntry* child);

Expand All @@ -362,6 +366,8 @@ class DIEClassBaseType : public DIECompoundType {
DebugInfoEntryList fAccessDeclarations;
DebugInfoEntryList fMemberFunctions;
DebugInfoEntryList fInnerTypes;
DebugInfoEntryList fTemplateTypeParameters;
DebugInfoEntryList fTemplateValueParameters;
};


Expand Down

0 comments on commit 07eedfe

Please sign in to comment.