provide C++ API to write minidump and exit application

RESOLVED FIXED

Status

()

RESOLVED FIXED
9 years ago
5 days ago

People

(Reporter: ted, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

We should provide a CrashReporter API to write a minidump (preferably with some assertion info, like a message, file and line number) and exit the application. This could be used to implement NS_RUNTIME_ABORT internally, so that we could use this in production code and get crash reports from it.

We currently have an API that's usable if you have an EXCEPTION_POINTERS on Windows, but it'd be nice to have something that worked on all platforms and didn't require an existing exception.

Comment 1

9 years ago
As discussed on IRC, I don't think we necessarily should expose this API to the world, but should just hook it up to the existing NS_DebugBreak(NS_DEBUG_ABORT), which even has a scriptable version.
Status: NEW → RESOLVED
Last Resolved: 5 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.