From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17877 invoked by alias); 6 Jan 2008 20:18:27 -0000 Received: (qmail 17869 invoked by uid 22791); 6 Jan 2008 20:18:26 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (213.8.233.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 06 Jan 2008 20:18:07 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-143-222.inter.net.il [80.230.143.222]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id JVG16513 (AUTH halo1); Sun, 6 Jan 2008 22:17:16 +0200 (IST) Date: Sun, 06 Jan 2008 20:18:00 -0000 Message-Id: From: Eli Zaretskii To: "Doug Evans" CC: drow@false.org, gdb-patches@sources.redhat.com, ARistovski@qnx.com, gcc-patches@gcc.gnu.org, RMansfield@qnx.com In-reply-to: (dje@google.com) Subject: Re: [patch] IS_ABSOLUTE_PATH to handle both DOS and POSIX path st yles Reply-to: Eli Zaretskii References: <2F6320727174C448A52CEB63D85D11F40A58@nova.ott.qnx.com> <20080106054030.GA10410@caradoc.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00101.txt.bz2 > Date: Sun, 6 Jan 2008 12:03:08 -0800 > From: "Doug Evans" > Cc: "Daniel Jacobowitz" , gdb-patches@sources.redhat.com, > ARistovski@qnx.com, gcc-patches@gcc.gnu.org, RMansfield@qnx.com > > > In that case, I think it's wrong to allow both styles of slashes and > > absolute file names. Instead, we should have a user option to set the > > correct style, which would default to the convention of the platform > > where GDB was built to run. > > > > If you agree with this approach, then the _ANY version of the macros > > is not needed. > > It seems like GDB should know what to use, or at least be able to > figure it out (in cases where it really matters). How can GDB figure that out? We don't tell it enough about the program being debugged for that. But if I'm wrong, and GDB _can_ figure it out on its own, then it should use the right style of file names automagically, and the _ANY set of macros is again not needed. > Are we really sure we need an option? If GDB cannot figure this out, the user should tell it, since the user always knows. > How would this option work in practice? How about (gdb) set filename-style (dos|unix) ? > If one ever wanted to set it to the non-default value it'd be > rather cumbersome to have to set it and then reset it for one-off > uses of "the other" path kind. No more cumbersome than any other similar option, like "set demangle-style", for example.