RE: Backtrace extraction ONLY gdb

Maucci, Cyrille
2011-03-23T22:17:11Z

Hi Eli, All,

Yes that is a glibc based system.
I imagine you are referring to http://www.gnu.org/s/libc/manual/html_node/Backtraces.html

From what I read it gives a very 'raw' output, very far from the beautiful gdb backtrace with function names and function arguments values.
But that is a beginning.

Thanks a lot
++Cyrille

-----Original Message-----
From: Eli Zaretskii [mailto:eliz@gnu.org]
Sent: Monday, March 21, 2011 7:49 PM
To: Maucci, Cyrille
Cc: gdb@sourceware.org
Subject: Re: Backtrace extraction ONLY gdb

> From: "Maucci, Cyrille" <cyrille.maucci@hp.com>
> CC: "Maucci, Cyrille" <cyrille.maucci@hp.com>
> Date: Mon, 21 Mar 2011 17:13:02 +0000
>
> So, that is the kind of barrier I need to work around because for support reasons, I dramatically need a single feature of gdb on such systems which is the backtrace extraction feature.
>
> Is there any possibility to 'recompile' gdb where only the 'bt' (or 'threads apply all bt') feature would be enabled?

If that system is GNU/Linux (or anything else glibc-based), then you should know that there's a glibc function that can produce a backtrace.