mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 11:26:33 +02:00
* fix problems with breakpoint lists
This commit is contained in:
parent
ce868dcdac
commit
a9f7d35c69
@ -65,7 +65,7 @@ const
|
|||||||
|
|
||||||
{$ifdef UNIX}
|
{$ifdef UNIX}
|
||||||
EnterSign = '<'+#196#217;
|
EnterSign = '<'+#196#217;
|
||||||
{$else}
|
{$else}
|
||||||
EnterSign = #17#196#217;
|
EnterSign = #17#196#217;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
@ -231,6 +231,8 @@ const
|
|||||||
cmNewBreakpoint = 2401;
|
cmNewBreakpoint = 2401;
|
||||||
cmDeleteBreakpoint = 2402;
|
cmDeleteBreakpoint = 2402;
|
||||||
cmToggleBreakpoint = 2403;
|
cmToggleBreakpoint = 2403;
|
||||||
|
cmToggleBreakInList = 2404;
|
||||||
|
|
||||||
|
|
||||||
cmDumpUndo = 2500;
|
cmDumpUndo = 2500;
|
||||||
cmUndoAll = 2501;
|
cmUndoAll = 2501;
|
||||||
@ -442,7 +444,10 @@ implementation
|
|||||||
END.
|
END.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.6 2002-03-28 16:25:16 peter
|
Revision 1.7 2002-09-02 10:18:09 pierre
|
||||||
|
* fix problems with breakpoint lists
|
||||||
|
|
||||||
|
Revision 1.6 2002/03/28 16:25:16 peter
|
||||||
* use < for left arrow under unix
|
* use < for left arrow under unix
|
||||||
|
|
||||||
Revision 1.5 2002/01/24 09:21:41 pierre
|
Revision 1.5 2002/01/24 09:21:41 pierre
|
||||||
|
@ -1524,7 +1524,7 @@ begin
|
|||||||
ClearFormatParams;
|
ClearFormatParams;
|
||||||
AddFormatParamStr(NameAndExtOf(FileName^));
|
AddFormatParamStr(NameAndExtOf(FileName^));
|
||||||
AddFormatParamInt(Line);
|
AddFormatParamInt(Line);
|
||||||
if ChoiceBox(msg_couldnotsetbreakpointat,@FormatParams,[btn_ok,btn_disableallbreakpoints],false)=cmUserBtn2 then
|
if ChoiceBox(msg_couldnotsetbreakpointat,@FormatParams,[btn_ok,button_DisableAllBreakpoints],false)=cmUserBtn2 then
|
||||||
Debugger^.Disableallinvalidbreakpoints:=true;
|
Debugger^.Disableallinvalidbreakpoints:=true;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -1532,7 +1532,7 @@ begin
|
|||||||
ClearFormatParams;
|
ClearFormatParams;
|
||||||
AddFormatParamStr(BreakpointTypeStr[typ]);
|
AddFormatParamStr(BreakpointTypeStr[typ]);
|
||||||
AddFormatParamStr(GetStr(Name));
|
AddFormatParamStr(GetStr(Name));
|
||||||
if ChoiceBox(msg_couldnotsetbreakpointtype,@FormatParams,[btn_ok,btn_disableallbreakpoints],false)=cmUserBtn2 then
|
if ChoiceBox(msg_couldnotsetbreakpointtype,@FormatParams,[btn_ok,button_DisableAllBreakpoints],false)=cmUserBtn2 then
|
||||||
Debugger^.Disableallinvalidbreakpoints:=true;
|
Debugger^.Disableallinvalidbreakpoints:=true;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -2145,6 +2145,8 @@ var R,R2: TRect;
|
|||||||
S: String;
|
S: String;
|
||||||
X,X1 : Sw_integer;
|
X,X1 : Sw_integer;
|
||||||
Btn: PButton;
|
Btn: PButton;
|
||||||
|
const
|
||||||
|
NumButtons = 5;
|
||||||
begin
|
begin
|
||||||
Desktop^.GetExtent(R); R.A.Y:=R.B.Y-18;
|
Desktop^.GetExtent(R); R.A.Y:=R.B.Y-18;
|
||||||
inherited Init(R, dialog_breakpointlist, wnNoNumber);
|
inherited Init(R, dialog_breakpointlist, wnNoNumber);
|
||||||
@ -2174,7 +2176,7 @@ begin
|
|||||||
GetExtent(R);R.Grow(-1,-1);
|
GetExtent(R);R.Grow(-1,-1);
|
||||||
Dec(R.B.Y);
|
Dec(R.B.Y);
|
||||||
R.A.Y:=R.B.Y-2;
|
R.A.Y:=R.B.Y-2;
|
||||||
X:=(R.B.X-R.A.X) div 4;
|
X:=(R.B.X-R.A.X) div NumButtons;
|
||||||
X1:=R.A.X+(X div 2);
|
X1:=R.A.X+(X div 2);
|
||||||
R.A.X:=X1-3;R.B.X:=X1+7;
|
R.A.X:=X1-3;R.B.X:=X1+7;
|
||||||
New(Btn, Init(R, button_Close, cmClose, bfDefault));
|
New(Btn, Init(R, button_Close, cmClose, bfDefault));
|
||||||
@ -2192,6 +2194,11 @@ begin
|
|||||||
Insert(Btn);
|
Insert(Btn);
|
||||||
X1:=X1+X;
|
X1:=X1+X;
|
||||||
R.A.X:=X1-3;R.B.X:=X1+7;
|
R.A.X:=X1-3;R.B.X:=X1+7;
|
||||||
|
New(Btn, Init(R, button_ToggleButton, cmToggleBreakInList, bfNormal));
|
||||||
|
Btn^.GrowMode:=gfGrowLoY+gfGrowHiY;
|
||||||
|
Insert(Btn);
|
||||||
|
X1:=X1+X;
|
||||||
|
R.A.X:=X1-3;R.B.X:=X1+7;
|
||||||
New(Btn, Init(R, button_Delete, cmDeleteBreakpoint, bfNormal));
|
New(Btn, Init(R, button_Delete, cmDeleteBreakpoint, bfNormal));
|
||||||
Btn^.GrowMode:=gfGrowLoY+gfGrowHiY;
|
Btn^.GrowMode:=gfGrowLoY+gfGrowHiY;
|
||||||
Insert(Btn);
|
Insert(Btn);
|
||||||
@ -2268,6 +2275,8 @@ begin
|
|||||||
BreakLB^.EditCurrent;
|
BreakLB^.EditCurrent;
|
||||||
cmDeleteBreakpoint :
|
cmDeleteBreakpoint :
|
||||||
BreakLB^.DeleteCurrent;
|
BreakLB^.DeleteCurrent;
|
||||||
|
cmToggleBreakInList :
|
||||||
|
BreakLB^.ToggleCurrent;
|
||||||
cmClose :
|
cmClose :
|
||||||
Hide;
|
Hide;
|
||||||
else
|
else
|
||||||
@ -2286,9 +2295,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TBreakpointsWindow.Update;
|
procedure TBreakpointsWindow.Update;
|
||||||
|
var
|
||||||
|
StoreFocus : longint;
|
||||||
begin
|
begin
|
||||||
|
StoreFocus:=BreakLB^.Focused;
|
||||||
ClearBreakpoints;
|
ClearBreakpoints;
|
||||||
ReloadBreakpoints;
|
ReloadBreakpoints;
|
||||||
|
If StoreFocus<BreakLB^.Range then
|
||||||
|
BreakLB^.FocusItem(StoreFocus);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TBreakpointsWindow.Done;
|
destructor TBreakpointsWindow.Done;
|
||||||
@ -4144,7 +4158,10 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.23 2002-08-13 08:59:12 pierre
|
Revision 1.24 2002-09-02 10:18:09 pierre
|
||||||
|
* fix problems with breakpoint lists
|
||||||
|
|
||||||
|
Revision 1.23 2002/08/13 08:59:12 pierre
|
||||||
+ Run menu changes depending on wether the debuggee is running or not
|
+ Run menu changes depending on wether the debuggee is running or not
|
||||||
|
|
||||||
Revision 1.22 2002/08/13 07:15:02 pierre
|
Revision 1.22 2002/08/13 07:15:02 pierre
|
||||||
|
@ -851,7 +851,6 @@ const
|
|||||||
#3+'%s:%d';
|
#3+'%s:%d';
|
||||||
msg_couldnotsetbreakpointtype = #3'Could not set Breakpoint'#13+
|
msg_couldnotsetbreakpointtype = #3'Could not set Breakpoint'#13+
|
||||||
#3+'%s %s';
|
#3+'%s %s';
|
||||||
btn_disableallbreakpoints = 'Disable all invalid';
|
|
||||||
|
|
||||||
{ standard button texts }
|
{ standard button texts }
|
||||||
button_OK = 'O~K~';
|
button_OK = 'O~K~';
|
||||||
@ -862,6 +861,10 @@ const
|
|||||||
button_Close = '~C~lose';
|
button_Close = '~C~lose';
|
||||||
button_Show = '~S~how';
|
button_Show = '~S~how';
|
||||||
button_Hide = '~H~ide';
|
button_Hide = '~H~ide';
|
||||||
|
button_DisableAllBreakpoints = 'Dis. ~a~ll invalid';
|
||||||
|
|
||||||
|
{ Specific Button }
|
||||||
|
button_ToggleButton = '~T~oggle';
|
||||||
|
|
||||||
{ Compiler message classes }
|
{ Compiler message classes }
|
||||||
msg_class_normal = '';
|
msg_class_normal = '';
|
||||||
@ -1034,7 +1037,10 @@ const
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.11 2002-08-13 08:57:03 pierre
|
Revision 1.12 2002-09-02 10:18:10 pierre
|
||||||
|
* fix problems with breakpoint lists
|
||||||
|
|
||||||
|
Revision 1.11 2002/08/13 08:57:03 pierre
|
||||||
+ Continue string added, to support Run submenu changes
|
+ Continue string added, to support Run submenu changes
|
||||||
|
|
||||||
Revision 1.10 2002/08/13 07:15:02 pierre
|
Revision 1.10 2002/08/13 07:15:02 pierre
|
||||||
|
Loading…
Reference in New Issue
Block a user