This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setting a breakpoint on a dll, relative path or absolute path issue


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]