Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "H. Peter Anvin via Gdb" <gdb@sourceware.org>
To: gdb@sourceware.org
Subject: Questions on XML register descriptions
Date: Tue, 26 Dec 2023 14:42:08 -0800	[thread overview]
Message-ID: <ee5bd241-7f9c-4aff-8130-40342d91fa4c@zytor.com> (raw)

Hi,

I have been looking at the XML register descriptions, and I have a 
couple of questions, as I'm trying to add gdb remote support to an 
emulator, which involves additional system-level registers as well as 
memory spaces.

1. Some registers can't be written to, and some registers may affect 
other registers. What, if anything, is the best way to handle that?

2. How do the G/g commands interact with the XML target descriptions? Do 
they apply specifically to group="general", or are there other rules?

3. Is there any concept at all of different address spaces in gdb? 
Alternatively, is there any way to tell gdb that it should communicate 
addresses wider than the pointer type of the base architecture (which 
would allow a Python helper script to define a convenience API.)

4. There doesn't seem to be a way to trigger a Python function when a 
connection is *established*, which is as far as I understand the point 
at which the XML register description is downloaded from the remote, and 
definitely the first point at which register values can be examined. Am 
I missing something obvious?

5. I presume the byte codes use for the Z commands are the same as the 
agent bytecode in Appendix F, even though the latter specifically seems 
to be referring to tracepoints?

Many thanks,

	-hpa

             reply	other threads:[~2023-12-26 22:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-26 22:42 H. Peter Anvin via Gdb [this message]
2023-12-27 11:28 ` Luis Machado via Gdb
2023-12-28 22:09   ` H. Peter Anvin via Gdb
2023-12-29 13:41     ` Luis Machado via Gdb
2024-01-08  6:21       ` H. Peter Anvin via Gdb

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=ee5bd241-7f9c-4aff-8130-40342d91fa4c@zytor.com \
    --to=gdb@sourceware.org \
    --cc=hpa@zytor.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