From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9711 invoked by alias); 21 Jan 2006 20:36:02 -0000 Received: (qmail 9661 invoked by uid 22791); 21 Jan 2006 20:36:02 -0000 X-Spam-Check-By: sourceware.org Received: from web35715.mail.mud.yahoo.com (HELO web35715.mail.mud.yahoo.com) (66.163.179.169) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 21 Jan 2006 20:36:00 +0000 Received: (qmail 41935 invoked by uid 60001); 21 Jan 2006 20:35:59 -0000 Message-ID: <20060121203559.41933.qmail@web35715.mail.mud.yahoo.com> Received: from [199.177.12.5] by web35715.mail.mud.yahoo.com via HTTP; Sat, 21 Jan 2006 12:35:59 PST Date: Sat, 21 Jan 2006 21:46:00 -0000 From: "yinglcs2@yahoo.com" Subject: Debugging a C++ problem in GDB on linux To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00204.txt.bz2 Hi I am trying to debug a C++ program in GDB on linux. I want to dump out the content of the "this" object, Here is what I get: (gdb) print *this $2 = {path = } My question is why I don't see the content of 'path'? It said ''. In the code, path is: ostringstream path; When I try to do this: at GDB prompt 'print this->path.str()' , I get this error: (gdb) print this->path.str() Couldn't find method ostringstream::str __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com