
{"id":302,"date":"2023-04-04T13:34:12","date_gmt":"2023-04-04T13:34:12","guid":{"rendered":"https:\/\/developer.rdkcentral.com\/support\/support\/new-articles\/new-rdk-v_debugging_and_logging\/new-integrating_breakpad_to_rdk-v_component\/"},"modified":"2025-03-25T05:18:37","modified_gmt":"2025-03-25T05:18:37","slug":"integrating_breakpad_to_rdk-v_component","status":"publish","type":"page","link":"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/","title":{"rendered":"Integrating Breakpad to RDK-V Component"},"content":{"rendered":"<h3 id=\"newIntegratingBreakpadtoRDKVComponent-PurposeofthispageistoprovideinformationaboutintegratingBreakpadtoanyexistingRDKcomponent.\">Purpose of this page is to provide information about integrating Breakpad to any existing RDK component.&nbsp;<\/h3>\n<h3 class=\"wp-sub-header\"><span>1) Integrate breakpad_wrapper exception handler<\/span><\/h3>\n<h3 id=\"newIntegratingBreakpadtoRDKVComponent-Addingheader:\">&nbsp;Adding header:<\/h3>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include \"breakpad_wrapper.h\"<\/pre>\n<\/div>\n<\/div>\n<h3 id=\"newIntegratingBreakpadtoRDKVComponent-Addingcallbackfunction:\">&nbsp; &nbsp;Adding callback function:<\/h3>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">breakpad_ExceptionHandler();<\/pre>\n<\/div>\n<\/div>\n<h3 class=\"wp-sub-header\">2) Simulate intentional crash in the code:&nbsp;<\/h3>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&nbsp; &nbsp;raise(SIGSEGV);<\/pre>\n<\/div>\n<\/div>\n<h3 class=\"wp-sub-header\">3)&nbsp; Disable default signal handler (if any) as Breakpad exception handler will handle it. (or register&nbsp;breakpad_ExceptionHandler() before the default signal handler)<\/h3>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"> \/\/ setupExit();\n\n&nbsp; &nbsp;Where setupExit is the signal handler function\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static void setupExit(void)\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; signal(SIGINT,&nbsp; sighandler); \/\/ CTRL-C\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; signal(SIGQUIT, sighandler);\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<\/pre>\n<\/div>\n<\/div>\n<h3 class=\"wp-sub-header\">4) Compilation:<\/h3>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Include breakpad wrapper library to LDFLAGS\n\n&nbsp;LDFLAGS += \"-lbreakpadwrapper\"<\/pre>\n<\/div>\n<\/div>\n<p>On running this, it will create a minidump file when crash occurs. See&nbsp;<a href=\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/rdk-v_components\/rdk-v_open-sourced_components\/breakpad_wrapper\/\" class=\"external-link\" rel=\"nofollow\">Breakpad Wrapper<\/a>&nbsp;to see more about the component<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose of this page is to provide information about integrating Breakpad to any existing RDK [&hellip;]<\/p>\n","protected":false},"author":659,"featured_media":0,"parent":290,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-302","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Integrating Breakpad to RDK-V Component - RDK Documentation Portal | Support<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Integrating Breakpad to RDK-V Component - RDK Documentation Portal | Support\" \/>\n<meta property=\"og:description\" content=\"Purpose of this page is to provide information about integrating Breakpad to any existing RDK [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/\" \/>\n<meta property=\"og:site_name\" content=\"RDK Documentation Portal | Support\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-25T05:18:37+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/\",\"url\":\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/\",\"name\":\"Integrating Breakpad to RDK-V Component - RDK Documentation Portal | Support\",\"isPartOf\":{\"@id\":\"https:\/\/developer.rdkcentral.com\/support\/#website\"},\"datePublished\":\"2023-04-04T13:34:12+00:00\",\"dateModified\":\"2025-03-25T05:18:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/developer.rdkcentral.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Support\",\"item\":\"https:\/\/developer.rdkcentral.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Articles\",\"item\":\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"RDK-V Debugging and Logging\",\"item\":\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Integrating Breakpad to RDK-V Component\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/developer.rdkcentral.com\/support\/#website\",\"url\":\"https:\/\/developer.rdkcentral.com\/support\/\",\"name\":\"RDK Documentation Portal | Support\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/developer.rdkcentral.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Integrating Breakpad to RDK-V Component - RDK Documentation Portal | Support","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/","og_locale":"en_US","og_type":"article","og_title":"Integrating Breakpad to RDK-V Component - RDK Documentation Portal | Support","og_description":"Purpose of this page is to provide information about integrating Breakpad to any existing RDK [&hellip;]","og_url":"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/","og_site_name":"RDK Documentation Portal | Support","article_modified_time":"2025-03-25T05:18:37+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/","url":"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/","name":"Integrating Breakpad to RDK-V Component - RDK Documentation Portal | Support","isPartOf":{"@id":"https:\/\/developer.rdkcentral.com\/support\/#website"},"datePublished":"2023-04-04T13:34:12+00:00","dateModified":"2025-03-25T05:18:37+00:00","breadcrumb":{"@id":"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/developer.rdkcentral.com\/support\/"},{"@type":"ListItem","position":2,"name":"Support","item":"https:\/\/developer.rdkcentral.com\/support\/"},{"@type":"ListItem","position":3,"name":"Articles","item":"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/"},{"@type":"ListItem","position":4,"name":"RDK-V Debugging and Logging","item":"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/"},{"@type":"ListItem","position":5,"name":"Integrating Breakpad to RDK-V Component"}]},{"@type":"WebSite","@id":"https:\/\/developer.rdkcentral.com\/support\/#website","url":"https:\/\/developer.rdkcentral.com\/support\/","name":"RDK Documentation Portal | Support","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/developer.rdkcentral.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/developer.rdkcentral.com\/support\/wp-json\/wp\/v2\/pages\/302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.rdkcentral.com\/support\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/developer.rdkcentral.com\/support\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/support\/wp-json\/wp\/v2\/users\/659"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/support\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":1,"href":"https:\/\/developer.rdkcentral.com\/support\/wp-json\/wp\/v2\/pages\/302\/revisions"}],"predecessor-version":[{"id":345,"href":"https:\/\/developer.rdkcentral.com\/support\/wp-json\/wp\/v2\/pages\/302\/revisions\/345"}],"up":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/support\/wp-json\/wp\/v2\/pages\/290"}],"wp:attachment":[{"href":"https:\/\/developer.rdkcentral.com\/support\/wp-json\/wp\/v2\/media?parent=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}