From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?iso-8859-1?q?J=FCrgen_Beisert?= Date: Wed, 7 Aug 2013 15:10:58 +0200 References: <94D4A88F8AC34646A5288D11318F5D5B0D723E9F@GDUKADH841.uk1.r-org.net> In-Reply-To: <94D4A88F8AC34646A5288D11318F5D5B0D723E9F@GDUKADH841.uk1.r-org.net> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201308071510.58228.jbe@pengutronix.de> Subject: Re: [ptxdist] How to get valgrind working in ptx build Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: jon.bird@generaldynamics.uk.com 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 Regards, Juergen -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de