From: Vladimir Prus <ghost@cs.msu.su>
To: gdb@sources.redhat.com
Subject: printing "variable-sized" registers
Date: Mon, 30 May 2005 15:10:00 -0000 [thread overview]
Message-ID: <d7f7dt$b3u$1@sea.gmane.org> (raw)
Hello,
I'm working on a gdb port, and have problems with printing certain registers
of my target. The problem is that those registers are vector buffers that
can hold from 0 to 32 values at any given moment. I would like the 'info
registers' command to print exactly the number of values that are present
in a buffer. That is, on one invocation I might get 4 values printed, and
on another 15, depending on the current processor state.
However, I don't see an easy way to do this. The
'default_print_registers_info' function uses 'val_print' to print the
value, and 'val_print' uses register type (struct type*), which has a fixed
size. Anything I can do? Or I should just write arch-specific
'print_registers_info' function?
Thanks in advance,
Volodya
next reply other threads:[~2005-05-30 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-30 15:10 Vladimir Prus [this message]
2005-05-30 16:58 ` Daniel Jacobowitz
2005-06-06 13:52 ` Vladimir Prus
2005-06-06 13:56 ` Daniel Jacobowitz
2005-06-06 14:05 ` Vladimir Prus
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='d7f7dt$b3u$1@sea.gmane.org' \
--to=ghost@cs.msu.su \
--cc=gdb@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