aboutsummaryrefslogtreecommitdiff
path: root/src/google_breakpad/processor/memory_region.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/google_breakpad/processor/memory_region.h')
-rw-r--r--src/google_breakpad/processor/memory_region.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/google_breakpad/processor/memory_region.h b/src/google_breakpad/processor/memory_region.h
index 1ac3fe8d..6e01cddf 100644
--- a/src/google_breakpad/processor/memory_region.h
+++ b/src/google_breakpad/processor/memory_region.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006, Google Inc.
+// Copyright (c) 2010, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
@@ -50,10 +50,10 @@ class MemoryRegion {
virtual ~MemoryRegion() {}
// The base address of this memory region.
- virtual u_int64_t GetBase() = 0;
+ virtual u_int64_t GetBase() const = 0;
// The size of this memory region.
- virtual u_int32_t GetSize() = 0;
+ virtual u_int32_t GetSize() const = 0;
// Access to data of various sizes within the memory region. address
// is a pointer to read, and it must lie within the memory region as
@@ -63,10 +63,10 @@ class MemoryRegion {
// program. Returns true on success. Fails and returns false if address
// is out of the region's bounds (after considering the width of value),
// or for other types of errors.
- virtual bool GetMemoryAtAddress(u_int64_t address, u_int8_t* value) = 0;
- virtual bool GetMemoryAtAddress(u_int64_t address, u_int16_t* value) = 0;
- virtual bool GetMemoryAtAddress(u_int64_t address, u_int32_t* value) = 0;
- virtual bool GetMemoryAtAddress(u_int64_t address, u_int64_t* value) = 0;
+ virtual bool GetMemoryAtAddress(u_int64_t address, u_int8_t* value) const =0;
+ virtual bool GetMemoryAtAddress(u_int64_t address, u_int16_t* value) const =0;
+ virtual bool GetMemoryAtAddress(u_int64_t address, u_int32_t* value) const =0;
+ virtual bool GetMemoryAtAddress(u_int64_t address, u_int64_t* value) const =0;
};