public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11500] New: gdb does not support smart pointers
@ 2010-04-14 14:35 swagiaal at redhat dot com
2010-04-14 20:31 ` [Bug c++/11500] " swagiaal at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: swagiaal at redhat dot com @ 2010-04-14 14:35 UTC (permalink / raw)
To: gdb-prs
#include "stdio.h"
template < typename Type> class SmartPointer{
Type* p;
public:
SmartPointer(Type *pointer){
p = pointer;
}
Type* operator->(){
return p;
}
};
class MyType{
public:
void foo(){
printf("I am foo\n");
}
};
int main(){
MyType mt;
SmartPointer<MyType> sp(&mt);
sp->foo();
return 0;
}
(gdb) p sp->foo()
Couldn't find method SmartPointer<MyType>::foo
--
Summary: gdb does not support smart pointers
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: swagiaal at redhat dot com
ReportedBy: swagiaal at redhat dot com
CC: gdb-prs at sourceware dot org
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/11500] gdb does not support smart pointers
2010-04-14 14:35 [Bug c++/11500] New: gdb does not support smart pointers swagiaal at redhat dot com
@ 2010-04-14 20:31 ` swagiaal at redhat dot com
2010-04-21 15:20 ` jonathon at quotidian dot org
2010-07-20 15:46 ` swagiaal at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: swagiaal at redhat dot com @ 2010-04-14 20:31 UTC (permalink / raw)
To: gdb-prs
------- 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/11500] gdb does not support smart pointers
2010-04-14 14:35 [Bug c++/11500] New: gdb does not support smart pointers swagiaal at redhat dot com
2010-04-14 20:31 ` [Bug c++/11500] " swagiaal at redhat dot com
@ 2010-04-21 15:20 ` jonathon at quotidian dot org
2010-07-20 15:46 ` swagiaal at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: jonathon at quotidian dot org @ 2010-04-21 15:20 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathon at quotidian dot
| |org
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/11500] gdb does not support smart pointers
2010-04-14 14:35 [Bug c++/11500] New: gdb does not support smart pointers swagiaal at redhat dot com
2010-04-14 20:31 ` [Bug c++/11500] " swagiaal at redhat dot com
2010-04-21 15:20 ` jonathon at quotidian dot org
@ 2010-07-20 15:46 ` swagiaal at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: swagiaal at redhat dot com @ 2010-07-20 15:46 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-20 15:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-14 14:35 [Bug c++/11500] New: gdb does not support smart pointers swagiaal at redhat dot com
2010-04-14 20:31 ` [Bug c++/11500] " swagiaal at redhat dot com
2010-04-21 15:20 ` jonathon at quotidian dot org
2010-07-20 15:46 ` swagiaal 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).