public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* __builtin_return_address()
@ 2002-11-06 12:21 Der Herr Hofrat
  0 siblings, 0 replies; only message in thread
From: Der Herr Hofrat @ 2002-11-06 12:21 UTC (permalink / raw)
  To: gcc-help


Hi !

 I wanted to locate a delay in a Linux kernel module and to do this added a few

 addr1=__builtin_return_address(0);
 addr2=__builtin_return_address(1);
 addr3=__builtin_return_address(2);
 ...

 to the code if a cirtain delay was reached - the problem was that it 
 segfaults if I try to grab __builtin_return_address(2) which I don't 
 understand why , or maby more precisely, how can I check how deep I 
 can backtrace calls ?

thx !
hofrat

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

only message in thread, other threads:[~2002-11-06 20:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 12:21 __builtin_return_address() Der Herr Hofrat

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).