This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Correct pascal parser problem.
- From: Pierre Muller <muller at ics dot u-strasbg dot fr>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 13 Nov 2002 16:43:56 +0100
- Subject: Re: [PATCH] Correct pascal parser problem.
- References: <5.0.2.1.2.20021113101533.00b01c48@ics.u-strasbg.fr>
At 16:23 13/11/2002, Andrew Cagney wrote:
>>At 10:12 13/11/2002, you wrote:
>>
>>> The following patch fixes a problem when parsing expressions that started with fields of this.
>>>
>>> If you where in a method that have a filed named owner
>>>that is a pointer,
>>>(gdb) p owner
>>>$1 = (PSYMTABLE) $507a48
>>>(gdb) p owner^
>>>Type TNAMEDINDEXOBJECT has no component named OWNER^.
>>>
>>>The problem was that lookup_struct_elt_type
>>>was call with 'OWNER^' instead of only 'OWNER'.
>>>
>>>After that patch, I get this:
>>>(gdb) p owner
>>>$3 = (PSYMTABLE) $507a48
>>>(gdb) p owner^
>>>$4 = {NAME = $0, DATASIZE = 0, DATAALIGNMENT = 2, SYMINDEX = $507a78,
>>> DEFINDEX = $507a98, SYMSEARCH = $507ab8, NEXT = $5075f8, DEFOWNER = $507ad8,
>>> ADDRESS_FIXUP = 0, UNITID = 0, SYMTABLELEVEL = 0,
>>> SYMTABLETYPE = RECORDSYMTABLE, _vptr$ = {$4eb2c8, $1}}
>>>which is much better.
>>
>>Can I also commit this to 5.3 branch or is it too late?
>
>No, it isn't too late. Still plenty of HIGH priority bug reports (where GDB doesn't build :-( ).
OK, thus I also committed this to 5.3 branch.