how can i change the runtime libraries (libc ,ld, etc) used by gdb in cross (ARM) debugging-Collection of common programming errors
I have an ARM development board based around freescale’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.
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.
How do I do that?
asking gdb to give me
(gdb) show debug-file-directory
it returns some path that doesn’t even exist on my host filesystem….
The directory where separate debug symbols are searched for is
"/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/install/lib/debug".
and I am not even certain this is the right variable to tweak..
update: even set debug-file-directory doesn’t help, the runtime libs used are still in the toolchain path:
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.
What could I do? Thank you for your help