From: Andrew Cagney <ac131313@cygnus.com>
To: "John S. Kallal" <jskallal@home.com>
Cc: gdb@sources.redhat.com, Daniel Jacobowitz <dmj+@andrew.cmu.edu>
Subject: Re: Who owns gdbserver?
Date: Fri, 22 Jun 2001 08:42:00 -0000 [thread overview]
Message-ID: <3B336763.2090807@cygnus.com> (raw)
In-Reply-To: <01062113504401.01520@CyberMax>
> On a related note, I'm trying to think of a way to eliminate some of the
>> crasser code duplication between gdb and gdbserver - or rather, right now
>> it's mostly a lack of code duplication, causing gdbserver not to work
>> terribly well. The ideal solution would be to abstract the details of
>> managing a Unix inferior via ptrace to the point where I can link the same
>> files into gdbserver, but there are of course some intractable issues -
>> setting the shared library debugging breakpoint, for instance. Before I
>> begin working on this, does anyone have any thoughts? Is someone out there
>> working on a similar thing before I waste my time?
>
>
>
> Currently gdbserver is only build when you go into the gdbserver's directory
> and build it. I think that you should 1st change gdb's configure/make system
> to alway build gdbserver by default on system where gdbserver is
> supported. That way when ever any change to the shared code
> base of gdb/gdbserver creates bit rot, the problem will be quickly
> noticed.
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.
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).
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).
Andrew
next prev parent reply other threads:[~2001-06-22 8:42 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 [this message]
2001-06-22 9:04 ` Daniel Jacobowitz
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=3B336763.2090807@cygnus.com \
--to=ac131313@cygnus.com \
--cc=dmj+@andrew.cmu.edu \
--cc=gdb@sources.redhat.com \
--cc=jskallal@home.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