mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
forward-declared structs have no field list and generate an invalid debugger symbol table. Generate a valid struct entry by re-using the default error struct ({ field: int })
This commit is contained in:
parent
44714767e5
commit
c11218359f
@ -982,6 +982,9 @@ var
|
|||||||
|
|
||||||
begin {ExpandStructType}
|
begin {ExpandStructType}
|
||||||
ip := tp^.fieldList;
|
ip := tp^.fieldList;
|
||||||
|
{ fieldList is nil if this is a forward declared struct. }
|
||||||
|
if ip = nil then ip := defaultStruct^.fieldList;
|
||||||
|
|
||||||
while ip <> nil do begin
|
while ip <> nil do begin
|
||||||
GenSymbol(ip, none);
|
GenSymbol(ip, none);
|
||||||
ip := ip^.next;
|
ip := ip^.next;
|
||||||
|
Loading…
Reference in New Issue
Block a user