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++/15210] GDB can't print variables inside methods/functionsin a class


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

--- Comment #1 from Sergio Durigan Junior <sergiodj at redhat dot com> 2013-03-01 19:11:23 UTC ---
The testcase should read:

class foo
{
public:
    int bar()
    {
        static int x;
        if (x != 5)
        {
            x = 5;
        }
    }
};

int main()
{
    foo myfoo;
    myfoo.bar();
}

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