From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20970 invoked by alias); 29 Mar 2013 05:56:54 -0000 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 Received: (qmail 20957 invoked by uid 89); 29 Mar 2013 05:56:46 -0000 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_BR,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RCVD_IN_JMF_BR,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 29 Mar 2013 05:56:43 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MKE00D00R14JE00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Fri, 29 Mar 2013 08:56:30 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKE00CSXR5XJCJ0@a-mtaout20.012.net.il>; Fri, 29 Mar 2013 08:56:21 +0300 (IDT) Date: Fri, 29 Mar 2013 14:03:00 -0000 From: Eli Zaretskii Subject: Re: one week to gdb-7.6 release? In-reply-to: <20130329015924.GA14360@adacore.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org, palves@redhat.com, jan.kratochvil@redhat.com, ralf.corsepius@rtems.org, vapier@gentoo.org, joel.sherrill@oarcorp.com Reply-to: Eli Zaretskii Message-id: <83eheywxye.fsf@gnu.org> References: <20130320160032.GC5447@adacore.com> <83vc8myoyb.fsf@gnu.org> <83ehf64cfs.fsf@gnu.org> <20130323162534.GI5447@adacore.com> <834ng23soj.fsf@gnu.org> <20130325151825.GJ5447@adacore.com> <83k3ov1mo0.fsf@gnu.org> <20130325162524.GK5447@adacore.com> <20130329015924.GA14360@adacore.com> X-SW-Source: 2013-03/txt/msg01098.txt.bz2 > Date: Thu, 28 Mar 2013 18:59:24 -0700 > From: Joel Brobecker > Cc: gdb-patches@sourceware.org, palves@redhat.com, > jan.kratochvil@redhat.com, ralf.corsepius@rtems.org, > vapier@gentoo.org, joel.sherrill@oarcorp.com > > > > The > > > code in main.c already does > > > > > > #ifdef __MINGW32__ > > > /* On Windows, argv[0] is not necessarily set to absolute form when > > > GDB is found along PATH, without which relocation doesn't work. */ > > > gdb_program_name = windows_get_absolute_argv0 (argv[0]); > > > #else > > > gdb_program_name = xstrdup (argv[0]); > > > #endif > > > > > > Is moving that to posix-hdep.c just to avoid an ifdef? > > > > The main purpose is to move the code away out of windows-nat, which > > is only linked in native debuggers, not cross ones - so that building > > a cross debugger hosted on Windows will work again. Basically, your > > new function is really only dependent on the host, whereas the -nat > > file makes the assumption that host & target are Windows. > > I have added this item to the TODO list for the 7.6 release, so as not > to forget. Thanks. > I was wondering if this discussion was stalled, or if it was just > a matter of not finding the time to do the implementation. The latter. > I could possibly take care of it tomorrow if you'd like. If you have time, it's fine with me. Failing that, I will submit the changes in a few days.