From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19136 invoked by alias); 20 Oct 2006 14:27:45 -0000 Received: (qmail 19127 invoked by uid 22791); 20 Oct 2006 14:27:44 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 20 Oct 2006 14:27:40 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GavLW-0007Nt-Jy; Fri, 20 Oct 2006 10:27:38 -0400 Date: Fri, 20 Oct 2006 14:27:00 -0000 From: Daniel Jacobowitz To: Ashwin Bharambe Cc: gdb@sourceware.org Subject: Re: Programmatic access to stack traces in C or C++ programs Message-ID: <20061020142738.GC28258@nevyn.them.org> Mail-Followup-To: Ashwin Bharambe , gdb@sourceware.org References: <3ef5826d0610191927n590c416fx238aa355a378d57c@mail.gmail.com> <20061020031303.GA11223@nevyn.them.org> <3ef5826d0610200541g4804ec15sc2b3167b455c735e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ef5826d0610200541g4804ec15sc2b3167b455c735e@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00159.txt.bz2 On Fri, Oct 20, 2006 at 08:41:07AM -0400, Ashwin Bharambe wrote: > Sweet. Thanks Daniel for pointing me to libunwind.. Now, given the > instruction pointer and stack pointer values, do you think I can use > some parts of gdb code to dump out a more readable version of the > stackframe? It would be _really_ nice if I could dump out argument > values as well, but I suspect that might be much harder. GDB is really not set up to reuse this way. -- Daniel Jacobowitz CodeSourcery