This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Register types
Fernando Nasser wrote:
> > > Any particular reason for the question?
> > Working on a bug report requesting that floating point
> > registers default to decimal rather than hex.
> No, they should default to "natural". I think they do unless you have something
> on the contrary on your preferences file. If the original default for registers is
> not "natural" anymore it must be changed back.
In "RegWin::init_reg_display_vars." there is this:
# All registers shall be considered editable
# and non-typed until proved otherwise
set reg_display($rn,typed) 0
set reg_display($rn,editable) 0
# If user has no preference, show register in hex (if we can)
set format [pref getd gdb/reg/$name-format]
if {$format == ""} { set format x }
set reg_display($rn,format) $format
This appears to force all regs to display in hex
unless told otherwise.
> GDB will "print" them for us in the right format. We don't want to mess with
> types and languages specific in the Insight code.
I tend to agree, I think natural should be adequate.
> That sounds like an user error. There must be entries in their preferences file.
I don't think so based on the code above.
regards,
--
.-. .-. .---. .---. .-..-. | "Bill Gates is just a monocle
| |__ / | \| |-< | |-< > / | and a Persian Cat away from
`----'`-^-'`-'`-'`-'`-' `-' | being one of the bad guys in a
My opinions only. | James Bond movie." -- D Miller