From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22687 invoked by alias); 3 Jul 2009 20:04:25 -0000 Received: (qmail 22676 invoked by uid 22791); 3 Jul 2009 20:04:24 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_50 X-Spam-Check-By: sourceware.org Received: from elasmtp-curtail.atl.sa.earthlink.net (HELO elasmtp-curtail.atl.sa.earthlink.net) (209.86.89.64) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Jul 2009 20:04:18 +0000 Received: from [209.86.224.28] (helo=mswamui-blood.atl.sa.earthlink.net) by elasmtp-curtail.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1MMozY-0000k6-GA for gdb@sourceware.org; Fri, 03 Jul 2009 16:04:16 -0400 Received: from 76.220.111.127 by webmail.earthlink.net with HTTP; Fri, 3 Jul 2009 16:04:16 -0400 Message-ID: <13160568.1246651456509.JavaMail.root@mswamui-blood.atl.sa.earthlink.net> Date: Fri, 03 Jul 2009 20:04:00 -0000 From: ikorot@earthlink.net Reply-To: ikorot@earthlink.net To: "gdb@sourceware.org" Subject: Novice gdb question Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ELNK-Trace: ae972db06a188bef94f5150ab1c16ac00c3604e638927e74d3e9884734ae6bc3131976ae7f59945d350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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/msg00018.txt.bz2 Hi, ALL When I try to debug a program that has inline function (C++) with gdb and MSVC debugger I get an incnsistent behavior. Scenario: I am stepping in the function that is inline: class Foo { void inlineFunc( int param ) { m_member = param; }; void nonInlineFunc(); private: int m_member; }; Calling code: Foo f; ........... f.inlineFunc( 5 ); f.noninlineFunc(); Then I hit next. Result: In MSVC debugger, when I hit next standing on the inline function call I will end up on the line "f.inlineFunc( 5 );" In gdb when I hit next standing on the inline function call I will end up on the line "f.noninlineFunc();" Is it possible to make gdb aware of the inline-ness and make it work as MSVC debugger? Thank you.