From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10509 invoked by alias); 14 Apr 2010 20:31:18 -0000 Received: (qmail 10492 invoked by uid 48); 14 Apr 2010 20:31:18 -0000 Date: Wed, 14 Apr 2010 20:31:00 -0000 Message-ID: <20100414203118.10491.qmail@sourceware.org> From: "swagiaal at redhat dot com" To: gdb-prs@sourceware.org In-Reply-To: <20100414143544.11500.swagiaal@redhat.com> References: <20100414143544.11500.swagiaal@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug c++/11500] gdb does not support smart pointers X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00096.txt.bz2 ------- 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.