From: Andrew Cagney <ac131313@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] Add backward compat to target read/write partial
Date: Wed, 22 Oct 2003 23:37:00 -0000 [thread overview]
Message-ID: <3F9714B1.9040102@redhat.com> (raw)
In-Reply-To: <3F957173.7020106@redhat.com>
> Hello,
>
> The attached patch adds backward compatibility to the recently added read/write partial target vector methods. If a given target vector has to_xfer_memory but not to_read/write_partial, the to_xfer_memory method is used.
>
> It was implemented by adding default read/write partial methods to each target vector.
>
> For testing, I tweaked the existing read/write memory thus:
> +#if 0
> return target_xfer_memory (memaddr, myaddr, len, 0);
> +#else
> + return (target_read (¤t_target, TARGET_OBJECT_MEMORY,
> + NULL, myaddr, memaddr, len)
> + <= 0);
> +#endif
> (included in the patch for reference, must remember to delete it ...). It turned up one bug.
>
> Comments?
>
> Having taken the change to this point, I'm now wondering if the read/write partial methods should be merged into:
> to_xfer_partial (targ, object, annex,
> offset, len,
> readbuf, writebuf)
> as that would make migrating existing targets easier.
I'm just checking this in ....
Andrew
prev parent reply other threads:[~2003-10-22 23:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-21 17:48 Andrew Cagney
2003-10-22 23:37 ` Andrew Cagney [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=3F9714B1.9040102@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb-patches@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