{"id":5282,"date":"2014-03-30T20:19:26","date_gmt":"2014-03-30T20:19:26","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-can-i-change-the-runtime-libraries-libc-ld-etc-used-by-gdb-in-cross-arm-debugging-collection-of-common-programming-errors\/"},"modified":"2014-03-30T20:19:26","modified_gmt":"2014-03-30T20:19:26","slug":"how-can-i-change-the-runtime-libraries-libc-ld-etc-used-by-gdb-in-cross-arm-debugging-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-can-i-change-the-runtime-libraries-libc-ld-etc-used-by-gdb-in-cross-arm-debugging-collection-of-common-programming-errors\/","title":{"rendered":"how can i change the runtime libraries (libc ,ld, etc) used by gdb in cross (ARM) debugging-Collection of common programming errors"},"content":{"rendered":"<p>I have an ARM development board based around freescale&#8217;s iMX6q ARM Cortex A9 processor. I also have an application that I want to debug on the board. The dev board is running a running a LTIB filesystem with non stripped runtime libraries. On the host I have downloaded a Linaro toolchain as well (the soft float 2012.04 to be specific) which has only stripped libraries.<\/p>\n<p>I would like to tell gdb (running on the host) to use a different set of runtime libraries (non stripped ones), from the image of the LTIB filesystem I keep on the host.<\/p>\n<p>How do I do that?<\/p>\n<p>asking gdb to give me<\/p>\n<pre><code>(gdb) show debug-file-directory\n<\/code><\/pre>\n<p>it returns some path that doesn&#8217;t even exist on my host filesystem&#8230;.<\/p>\n<pre><code>The directory where separate debug symbols are searched for is \n\"\/cbuild\/slaves\/oort14\/crosstool-ng\/builds\/arm-linux-gnueabi-linux\/install\/lib\/debug\".\n<\/code><\/pre>\n<p>and I am not even certain this is the right variable to tweak..<\/p>\n<p>update: even set debug-file-directory doesn&#8217;t help, the runtime libs used are still in the toolchain path:<\/p>\n<pre><code>Reading symbols from \/mnt\/nfs_host\/Linaro\/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux\/arm-linux-gnueabi\/libc\/lib\/ld-linux.so.3...(no debugging symbols found)...done.\n<\/code><\/pre>\n<p>What could I do? Thank you for your help<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have an ARM development board based around freescale&#8217;s iMX6q ARM Cortex A9 processor. I also have an application that I want to debug on the board. The dev board is running a running a LTIB filesystem with non stripped runtime libraries. On the host I have downloaded a Linaro toolchain as well (the soft [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5282","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5282"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5282\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}