This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: variable objects and registers
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 5 Dec 2006 16:16:07 -0500
- Subject: Re: variable objects and registers
- References: <200611292020.47109.vladimir@codesourcery.com>
On Wed, Nov 29, 2006 at 08:20:47PM +0300, Vladimir Prus wrote:
>
> I was working on implementing a new MI command that creates variable objects
> for registers, and I have something working good enough to discuss. This
> patch lacks docs, but I wanted to make sure the interface is fine with
> everybody before documenting it.
No one else had any comments, and it looks fine to me. The patch looks
OK too. It'll want a testcase, naturally.
> As soon as we add the code to display memory-mapped registers, there will be a
> problem that existing frontends might wish to show the memory-mapped
> registers, but not wish (at the moment) to modify the code for displaying
> regular registers. I plan to address this by either adding new
> attribute "register-kind" to the output, that can be either "core"
> or "memory-mapped", or by adding an option to -var-registers that says what
> registers to show. But that's for future.
Or a different command to return just those? I'm not sure they should
be part of -var-registers; clients probably expect "registers" to be
"the things that should go in a registers view", which won't include
most MMIO registers.
--
Daniel Jacobowitz
CodeSourcery