This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: setting a breakpoint on a dll, relative path or absolute path issue
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Asm warrior <asmwarrior at gmail dot com>
- Cc: gdb at sourceware dot org, tdragon at tdragon dot net, jan dot kratochvil at redhat dot com, keiths at redhat dot com
- Date: Mon, 13 Jun 2011 19:59:24 +0300
- Subject: Re: setting a breakpoint on a dll, relative path or absolute path issue
- References: <4DF31EB0.6080006@gmail.com> <4DF37ADA.3070905@users.sourceforge.net> <4DF4513A.3090902__7466.60719528354$1307866544$gmane$org@gmail.com> <4DF5AE48.9050202@gmail.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.