[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb
Subject:    Re: GDB doesn't show the correct line
From:       Tarjei Knapstad <tarjei.knapstad () predichem ! com>
Date:       2004-06-23 11:54:01
Message-ID: 1087991641.16206.15.camel () tarjei ! predichem ! nett
[Download RAW message or body]

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 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic