This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 1/2] Fix two regressions in scalar printing
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> I think this would all be fixed by simply having separate
Pedro> 'u'/'d' cases with fixed signness:
Pedro> case 'u':
Pedro> print_decimal_chars (stream, valaddr, len, false, byte_order);
Pedro> break;
Pedro> case 'd':
Pedro> print_decimal_chars (stream, valaddr, len, true, byte_order);
Pedro> break;
I'm testing this. Thanks for the feedback.
One early note is that this changes the expected output for this test:
FAIL: gdb.dwarf2/var-access.exp: verify re-initialized s2
Now it says:
print/d s2
$9 = {a = -65, b = 73, c = -25, d = 123}
but the test wants:
gdb_test "print/d s2" " = \\{a = 191, b = 73, c = 231, d = 123\\}" \
"verify re-initialized s2"
Tom