On 08/07/2013 03:47 PM, jon.bird@generaldynamics.uk.com wrote: > Thanks for the replies, > > On 07 August 2013 14:11, Jürgen Beisert wrote: > >> Hi Jon, >> >> On Wednesday 07 August 2013 14:32:50 jon.bird@generaldynamics.uk.com >> wrote: >>> I am trying to get valgrind enabled under Ptxdist. I can build the >>> package ok and deploy it however when I attempt to run an app on the >>> target system it fails complaining that it needs debugging symbols >>> from glibc. The suggesion from online is that I either need a >>> non-stripped glibc or an additional file which holds the symbols but >>> it isn't clear from online searching what this file is called or >>> where to locate it in the file system. The toolchain I am using is >>> the OSELAS.Toolchain-2012.12.1 x86 toolchain (prebuilt Debian >>> package), I am hoping I just need to lift the relevant file(s) from >>> there. >> >> Sounds like you need to boot via network (NFSroot) and need to use >> the "root-debug" directory instead of the "root" one as the root >> filesystem. >> >> "root-debug" still contains all debug info. >> >> Debug info for the main glibc is a different issue. This would >> drastically increase the binary, so it is disabled by default. >> When building the toolchain you can enable a special menu entry to >> keep the debug info also for glibc (read its help!): >> >> ptxdist menuconfig >> misc ---> >> [*] debuggable toolchain internals >> > > I'll give the nfs-root thing a go but from what you've said it sounds > like I need to rebuild the toolchain with debugging enabled. You don't have to rebuild the toolchain. The glibc comes with debug infos already. However if you want to step into your glibc or c++ code, you need to have the sources. If you enable this option, the sources will be placed under /opt, so that the debugger will find them. But this is not needed in your case. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |