RFC: changes to configure.in and configure

Andrew Cagney ac131313@cygnus.com
Tue Nov 7 20:03:00 GMT 2000


Scott Bambrough wrote:
> 
> Andrew Cagney wrote:
> >
> > I'm not sure how this patch:
> >
> > -# else
> > +else
> >  # GDBserver is only useful in a "native" enviroment
> > -# configdirs=`echo $configdirs | sed 's/gdbserver//'`
> > +configdirs=`echo $configdirs | sed 's/gdbserver//'`
> >  fi
> >  changequote([,])

The history of this is interesting:

1.287        (marka    11-Mar-97): # else
1.191        (jtc      16-May-95): # GDBserver is only useful in a
"native" enviroment
1.287        (marka    11-Mar-97): # configdirs=`echo $configdirs | sed
's/gdbserver//'`
1.64         (gnu      19-Sep-92): fi

Tue Mar 11 07:25:27 1997  Mark Alexander  <marka@cygnus.com>

        First cut at supporting simulators in gdbserver:

        * configure, configure.in: Allow gdbserver to be configured
        for cross-target environments.
        * gdbserver/Makefile.in: Add simulator support.
        * gdbserver/configure.in: Eliminate assumption that host ==
target.
        Simplify using gdb/configure.tgt and gdb/configure.host.
        Fix other minor configuration errors.
        * gdbserver/low-sparc.c: Fix compile error.
        * gdbserver/remote-utils.c: Eliminate assumption that registers
        and addresses are four bytes.  Fix minor compile errors and
warnings.
        * gdbserver/server.c: Rewrite numerous instances of identical
code
        for starting inferior processes to call new function
start_inferior.
        Eliminate assumption that registers and addresses are four
bytes.
        * gdbserver/server.h: Add missing prototypes to eliminate
compiler
        warnings.
        * gdbserver/low-sim.c: New file to mate gdbserver with
simulators.
        * config/mips/vr5000.mt: Add Vr5000 simulator support to
gdbserver.
        * config/i386/linux.mh: Eliminate gdbserver support as a first
step
        in moving such support from host to target makefile fragments.
        * config/i386/linux.mt: Move gdbserver support here from
linux.mh.

So the intention was to, given a host-X-target configuration, build a
gdbserver that contained a simulator, that ran on the host.

What is truly puzzling is that last change - moving GDBSERVER_DEPFILES
from linux.mh to linux.mt.  It is puzzling because it isn't going to
work - no way is low-linux.o going to build using the host compiler in
ahost-X-(linux)target build.

	Andrew



More information about the Gdb-patches mailing list