This is the mail archive of the gdb-patches@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]
Other format: [Raw text]

Re: [PATCH] Correct pascal parser problem.


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.


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