From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16798 invoked by alias); 6 Jul 2009 03:11:28 -0000 Received: (qmail 16788 invoked by uid 22791); 6 Jul 2009 03:11:27 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from elasmtp-mealy.atl.sa.earthlink.net (HELO elasmtp-mealy.atl.sa.earthlink.net) (209.86.89.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Jul 2009 03:11:20 +0000 Received: from [209.86.224.51] (helo=mswamui-thinleaf.atl.sa.earthlink.net) by elasmtp-mealy.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1MNebu-0000wP-Fh for gdb@sourceware.org; Sun, 05 Jul 2009 23:11:18 -0400 Received: from 66.245.56.111 by webmail.earthlink.net with HTTP; Sun, 5 Jul 2009 23:11:18 -0400 Message-ID: <4933903.1246849878501.JavaMail.root@mswamui-thinleaf.atl.sa.earthlink.net> Date: Mon, 06 Jul 2009 03:11:00 -0000 From: ikorot@earthlink.net Reply-To: ikorot@earthlink.net To: "gdb@sourceware.org" Subject: Re: Novice gdb question Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-ELNK-Trace: ae972db06a188bef94f5150ab1c16ac00c3604e638927e742030c8f396ef08ecd66f533fe8f534ad350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00030.txt.bz2 Hi, Paul, I'm sorry if my question was not clear enough. Let me put some clarification on it. -----Original Message----- >From: Paul Pluzhnikov >Sent: Jul 4, 2009 8:19 PM >To: ikorot@earthlink.net, "gdb@sourceware.org" >Subject: Re: Novice gdb question > >On Fri, Jul 3, 2009 at 3:15 PM, Daniel Jacobowitz wrote: >> On Fri, Jul 03, 2009 at 01:04:16PM -0700, ikorot@earthlink.net wrote: >>> Is it possible to make gdb aware of the inline-ness and make it work as= MSVC >>> debugger? >> >> Build GDB from CVS. =C2=A0Inline function support was added last week. > >It will work, but not the same way MSVC does. > >It's not clear from OP description whether he used debug (no actual >inlining happening!) or optimized (AFAICT no source level debugging >AFACT) build. In addition, at least in VC2008 there is no "next", only >"step over" (F10) and "step into" (F11). Finally, if there actually is >a version of MSVC which behaves as OP described, that behavior is >arguably more broken that GDB's was before inline fixes. Consider following code snippet: class Foo { public: int inilineGetParam() { return m_member; }; void Bar( int param ); private: int m_member; } int main() { Foo f; f.Bar( f.inlineGetParam() ); printf( "Done!"); } In MSVC debugger and gdb, when I hit F11 standing on the line "f.Bar(....)"= , I will=20 go to the "f.inilineFunc()" line. Now in MSVC hitting F10, brings me back t= o the line "f.Bar(...)" so I can decide whether I want to go to the "printf" line or s= tep inside "f.Bar" In gdb saying "next", which I believe the same as F10 function in MSVC debu= gger, brings me to the line with the "printf();" If you are saying that this what will happen in the next release of gdb I w= ill just wait for it. Thank you. > > >--=20 >Paul Pluzhnikov