From: Eli Zaretskii <eliz@gnu.org>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] new memory-changed MI notification.
Date: Fri, 28 Sep 2012 07:36:00 -0000 [thread overview]
Message-ID: <83bogqha4t.fsf@gnu.org> (raw)
In-Reply-To: <1348793347-12556-2-git-send-email-yao@codesourcery.com>
> From: Yao Qi <yao@codesourcery.com>
> Date: Fri, 28 Sep 2012 08:49:06 +0800
>
> Hi,
> There are usually two views in MI front-end, 'memory view' and 'code
> view', which displays the contents of 'data' and 'code'. If user
> modified memory in console, both views should be updated to show the
> latest contents. In order to achieve this, this patch adds a new MI
> notification '=memory-changed', so that MI front-ends can refresh its
> 'memory view' and 'code view' once this notification arrives.
Thanks.
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -57,6 +57,8 @@ py [command]
> using new async records "=tsv-created" and "=tsv-deleted".
> ** The start and stop of process record are now notified using new
> async record "=record-started" and "=record-stopped".
> + ** Memory changes are now notified using new async record
> + "=memory-changed".
This part is OK.
> +@item =memory-changed,thread-group=@var{id},addr=@var{addr},len=@var{len}"[,type=@var{type}"]
I think the quotes should be deleted; I see no sign of them in the
code that produces the "type=..." part.
> +Reports that bytes from @var{addr} to @var{data} + @var{len} were
> +written in an inferior. The @var{id} is the identifier of the
> +thread group corresponding to the affected inferior. @var{type}
> +is the type of the section written to, @code{code}; it exists only
> +when the type of the section is known.
If @var{type} can only be "code", then I suggest to say
...[,type=code]
explicitly.
Btw, why "code"? If this is the name of the section, it should be
".text", not code.
> --- a/gdb/doc/observer.texi
> +++ b/gdb/doc/observer.texi
> @@ -230,9 +230,9 @@ The inferior @var{inf} has been removed from the list of inferiors.
> This method is called immediately before freeing @var{inf}.
> @end deftypefun
>
> -@deftypefun void memory_changed (CORE_ADDR @var{addr}, ssize_t @var{len}, const bfd_byte *@var{data})
> +@deftypefun void memory_changed (struct inferior *@var{inferior}, CORE_ADDR @var{addr}, ssize_t @var{len}, const bfd_byte *@var{data})
> Bytes from @var{data} to @var{data} + @var{len} have been written
> -to the current inferior at @var{addr}.
> +to the @var{inferior} at @var{addr}.
> @end deftypefun
This part is OK.
Thanks.
next prev parent reply other threads:[~2012-09-28 7:36 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-28 0:49 [RFC 0/2] Two new MI notifications Yao Qi
2012-09-28 0:49 ` [PATCH 1/2] new memory-changed MI notification Yao Qi
2012-09-28 7:36 ` Eli Zaretskii [this message]
2012-09-28 7:58 ` Yao Qi
2012-09-28 8:25 ` Eli Zaretskii
2012-09-28 17:17 ` Tom Tromey
2012-09-29 1:18 ` Yao Qi
2012-10-09 7:44 ` Yao Qi
2012-10-15 17:58 ` dje
2012-10-15 19:07 ` Tom Tromey
2012-10-16 7:12 ` Yao Qi
2012-10-15 19:03 ` Tom Tromey
2012-09-28 0:49 ` [PATCH 2/2] new tracepoint downloaded " Yao Qi
2012-09-28 7:37 ` Eli Zaretskii
2012-09-28 17:44 ` Pedro Alves
2012-09-28 17:47 ` Pedro Alves
2012-09-29 14:13 ` Yao Qi
2012-10-09 8:12 ` Yao Qi
2012-10-31 17:59 ` Pedro Alves
2012-10-31 19:20 ` Doug Evans
2012-11-01 0:34 ` Yao Qi
2012-11-02 15:46 ` Pedro Alves
2012-11-02 15:50 ` Pedro Alves
2012-10-18 1:16 ` Yao Qi
2012-10-18 1:28 ` Yao Qi
2012-10-30 7:07 ` [ping]: " Yao Qi
2012-10-30 17:22 ` Eli Zaretskii
2012-10-18 4:43 ` Eli Zaretskii
2012-10-18 19:54 ` Tom Tromey
2012-09-28 17:44 ` Pedro Alves
2012-09-28 18:27 ` Tom Tromey
2012-09-28 18:29 ` Tom Tromey
2012-10-15 18:03 ` dje
2012-10-31 18:03 ` Pedro Alves
2012-10-31 19:10 ` Marc Khouzam
2012-11-01 0:22 ` Yao Qi
2012-11-22 18:33 ` Pedro Alves
2012-11-29 15:47 ` Yao Qi
2012-11-29 16:00 ` Pedro Alves
2012-11-29 19:34 ` Marc Khouzam
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=83bogqha4t.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=yao@codesourcery.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