This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] "etext/_etext" may be missing, add configure check
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 19 Sep 2007 15:46:44 -0400
- Subject: Re: [RFA] "etext/_etext" may be missing, add configure check
- References: <20070919193448.GA15629@adacore.com>
On Wed, Sep 19, 2007 at 12:34:48PM -0700, Joel Brobecker wrote:
> I propose to add a check in configure for "etext", and then
> change the above to define TEXTEND only if at least either of
> the etext symbol is defined. Then we can add the definition of
> TEXT to the conditionalization that decides whether or not to
> include the profiling functionality.
Sure.
> 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.
> 2007-09-19 Joel Brobecker <brobecker@adacore.com>
>
> * 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.
> This was tested on x86-linux, without any regressions. On LynxOS, it
> allows me to complete the GDB build (although it's a dummy GDB at this
> point, since my primary interest is in the gdbserver).
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.
--
Daniel Jacobowitz
CodeSourcery