From c4e643dfb4e392c72c840e1e771d62fc0be8e0e7 Mon Sep 17 00:00:00 2001 From: "Liu.andrew.x@gmail.com" Date: Wed, 12 Aug 2015 00:21:44 +0000 Subject: [PATCH] Allow Print() to be called by const instances of MinidumpLinuxMaps and MinidumpLinuxMapsList. R=ivanpe@chromium.org Review URL: https://codereview.chromium.org/1287803002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1482 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/google_breakpad/processor/minidump.h | 4 ++-- src/processor/minidump.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/google_breakpad/processor/minidump.h b/src/google_breakpad/processor/minidump.h index c6273cff..968cd8de 100644 --- a/src/google_breakpad/processor/minidump.h +++ b/src/google_breakpad/processor/minidump.h @@ -892,7 +892,7 @@ class MinidumpLinuxMaps : public MinidumpObject { const string GetPathname() const { return valid_ ? region_.path : ""; } // Print the contents of this mapping. - void Print(); + void Print() const; private: // These objects are managed by MinidumpLinuxMapsList. @@ -920,7 +920,7 @@ class MinidumpLinuxMapsList : public MinidumpStream { const MinidumpLinuxMaps *GetLinuxMapsAtIndex(unsigned int index) const; // Print the contents of /proc/self/maps to stdout. - void Print(); + void Print() const; private: friend class Minidump; diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc index 02aa16b6..85ec6b9c 100644 --- a/src/processor/minidump.cc +++ b/src/processor/minidump.cc @@ -3999,7 +3999,7 @@ MinidumpLinuxMaps::MinidumpLinuxMaps(Minidump *minidump) : MinidumpObject(minidump) { } -void MinidumpLinuxMaps::Print() { +void MinidumpLinuxMaps::Print() const { if (!valid_) { BPLOG(ERROR) << "MinidumpLinuxMaps cannot print invalid data"; return; @@ -4125,7 +4125,7 @@ bool MinidumpLinuxMapsList::Read(uint32_t expected_size) { return true; } -void MinidumpLinuxMapsList::Print() { +void MinidumpLinuxMapsList::Print() const { if (!valid_ || (maps_ == NULL)) { BPLOG(ERROR) << "MinidumpLinuxMapsList cannot print valid data"; return;