This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11500] gdb does not support smart pointers
- From: "swagiaal at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 14 Apr 2010 20:31:18 -0000
- Subject: [Bug c++/11500] gdb does not support smart pointers
- References: <20100414143544.11500.swagiaal@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From swagiaal at redhat dot com 2010-04-14 20:31 -------
Here is a better example (Without the template)
#include "stdio.h"
class MyType{
public:
void foo(){
printf("I am foo\n");
}
};
class SmartPointer{
MyType* p;
public:
SmartPointer(MyType *pointer){
p = pointer;
}
MyType* operator->(){
return p;
}
};
int main(){
MyType mt;
SmartPointer sp(&mt);
sp->foo();
return 0;
}
(gdb) p sp->foo()
Couldn't find method SmartPointer::foo
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
http://sourceware.org/bugzilla/show_bug.cgi?id=11500
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.