[RFA] "etext/_etext" may be missing, add configure check

Joel Brobecker brobecker@adacore.com
Wed Sep 19 22:04:00 GMT 2007


> > 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  <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.

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



More information about the Gdb-patches mailing list