Sorry for the wrong title but I don't know how to change it.
Bug: Debug/Break Point would fill if the debuging file is in the root folder of a drive (devcpp 5.8.4 + mingw 5.7.2)
if a file to debug is in the root folder of a dirve, such as d:\test.c, devcpp will fail to start debug.
And the cause is in the main.pas: fDebugger.SendCommand('cd', ExtractFileDir(filepath)); // restore working directory
ExtractFileDir will return "d:\" for "d:\test.c", and "cd d:\" will fail in gdb.
I don't know how to contribute a patch. Anyone can help?
Log in to post a comment.
Sorry for the wrong title but I don't know how to change it.
Bug: Debug/Break Point would fill if the debuging file is in the root folder of a drive
(devcpp 5.8.4 + mingw 5.7.2)
if a file to debug is in the root folder of a dirve, such as d:\test.c, devcpp will fail to start debug.
And the cause is in the main.pas:
fDebugger.SendCommand('cd', ExtractFileDir(filepath)); // restore working directory
ExtractFileDir will return "d:\" for "d:\test.c", and "cd d:\" will fail in gdb.
I don't know how to contribute a patch. Anyone can help?
Last edit: Roy Qu 2017-03-02