[Haiku-commits] r31125 - haiku/trunk/src/apps/debugger/debugger_interface

bonefish at BerliOS bonefish at mail.berlios.de
Fri Jun 19 23:58:48 CEST 2009


Author: bonefish
Date: 2009-06-19 23:58:48 +0200 (Fri, 19 Jun 2009)
New Revision: 31125
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31125&view=rev

Modified:
   haiku/trunk/src/apps/debugger/debugger_interface/DebuggerInterface.cpp
   haiku/trunk/src/apps/debugger/debugger_interface/DebuggerInterface.h
Log:
Added ReadMemory().


Modified: haiku/trunk/src/apps/debugger/debugger_interface/DebuggerInterface.cpp
===================================================================
--- haiku/trunk/src/apps/debugger/debugger_interface/DebuggerInterface.cpp	2009-06-19 21:56:08 UTC (rev 31124)
+++ haiku/trunk/src/apps/debugger/debugger_interface/DebuggerInterface.cpp	2009-06-19 21:58:48 UTC (rev 31125)
@@ -434,6 +434,16 @@
 }
 
 
+ssize_t
+DebuggerInterface::ReadMemory(target_addr_t address, void* buffer, size_t size)
+{
+	DebugContextGetter contextGetter(fDebugContextPool);
+
+	return debug_read_memory(contextGetter.Context(),
+		(const void*)(addr_t)address, buffer, size);
+}
+
+
 status_t
 DebuggerInterface::_CreateDebugEvent(int32 messageCode,
 	const debug_debugger_message_data& message, bool& _ignore,

Modified: haiku/trunk/src/apps/debugger/debugger_interface/DebuggerInterface.h
===================================================================
--- haiku/trunk/src/apps/debugger/debugger_interface/DebuggerInterface.h	2009-06-19 21:56:08 UTC (rev 31124)
+++ haiku/trunk/src/apps/debugger/debugger_interface/DebuggerInterface.h	2009-06-19 21:58:48 UTC (rev 31125)
@@ -10,7 +10,9 @@
 #include <debug_support.h>
 #include <ObjectList.h>
 
+#include "ArchitectureTypes.h"
 
+
 class Architecture;
 class CpuState;
 class DebugEvent;
@@ -46,6 +48,9 @@
 									CpuState*& _state);
 										// returns a reference to the caller
 
+	ssize_t						ReadMemory(target_addr_t address, void* buffer,
+									size_t size);
+
 private:
 	struct DebugContext;
 	struct DebugContextPool;




More information about the Haiku-commits mailing list