public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug exp/12117] New: ptype can drop const/volatile information
@ 2010-10-13 17:20 dje at google dot com
  2013-02-06 14:46 ` [Bug exp/12117] " tromey at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dje at google dot com @ 2010-10-13 17:20 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12117

           Summary: ptype can drop const/volatile information
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: exp
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com


Given this testcase:

typedef int my_int;
typedef const my_int const_my_int;
typedef volatile my_int volatile_my_int;
typedef volatile const_my_int volatile_const_my_int;
typedef const volatile_my_int const_volatile_my_int;

my_int v_my_int (0);
const_my_int v_const_my_int (1);
volatile_my_int v_volatile_my_int (2);
const_volatile_my_int v_const_volatile_my_int (3);
volatile_const_my_int v_volatile_const_my_int (4);

int
main ()
{
  return 0;
}

ptype will drop const/volatile information.

(gdb) ptype v_const_my_int
type = int
(gdb) ptype v_volatile_my_int
type = int
(gdb) ptype v_const_volatile_my_int
type = int

-- 
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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug exp/12117] ptype can drop const/volatile information
  2010-10-13 17:20 [Bug exp/12117] New: ptype can drop const/volatile information dje at google dot com
@ 2013-02-06 14:46 ` tromey at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at redhat dot com @ 2013-02-06 14:46 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12117

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |tromey at redhat dot com
         Resolution|                            |FIXED
   Target Milestone|---                         |7.6

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-02-06 14:46:38 UTC ---
These all work for me with CVS HEAD:

(gdb) ptype v_const_my_int
type = const int
(gdb) ptype v_volatile_my_int
type = volatile int
(gdb) ptype v_const_volatile_my_int
type = const volatile int
(gdb) ptype v_volatile_const_my_int
type = const volatile int


I'm using the Fedora 16 system gcc.
If it still fails for you I would suspect a compiler bug.

I'm closing the bug.

-- 
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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-06 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 17:20 [Bug exp/12117] New: ptype can drop const/volatile information dje at google dot com
2013-02-06 14:46 ` [Bug exp/12117] " 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).