Index: src/client/linux/handler/minidump_descriptor.cc |
diff --git a/src/client/linux/handler/minidump_descriptor.cc b/src/client/linux/handler/minidump_descriptor.cc |
index c601d35f04d8a2283386c5e1bb4be1bcad672521..3e87bfb8217024eb80c49ccb6981dcdf03701870 100644 |
--- a/src/client/linux/handler/minidump_descriptor.cc |
+++ b/src/client/linux/handler/minidump_descriptor.cc |
@@ -46,7 +46,8 @@ MinidumpDescriptor::MinidumpDescriptor(const MinidumpDescriptor& descriptor) |
c_path_(NULL), |
size_limit_(descriptor.size_limit_), |
microdump_build_fingerprint_(descriptor.microdump_build_fingerprint_), |
- microdump_product_info_(descriptor.microdump_product_info_) { |
+ microdump_product_info_(descriptor.microdump_product_info_), |
+ microdump_gpu_fingerprint_(descriptor.microdump_gpu_fingerprint_) { |
// The copy constructor is not allowed to be called on a MinidumpDescriptor |
// with a valid path_, as getting its c_path_ would require the heap which |
// can cause problems in compromised environments. |
@@ -69,6 +70,7 @@ MinidumpDescriptor& MinidumpDescriptor::operator=( |
size_limit_ = descriptor.size_limit_; |
microdump_build_fingerprint_ = descriptor.microdump_build_fingerprint_; |
microdump_product_info_ = descriptor.microdump_product_info_; |
+ microdump_gpu_fingerprint_ = descriptor.microdump_gpu_fingerprint_; |
return *this; |
} |
@@ -97,4 +99,10 @@ void MinidumpDescriptor::SetMicrodumpProductInfo(const char* product_info) { |
microdump_product_info_ = product_info; |
} |
+void MinidumpDescriptor::SetMicrodumpGPUFingerprint( |
+ const char* gpu_fingerprint) { |
+ assert(mode_ == kWriteMicrodumpToConsole); |
+ microdump_gpu_fingerprint_ = gpu_fingerprint; |
+} |
+ |
} // namespace google_breakpad |