RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Purpose of this page is to provide information about integrating Breakpad to any existing RDK component.
add header:
#include "breakpad_wrapper.h"
add callback function:
breakpad_ExceptionHandler();
2. Simulate intentional crash in the code:
raise(SIGSEGV);
3. Disable default signal handler (if any) as Breakpad exception handler will handle it. (or register breakpad_ExceptionHandler() before the default signal handler)
// setupExit();
Where setupExit is the signal handler function
static void setupExit(void)
{
signal(SIGINT, sighandler); // CTRL-C
signal(SIGQUIT, sighandler);
}
4. Compilation:
Include breakpad wrapper library to LDFLAGS
LDFLAGS += "-lbreakpadwrapper"
5. On running this, it will create a minidump file when crash occurs.