mirror of https://gitlab.com/basile.b/dexed.git
fix #156 - Debugee option "workingDirectory" does not expand the symstrings
This commit is contained in:
parent
0c39fe224e
commit
b37d4ad352
|
@ -1757,7 +1757,7 @@ begin
|
|||
str := fSyms.expand(str[1..str.length-1]);
|
||||
gdbCommand('-environment-path ' + str);
|
||||
end;
|
||||
if DirectoryExists(o.workingDirectory) then
|
||||
if DirectoryExists(fSyms.expand(o.workingDirectory)) then
|
||||
gdbCommand('-environment-cd ' + fSyms.expand(o.workingDirectory));
|
||||
if (o.arguments.Count <> 0) or (o.queryArguments) then
|
||||
begin
|
||||
|
@ -1785,22 +1785,19 @@ begin
|
|||
dbgeeOptsEd.TIObject := nil;
|
||||
if not fDbgRunnable then
|
||||
begin
|
||||
if fProj = nil then
|
||||
exit
|
||||
else nme := fProj.filename;
|
||||
if not nme.fileExists then
|
||||
exit;
|
||||
if fProj <> nil then
|
||||
nme := fProj.filename;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if fDoc = nil then
|
||||
exit
|
||||
else nme := fDoc.filename;
|
||||
if not nme.fileExists then
|
||||
exit;
|
||||
if fDoc.isNotNil then
|
||||
nme := fDoc.filename;
|
||||
end;
|
||||
if nme.fileExists then
|
||||
begin
|
||||
opt := fDebugeeOptions.projectByFile[nme];
|
||||
dbgeeOptsEd.TIObject := opt;
|
||||
end;
|
||||
opt := fDebugeeOptions.projectByFile[nme];
|
||||
dbgeeOptsEd.TIObject := opt;
|
||||
end;
|
||||
|
||||
procedure TCEGdbWidget.synchronizeBreakpointsFromDoc;
|
||||
|
|
Loading…
Reference in New Issue