From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <520257AA.3020709@pengutronix.de> Date: Wed, 07 Aug 2013 16:20:26 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <94D4A88F8AC34646A5288D11318F5D5B0D723E9F@GDUKADH841.uk1.r-org.net> <201308071510.58228.jbe@pengutronix.de> <94D4A88F8AC34646A5288D11318F5D5B0D723F32@GDUKADH841.uk1.r-org.net> In-Reply-To: <94D4A88F8AC34646A5288D11318F5D5B0D723F32@GDUKADH841.uk1.r-org.net> 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: multipart/mixed; boundary="===============1410471168==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: jon.bird@generaldynamics.uk.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1410471168== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FjrLN2ParVc6VowxEuiNP82i5x2FFkcW5" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FjrLN2ParVc6VowxEuiNP82i5x2FFkcW5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/07/2013 03:47 PM, jon.bird@generaldynamics.uk.com wrote: > Thanks for the replies, >=20 > On 07 August 2013 14:11, J=C3=BCrgen Beisert wrote: >=20 >> Hi Jon, >> >> On Wednesday 07 August 2013 14:32:50 jon.bird@generaldynamics.uk.com >> wrote:=20 >>> 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.=20 >> >> 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. =20 >> >> "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.=20 >> When building the toolchain you can enable a special menu entry to >> keep the debug info also for glibc (read its help!):=20 >> >> ptxdist menuconfig >> misc ---> >> [*] debuggable toolchain internals >> >=20 > 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 --=20 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 | --FjrLN2ParVc6VowxEuiNP82i5x2FFkcW5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlICV64ACgkQjTAFq1RaXHMeZACgjtw18bW8exOmb5q+A4TNP6VE wFcAn1h4Ak330pZyeOhkxXpHbOPaJ9Lf =eFpt -----END PGP SIGNATURE----- --FjrLN2ParVc6VowxEuiNP82i5x2FFkcW5-- --===============1410471168== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1410471168==--