From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Daniel Jacobowitz , Pierre Muller Cc: Maurice Lombardi , adam.oldham@marconi.com, gdb@sources.redhat.com, core@freepascal.org, gpc@gnu.de Subject: Re: GDB scope does not work quite right for Pascal Date: Fri, 12 Oct 2001 10:40:00 -0000 Message-ID: <3BC72AF5.4030809@cygnus.com> References: <4.2.0.58.20011012170241.01770100@ics.u-strasbg.fr> <3BC720FC.90101@ujf-grenoble.fr> <20011012130740.A15975@nevyn.them.org> X-SW-Source: 2001-10/msg00129.html Message-ID: <20011012104000.rvXnVvC4B8wWUamOBLwtttgbN6IHZr5dJgDSZ3lQzNc@z> > On Fri, Oct 12, 2001 at 06:57:32PM +0200, Maurice Lombardi wrote: > >> > There are several remarks to that bug report: >> > 1) I don't know at all how nested functions work in C >> >Are they allowed? > >> >> >> AKAIK no, they are not allowed, and this is the root of the problem, >> since gdb is written mainly by/for C programmers. > > > They aren't allowed by standard C. GCC does in fact allow them, > although their use isn't recommended. I think GDB's support for them > is somewhat crusty. The thread http://sources.redhat.com/ml/gdb-patches/2001-07/msg00714.html is probably relevant. Following on Joel's strategy (Ada) the first thing needed is probably a testcase so that people know the status of the underlying code Andrew