From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
To: gdb@sources.redhat.com
Subject: Re: Who owns gdbserver?
Date: Fri, 22 Jun 2001 09:04:00 -0000 [thread overview]
Message-ID: <20010622090351.A14790@nevyn.them.org> (raw)
In-Reply-To: <3B336763.2090807@cygnus.com>
On Fri, Jun 22, 2001 at 11:42:27AM -0400, Andrew Cagney wrote:
> The main reason that GDBSERVER is breaking is that gdb targets are being
> converted to multi-arched (read cleaned up). The multi-arch mechanism
> isn't compatible with the way GDBSERVER has been abusing (?) GDB's
> interfaces to get to the things it wants.
>
> I don't don't want this multi-arch cleanup to stagnate because people
> feel that GDBSERVER should continue to build. Instead, I think the
> people using GDBSEVER should be looking at that code and figuring out
> the exact interfaces that are needed and get them properly defined.
Definitely.
My current inclination is that, after we enumerate precisely what
interfaces are needed, we may need to break some of the nat and tdep
files up into smaller pieces, so that gdbserver can link in the parts
it really needs - and the parts it can reasonably include the support
code for.
[To be honest, my gut instinct is to also start moving
platform-specific code to config directories at the same time. I don't
know if that would meet with general approval, though]
> As a second problem. In many cases, I don't think building GDBSERVER
> actually makes sense. Consider a typical case - user doing a
> cygwin-X-embedded-linux gdbserver (host=cygwin, target=linux,
> build=cygwin?). GDBSERVER needs to be compiled with a cygwin-X-linux
> compiler and the configury for that isn't trival - it means that you're
> trying to canadian cross compile GDBSERVER (and GDB).
Well, actually, we had to address this at MontaVista. We were
fortunate in that we had a relatively easy way out - we build a cross
gdb, and a target gdb for those who prefer native debugging (or want
threads, which gdbserver does not yet handle... etc.) The target gdb
is cross compiled, and gdbserver is built then. Building it along with
the cross gdb would not be hard, though - we'd just need to standardize
on an "appropriate" variable for the target compiler if it was
available - something like $CC_FOR_TARGET, but since the eventual
target platform is not really our "target" at this stage of the build
that might not be the best choice.
> Both these problems leave GDBSERVER at a cross road. It can either
> become more tightly integrated into GDB (kind of my preference) or start
> to distance its self (becoming a separate independant program like the
> stubs).
More tightly integrated is definitely also my preference, if you
couldn't tell from above. I'm willing to work to make that happen.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2001-06-22 9:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-21 13:30 John S. Kallal
2001-06-22 8:42 ` Andrew Cagney
2001-06-22 9:04 ` Daniel Jacobowitz [this message]
2001-06-27 21:26 ` Andrew Cagney
2001-06-28 7:41 ` Quality Quorum
-- strict thread matches above, loose matches on Subject: below --
2001-06-20 22:12 Daniel Jacobowitz
2001-06-21 12:40 ` J.T. Conklin
2001-06-22 8:28 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010622090351.A14790@nevyn.them.org \
--to=dmj+@andrew.cmu.edu \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox