This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: disable gdbserver for cross builds


I submitted a patch similar to this earlier this year for comment.  I wanted
to be able to build gdbserver automatically for the ARM Linux port.  When I
investigated, I found it used to be built but someone had disabled the
configure magic to allow it to happen.

I should be able to add gdbserver to configdirs in configure.tgt, and have
it built automatically.  This used to work AFAIK.  Somewhere along the line,
it got broken.  Don't know how, or when, and I really don't care.  The
configdirs macro from configure.tgt is never used to configure any
subdirectories AFAICT.  I think this is wrong; it prevents gdbserver from
being built for any target that adds it to configdirs, it prevents the
rdi-share directory from being configured automatically for embedded arm
targets and the nlm directory from being configured for any netware targets.
IMHO if building gdbserver automatically is not desired for a particular
target, then the appropriate thing to do is to remove it from configdirs in
configure.tgt.

There is a warning in the README in the gdbserver subdirectory stating that
it currently doesn't build in a cross-compilation environment.  I don't
think it makes sense to build other than with host=target.  It has to run on
the same environment it was built for.  Thus enabling the statement that
removes gdbserver from configdirs if host != target is a valid thing to do.
This statement was removed to allow gdbserver to support simulators
(ChangeLog-97).  Is this currently possible?  If so it needs to be
considered.

This issue has been around since July, and needs to be dealt with.  I think
there is good reason for this change, and I haven't seen any compelling
arguments why it shouldn't be made.  I've included pointers to my earlier
RFC and my responses to questions about the patch included there.

http://sources.redhat.com/ml/gdb-patches/2000-07/msg00375.html
http://sources.redhat.com/ml/gdb-patches/2000-08/msg00007.html
http://sources.redhat.com/ml/gdb-patches/2000-08/msg00009.html

Scott



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]