This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug exp/12355] New: GDB takes address of a bit-field. It shouldnot.
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 29 Dec 2010 11:56:06 +0000
- Subject: [Bug exp/12355] New: GDB takes address of a bit-field. It shouldnot.
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12355
Summary: GDB takes address of a bit-field. It should not.
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: exp
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
struct { unsigned b : 1; } v;
void *p = &v.b;
int main (void) { return 0; }
gcc (GCC) 4.6.0 20101227 (experimental)
1.c:2:1: error: cannot take address of bit-field âbâ
GNU gdb (GDB) 7.2.50.20101228-cvs
(gdb) p &v.b
$1 = (unsigned int *) 0x600818
This is confusing for watchpoints etc. if one does not expect a bit-field.
(starting point: value_addr())
--
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.