Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

1) Integrate breakpad_wrapper exception handler

...

 Adding header:

Code Block
#include "breakpad_wrapper.h"

 

...

 Adding callback function:

Code Block
breakpad_ExceptionHandler();

...

2) Simulate intentional crash in the code: 

Code Block
 

...

  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)

Code Block

...

 // setupExit();

...

   Where setupExit is the signal handler function

...



   Where setupExit is the signal handler function

       static void setupExit(void)

...



       {

...



          signal(SIGINT,  sighandler); // CTRL-C

...



          signal(SIGQUIT, sighandler);

...



       }

4

...

) Compilation:


Code Block
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