This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: glib/backtrace question
- From: muppet <scott at asofyet dot org>
- To: "Brian Hanley" <brian dot hanley at flextrade dot com>
- Cc: "GTK Dev List" <gtk-devel-list at gnome dot org>,"GCC Mailing List" <gcc at gcc dot gnu dot org>,"GDB Mailing List" <gdb at sources dot redhat dot com>
- Date: Tue, 8 Feb 2005 20:47:35 -0500
- Subject: Re: glib/backtrace question
- References: <007b01c50e46$876dd970$7408fc81@flexwin.intranet.flextrade.com>
On Feb 8, 2005, at 8:27 PM, Brian Hanley wrote:
Whatever happened to the backtrace() and backtrace_symbols() calls in
glib?
You're thinking of glibc, not GLib.
#include <execinfo.h>
backtrace
backtrace_symbols
backtrace_symbols_fd
These give you module & offset; you still need to use the addr2line
utility to get filename & line number information from debugging
symbols.
--
She's obviously your child. She looks like you, she talks a lot, and
most of it is gibberish.
-- Elysse, to me, of Zella.