mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 00:19:15 +02:00
Debugger: formatting.
git-svn-id: trunk@55544 -
This commit is contained in:
parent
f712709636
commit
523a625c8e
@ -1,4 +1,4 @@
|
|||||||
inherited AssemblerDlg: TAssemblerDlg
|
object AssemblerDlg: TAssemblerDlg
|
||||||
Left = 268
|
Left = 268
|
||||||
Height = 232
|
Height = 232
|
||||||
Top = 122
|
Top = 122
|
||||||
@ -10,7 +10,8 @@ inherited AssemblerDlg: TAssemblerDlg
|
|||||||
KeyPreview = True
|
KeyPreview = True
|
||||||
OnKeyDown = FormKeyDown
|
OnKeyDown = FormKeyDown
|
||||||
OnResize = FormResize
|
OnResize = FormResize
|
||||||
object pbAsm: TPaintBox[0]
|
LCLVersion = '1.9.0.0'
|
||||||
|
object pbAsm: TPaintBox
|
||||||
AnchorSideLeft.Control = Owner
|
AnchorSideLeft.Control = Owner
|
||||||
AnchorSideTop.Control = ToolBar1
|
AnchorSideTop.Control = ToolBar1
|
||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
@ -29,7 +30,7 @@ inherited AssemblerDlg: TAssemblerDlg
|
|||||||
OnMouseWheel = pbAsmMouseWheel
|
OnMouseWheel = pbAsmMouseWheel
|
||||||
OnPaint = pbAsmPaint
|
OnPaint = pbAsmPaint
|
||||||
end
|
end
|
||||||
object sbHorizontal: TScrollBar[1]
|
object sbHorizontal: TScrollBar
|
||||||
AnchorSideLeft.Control = Owner
|
AnchorSideLeft.Control = Owner
|
||||||
AnchorSideRight.Control = sbVertical
|
AnchorSideRight.Control = sbVertical
|
||||||
AnchorSideBottom.Control = Owner
|
AnchorSideBottom.Control = Owner
|
||||||
@ -44,7 +45,7 @@ inherited AssemblerDlg: TAssemblerDlg
|
|||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
OnChange = sbHorizontalChange
|
OnChange = sbHorizontalChange
|
||||||
end
|
end
|
||||||
object sbVertical: TScrollBar[2]
|
object sbVertical: TScrollBar
|
||||||
AnchorSideTop.Control = ToolBar1
|
AnchorSideTop.Control = ToolBar1
|
||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
AnchorSideRight.Control = Owner
|
AnchorSideRight.Control = Owner
|
||||||
@ -64,7 +65,7 @@ inherited AssemblerDlg: TAssemblerDlg
|
|||||||
OnChange = sbVerticalChange
|
OnChange = sbVerticalChange
|
||||||
OnScroll = sbVerticalScroll
|
OnScroll = sbVerticalScroll
|
||||||
end
|
end
|
||||||
object ToolBar1: TToolBar[3]
|
object ToolBar1: TToolBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 26
|
Height = 26
|
||||||
Top = 0
|
Top = 0
|
||||||
@ -84,36 +85,36 @@ inherited AssemblerDlg: TAssemblerDlg
|
|||||||
end
|
end
|
||||||
object ToolButton2: TToolButton
|
object ToolButton2: TToolButton
|
||||||
Left = 24
|
Left = 24
|
||||||
|
Height = 22
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 10
|
|
||||||
Caption = 'ToolButton2'
|
Caption = 'ToolButton2'
|
||||||
Style = tbsSeparator
|
Style = tbsSeparator
|
||||||
end
|
end
|
||||||
object ToolButtonStepOverInstr: TToolButton
|
object ToolButtonStepOverInstr: TToolButton
|
||||||
Left = 57
|
Left = 55
|
||||||
Top = 2
|
Top = 2
|
||||||
Action = actStepOverInstr
|
Action = actStepOverInstr
|
||||||
end
|
end
|
||||||
object ToolButtonStepIntoInstr: TToolButton
|
object ToolButtonStepIntoInstr: TToolButton
|
||||||
Left = 34
|
Left = 32
|
||||||
Top = 2
|
Top = 2
|
||||||
Action = actStepIntoInstr
|
Action = actStepIntoInstr
|
||||||
end
|
end
|
||||||
object ToolButton4: TToolButton
|
object ToolButton4: TToolButton
|
||||||
Left = 80
|
Left = 78
|
||||||
|
Height = 22
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 10
|
|
||||||
Caption = 'ToolButton4'
|
Caption = 'ToolButton4'
|
||||||
Style = tbsSeparator
|
Style = tbsSeparator
|
||||||
end
|
end
|
||||||
object ToolButtonGotoCurrent: TToolButton
|
object ToolButtonGotoCurrent: TToolButton
|
||||||
Left = 90
|
Left = 86
|
||||||
Top = 2
|
Top = 2
|
||||||
Action = actCurrentInstr
|
Action = actCurrentInstr
|
||||||
end
|
end
|
||||||
object pnlToolAddr: TPanel
|
object pnlToolAddr: TPanel
|
||||||
Left = 113
|
Left = 109
|
||||||
Height = 23
|
Height = 29
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 80
|
Width = 80
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
@ -123,12 +124,12 @@ inherited AssemblerDlg: TAssemblerDlg
|
|||||||
ChildSizing.ShrinkHorizontal = crsHomogenousChildResize
|
ChildSizing.ShrinkHorizontal = crsHomogenousChildResize
|
||||||
ChildSizing.Layout = cclLeftToRightThenTopToBottom
|
ChildSizing.Layout = cclLeftToRightThenTopToBottom
|
||||||
ChildSizing.ControlsPerLine = 1
|
ChildSizing.ControlsPerLine = 1
|
||||||
ClientHeight = 23
|
ClientHeight = 29
|
||||||
ClientWidth = 80
|
ClientWidth = 80
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object EditGotoAddr: TEdit
|
object EditGotoAddr: TEdit
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 23
|
Height = 29
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 80
|
Width = 80
|
||||||
OnChange = EditGotoAddrChange
|
OnChange = EditGotoAddrChange
|
||||||
@ -137,34 +138,34 @@ inherited AssemblerDlg: TAssemblerDlg
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
object ToolButtonGoto: TToolButton
|
object ToolButtonGoto: TToolButton
|
||||||
Left = 193
|
Left = 189
|
||||||
Top = 2
|
Top = 2
|
||||||
Action = actGotoAddr
|
Action = actGotoAddr
|
||||||
end
|
end
|
||||||
object ToolButton1: TToolButton
|
object ToolButton1: TToolButton
|
||||||
Left = 216
|
Left = 212
|
||||||
|
Height = 22
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 5
|
|
||||||
Caption = 'ToolButton1'
|
Caption = 'ToolButton1'
|
||||||
Style = tbsDivider
|
Style = tbsDivider
|
||||||
end
|
end
|
||||||
object ToolButtonCopy: TToolButton
|
object ToolButtonCopy: TToolButton
|
||||||
Left = 221
|
Left = 217
|
||||||
Top = 2
|
Top = 2
|
||||||
Action = actCopy
|
Action = actCopy
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object PopupMenu1: TPopupMenu[4]
|
object PopupMenu1: TPopupMenu
|
||||||
left = 493
|
Left = 493
|
||||||
top = 43
|
Top = 43
|
||||||
object CopyToClipboard: TMenuItem
|
object CopyToClipboard: TMenuItem
|
||||||
Action = actCopy
|
Action = actCopy
|
||||||
OnClick = CopyToClipboardClick
|
OnClick = CopyToClipboardClick
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object ActionList1: TActionList[5]
|
object ActionList1: TActionList
|
||||||
left = 104
|
Left = 104
|
||||||
top = 32
|
Top = 32
|
||||||
object actStepOverInstr: TAction
|
object actStepOverInstr: TAction
|
||||||
Caption = 'actStepOverInstr'
|
Caption = 'actStepOverInstr'
|
||||||
OnExecute = actStepOverInstrExecute
|
OnExecute = actStepOverInstrExecute
|
||||||
@ -186,14 +187,14 @@ inherited AssemblerDlg: TAssemblerDlg
|
|||||||
OnExecute = CopyToClipboardClick
|
OnExecute = CopyToClipboardClick
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object ImageList1: TImageList[6]
|
object ImageList1: TImageList
|
||||||
left = 24
|
Left = 24
|
||||||
top = 32
|
Top = 32
|
||||||
end
|
end
|
||||||
object Timer1: TTimer[7]
|
object Timer1: TTimer
|
||||||
Interval = 50
|
Interval = 50
|
||||||
OnTimer = Timer1Timer
|
OnTimer = Timer1Timer
|
||||||
left = 96
|
Left = 96
|
||||||
top = 113
|
Top = 113
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -970,7 +970,8 @@ begin
|
|||||||
then exit;
|
then exit;
|
||||||
|
|
||||||
Editor := SourceEditorManager.SourceEditorIntfWithFilename(SrcFileName);
|
Editor := SourceEditorManager.SourceEditorIntfWithFilename(SrcFileName);
|
||||||
if Editor <> nil then SrcLineNumber := Editor.DebugToSourceLine(SrcLineNumber);
|
if Editor <> nil then
|
||||||
|
SrcLineNumber := Editor.DebugToSourceLine(SrcLineNumber);
|
||||||
|
|
||||||
Result := Trim(PasSource.GetLine(SrcLineNumber - 1,false));
|
Result := Trim(PasSource.GetLine(SrcLineNumber - 1,false));
|
||||||
end;
|
end;
|
||||||
|
@ -289,7 +289,6 @@ begin
|
|||||||
try DebugLnEnter(DBG_DATA_MONITORS, ['DebugDataWindow: >>ENTER: TCallStackDlg.UpdateView']);
|
try DebugLnEnter(DBG_DATA_MONITORS, ['DebugDataWindow: >>ENTER: TCallStackDlg.UpdateView']);
|
||||||
Exclude(FUpdateFlags, ufNeedUpdating);
|
Exclude(FUpdateFlags, ufNeedUpdating);
|
||||||
|
|
||||||
|
|
||||||
BeginUpdate;
|
BeginUpdate;
|
||||||
lvCallStack.BeginUpdate;
|
lvCallStack.BeginUpdate;
|
||||||
try
|
try
|
||||||
@ -306,7 +305,6 @@ begin
|
|||||||
// TODO: must make CStack ref-counted
|
// TODO: must make CStack ref-counted
|
||||||
if CStack <> GetSelectedCallstack then exit; // Something changed, maybe debugger stopped
|
if CStack <> GetSelectedCallstack then exit; // Something changed, maybe debugger stopped
|
||||||
|
|
||||||
|
|
||||||
if (CStack = nil) or ((Snap <> nil) and (CStack.CountLimited(MaxCnt) = 0)) then begin
|
if (CStack = nil) or ((Snap <> nil) and (CStack.CountLimited(MaxCnt) = 0)) then begin
|
||||||
lvCallStack.Items.Clear;
|
lvCallStack.Items.Clear;
|
||||||
Item := lvCallStack.Items.Add;
|
Item := lvCallStack.Items.Add;
|
||||||
@ -324,7 +322,6 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
if Snap <> nil then begin
|
if Snap <> nil then begin
|
||||||
First := 0;
|
First := 0;
|
||||||
Count := CStack.CountLimited(MaxCnt);
|
Count := CStack.CountLimited(MaxCnt);
|
||||||
|
Loading…
Reference in New Issue
Block a user