mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 09:16:13 +02:00
Debugger: callstack, fix goto source, if viewing bottom of large stack (viewing from startindex > 1)
git-svn-id: trunk@42664 -
This commit is contained in:
parent
82d7e00939
commit
319a201329
@ -210,7 +210,7 @@ end;
|
||||
procedure TCallStackDlg.CallStackChanged(Sender: TObject);
|
||||
begin
|
||||
DebugLn(DBG_DATA_MONITORS, ['DebugDataWindow: TCallStackDlg.CallStackChanged from ', DbgSName(Sender), ' Upd:', IsUpdating]);
|
||||
if not ToolButtonPower.Down then exit;
|
||||
if (not ToolButtonPower.Down) or FInUpdateView then exit;
|
||||
if FViewStart = 0
|
||||
then UpdateView
|
||||
else SetViewStart(0);
|
||||
@ -350,8 +350,8 @@ begin
|
||||
FInUpdateView := True;
|
||||
CStack.PrepareRange(First, Count);
|
||||
// TODO: must make CStack ref-counted
|
||||
if CStack <> GetSelectedCallstack then exit; // Something changed, maybe debugger stopped
|
||||
FInUpdateView := False;
|
||||
if CStack <> GetSelectedCallstack then exit; // Something changed, maybe debugger stopped
|
||||
for n := 0 to Count - 1 do
|
||||
begin
|
||||
Item := lvCallStack.Items[n];
|
||||
|
Loading…
Reference in New Issue
Block a user