From: jtc@redback.com (J.T. Conklin)
To: Nick Duffek <nsd@redhat.com>
Cc: cagney@cygnus.com, gdb-patches@sources.redhat.com
Subject: Re: [RFA] add remote.c gdbarch thread-handling hooks
Date: Mon, 16 Jul 2001 12:21:00 -0000 [thread overview]
Message-ID: <5mg0bwvfx1.fsf@jtc.redback.com> (raw)
In-Reply-To: <200107161726.f6GHQ8P08542@rtl.cygnus.com>
>>>>> "Nick" == Nick Duffek <nsd@redhat.com> writes:
Nick> I've been working on an architecture with a primitive threading
Nick> mechanism that GDB queries and manipulates by directly setting
Nick> registers in the target.
Nick>
Nick> This patch facilitates that with hooks for target-specific code
Nick> to override remote.c thread-handling functions.
Until I'm convinced otherwise, I'm against adding this extension to
remote.c.
This change essentially creates a easy to use mechanism for creating
yet another remote protocol varient. It's actually worse than that,
since it overrides existing protocol. While I think we support too
many protocol varients already, I'd be more sympathetic to a change
adding another varient than hijacking the existing protocol definitions.
Also, the remote protocol is intendent to be target neutral. Why
can't the existing thread primitives be changed into the register
manipulation in the target's debug agent? Although I don't have any
information on the architecture in question, this proposed change
appears to tie GDB to one possible thread implementation.
However, if it is true that this is the only thread model used under
this architecture, I the change is at the wrong level. Binding it
into remote.c means that it won't be available to other back ends. To
use this with an ICE or a ROM monitor, a user would have to write a
gdbserver-like program to attach to from GDB which would in turn talk
to the target.
--jtc
--
J.T. Conklin
RedBack Networks
next prev parent reply other threads:[~2001-07-16 12:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-16 10:26 Nick Duffek
2001-07-16 11:14 ` Andrew Cagney
2001-07-16 16:34 ` Nick Duffek
2001-07-16 12:21 ` J.T. Conklin [this message]
[not found] <3B537C79.9060108@cygnus.com>
2001-07-16 17:40 ` Nick Duffek
2001-07-16 20:22 ` Andrew Cagney
[not found] <3B5386C6.9020904@cygnus.com>
2001-07-16 18:20 ` Nick Duffek
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=5mg0bwvfx1.fsf@jtc.redback.com \
--to=jtc@redback.com \
--cc=cagney@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=nsd@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