Changeset 39 for trunk/Forms/UFormMain.pas
- Timestamp:
- Feb 19, 2012, 12:41:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r38 r39 255 255 256 256 procedure TMainForm.TargetStateChanged(Sender: TObject); 257 var 258 DebugStep: TDebugStep; 259 begin 257 begin 258 UpdateInterface; 260 259 if CurrentTarget.State = rsPaused then 261 260 AProgramShowExecutionPoint.Execute; 262 UpdateInterface;263 261 end; 264 262 … … 322 320 FormMesssages.Align := alClient; 323 321 FormMesssages.Show; 322 PageControlRight.Width := MainForm.Width div 2; 323 PageControlBottom.Height := MainForm.Height div 5; 324 324 end; 325 325 … … 440 440 procedure TMainForm.AProgramRunExecute(Sender: TObject); 441 441 begin 442 FormCPU.LastStepCounter := 0;443 FormCPU.Show;444 442 if CurrentTarget is TTargetInterpretter then 445 443 TTargetInterpretter(CurrentTarget).Input := FormInput.MemoInput.Lines.Text; … … 595 593 DebugStep: TDebugStep; 596 594 begin 597 DebugStep := CurrentTarget.DebugSteps.SearchBySourcePos(MemoSource.SelStart);598 595 if CurrentTarget.State = rsStopped then begin 599 596 if not CurrentTarget.Compiled then AProgramCompile.Execute; 597 DebugStep := CurrentTarget.DebugSteps.SearchBySourcePos(MemoSource.SelStart); 600 598 CurrentTarget.BreakPoints.SetSystem(DebugStep.TargetPosition); 601 599 AProgramRun.Execute; 602 end else CurrentTarget.RunToCursor(DebugStep.TargetPosition); 600 end else begin 601 DebugStep := CurrentTarget.DebugSteps.SearchBySourcePos(MemoSource.SelStart); 602 CurrentTarget.RunToCursor(DebugStep.TargetPosition); 603 end; 603 604 end; 604 605
Note:
See TracChangeset
for help on using the changeset viewer.