Browse Source

* update for varsym changed

peter 21 years ago
parent
commit
d264e7e1ab
1 changed files with 7 additions and 4 deletions
  1. 7 4
      ide/fpsymbol.pas

+ 7 - 4
ide/fpsymbol.pas

@@ -500,7 +500,7 @@ begin
     exit;
     exit;
   if not Debugger^.IsRunning then
   if not Debugger^.IsRunning then
     exit;
     exit;
-  if (S^.typ<>varsym) or (GDBI=Debugger^.RunCount) then
+  if (S^.typ in [fieldvarsym,globalvarsym,localvarsym,paravarsym]) or (GDBI=Debugger^.RunCount) then
     exit;
     exit;
   If Assigned(St) then
   If Assigned(St) then
     DisposeStr(St);
     DisposeStr(St);
@@ -1368,7 +1368,7 @@ begin
   GetExtent(R); R.Grow(-1,-1); R.B.Y:=R.A.Y+1;
   GetExtent(R); R.Grow(-1,-1); R.B.Y:=R.A.Y+1;
 {$ifndef NODEBUG}
 {$ifndef NODEBUG}
   if {assigned(Debugger) and Debugger^.IsRunning and}
   if {assigned(Debugger) and Debugger^.IsRunning and}
-     assigned(Sym) and (Sym^.typ=varsym) then
+     assigned(Sym) and (Sym^.typ in [fieldvarsym,globalvarsym,localvarsym,paravarsym]) then
     begin
     begin
       New(DebuggerValue,Init(ATitle,Sym));
       New(DebuggerValue,Init(ATitle,Sym));
       New(ST, Init(R, ' '+DebuggerValue^.GetText));
       New(ST, Init(R, ' '+DebuggerValue^.GetText));
@@ -1830,7 +1830,7 @@ begin
   PB:=New(PBrowserWindow, Init(R,
   PB:=New(PBrowserWindow, Init(R,
     st2,SearchFreeWindowNo,S,Line,st,
     st2,SearchFreeWindowNo,S,Line,st,
     Symbols,References,Inheritance,MemInfo));
     Symbols,References,Inheritance,MemInfo));
-  if (assigned(S) and (S^.typ=varsym)) or
+  if (assigned(S) and (S^.typ in [fieldvarsym,globalvarsym,localvarsym,paravarsym])) or
      (assigned(ParentBrowser) and ParentBrowser^.IsValid) then
      (assigned(ParentBrowser) and ParentBrowser^.IsValid) then
     PB^.IsValid:=true;
     PB^.IsValid:=true;
 
 
@@ -1840,7 +1840,10 @@ end;
 END.
 END.
 {
 {
   $Log$
   $Log$
-  Revision 1.7  2004-11-08 20:28:26  peter
+  Revision 1.8  2004-11-09 16:47:55  peter
+    * update for varsym changed
+
+  Revision 1.7  2004/11/08 20:28:26  peter
     * Breakpoints are now deleted when removed from source, disabling is
     * Breakpoints are now deleted when removed from source, disabling is
       still possible from the breakpoint list
       still possible from the breakpoint list
     * COMPILER_1_0, FVISION, GABOR defines removed, only support new
     * COMPILER_1_0, FVISION, GABOR defines removed, only support new