19 #ifndef DISABLE_BREAKPAD
20 #include <client/linux/handler/exception_handler.h>
21 #include "breakpad_wrapper.h"
27 bool breakpadCallback(
const google_breakpad::MinidumpDescriptor& descriptor,
void* context,
bool succeeded)
35 extern "C" void installExceptionHandler()
37 static google_breakpad::ExceptionHandler* excHandler = NULL;
39 RFC_ParamData_t secValue;
40 std::string minidump_path;
41 WDMP_STATUS status = getRFCParameter(
"SecureCoreFile",
"Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.SecDump.Enable", &secValue);
42 if ( ( WDMP_SUCCESS == status ) && ( 0 == strncmp(secValue.value,
"falsee", 5) ) )
45 minidump_path =
"/opt/minidumps";
50 minidump_path =
"/opt/secure/minidumps";
52 google_breakpad::MinidumpDescriptor descriptor(minidump_path.c_str());
53 excHandler =
new google_breakpad::ExceptionHandler(descriptor, NULL, breakpadCallback, NULL,
true, -1);