public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/10513] New: enums of a given name seem to mask decls of the same name.
@ 2009-08-12 15:55 cmoller at redhat dot com
2009-08-12 15:59 ` [Bug gdb/10513] " cmoller at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: cmoller at redhat dot com @ 2009-08-12 15:55 UTC (permalink / raw)
To: gdb-prs
Given a program that includes both something like an "int vv;" and an "enum vv
{...}:" trying to print the value of vv results in:
(gdb) p vv
Attempt to use a type name as an expression
(gdb) ptype vv
type = enum vv {v0, v1}
(gdb)
The enum vv seems to be masking the int vv.
--
Summary: enums of a given name seem to mask decls of the same
name.
Product: gdb
Version: archer
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
AssignedTo: cmoller at redhat dot com
ReportedBy: cmoller at redhat dot com
CC: gdb-prs at sourceware dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=10513
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/10513] enums of a given name seem to mask decls of the same name.
2009-08-12 15:55 [Bug gdb/10513] New: enums of a given name seem to mask decls of the same name cmoller at redhat dot com
@ 2009-08-12 15:59 ` cmoller at redhat dot com
2010-01-22 20:22 ` tromey at redhat dot com
2010-03-13 0:47 ` tromey at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: cmoller at redhat dot com @ 2009-08-12 15:59 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From cmoller at redhat dot com 2009-08-12 15:59 -------
Created an attachment (id=4129)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4129&action=view)
Testcase showing the failure.
Testcase showing the failure. Compile with -g, gdb it, br at the line
containing "vv = 9;" Run, then try to print the value of vv. It fails because
vv is being resolved to the enum, not the int of the same name.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10513
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/10513] enums of a given name seem to mask decls of the same name.
2009-08-12 15:55 [Bug gdb/10513] New: enums of a given name seem to mask decls of the same name cmoller at redhat dot com
2009-08-12 15:59 ` [Bug gdb/10513] " cmoller at redhat dot com
@ 2010-01-22 20:22 ` tromey at redhat dot com
2010-03-13 0:47 ` tromey at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2010-01-22 20:22 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |11211
nThis| |
http://sourceware.org/bugzilla/show_bug.cgi?id=10513
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/10513] enums of a given name seem to mask decls of the same name.
2009-08-12 15:55 [Bug gdb/10513] New: enums of a given name seem to mask decls of the same name cmoller at redhat dot com
2009-08-12 15:59 ` [Bug gdb/10513] " cmoller at redhat dot com
2010-01-22 20:22 ` tromey at redhat dot com
@ 2010-03-13 0:47 ` tromey at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2010-03-13 0:47 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From tromey at redhat dot com 2010-03-13 00:47 -------
Fixed on trunk.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|6.8 |7.2
http://sourceware.org/bugzilla/show_bug.cgi?id=10513
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-13 0:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-12 15:55 [Bug gdb/10513] New: enums of a given name seem to mask decls of the same name cmoller at redhat dot com
2009-08-12 15:59 ` [Bug gdb/10513] " cmoller at redhat dot com
2010-01-22 20:22 ` tromey at redhat dot com
2010-03-13 0:47 ` tromey at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).