This is the mail archive of the
mailing list for the GDB project.
Re: gdb 5.3 doesn't find line numbers
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.
OK, looks like I used the wrong debug flags during compile.