DBG: Refactor, merge TManaged.. classes into TIDE.. classes

git-svn-id: trunk@30490 -
This commit is contained in:
martin 2011-04-27 14:55:07 +00:00
parent 535accdbc6
commit 1a0a37aaf9
4 changed files with 877 additions and 989 deletions

View File

@ -207,14 +207,14 @@ function TCallStackDlg.GetImageIndex(Entry: TCallStackEntry): Integer;
begin
if HasBreakPoint(Entry) then
begin
if Entry.Current then
if Entry.IsCurrent then
Result := imgCurrentLineAtBreakPoint
else
Result := imgBreakPoint;
end
else
begin
if Entry.Current then
if Entry.IsCurrent then
Result := imgCurrentLine
else
if Entry.Source = '' then
@ -475,7 +475,7 @@ begin
Entry := GetCurrentEntry;
if Entry = nil then Exit;
CallStack.Current := Entry;
CallStack.CurrentIndex := Entry.Index;
finally
EnableAllActions;
end;

File diff suppressed because it is too large Load Diff

View File

@ -958,8 +958,8 @@ type
function CreateStackEntry(AIndex: Integer): TCallStackEntry; override;
procedure PrepareEntries(AIndex, ACount: Integer); override;
function GetCurrent: TCallStackEntry; override;
procedure SetCurrent(AValue: TCallStackEntry); override;
function GetCurrent: Integer; override;
procedure SetCurrent(AValue: Integer); override;
procedure DoThreadChanged;
public
end;
@ -7346,14 +7346,9 @@ begin
FreeAndNil(FrameList);
end;
function TGDBMICallStack.GetCurrent: TCallStackEntry;
var
idx: Integer;
function TGDBMICallStack.GetCurrent: Integer;
begin
idx := TGDBMIDebugger(Debugger).FCurrentStackFrame;
if (idx < 0) or (idx >= Count)
then Result := nil
else Result := Entries[idx];
Result := TGDBMIDebugger(Debugger).FCurrentStackFrame;
end;
procedure TGDBMICallStack.DoFramesCommandExecuted(Sender: TObject);
@ -7432,9 +7427,9 @@ begin
FInEvalFrames := False;
end;
procedure TGDBMICallStack.SetCurrent(AValue: TCallStackEntry);
procedure TGDBMICallStack.SetCurrent(AValue: Integer);
begin
TGDBMIDebugger(Debugger).CallStackSetCurrent(AValue.Index);
TGDBMIDebugger(Debugger).CallStackSetCurrent(AValue);
end;
procedure TGDBMICallStack.DoThreadChanged;

File diff suppressed because it is too large Load Diff