From ade8662ece5b720ded2741eff2eab5a87062ed8b Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 15 Jul 2009 02:07:42 +0000 Subject: [PATCH] Added ReadValueFromMemory() version taking an "address space" + address pair as used by DWARF. Not needed/supported for x86. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31576 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debugger/arch/Architecture.h | 3 +++ src/apps/debugger/arch/x86/ArchitectureX86.cpp | 9 +++++++++ src/apps/debugger/arch/x86/ArchitectureX86.h | 3 +++ 3 files changed, 15 insertions(+) diff --git a/src/apps/debugger/arch/Architecture.h b/src/apps/debugger/arch/Architecture.h index 6d0170c353..7c6b687aa2 100644 --- a/src/apps/debugger/arch/Architecture.h +++ b/src/apps/debugger/arch/Architecture.h @@ -66,6 +66,9 @@ public: virtual status_t ReadValueFromMemory(target_addr_t address, uint32 valueType, BVariant& _value) const = 0; + virtual status_t ReadValueFromMemory(target_addr_t addressSpace, + target_addr_t address, uint32 valueType, + BVariant& _value) const = 0; virtual status_t DisassembleCode(FunctionDebugInfo* function, const void* buffer, size_t bufferSize, diff --git a/src/apps/debugger/arch/x86/ArchitectureX86.cpp b/src/apps/debugger/arch/x86/ArchitectureX86.cpp index 2d3df2be52..feed747776 100644 --- a/src/apps/debugger/arch/x86/ArchitectureX86.cpp +++ b/src/apps/debugger/arch/x86/ArchitectureX86.cpp @@ -454,6 +454,15 @@ ArchitectureX86::ReadValueFromMemory(target_addr_t address, uint32 valueType, } +status_t +ArchitectureX86::ReadValueFromMemory(target_addr_t addressSpace, + target_addr_t address, uint32 valueType, BVariant& _value) const +{ + // n/a on this architecture + return B_BAD_VALUE; +} + + status_t ArchitectureX86::DisassembleCode(FunctionDebugInfo* function, const void* buffer, size_t bufferSize, DisassembledCode*& _sourceCode) diff --git a/src/apps/debugger/arch/x86/ArchitectureX86.h b/src/apps/debugger/arch/x86/ArchitectureX86.h index 5a85d523c3..ba20101a35 100644 --- a/src/apps/debugger/arch/x86/ArchitectureX86.h +++ b/src/apps/debugger/arch/x86/ArchitectureX86.h @@ -43,6 +43,9 @@ public: virtual status_t ReadValueFromMemory(target_addr_t address, uint32 valueType, BVariant& _value) const; + virtual status_t ReadValueFromMemory(target_addr_t addressSpace, + target_addr_t address, uint32 valueType, + BVariant& _value) const; virtual status_t DisassembleCode(FunctionDebugInfo* function, const void* buffer, size_t bufferSize,