diff --git a/src/google_breakpad/processor/minidump.h b/src/google_breakpad/processor/minidump.h index 4e900fb1..8c149337 100644 --- a/src/google_breakpad/processor/minidump.h +++ b/src/google_breakpad/processor/minidump.h @@ -804,6 +804,9 @@ class Minidump { // Sets the position of the minidump file to offset. bool SeekSet(off_t offset); + // Returns the current position of the minidump file. + off_t Tell() { return valid_ ? lseek(fd_, 0, SEEK_CUR) : (off_t)-1; } + // The next 2 methods are medium-level I/O routines. // ReadString returns a string which is owned by the caller! offset