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

Compare with Current View Page History

« Previous Version 2 Next »

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


  1. Integrate breakpad_wrapper exception handler

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.

  • No labels