Resolved TODO: made TeamMemory and TeamTypeInformation BReferenceable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42359 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -33,8 +33,7 @@ class SourceLocation;
|
||||
class SpecificTeamDebugInfo;
|
||||
|
||||
|
||||
class TeamDebugInfo : public BReferenceable, public GlobalTypeLookup,
|
||||
public TeamTypeInformation {
|
||||
class TeamDebugInfo : public GlobalTypeLookup, public TeamTypeInformation {
|
||||
public:
|
||||
TeamDebugInfo(
|
||||
DebuggerInterface* debuggerInterface,
|
||||
|
||||
@@ -6,13 +6,15 @@
|
||||
#define TEAM_MEMORY_H
|
||||
|
||||
|
||||
#include <Referenceable.h>
|
||||
|
||||
#include "TargetAddressRange.h"
|
||||
|
||||
|
||||
class BString;
|
||||
|
||||
|
||||
class TeamMemory {
|
||||
class TeamMemory : public BReferenceable {
|
||||
public:
|
||||
virtual ~TeamMemory();
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class Type;
|
||||
class TypeLookupConstraints;
|
||||
|
||||
|
||||
class TeamTypeInformation {
|
||||
class TeamTypeInformation : public BReferenceable {
|
||||
public:
|
||||
virtual ~TeamTypeInformation();
|
||||
|
||||
|
||||
@@ -25,8 +25,9 @@ ValueLoader::ValueLoader(Architecture* architecture, TeamMemory* teamMemory,
|
||||
fTypeInformation(typeInformation),
|
||||
fCpuState(cpuState)
|
||||
{
|
||||
// TODO: TeamMemory is not BReferenceable!
|
||||
fArchitecture->AcquireReference();
|
||||
fTeamMemory->AcquireReference();
|
||||
fTypeInformation->AcquireReference();
|
||||
if (fCpuState != NULL)
|
||||
fCpuState->AcquireReference();
|
||||
}
|
||||
@@ -35,6 +36,8 @@ ValueLoader::ValueLoader(Architecture* architecture, TeamMemory* teamMemory,
|
||||
ValueLoader::~ValueLoader()
|
||||
{
|
||||
fArchitecture->ReleaseReference();
|
||||
fTeamMemory->ReleaseReference();
|
||||
fTypeInformation->ReleaseReference();
|
||||
if (fCpuState != NULL)
|
||||
fCpuState->ReleaseReference();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user