Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Daniel Jacobowitz <dan@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA/doc] Redefine the length argument in remote Z packets
Date: Fri, 29 Jan 2010 09:00:00 -0000	[thread overview]
Message-ID: <831vh9thfo.fsf@gnu.org> (raw)
In-Reply-To: <20100128222940.GE2813@caradoc.them.org>

> Date: Thu, 28 Jan 2010 17:29:41 -0500
> From: Daniel Jacobowitz <dan@codesourcery.com>
> Cc: Eli Zaretskii <eliz@gnu.org>
> 
> I had two options for the new breakpoint.  We could either send
> Z0,ADDR,2 and have the target figure out whether to use the 16-bit or
> 32-bit breakpoint, or we could send Z0,ADDR,3 [number chosen
> arbitrarily] and have the target decide based on that to use a
> 32-bit breakpoint.

Wouldn't it be better to introduce a new packet, say Z32 or some such?

> @@ -28867,7 +28867,8 @@ for an error
>  @cindex @samp{Z} packets
>  Insert (@samp{Z}) or remove (@samp{z}) a @var{type} breakpoint or
>  watchpoint starting at address @var{address} and covering the next
> -@var{length} bytes.
> +@var{length} bytes.  @var{length} may also be a @var{kind} value
> +for breakpoint packets.
>  
>  Each breakpoint and watchpoint packet @var{type} is documented
>  separately.
> @@ -28879,18 +28880,21 @@ remote target shall support either both 
>  avoid potential problems with duplicate packets, the operations should
>  be implemented in an idempotent way.}
>  
> -@item z0,@var{addr},@var{length}
> -@itemx Z0,@var{addr},@var{length}
> +@item z0,@var{addr},@var{kind}
> +@itemx Z0,@var{addr},@var{kind}

You sometimes say that the 2nd arg is a size (but call it "kind") and
sometimes that it's a kind or type.  The above 2 instances are a
typical example.  This is inconsistent and eventually confusing.  I
suggest to use "kind" throughout.

>  Insert (@samp{Z1}) or remove (@samp{z1}) a hardware breakpoint at
> -address @var{addr} of size @var{length}.
> +address @var{addr} of size @var{kind}.

This is one place where it's confusing.

Otherwise, this is fine with me.


  reply	other threads:[~2010-01-29  9:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-28 22:29 Daniel Jacobowitz
2010-01-29  9:00 ` Eli Zaretskii [this message]
2010-01-29 15:30   ` Daniel Jacobowitz
2010-01-29 20:55     ` Eli Zaretskii
2010-01-29 21:05       ` Daniel Jacobowitz
2010-01-29 21:44         ` Eli Zaretskii
2010-02-01 16:09           ` Daniel Jacobowitz

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=831vh9thfo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    /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