From 54ede03227a7c90f4d9911b6f247c530e04e4ce9 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Mon, 17 Sep 2012 14:01:10 +0000 Subject: Allow setting a new MinidumpDescriptor on ExceptionHandler, also expose directory from MinidumpDescriptor R=digit at https://breakpad.appspot.com/452003/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1037 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/handler/minidump_descriptor.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/client/linux/handler/minidump_descriptor.h') diff --git a/src/client/linux/handler/minidump_descriptor.h b/src/client/linux/handler/minidump_descriptor.h index 5d331a3e..dc2719ac 100644 --- a/src/client/linux/handler/minidump_descriptor.h +++ b/src/client/linux/handler/minidump_descriptor.h @@ -45,7 +45,7 @@ class MinidumpDescriptor { public: MinidumpDescriptor() : fd_(-1) {} - explicit MinidumpDescriptor(const std::string& directory) + explicit MinidumpDescriptor(const string& directory) : fd_(-1), directory_(directory), c_path_(NULL) { @@ -57,11 +57,14 @@ class MinidumpDescriptor { } explicit MinidumpDescriptor(const MinidumpDescriptor& descriptor); + MinidumpDescriptor& operator=(const MinidumpDescriptor& descriptor); bool IsFD() const { return fd_ != -1; } int fd() const { return fd_; } + string directory() const { return directory_; } + const char* path() const { return c_path_; } // Updates the path so it is unique. @@ -70,10 +73,10 @@ class MinidumpDescriptor { private: // The file descriptor where the minidump is generated. - const int fd_; + int fd_; // The directory where the minidump should be generated. - const string directory_; + string directory_; // The full path to the generated minidump. string path_; // The C string of |path_|. Precomputed so it can be access from a compromised -- cgit v1.2.1