Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Maucci, Cyrille" <cyrille.maucci@hp.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Tom Tromey <tromey@redhat.com>,
	"gdb@sourceware.org" <gdb@sourceware.org>
Subject: RE: Backtrace extraction ONLY gdb
Date: Thu, 24 Mar 2011 19:00:00 -0000	[thread overview]
Message-ID: <0E02F16954AF394BB163AEE50FDF548569009DB27E@GVW1121EXC.americas.hpqcorp.net> (raw)
In-Reply-To: <20110324172044.GA32342@host1.jankratochvil.net>

Hi Jan,

Thanks. My point was not that I had no way to do it. But only that one single command in gdb is much cleaner.
My own method was much dirtier than yours.

tar cvzf /var/tmp/packcore.tgz ${exe} ${corefile} $(echo "info sharedlibrary" |\
  gdb -batch -x /dev/stdin ${exe} ${corefile} | grep '^0x' | awk '{print $NF}');

++Cyrille

-----Original Message-----
From: Jan Kratochvil [mailto:jan.kratochvil@redhat.com] 
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 
> everything needed for offline browsing with one command.

$ eu-unstrip -n --core=core.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/modules/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


      reply	other threads:[~2011-03-24 19:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 17:13 Maucci, Cyrille
2011-03-21 18:49 ` Eli Zaretskii
2011-03-23 22:17   ` Maucci, Cyrille
2011-03-23 22:43     ` Joel Brobecker
2011-03-23 22:51       ` Maucci, Cyrille
2011-03-24  5:25         ` Jan Kratochvil
2011-03-27 20:26           ` Maucci, Cyrille
2011-04-22 20:49           ` Maucci, Cyrille
2011-04-22 20:54             ` Jan Kratochvil
2011-03-24 10:25         ` Pedro Alves
2011-03-24 11:09           ` Maucci, Cyrille
2011-03-24 10:28       ` Steffen Dettmer
2011-03-24 13:01         ` Jan Kratochvil
2011-03-22 16:46 ` Tom Tromey
2011-03-23 22:21   ` Maucci, Cyrille
2011-03-24 17:13     ` Tom Tromey
2011-03-24 17:20     ` Jan Kratochvil
2011-03-24 19:00       ` Maucci, Cyrille [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0E02F16954AF394BB163AEE50FDF548569009DB27E@GVW1121EXC.americas.hpqcorp.net \
    --to=cyrille.maucci@hp.com \
    --cc=gdb@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox