From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2569 invoked by alias); 23 Jun 2004 11:54:06 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2499 invoked from network); 23 Jun 2004 11:54:02 -0000 Received: from unknown (HELO server.predichem.com) (193.75.7.58) by sourceware.org with SMTP; 23 Jun 2004 11:54:02 -0000 Received: from [192.168.1.2] (tarjei.predichem.nett [192.168.1.2]) by server.predichem.com (8.12.8/8.12.8) with ESMTP id i5NBs1E7016422 for ; Wed, 23 Jun 2004 13:54:01 +0200 Subject: Re: GDB doesn't show the correct line From: Tarjei Knapstad To: gdb In-Reply-To: <20040620202929.GA17216@nevyn.them.org> References: <40D5E480.4A68163@orpatec.ch> <20040620202929.GA17216@nevyn.them.org> Content-Type: text/plain Organization: PrediChem AS Message-Id: <1087991641.16206.15.camel@tarjei.predichem.nett> Mime-Version: 1.0 Date: Wed, 23 Jun 2004 11:54:00 -0000 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamd / ClamAV version 0.72, clamav-milter version 0.72 on localhost X-Virus-Status: Clean X-SW-Source: 2004-06/txt/msg00234.txt.bz2 On Sun, 2004-06-20 at 22:29, Daniel Jacobowitz wrote: > On Sun, Jun 20, 2004 at 09:24:48PM +0200, Otto Wyss wrote: > > Since a few days GDB (6.1-debian) offsets the shown line by about 3 > > lines. when I set a breakpoint at a function name of a class (C++) it > > stops and shows the line 3 more down. When I now step through (next) > > always the next line is shown, sometimes even empty lines. It seems the > > correct statements were processed. Is this a known problem and is there > > a workaround? > > Not a known problem - test case? > > Usually this means you've confused GDB about what version of a source > file it should be opening. Yes, this sounds suspiciously like what I see whenever I edit some source and then forget to recompile before running gdb again. Are you absolutely certain that you've rebuilt anything that needs to be after a source edit? If you do a complete rebuild (make clean; make) do you still have this problem? If not then there's some dependencies missing in your build system which results in some objects not being rebuilt after a source edit when they really should be. -- Tarjei