Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* register type as signed or unsigned?
@ 2006-10-10  8:37 ligang
  2006-10-10 12:50 ` Daniel Jacobowitz
  0 siblings, 1 reply; 7+ messages in thread
From: ligang @ 2006-10-10  8:37 UTC (permalink / raw)
  To: gdb

hello all,

I am porting GDB to a new target.
I am not aware of the meaning of register type.
You can do as follows:
set_gdbarch_register_type (gdbarch, builtin_type_int32);
or
set_gdbarch_register_type (gdbarch, builtin_type_uint32);

What is the real difference between the two situation?
Why should GDB specify the register type as signed or unsigned?
Dose it mean the former must use regcache_cooked_read_signed() and the 
latter must use
regcache_cooked_read_unsigned()?

Best regards
                     Ligang


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-10-11  7:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10  8:37 register type as signed or unsigned? ligang
2006-10-10 12:50 ` Daniel Jacobowitz
2006-10-11  0:35   ` ligang
2006-10-11  0:48     ` Jan Kratochvil
2006-10-11  1:11       ` Paul Koning
2006-10-11  2:06       ` Daniel Jacobowitz
2006-10-11  7:00       ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox