From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9363 invoked by alias); 19 Sep 2007 22:04:52 -0000 Received: (qmail 9345 invoked by uid 22791); 19 Sep 2007 22:04:49 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 19 Sep 2007 22:04:45 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id F1F802AB43D for ; Wed, 19 Sep 2007 18:04:43 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id klzwt0p0Ve-w for ; Wed, 19 Sep 2007 18:04:43 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id BA0052AB439 for ; Wed, 19 Sep 2007 18:04:43 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 4EC53E7B58; Wed, 19 Sep 2007 15:04:41 -0700 (PDT) Date: Wed, 19 Sep 2007 22:04:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: [RFA] "etext/_etext" may be missing, add configure check Message-ID: <20070919220441.GF742@adacore.com> References: <20070919193448.GA15629@adacore.com> <20070919194644.GA10542@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070919194644.GA10542@caradoc.them.org> User-Agent: Mutt/1.4.2.2i 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: 2007-09/txt/msg00264.txt.bz2 > > On a side-note, I also think that --enable-profiling=no should > > have deactivated this code as well, but that's a different thread. > > I don't. That's supposed to disable automatic profiling and compiling > with -pg, not the manual profiling commands. Oh, I see, I misunderstood the purpose of that switch... Thanks for pointing this out. > > 2007-09-19 Joel Brobecker > > > > * configure.ac: Add check for "etext". > > * configure, config.in: Regenerate. > > * maint.c (TEXTEND): Only define if either _etext or etext > > are available. > > Disable the profiling functionality if TEXTEND is not defined. > > OK. Thanks. I just checked this change in. > You don't need this, by the way. Unlike the gdb subdirectory, the > gdb/gdbserver subdirectory is standalone. You need the whole source > tree but you can run src/gdb/gdbserver/configure directly. This > should be in the manual, or at least the README. I just double checked and it is indeed in the README (I read it too quickly it appears). All this time I have spent watching our little board build GDB, when it wasn't necessary :-/... Oh well, there is still a little bit of a gain, since GDB now builds on LynxOS too. Adding the native part shouldn't be too hard if anyone is interested. Thanks again, -- Joel