From owner-freebsd-bugs Mon Jul 7 02:49:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA05959 for bugs-outgoing; Mon, 7 Jul 1997 02:49:55 -0700 (PDT) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id CAA05953 for ; Mon, 7 Jul 1997 02:49:51 -0700 (PDT) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 10279 on Mon, 7 Jul 1997 09:49:23 GMT; id JAA10279 efrom: hans@brandinnovators.com; eto: UNKNOWN Received: by truk.brandinnovators.com (8.7.5/BI96070101) for <> id LAA00114; Mon, 7 Jul 1997 11:15:02 +0200 (MET DST) Message-Id: <199707070915.LAA00114@truk.brandinnovators.com> From: hans@brandinnovators.com (Hans Zuidam) Subject: Re: gnu/4042: gdb stackframe in static library shows not the calling function To: bde@zeta.org.au Date: Mon, 7 Jul 1997 11:15:02 +0200 (MET DST) Cc: freebsd-bugs@hub.freebsd.org In-Reply-To: <199707070700.AAA28996@hub.freebsd.org> from Bruce Evans at "Jul 7, 97 00:00:03 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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