You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Purpose of this page is to provide information about integrating Breakpad to any existing RDK component. 

1) Integrate breakpad_wrapper exception handler

 Adding header:

#include "breakpad_wrapper.h"

   Adding 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"


On running this, it will create a minidump file when crash occurs. See Breakpad Wrapper to see more about the component


  • No labels