This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]