mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 15:00:31 +02:00
* Patch from Yury Sidorov for setting intitial breakpoint
git-svn-id: trunk@10679 -
This commit is contained in:
parent
57d06e746d
commit
a2aa58380f
@ -2098,7 +2098,7 @@ function TGDBMIDebugger.StartDebugging(const AContinueCommand: String): Boolean;
|
||||
if S <> ''
|
||||
then begin
|
||||
FMainAddr := StrToIntDef(S, 0);
|
||||
ExecuteCommand('-break-insert -t *' + S, [cfIgnoreError], R);
|
||||
ExecuteCommand('-break-insert -t *%u', [FMainAddr], [cfIgnoreError], R);
|
||||
Result := R.State <> dsError;
|
||||
if Result then Exit;
|
||||
end;
|
||||
@ -2194,7 +2194,7 @@ begin
|
||||
// We could not set our initial break to get info and allow stepping
|
||||
// Try it with the program entry point
|
||||
FMainAddr := StrToIntDef(EntryPoint, 0);
|
||||
ExecuteCommand('-break-insert -t *' + EntryPoint, [cfIgnoreError], R);
|
||||
ExecuteCommand('-break-insert -t *%u', [FMainAddr], [cfIgnoreError], R);
|
||||
TempInstalled := R.State <> dsError;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user