setting a breakpoint on a dll, relative path or absolute path issue
Eli Zaretskii
eliz@gnu.org
Mon Jun 13 17:02:00 GMT 2011
> Date: Mon, 13 Jun 2011 14:29:28 +0800
> From: Asm warrior <asmwarrior@gmail.com>
> CC: "John E. / TDM" <tdragon@tdragon.net>, Eli Zaretskii <eliz@gnu.org>,
> jan.kratochvil@redhat.com, keiths@redhat.com
>
> When loop on the symbols. I found that at one loop, I get
>
> s->filename = "../../src/common/string.cpp"
> s->dirname = "D:\code\wxWidgets-2.8.12\build\msw"
>
> But too badly, the result
> s->fullname =
> "D:\code\wxWidgets-2.8.12\build\msw/../../src/common/string.cpp"
>
> This is the reason about the issue, if the result is:
> "D:\code\wxWidgets-2.8.12/src/common/string.cpp"
> Then, this problem can be fixed.
>
> I'm not sure why gdb does not give a cannical filename, but still leaves
> the "../../" in the result.
Because the function that canonicalizes the file name does not support
backslashes correctly?
> By the way, gdb's matching algorithm care both "/" and "\" as equivalent
> char under Windows.
Right, that was changed lately.
More information about the Gdb
mailing list