[PATCH] Teach -data-list-register-values to not include unavailable registers

Yao Qi yao@codesourcery.com
Wed Jun 19 10:03:00 GMT 2013


On 06/18/2013 11:13 PM, Tom Tromey wrote:
> Why a new argument rather than just having MI annotate unavailable
> registers directly?
>
>    -data-list-register-values x 0 8
>    ^done,register-values=[{number="0",unavailable="1"},{number="8",value="0x80483de"}]
>

The MI front-end doesn't parse the output like this, as each register is 
represented by "number-value" pair.

> Is it not useful to see the unavailable ones?

Processor may have a large number of registers, and users are only 
interested in collected or available registers in a traceframe.  In this 
case, it is not useful to show (a large of number of) unavailable registers.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list