File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,17 @@ class MinidumpFile : public Binary {
95
95
return getStreamFromDirectory<minidump::ExceptionStream>(Directory);
96
96
}
97
97
98
+ // / Returns the first exception stream in the file. An error is returned if
99
+ // / the associated stream is smaller than the size of the ExceptionStream
100
+ // / structure. Or the directory supplied is not of kind exception stream.
101
+ Expected<const minidump::ExceptionStream &>
102
+ getExceptionStream () const {
103
+ auto it = getExceptionStreams ();
104
+ if (it.begin () == it.end ())
105
+ return createError (" No exception streams" );
106
+ return *it.begin ();
107
+ }
108
+
98
109
// / Returns the list of descriptors embedded in the MemoryList stream. The
99
110
// / descriptors provide the content of interesting regions of memory at the
100
111
// / time the minidump was taken. An error is returned if the file does not
You can’t perform that action at this time.
0 commit comments