This is the mail archive of the gdb@sourceware.org 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]
Other format: [Raw text]

Re: gdbserver + libiberty?


On Jan 15, 2008 10:07 AM, Jim Blandy <jimb@codesourcery.com> wrote:
>
> dje at google.com (Doug Evans) writes:
> > Hi.  Is there any reason to not link gdbserver with libiberty?
> > I'm working on a patch where that would be useful.
>
> gdbserver would need to be linked with a libiberty compiled for the
> target, obviously.

This part I'm not clear on.  I found this in gdb/configure.ac:

# We only build gdbserver automatically in a native configuration.
if test "$gdb_native" = "yes"; then
  AC_MSG_CHECKING(whether gdbserver is supported on this host)
  if test "x$build_gdbserver" = xyes; then
    AC_MSG_RESULT(yes)
    AC_CONFIG_SUBDIRS(gdbserver)
  else
    AC_MSG_RESULT(no)
  fi
fi

I couldn't find any docs on building gdbserver for cross targets (i.e
--host != --target), got any pointers?  It's only useful for targets
that otherwise can be build natively (AIUIp.  Would gdbserver ever be
built with CC_FOR_TARGET whereas gdb got built with CC?  I can't find
any code to handle this in gdb or the top level configury.  And if not
would gdbserver ever need a different libiberty than the one gdb is
linked with?


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