Re: How to track the call stack of gcc (libbacktrace)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 14, 2025 at 10:51 AM Saifi Khan <
saifi@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> On Fri, 14 Mar 2025, Basile Starynkevitch wrote:
>
> >
> > The GCC compiler is containing Ian Lance Taylor's libbacktrace.
> > a possibility is to use that library to print your call stack from
> inside your
> > C++ code inside GCC.
> >
>
> When i pass the option `--enable-languages=c,c++` to the `configure`
> script, it appears to me that libbacktrace is not built.
>
> What option do I pass in order to build this library ?
>

It is built and linked into the GCC programs. You can see it being used in
gcc/diagnostic.cc: search for "backtrace" in that file.

Ian




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux