Changeset 114 for trunk/Forms
- Timestamp:
- May 18, 2019, 12:13:44 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r113 r114 226 226 AProgramShowExecutionPoint.Execute; 227 227 if Core.CurrentTarget.State = rsStopped then 228 Core.CurrentTarget.Messages.AddMessage(SProgramStopped);228 Core.CurrentTarget.Messages.AddMessage(SProgramStopped); 229 229 end; 230 230 … … 487 487 Core.ThemeManager.UseTheme(Self); 488 488 FormSourceCode.UpdateTheme; 489 Core.SaveToRegistry(Core.ApplicationInfo.GetRegistryContext); 490 SaveToRegistry(Core.ApplicationInfo.GetRegistryContext); 489 491 end; 490 492 finally … … 523 525 DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1); 524 526 if Assigned(DebugStep) then begin 525 BreakPoint := Core.CurrentTarget.BreakPoints.SearchByTargetPos(DebugStep. TargetPosition);527 BreakPoint := Core.CurrentTarget.BreakPoints.SearchByTargetPos(DebugStep.ProgramPosition); 526 528 if Assigned(BreakPoint) then 527 529 Core.CurrentTarget.BreakPoints.Delete(Core.CurrentTarget.BreakPoints.IndexOf(BreakPoint)) 528 else Core.CurrentTarget.BreakPoints.AddItem(DebugStep. TargetPosition);530 else Core.CurrentTarget.BreakPoints.AddItem(DebugStep.ProgramPosition); 529 531 end; 530 532 end; … … 555 557 if not Core.CurrentTarget.Compiled then AProgramCompile.Execute; 556 558 DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1); 557 Core.CurrentTarget.BreakPoints.SetSystem(DebugStep. TargetPosition);559 Core.CurrentTarget.BreakPoints.SetSystem(DebugStep.ProgramPosition); 558 560 AProgramRun.Execute; 559 561 end else begin 560 562 DebugStep := Core.CurrentTarget.DebugSteps.SearchBySourcePos(FormSourceCode.SynEditSource.SelStart - 1); 561 Core.CurrentTarget.RunToCursor(DebugStep. TargetPosition);563 Core.CurrentTarget.RunToCursor(DebugStep.ProgramPosition); 562 564 end; 563 565 end; … … 567 569 DebugStep: TDebugStep; 568 570 begin 569 DebugStep := Core.CurrentTarget.DebugSteps.SearchBy TargetPos(Core.CurrentTarget.ExecutionPosition);571 DebugStep := Core.CurrentTarget.DebugSteps.SearchByProgramPos(Core.CurrentTarget.ExecutionPosition); 570 572 FormSourceCode.SynEditSource.SelStart := DebugStep.SourcePosition + 1; 571 573 FormTargetCode.SynEditTarget.SelStart := DebugStep.TargetPosition + 1; … … 578 580 if Core.CurrentTarget.State = rsStopped then begin 579 581 if not Core.CurrentTarget.Compiled then AProgramCompile.Execute; 580 Core.CurrentTarget.BreakPoints.SetSystem(TDebugStep(Core.CurrentTarget.DebugSteps.First). TargetPosition);582 Core.CurrentTarget.BreakPoints.SetSystem(TDebugStep(Core.CurrentTarget.DebugSteps.First).ProgramPosition); 581 583 AProgramRun.Execute; 582 584 end else Core.CurrentTarget.StepInto; … … 592 594 if Core.CurrentTarget.State = rsStopped then begin 593 595 if not Core.CurrentTarget.Compiled then AProgramCompile.Execute; 594 Core.CurrentTarget.BreakPoints.SetSystem(TDebugStep(Core.CurrentTarget.DebugSteps.First). TargetPosition);596 Core.CurrentTarget.BreakPoints.SetSystem(TDebugStep(Core.CurrentTarget.DebugSteps.First).ProgramPosition); 595 597 AProgramRun.Execute; 596 598 end else Core.CurrentTarget.StepOver;
Note:
See TracChangeset
for help on using the changeset viewer.