This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
c++/2475: printing negative values of constant values (with value 128-255)
- From: matszpk at interia dot pl
- To: gdb-gnats at sources dot redhat dot com
- Date: 9 Jul 2008 17:56:17 -0000
- Subject: c++/2475: printing negative values of constant values (with value 128-255)
- Reply-to: matszpk at interia dot pl
>Number: 2475
>Category: c++
>Synopsis: printing negative values of constant values (with value 128-255)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jul 09 17:58:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: matszpk@interia.pl
>Release: gdb-6.8
>Organization:
>Environment:
Gentoo Linux 2008.0 AMD64
>Description:
when defined const value such as:
const int a=128;
gdb print value:
-128 instead 128 when
enter command "p a".
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="test.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cc"
I2luY2x1ZGUgPGlvc3RyZWFtPgpjb25zdCBpbnQgYSA9IDEyOTsKaW50Cm1haW4gKCkKewogIHN0
ZDo6Y291dCA8PCBhIDw8IHN0ZDo6ZW5kbDsKICByZXR1cm4gMDsKfQo=