This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Backtrace extraction ONLY gdb


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]