{"id":14662,"date":"2022-10-13T07:15:55","date_gmt":"2022-10-13T07:15:55","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=14662"},"modified":"2025-06-23T14:33:49","modified_gmt":"2025-06-23T14:33:49","slug":"adding-debug-symbols-to-coredump","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=14662","title":{"rendered":"Adding dependencies to coredump (GDB)"},"content":{"rendered":"<p>Let&#8217;s assume you have a coredump to analyze, and the shared libs are at another location.<\/p>\n<hr>\n<table>\n<tr>\n<th>Command<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>info sharedlibrary<\/td>\n<td>Shows the names and paths of the loaded shared libraries.<\/td>\n<\/tr>\n<tr>\n<td>set solib-absolute-prefix<br \/>set sysroot<\/td>\n<td>Sets a prefix\/sysroot to search for shared libraries.<\/td>\n<\/tr>\n<tr>\n<td>set solib-search-path<\/td>\n<td>Sets additional directories to search for shared libraries.<\/td>\n<\/tr>\n<tr>\n<td>set debug-file-directory<\/td>\n<td>Sets separated\/stripped debug symbols.<\/td>\n<\/tr>\n<tr>\n<td>set substitute-path<\/td>\n<td>Sets directories to search for source code.<\/td>\n<\/tr>\n<\/table>\n<hr>\n<ul>\n<li>If you want to change all or just the system shared libs, use set solib-absolute-prefix.<\/li>\n<li>If you want to change your local but not the system shared libs, use set solib-search-path.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s assume you have a coredump to analyze, and the shared libs are at another location. Command Description info sharedlibrary<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[28],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/14662"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14662"}],"version-history":[{"count":4,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/14662\/revisions"}],"predecessor-version":[{"id":18894,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/14662\/revisions\/18894"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14662"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}