Sounds to me like your Objects don't match your code - you've linked in an
old obj after changing the code in that file.
> -----Original Message-----
> From: Chris Antos [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 13, 1999 8:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: GDB line numbers incorrect
>
>
> GDB expects each line to be terminated with LF -- if it's
> terminated with CR
> or CRLF, then GDB will get confused. perhaps this is causing
> your problem?
>
>
> ----- Original Message -----
> From: Jason Bomers <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 13, 1999 7:57 PM
> Subject: GDB line numbers incorrect
>
>
> > I am using GCC and have been having problems with the
> debugger (gdb).
> > It seems to work except that the source line number and the
> lines being
> > executed are not in sync with each other (executes one
> command, but the
> > line it shows you is a comment or some other line). You
> can even see
> > the lines change as in the following example:
> >
> > (gdb) list 100, 103
> > 100 --------------------
> > 101 static Word StartApplication(void)
> > 102 {
> > 103 Word error = false;
> > (gdb) list 101, 102
> > 101 --------------------
> > 102 static Word StartApplication(void)
> >
> > Also, when you step through the execution you can not see the first
> > several characters of the source line:
> >
> > (gdb) step
> > 107 AppID, dmModeReadWrite);
> > (gdb)
> >
> >
> > I believe I am using current versions (gdb 4.16, POSE 2.1d26) and am
> > not doing any compile optimization. I've gone through all
> the docs and
> > can't find any clues.
> >
> > Any help would be greatly appreciated as I have a few bugs
> I am trying
> > to work out, but it is a little difficult when you have to manually
> > track what line you are executing.
> >
> > - Jason
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
>
>