Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 1997 00:00:03 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs
Subject:   Re: gnu/4042: gdb stackframe in static library shows not the calling function
Message-ID:  <199707070700.AAA28996@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/4042; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: bde@zeta.org.au, peter@spinner.dialix.com.au
Cc: freebsd-gnats-submit@hub.freebsd.org
Subject: Re: gnu/4042: gdb stackframe in static library shows not the calling function
Date: Mon, 7 Jul 1997 16:50:56 +1000

 >>  This is caused by the function in the example (strlen) not having a frame
 >>  pointer.  The top frame or two gets lost.  The problem is most obvious
 
 >How much overhead will it be to do the stack frame linkage correctly?  As 
 >I see it, it'll mean adding something like this:
 
 Not much, unless you count source bloat.
 
 >ENTRY(foo)
 >+	pushl %ebp
 >+	movl %esp,%ebp
 >	....
 >+	leave
 >	ret
 
 "Correctly" requires ifdefs for -fomit-frame-pointer, -m486, etc. :-)
 
 Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707070700.AAA28996>