Skip to content

Commit 8b3b56d

Browse files
committed
Fix crash when using gdb>v10.0 (Thank to Graeme).(2)
1 parent 6ec234b commit 8b3b56d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/common/designutils/msegdbutils.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ procedure tgdbmi.startgdb(commandline: msestring);
990990
haslang:= sys_getenv(lcmessages,langbefore);
991991
sys_setenv(lcmessages,'C');
992992

993-
fgdb:= execmse2({$ifdef UNIX}'DEBUGINFOD_URLS=; ' + {$endif} syscommandline(commandline)+' --interpreter=mi --nx --readnever',
993+
fgdb:= execmse2(syscommandline(commandline)+' --interpreter=mi --nx --readnever',
994994
fgdbto,fgdbfrom,fgdbfrom,-1,
995995
[exo_inactive,exo_tty,exo_winpipewritehandles]);
996996

@@ -1007,6 +1007,7 @@ procedure tgdbmi.startgdb(commandline: msestring);
10071007
else begin
10081008
unsetenv(lcmessages);
10091009
end;
1010+
clicommand('set debuginfod enabled off');
10101011
clicommand('set breakpoint pending on');
10111012
clicommand('set height 0');
10121013
clicommand('set width 0');

0 commit comments

Comments
 (0)