From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5067 invoked by alias); 1 Feb 2002 12:29:35 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4883 invoked from network); 1 Feb 2002 12:29:32 -0000 Received: from unknown (HELO compc26.nc3a.nato.int) (195.169.112.86) by sources.redhat.com with SMTP; 1 Feb 2002 12:29:32 -0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by compc26.nc3a.nato.int (Postfix) with ESMTP id C0F8F13F38; Fri, 1 Feb 2002 13:32:10 +0100 (CET) Mail-From: gpc-owner+M412@gnu.de Sun Oct 14 15:28:25 2001 Date: Fri, 01 Feb 2002 04:29:00 -0000 From: levi@localhost.nc3a.nato.int To: levi@localhost.nc3a.nato.int Cc: Pierre Muller , 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 Message-ID: <20011012130740.A15975@nevyn.them.org> Mail-Followup-To: Maurice Lombardi , Pierre Muller , adam.oldham@marconi.com, gdb@sources.redhat.com, core@freepascal.org, gpc@gnu.de References: <4.2.0.58.20011012170241.01770100@ics.u-strasbg.fr> <3BC720FC.90101@ujf-grenoble.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3BC720FC.90101@ujf-grenoble.fr> User-Agent: Mutt/1.3.23i X-Mailer: Perl5 Mail::Internet v1.42 X-SW-Source: 2002-02/txt/msg00003.txt.bz2 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. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz To: Maurice Lombardi Cc: Pierre Muller , 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:16:00 -0000 Message-ID: <20011012130740.A15975@nevyn.them.org> References: <4.2.0.58.20011012170241.01770100@ics.u-strasbg.fr> <3BC720FC.90101@ujf-grenoble.fr> X-SW-Source: 2001-10/msg00127.html Message-ID: <20011012101600.XLpxbEvMYoSuoNOZny7yrCtViRcAgSkEDkA7_CXftr8@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. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer