mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
b6eeed94e0
--HG-- extra : rebase_source : ba728fe297e9ce066438719b839e07deb38b1dd5
20 lines
400 B
C++
20 lines
400 B
C++
#include "google_breakpad/processor/minidump.h"
|
|
#include "nscore.h"
|
|
|
|
using namespace google_breakpad;
|
|
|
|
extern "C"
|
|
NS_EXPORT bool
|
|
DumpHasStream(const char* dump_file, u_int32_t stream_type)
|
|
{
|
|
Minidump dump(dump_file);
|
|
if (!dump.Read())
|
|
return false;
|
|
|
|
u_int32_t length;
|
|
if (!dump.SeekToStreamType(stream_type, &length) || length == 0)
|
|
return false;
|
|
|
|
return true;
|
|
}
|