Re: problem about SIGSEGV and backtrace

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

 



On Tue, 2007-08-14 at 15:25 +0100, Pádraig Brady wrote:> dashikugua@xxxxxxx wrote:> > Hi all:> >  > >     I want to use SIGSEGV and backtrace  to debug my programme. But I do> > not know how to use them. I'm running GTK 2.6.4 and Glib 2.6.4 on a> > Debian woody.> >    > >     Could you please guide me and tell where to find what I am looking for?> >    > >     Any help will be most appreciated. Thanks a lot.> > Try linking to the following (with the -rdynamic linker option),> and just call the install_back_trace() function somewhere at startup:> > http://www.pixelbeat.org/libs/trace.h> http://www.pixelbeat.org/libs/trace.c
if you are using glibc, then the functions
	backtrace	backtrace_symbols
are builtin. google for them.
of course, most people use a debugger to backtrace after a segfault,because its frequently more useful & powerful.
--p


_______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux