From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11842 invoked by alias); 13 Jun 2011 17:02:14 -0000 Received: (qmail 11827 invoked by uid 22791); 13 Jun 2011 17:02:13 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Jun 2011 17:01:57 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LMQ00H00N85OA00@a-mtaout22.012.net.il> for gdb@sourceware.org; Mon, 13 Jun 2011 20:01:28 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.164.125]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LMQ00HS9NAE7C70@a-mtaout22.012.net.il>; Mon, 13 Jun 2011 20:01:28 +0300 (IDT) Date: Mon, 13 Jun 2011 17:02:00 -0000 From: Eli Zaretskii Subject: Re: setting a breakpoint on a dll, relative path or absolute path issue In-reply-to: <4DF5AE48.9050202@gmail.com> To: Asm warrior Cc: gdb@sourceware.org, tdragon@tdragon.net, jan.kratochvil@redhat.com, keiths@redhat.com Reply-to: Eli Zaretskii Message-id: <83ips9acr7.fsf@gnu.org> References: <4DF31EB0.6080006@gmail.com> <4DF37ADA.3070905@users.sourceforge.net> <4DF4513A.3090902__7466.60719528354$1307866544$gmane$org@gmail.com> <4DF5AE48.9050202@gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00091.txt.bz2 > Date: Mon, 13 Jun 2011 14:29:28 +0800 > From: Asm warrior > CC: "John E. / TDM" , Eli Zaretskii , > 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.