Index: snapshot/mac/module_snapshot_mac.cc |
diff --git a/snapshot/mac/module_snapshot_mac.cc b/snapshot/mac/module_snapshot_mac.cc |
index 7ddf217d0d0be8f3228dee467682224e5acdca44..64f04dce6303b7004725f68bf1f3b1b37da70d9d 100644 |
--- a/snapshot/mac/module_snapshot_mac.cc |
+++ b/snapshot/mac/module_snapshot_mac.cc |
@@ -17,6 +17,7 @@ |
#include <mach/mach.h> |
#include <mach-o/loader.h> |
+#include "base/files/file_path.h" |
#include "base/strings/stringprintf.h" |
#include "snapshot/mac/mach_o_image_annotations_reader.h" |
#include "snapshot/mac/mach_o_image_reader.h" |
@@ -156,6 +157,11 @@ void ModuleSnapshotMac::UUIDAndAge(crashpad::UUID* uuid, uint32_t* age) const { |
*age = 0; |
} |
+std::string ModuleSnapshotMac::DebugFileName() const { |
+ INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
+ return base::FilePath(Name()).BaseName().value(); |
+} |
+ |
std::vector<std::string> ModuleSnapshotMac::AnnotationsVector() const { |
INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
MachOImageAnnotationsReader annotations_reader( |