Re: gdb 5.3 doesn't find line numbers

David Wuertele
2003-02-27T23:57:52Z

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.

Thanks,
Dave