From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7169 invoked by alias); 16 May 2006 11:35:55 -0000 Received: (qmail 7154 invoked by uid 22791); 16 May 2006 11:35:54 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0102.google.com (HELO nz-out-0102.google.com) (64.233.162.207) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 16 May 2006 11:35:50 +0000 Received: by nz-out-0102.google.com with SMTP id m7so153681nzf for ; Tue, 16 May 2006 04:35:48 -0700 (PDT) Received: by 10.36.247.53 with SMTP id u53mr4190900nzh; Tue, 16 May 2006 04:35:48 -0700 (PDT) Received: by 10.36.221.69 with HTTP; Tue, 16 May 2006 04:35:48 -0700 (PDT) Message-ID: Date: Tue, 16 May 2006 13:06:00 -0000 From: s88 To: gdb@sourceware.org Subject: Re: Wrong current execution position! In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: 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-05/txt/msg00234.txt.bz2 SGkgYWxsOgogICAgQXMgSSB1c2luZyB0aGUgZ2RiLTYuMyB0byBkbyBteSBk ZWJ1Z2dpbmcgam9icy4gUmVjZW50bHkgSSBtZWV0IGEKIndyb25nIGN1cnJl bnQgZXhlY3V0aW9uIHBvc2l0aW9uIiBwcm9ibGVtLgogTXkgd29ya2luZyBk aXIgaXMgYXMgZm9sbG93aW5nOgogd29ya2luZy8KIHdvcmtpbmcvQQogd29y a2luZy9CCiB3b3JraW5nL0MKICB3b3JraW5nL0QvRS9hLm91dAoKIG15IHNv dXJjZSBmaWxlcyBhbmQgb2JqZWN0IGZpbGVzIGFyZSBzZXBhcmF0ZWQgaW4g dGhvc2UgZm9sZGVycy4KCiBXaGVuIEkgYW0gZGVidWdnaW5nLCBJIGFkZGVk IHRoZSBzb3VyY2Ugc2VhcmNoIGRpciBpbiBnZGIuIFNvbWV0aGluZwpsaWtl ICJkaXIgJHtNWV9IT01FfS93b3JraW5nLyIKCiBCdXQsIGFzIEkgc3RlcCB0 cmFjaW5nIHRoZSBzb3VyY2UgY29kZSBpbiB0aGUgd29ya2luZy9CIGRpcmVj dG9yeSwKdGhlIGN1cnJlbnQgZXhlY3V0aW9uIHBvc2l0aW9uIGlzIG9uIHRo ZSB3cm9uZyBwbGFjZSwgc29tZXdoZXJlIGxpa2VzCmluIHRoZSBjb21tZW50 cy4KCiBDb3VsZCBhbnkga2luZCBtYW4gdGVsbCBtZSBob3cgdG8gc29sdmUg dGhpcyBwcm9ibGVtPz8gVGhhbnggdmVyeSB2ZXJ5IG11Y2guLi4uCgogRGF2 ZS4KCgotLSAKV2luLCBDaGUtTmVuZy4KU3lzdGVtICBvbiBDaGlwIERlc2ln biAgTGFiLgpEZXB0LiBvZiBDb21wdXRlciBTY2llbmNlIGFuZCBJbmZvcm1h dGlvbiBFbmdpbmVlcmluZywKTmF0aW9uYWwgQ2h1bmcgQ2hlbmcgVW5pdmVy c2l0eQpFLW1haWwgOiBzODgudHdAYWNtLm9yZwpwaG9uZTowOTYzMDI0MDA2 Cg== >From gdb-return-25282-listarch-gdb=sources.redhat.com@sourceware.org Tue May 16 12:39:56 2006 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 25637 invoked by alias); 16 May 2006 12:39:52 -0000 Received: (qmail 25618 invoked by uid 22791); 16 May 2006 12:39:48 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 16 May 2006 12:39:03 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FfypI-0007iF-Px; Tue, 16 May 2006 08:39:00 -0400 Date: Tue, 16 May 2006 14:04:00 -0000 From: Daniel Jacobowitz To: s88 Cc: gdb@sourceware.org Subject: Re: Wrong current execution position! Message-ID: <20060516123859.GA29593@nevyn.them.org> Mail-Followup-To: s88 , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 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 Delivered-To: mailing list gdb@sourceware.org X-SW-Source: 2006-05/txt/msg00235.txt.bz2 Content-length: 485 On Tue, May 16, 2006 at 07:35:48PM +0800, s88 wrote: > But, as I step tracing the source code in the working/B directory, > the current execution position is on the wrong place, somewhere likes > in the comments. Were you in the correct file? If you were, then it is likely that either (A) the compiler has emitted bogus debugging information, or (B) the version of the file GDB was reading was different from the version used when you compiled. -- Daniel Jacobowitz CodeSourcery