aboutsummaryrefslogtreecommitdiff
path: root/src/processor/stackwalker_selftest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/processor/stackwalker_selftest.cc')
-rw-r--r--src/processor/stackwalker_selftest.cc17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/processor/stackwalker_selftest.cc b/src/processor/stackwalker_selftest.cc
index 75d47582..f692d4c4 100644
--- a/src/processor/stackwalker_selftest.cc
+++ b/src/processor/stackwalker_selftest.cc
@@ -49,6 +49,8 @@
//
// Author: Mark Mentovai
+#include <assert.h>
+
#include "processor/logging.h"
#if defined(__i386) && !defined(__i386__)
@@ -102,17 +104,20 @@ using google_breakpad::StackwalkerSPARC;
// process' memory space by pointer.
class SelfMemoryRegion : public MemoryRegion {
public:
- virtual uint64_t GetBase() { return 0; }
- virtual uint32_t GetSize() { return 0xffffffff; }
+ virtual uint64_t GetBase() const { return 0; }
+ virtual uint32_t GetSize() const { return 0xffffffff; }
- bool GetMemoryAtAddress(uint64_t address, uint8_t* value) {
+ bool GetMemoryAtAddress(uint64_t address, uint8_t* value) const {
return GetMemoryAtAddressInternal(address, value); }
- bool GetMemoryAtAddress(uint64_t address, uint16_t* value) {
+ bool GetMemoryAtAddress(uint64_t address, uint16_t* value) const {
return GetMemoryAtAddressInternal(address, value); }
- bool GetMemoryAtAddress(uint64_t address, uint32_t* value) {
+ bool GetMemoryAtAddress(uint64_t address, uint32_t* value) const {
return GetMemoryAtAddressInternal(address, value); }
- bool GetMemoryAtAddress(uint64_t address, uint64_t* value) {
+ bool GetMemoryAtAddress(uint64_t address, uint64_t* value) const {
return GetMemoryAtAddressInternal(address, value); }
+ void Print() const {
+ assert(false);
+ }
private:
template<typename T> bool GetMemoryAtAddressInternal(uint64_t address,