Date: Mon, 7 Jul 1997 11:15:02 +0200 (MET DST) From: hans@brandinnovators.com (Hans Zuidam) To: bde@zeta.org.au Cc: freebsd-bugs@hub.freebsd.org Subject: Re: gnu/4042: gdb stackframe in static library shows not the calling function Message-ID: <199707070915.LAA00114@truk.brandinnovators.com> In-Reply-To: <199707070700.AAA28996@hub.freebsd.org> from Bruce Evans at "Jul 7, 97 00:00:03 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> Bruce Evans wrote: > >> 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. >... > "Correctly" requires ifdefs for -fomit-frame-pointer, -m486, etc. :-) Shouldn't this be solved in gdb's i386-tdep.c to recognize a frameless function? I guess it should do something with the FRAMELESS_FUNCTION_INVOCATION macro. Sadly I'm not well enough versed in ix86 assembler to propose a working fix :-(. Hans -- H. Zuidam E-Mail: hans@brandinnovators.com Brand Innovators B.V. P-Mail: P.O. Box 1377 de Pinckart 54 5602 BJ Eindhoven, The Netherlands 5674 CC Nuenen Tel. +31 40 2631134, Fax. +31 40 2831138
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707070915.LAA00114>