This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [Mingw-users] setting a breakpoint on a dll, relative path or absolute path issue
asmwarrior wrote:
> On 2011-6-12 15:56, Jan Kratochvil wrote:
>> On Sun, 12 Jun 2011 09:47:37 +0200, asmwarrior wrote:
>>> 1, either we should store the
>>> "E:/code/cb/wx/wxWidgets-2.8.12/src/common/datetime.cpp"
>>> instead of
>>> "E:\code\cb\wx\wxWidgets-2.8.12\build\msw/../../src/common/datetime.cpp"
>>> in the symbol tables.
>>
>> This does not work, the paths are not the same:
>> $ mkdir dir dir/subdir; echo file>dir/file; ln -s dir/subdir symlink; cat symlink/../file file
>> file
>> cat: file: No such file or directory
>>
>> And one of the MinGW principles is to keep the backslashed names (\), not to
>> translate them to slashed ones (/) like CygWin does.
>>
>>
This isn't exactly true. We use / instead of \ except for when using
CreateProcess since the API will understand them and it is more work to
use \ instead of /. The process actually uses both \ and / as equals.
--
Earnie
-- http://www.for-my-kids.com