Re: gdb 5.3 doesn't find line numbers

Daniel Jacobowitz
2003-02-28T00:08:02Z

On Thu, Feb 27, 2003 at 03:37:45PM -0800, David Wuertele wrote:
> Me> (gdb) b hello.c:26
> Me> No line 26 in file "hello.c".
>
> Daniel> What does "info source" say?
>
> (gdb) info source
> Current source file is hello.c
> Compilation directory is /root
> Located in /root/hello.c
> Contains 31 lines.
> Source language is c.
> Compiled with DWARF 2 debugging format.
> Does not include preprocessor macro info.
> (gdb) d'oh!
>
> OK, looks like I used the wrong debug flags during compile.
> D'oh again.

Does that mean you can "break hello.c:26" now? The session you posted
before should have worked...

--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer