Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* RE: GDB scope does not work quite right for Pascal
@ 2001-10-12 11:21 Oldham, Adam
  2002-02-01  4:29 ` levi
  0 siblings, 1 reply; 12+ messages in thread
From: Oldham, Adam @ 2001-10-12 11:21 UTC (permalink / raw)
  To: 'Andrew Cagney', Daniel Jacobowitz, Pierre Muller
  Cc: Maurice Lombardi, Oldham, Adam, gdb, core, gpc

Yes, I saw some of these threads, but nothing seemed to shed light on fixes
for the scoping of this.  It is good to know Ada does this as well so that
maybe us Ada/Pascal people can get together and come up with a fix.

I submitted code that demonstrates this with my bug report as well....

Adam

-----Original Message-----
From: Andrew Cagney [ mailto:ac131313@cygnus.com ]
Sent: Friday, October 12, 2001 1:40 PM
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


> 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


^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <20011012124403.21432.qmail@sourceware.cygnus.com>]
[parent not found: <A3E34B558F5CD211B4980008C7A4A99003883EC6@sparrow.gso.mcs.m arconi.com>]

end of thread, other threads:[~2002-02-01 12:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-12 11:21 GDB scope does not work quite right for Pascal Oldham, Adam
2002-02-01  4:29 ` levi
     [not found] <20011012124403.21432.qmail@sourceware.cygnus.com>
2002-02-01  4:29 ` levi
2001-10-12  8:29   ` Pierre Muller
2001-10-12  9:58   ` Maurice Lombardi
2002-02-01  4:29     ` levi
2002-02-01  4:29     ` levi
2001-10-12 10:16       ` Daniel Jacobowitz
2002-02-01  4:29       ` levi
2001-10-12 10:40         ` Andrew Cagney
     [not found] <A3E34B558F5CD211B4980008C7A4A99003883EC6@sparrow.gso.mcs.m arconi.com>
2002-02-01  4:29 ` levi
2001-10-12 16:38   ` Pierre Muller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox