mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 11:35:42 +01:00
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
This commit is contained in:
parent
6a1a906773
commit
c4e643dfb4
@ -892,7 +892,7 @@ class MinidumpLinuxMaps : public MinidumpObject {
|
|||||||
const string GetPathname() const { return valid_ ? region_.path : ""; }
|
const string GetPathname() const { return valid_ ? region_.path : ""; }
|
||||||
|
|
||||||
// Print the contents of this mapping.
|
// Print the contents of this mapping.
|
||||||
void Print();
|
void Print() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// These objects are managed by MinidumpLinuxMapsList.
|
// These objects are managed by MinidumpLinuxMapsList.
|
||||||
@ -920,7 +920,7 @@ class MinidumpLinuxMapsList : public MinidumpStream {
|
|||||||
const MinidumpLinuxMaps *GetLinuxMapsAtIndex(unsigned int index) const;
|
const MinidumpLinuxMaps *GetLinuxMapsAtIndex(unsigned int index) const;
|
||||||
|
|
||||||
// Print the contents of /proc/self/maps to stdout.
|
// Print the contents of /proc/self/maps to stdout.
|
||||||
void Print();
|
void Print() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class Minidump;
|
friend class Minidump;
|
||||||
|
@ -3999,7 +3999,7 @@ MinidumpLinuxMaps::MinidumpLinuxMaps(Minidump *minidump)
|
|||||||
: MinidumpObject(minidump) {
|
: MinidumpObject(minidump) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MinidumpLinuxMaps::Print() {
|
void MinidumpLinuxMaps::Print() const {
|
||||||
if (!valid_) {
|
if (!valid_) {
|
||||||
BPLOG(ERROR) << "MinidumpLinuxMaps cannot print invalid data";
|
BPLOG(ERROR) << "MinidumpLinuxMaps cannot print invalid data";
|
||||||
return;
|
return;
|
||||||
@ -4125,7 +4125,7 @@ bool MinidumpLinuxMapsList::Read(uint32_t expected_size) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MinidumpLinuxMapsList::Print() {
|
void MinidumpLinuxMapsList::Print() const {
|
||||||
if (!valid_ || (maps_ == NULL)) {
|
if (!valid_ || (maps_ == NULL)) {
|
||||||
BPLOG(ERROR) << "MinidumpLinuxMapsList cannot print valid data";
|
BPLOG(ERROR) << "MinidumpLinuxMapsList cannot print valid data";
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user