From: Jan Vrany <jan@vrany.io>
To: GDB mailing list <gdb@sourceware.org>
Subject: MI and modifying register value
Date: Mon, 04 Sep 2023 21:41:18 +0000 [thread overview]
Message-ID: <459b4b9d5f83a6b03b66486a45f5c4e4daa0b5e7.camel@vrany.io> (raw)
Hi,
while investigating MI client issue when setting a register value
from debugger I realized two things:
1) There's an MI command to set register value: -data-write-register-values
This command is not documented and looking at the code, seems to be somewhat
half-implemented - does not use <format> parameter its comment mentions and
only works for frame 0 (but using --frame 1 does not result in an error,
it just silently changes value in frame 0).
Is this command some leftover that should not be used (but kept for some
old clients)? Or is it something to fix?
2) Another way to change register value is CLI command `set r4 = 0x4`. There's
no mechanism the MI client gets notified about the change - there's no =register-changed
async event.
Is this by purpose? I'd expect some kind of notification, just like there's =memory-changed
event. Also, in Python API, there's memory_ckanged event which get triggered when
using `set` to modify register.
Best, Jan
next reply other threads:[~2023-09-04 21:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-04 21:41 Jan Vrany [this message]
2023-09-08 16:53 ` Tom Tromey
2023-09-08 21:25 ` Jan Vrany
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=459b4b9d5f83a6b03b66486a45f5c4e4daa0b5e7.camel@vrany.io \
--to=jan@vrany.io \
--cc=gdb@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).