From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16104 invoked by alias); 21 Apr 2003 21:05:14 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16045 invoked from network); 21 Apr 2003 21:05:07 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 21 Apr 2003 21:05:07 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 978862B2F; Mon, 21 Apr 2003 17:04:34 -0400 (EDT) Message-ID: <3EA45CE2.9040500@redhat.com> Date: Mon, 21 Apr 2003 21:05:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: =?ISO-8859-1?Q?Gerrit_Bruchh=E4user?= , gdb@sources.redhat.com Subject: Re: backtrace C-API References: <22188.1050669207@www25.gmx.net> <20030418133908.GB8316@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2003-04/txt/msg00239.txt.bz2 > On Fri, Apr 18, 2003 at 02:33:27PM +0200, Gerrit Bruchhäuser wrote: > >> Hello, >> >> is there any C-API function in libgdb.a (or some other library) which >> returns a call stack (something 'bt' like)? > > > No; but you might find backtrace() useful if you're on a > glibc-supported platform. But there probably should. How hard is it to create a `target-self' that uses local memory, and a jump-buf for registers? The tricky bit, I see, is the symbol table assuming a single global structure. Andrew