Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] [Bug?] Signed registers in registers view (nasty in hex)


gdb has so-called "natural" format which is the default format for the Registers view. This means that signed is the "natural" format for registers in gdb. Conversion to hex is done by CDT and is based on the register's type and endiannes, so this can be a bug in CDT.

Mikhail Khodjaiants

----- Original Message ----- From: "Sascha Radike" <sradike@xxxxxxxxxxxx>
To: <cdt-dev@xxxxxxxxxxx>
Sent: Thursday, July 06, 2006 3:22 PM
Subject: [cdt-dev] [Bug?] Signed registers in registers view (nasty in hex)


I just had a look at the registers view (Eclipse RC7 + CDT 3.2 HEAD two
weeks ago or so, GDB 6.4) and noticed that registers show up as signed (-1
instead of 4294967295).

I don't think this is a popular view for CPU registers ?

Anyway, it gets ugly when I use the hex view as it shows up as long!

-4096 shows up as 0xfffffffffffff000

The registers are only 32 bit.

When I use the "Cast to type" to cast to "unsigned int" it shows up
correctly. But shouldn't the registers show up correctly by default?

CDT bug or GDB (once again)? Or am I just blind ?



cdt-dev mailing list

Back to the top