From: Fernando Nasser <fnasser@redhat.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: GDB Discussion <gdb@sources.redhat.com>
Subject: Re: xfer_memory(..., attrib, ...) post mortem
Date: Wed, 21 Mar 2001 15:59:00 -0000 [thread overview]
Message-ID: <3AB0DBB9.9E9789C5@redhat.com> (raw)
In-Reply-To: <3AB064CE.91505C87@cygnus.com>
> Comments,
Good idea!
> volunteers?
No way! :-)
Andrew Cagney wrote:
>
> Hello,
>
> J.T. recently tried to modify the target vector by adding an ``attrib''
> parameter to the xfer_memory() method. Unfortunatly, a few of the
> ``xfer_memory()'' methods were missed (I think I've found the last of
> them - patch to follow). I figure a little P.M. is in order :-)
>
> First however, I think I should congratulate J.T. for at least
> attempting the ``right thing'' (tm)! If you look through the sources
> you'll find plenty of examples where others, when faced with that same
> challenge, have just run away and hidden behind MACROs. Just check the
> TODO file:
>
> --
> Move remote_remove_hw_breakpoint, remote_insert_hw_breakpoint,
> remote_remove_watchpoint, remote_insert_watchpoint into target vector.
> --
>
> So anyway, back to the P.M. - there has to be a better way. In fact, if
> we're to ever make GDB async, there had better be a better way :-)
>
> It should be possible to modify the target vector without having to
> grep/examine every line of source and potentially breaking every target.
>
> With that in mind, I'd like to draw on the experience of
> gdbarch.{sh,h.c} and propose that the target vector be redone so that
> it is more along the lines of ``struct gdbarch *''.
>
> Doing that should make it possible for people to pull the now pretty
> standard hack of, instead of changing an existing interface, introduce a
> new one and rename the old to deprecated_*. A legacy function could be
> used to maintain compatibility.
>
> Comments, volunteers?
>
> Andrew
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
prev parent reply other threads:[~2001-03-21 15:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-21 15:59 Andrew Cagney
2001-03-21 15:59 ` J.T. Conklin
2001-03-21 15:59 ` Andrew Cagney
2001-03-21 15:59 ` J.T. Conklin
2001-05-10 8:33 ` Andrew Cagney
2001-03-23 9:30 ` Eli Zaretskii
2001-03-21 15:59 ` Fernando Nasser [this message]
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=3AB0DBB9.9E9789C5@redhat.com \
--to=fnasser@redhat.com \
--cc=ac131313@cygnus.com \
--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