[haiku-commits] r42359 - in haiku/trunk/src/apps/debugger: debug_info model value

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 1 Jul 2011 23:40:32 +0200 (CEST)

Author: anevilyak
Date: 2011-07-01 23:40:32 +0200 (Fri, 01 Jul 2011)
New Revision: 42359
Changeset: https://dev.haiku-os.org/changeset/42359

Modified:
   haiku/trunk/src/apps/debugger/debug_info/TeamDebugInfo.h
   haiku/trunk/src/apps/debugger/model/TeamMemory.h
   haiku/trunk/src/apps/debugger/model/TeamTypeInformation.h
   haiku/trunk/src/apps/debugger/value/ValueLoader.cpp
Log:
Resolved TODO: made TeamMemory and TeamTypeInformation BReferenceable.



Modified: haiku/trunk/src/apps/debugger/debug_info/TeamDebugInfo.h
===================================================================
--- haiku/trunk/src/apps/debugger/debug_info/TeamDebugInfo.h    2011-07-01 
21:33:42 UTC (rev 42358)
+++ haiku/trunk/src/apps/debugger/debug_info/TeamDebugInfo.h    2011-07-01 
21:40:32 UTC (rev 42359)
@@ -33,8 +33,7 @@
 class SpecificTeamDebugInfo;
 
 
-class TeamDebugInfo : public BReferenceable, public GlobalTypeLookup,
-       public TeamTypeInformation {
+class TeamDebugInfo : public GlobalTypeLookup, public TeamTypeInformation {
 public:
                                                                TeamDebugInfo(
                                                                        
DebuggerInterface* debuggerInterface,

Modified: haiku/trunk/src/apps/debugger/model/TeamMemory.h
===================================================================
--- haiku/trunk/src/apps/debugger/model/TeamMemory.h    2011-07-01 21:33:42 UTC 
(rev 42358)
+++ haiku/trunk/src/apps/debugger/model/TeamMemory.h    2011-07-01 21:40:32 UTC 
(rev 42359)
@@ -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();
 

Modified: haiku/trunk/src/apps/debugger/model/TeamTypeInformation.h
===================================================================
--- haiku/trunk/src/apps/debugger/model/TeamTypeInformation.h   2011-07-01 
21:33:42 UTC (rev 42358)
+++ haiku/trunk/src/apps/debugger/model/TeamTypeInformation.h   2011-07-01 
21:40:32 UTC (rev 42359)
@@ -15,7 +15,7 @@
 class TypeLookupConstraints;
 
 
-class TeamTypeInformation {
+class TeamTypeInformation : public BReferenceable {
 public:
        virtual                                         ~TeamTypeInformation();
 

Modified: haiku/trunk/src/apps/debugger/value/ValueLoader.cpp
===================================================================
--- haiku/trunk/src/apps/debugger/value/ValueLoader.cpp 2011-07-01 21:33:42 UTC 
(rev 42358)
+++ haiku/trunk/src/apps/debugger/value/ValueLoader.cpp 2011-07-01 21:40:32 UTC 
(rev 42359)
@@ -25,8 +25,9 @@
        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()
 {
        fArchitecture->ReleaseReference();
+       fTeamMemory->ReleaseReference();
+       fTypeInformation->ReleaseReference();
        if (fCpuState != NULL)
                fCpuState->ReleaseReference();
 }


Other related posts:

  • » [haiku-commits] r42359 - in haiku/trunk/src/apps/debugger: debug_info model value - anevilyak