mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-09-27 03:54:30 +00:00
Merge pull request #51 from ksherlock/debugger_forward_struct_decl
Fix debugger symbol tables with forward declared structs
This commit is contained in:
commit
bd110d7e21
@ -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