public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC NetBSD i386 __builtin_frame_address
@ 2006-07-17  5:06 Brendon Costa
  0 siblings, 0 replies; only message in thread
From: Brendon Costa @ 2006-07-17  5:06 UTC (permalink / raw)
  To: gcc-help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

	I was wondering if I should be able to rely on the result of the
__builtin_frame_address() and  __builtin_return_address() functions
provided by GCC (ver 3.3.3) under NetBSD i386?

I currently have some code that is trying to use these functions for
doing a stack backtrace in C++. I have a common base class called
Throwable that will gather stack information when constructed so we
can display more useful exception information when a serious problem
occurs. Note the problem occurs sometimes when just creating an
instance of the object regardless of whether it is about to be thrown
(In case there was some sort of different if being used in a throw
statement)

Sometimes calling the __builtin_frame_address() function causes a seg
fault.

The code I am using to perform this backtrace comes from the a small
package that can be downloaded from:

http://www.freebsd.org/cgi/pds.cgi?ports/devel/libexecinfo


Thanks for any info,
Brendon Costa.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEuxnHPfREiUgoLqwRAn+RAKDbbLrmSTWB+qyiDTIbuJMZNvyiTQCfQV8f
uUaHTf8WZvnxCmL8eNCRvUI=
=FV3a
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-17  5:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-17  5:06 GCC NetBSD i386 __builtin_frame_address Brendon Costa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).