This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14921] New: enable /x flag for ptype


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

             Bug #: 14921
           Summary: enable /x flag for ptype
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: daniel.gutson@gmail.com
    Classification: Unclassified


Please enable the /x flag for ptype, since non-type template arguments might be
needed to be shown in hexadecimal.

For example:

template <int X>
struct S
{};

template <class T>
void f()
{
   // debug: ptype T here
}

void user()
{
    f<S<0x1234> >();
}

This is specially useful in template metaprogramming, when using lists of
numbers.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]