From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 503 invoked by alias); 21 Aug 2009 20:33:46 -0000 Received: (qmail 495 invoked by uid 22791); 21 Aug 2009 20:33:46 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout6.012.net.il (HELO mtaout6.012.net.il) (84.95.2.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Aug 2009 20:33:36 +0000 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KOQ00700TQPZM00@i-mtaout6.012.net.il> for gdb@sourceware.org; Fri, 21 Aug 2009 23:33:34 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.180.85]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KOQ00HDEUFXNC60@i-mtaout6.012.net.il>; Fri, 21 Aug 2009 23:33:34 +0300 (IDT) Date: Fri, 21 Aug 2009 21:57:00 -0000 From: Eli Zaretskii Subject: Re: Build question In-reply-to: <1250880746.11282.128.camel@pavilion> To: danny.backx@scarlet.be Cc: tromey@redhat.com, gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <8363cghpsn.fsf@gnu.org> References: <1250803105.11282.96.camel@pavilion> <83d46pgjkq.fsf@gnu.org> <1250877901.11282.116.camel@pavilion> <83ab1tgh9h.fsf@gnu.org> <1250880746.11282.128.camel@pavilion> 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: 2009-08/txt/msg00218.txt.bz2 > From: Danny Backx > Cc: tromey@redhat.com, gdb@sourceware.org > Date: Fri, 21 Aug 2009 20:52:26 +0200 > > On Fri, 2009-08-21 at 21:21 +0300, Eli Zaretskii wrote: > > > > The way these macros and the corresponding source fragments in GDB are > > > > set, they only DTRT for native debugging. > > > > > > Also right, but it looks like it doesn't take much to make it just work. > > > > I think they need to be converted to run-time tests instead. For > > that, we would probably need some kind of primitive that returns the > > filesystem type of the target, what the macros do now at compile-time. > > That doesn't look right. > > I am building i386-mingw32ce-gdb (or arm-mingw32ce-gdb). The targets > specified are Windows CE based, so they all have this "DOS BASED" file > system. So why test this at run time ? I thought the intent was to make it possible to have targets that use ``DOS-based'' filesystems and targets that use Posix filesystems in the same session. GDB does support different targets in the same session, right? If you want a version that targets only one, then yes, some suitable change in the macros will do what you want.