This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/9580] printing negative values of constant values (withvalue 128-255)
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 18 Aug 2011 12:52:40 +0000
- Subject: [Bug c++/9580] printing negative values of constant values (withvalue 128-255)
- Auto-submitted: auto-generated
- References: <bug-9580-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=9580
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |jan.kratochvil at redhat
| |dot com
Resolution| |WORKSFORME
--- Comment #11 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-08-18 12:52:40 UTC ---
FSF GDB has it fixed by:
commit 2f22c795e000ddecc31a0c31043781ec9dc400c3
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jul 28 20:05:00 2010 +0000
* dwarf2read.c (dwarf2_const_value_data): Never sign extend.
+/* Given an attr with a DW_FORM_dataN value in host byte order,
+ zero-extend it as appropriate for the symbol's type. The DWARF
+ standard (v4) is not entirely clear about the meaning of using
+ DW_FORM_dataN for a constant with a signed type, where the type is
+ wider than the data. The conclusion of a discussion on the DWARF
+ list was that this is unspecified. We choose to always zero-extend
+ because that is the interpretation long in use by GCC. */
FSF GDB bugtracker is not used for RHEL backporting.
Please file it to Red Hat RHEL Bugzilla if you wish a backport.
I can confirm this bug is present in:
RHEL-6.1 gdb-7.2-48.el6.x86_64
RHEL-5.6 gdb-7.0.1-32.el5_6.2.x86_64
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.