mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:09:31 +02:00
+ Use SetTbreak method
git-svn-id: trunk@15891 -
This commit is contained in:
parent
18bd6a344d
commit
fb313ff87e
@ -399,7 +399,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
FileName:=PSourceWindow(W)^.Editor^.FileName;
|
FileName:=PSourceWindow(W)^.Editor^.FileName;
|
||||||
LineNr:=PSourceWindow(W)^.Editor^.CurPos.Y+1;
|
LineNr:=PSourceWindow(W)^.Editor^.CurPos.Y+1;
|
||||||
Debugger^.Command('tbreak '+GDBFileName(NameAndExtOf(FileName))+':'+IntToStr(LineNr));
|
Debugger^.SetTbreak(GDBFileName(NameAndExtOf(FileName))+':'+IntToStr(LineNr));
|
||||||
Debugger^.Continue;
|
Debugger^.Continue;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -413,7 +413,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
if PDL^.Address<>0 then
|
if PDL^.Address<>0 then
|
||||||
begin
|
begin
|
||||||
Debugger^.Command('tbreak *0x'+HexStr(PDL^.Address,sizeof(pointer)*2));
|
Debugger^.SetTBreak('*0x'+HexStr(PDL^.Address,sizeof(pointer)*2));
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
@ -424,7 +424,7 @@ begin
|
|||||||
p:=pos(' ',S);
|
p:=pos(' ',S);
|
||||||
S:=Copy(S,1,p-1);
|
S:=Copy(S,1,p-1);
|
||||||
LineNr:=StrToInt(S);
|
LineNr:=StrToInt(S);
|
||||||
Debugger^.Command('tbreak '+GDBFileName(NameAndExtOf(FileName))+':'+IntToStr(LineNr));
|
Debugger^.SetTBreak(GDBFileName(NameAndExtOf(FileName))+':'+IntToStr(LineNr));
|
||||||
end;
|
end;
|
||||||
Debugger^.Continue;
|
Debugger^.Continue;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user