From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24374 invoked by alias); 24 Mar 2011 19:00:46 -0000 Received: (qmail 24363 invoked by uid 22791); 24 Mar 2011 19:00:45 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,TW_CV,TW_VZ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from g4t0017.houston.hp.com (HELO g4t0017.houston.hp.com) (15.201.24.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Mar 2011 19:00:40 +0000 Received: from G5W2206G.americas.hpqcorp.net (g5w2206g.atlanta.hp.com [16.228.43.185]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by g4t0017.houston.hp.com (Postfix) with ESMTPS id 337CA387C4; Thu, 24 Mar 2011 19:00:36 +0000 (UTC) Received: from G5W0324.americas.hpqcorp.net (16.228.8.69) by G5W2206G.americas.hpqcorp.net (16.228.43.185) with Microsoft SMTP Server (TLS) id 14.1.270.1; Thu, 24 Mar 2011 18:57:48 +0000 Received: from GVW1121EXC.americas.hpqcorp.net ([16.228.24.178]) by G5W0324.americas.hpqcorp.net ([16.228.8.69]) with mapi; Thu, 24 Mar 2011 18:57:48 +0000 From: "Maucci, Cyrille" To: Jan Kratochvil CC: Tom Tromey , "gdb@sourceware.org" Date: Thu, 24 Mar 2011 19:00:00 -0000 Subject: RE: Backtrace extraction ONLY gdb Message-ID: <0E02F16954AF394BB163AEE50FDF548569009DB27E@GVW1121EXC.americas.hpqcorp.net> References: <0E02F16954AF394BB163AEE50FDF5485690094DFED@GVW1121EXC.americas.hpqcorp.net> <0E02F16954AF394BB163AEE50FDF548569009DAB5B@GVW1121EXC.americas.hpqcorp.net> <20110324172044.GA32342@host1.jankratochvil.net> In-Reply-To: <20110324172044.GA32342@host1.jankratochvil.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00150.txt.bz2 Hi Jan, Thanks. My point was not that I had no way to do it. But only that one sing= le command in gdb is much cleaner. My own method was much dirtier than yours. tar cvzf /var/tmp/packcore.tgz ${exe} ${corefile} $(echo "info sharedlibrar= y" |\ gdb -batch -x /dev/stdin ${exe} ${corefile} | grep '^0x' | awk '{print $N= F}'); ++Cyrille -----Original Message----- From: Jan Kratochvil [mailto:jan.kratochvil@redhat.com]=20 Sent: Thursday, March 24, 2011 6:21 PM To: Maucci, Cyrille Cc: Tom Tromey; gdb@sourceware.org Subject: Re: Backtrace extraction ONLY gdb On Wed, 23 Mar 2011 23:22:04 +0100, Maucci, Cyrille wrote: > HP's gdb adds a great feature called packcore to ease the packing of=20 > everything needed for offline browsing with one command. $ eu-unstrip -n --core=3Dcore.1659|awk '{print $3;print $4}'|grep ^/|sort -= u|tar cJT - >packcore.tar.xz $ tar tJf packcore.tar.xz bin/sleep lib64/ld-2= .13.so lib64/libc-2.13.so usr/lib/debug/bin/sleep.debug usr/lib/debug/lib/m= odules/2.6.35.11-83.fc14.x86_64/vdso/vdso.so.debug usr/lib/debug/lib64/ld-2.13.so.debug usr/lib/debug/lib64/libc-2.13.so.debug Regards, Jan