[Haiku-commits] r31281 - haiku/trunk/src/apps/debugger/dwarf

bonefish at BerliOS bonefish at mail.berlios.de
Sun Jun 28 01:36:51 CEST 2009


Author: bonefish
Date: 2009-06-28 01:36:50 +0200 (Sun, 28 Jun 2009)
New Revision: 31281
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31281&view=rev

Modified:
   haiku/trunk/src/apps/debugger/dwarf/DwarfManager.cpp
   haiku/trunk/src/apps/debugger/dwarf/DwarfManager.h
Log:
LoadFile() returns the loaded file, now.


Modified: haiku/trunk/src/apps/debugger/dwarf/DwarfManager.cpp
===================================================================
--- haiku/trunk/src/apps/debugger/dwarf/DwarfManager.cpp	2009-06-27 23:35:37 UTC (rev 31280)
+++ haiku/trunk/src/apps/debugger/dwarf/DwarfManager.cpp	2009-06-27 23:36:50 UTC (rev 31281)
@@ -33,7 +33,7 @@
 
 
 status_t
-DwarfManager::LoadFile(const char* fileName)
+DwarfManager::LoadFile(const char* fileName, DwarfFile*& _file)
 {
 	AutoLocker<DwarfManager> locker(this);
 
@@ -49,6 +49,7 @@
 
 	fFiles.Add(file);
 
+	_file = file;
 	return B_OK;
 }
 

Modified: haiku/trunk/src/apps/debugger/dwarf/DwarfManager.h
===================================================================
--- haiku/trunk/src/apps/debugger/dwarf/DwarfManager.h	2009-06-27 23:35:37 UTC (rev 31280)
+++ haiku/trunk/src/apps/debugger/dwarf/DwarfManager.h	2009-06-27 23:36:50 UTC (rev 31281)
@@ -23,7 +23,8 @@
 			bool				Lock()		{ return fLock.Lock(); }
 			void				Unlock()	{ fLock.Unlock(); }
 
-			status_t			LoadFile(const char* fileName);
+			status_t			LoadFile(const char* fileName,
+									DwarfFile*& _file);
 			status_t			FinishLoading();
 
 private:




More information about the Haiku-commits mailing list