This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: init.c: No such file or directory.
On Monday 09 June 2003 14:41, Daniel Jacobowitz wrote:
> Is it a problem? Can you list your program's entry point and set
> breakpoints?
>
> That suggests that the init.c is coming from gcc/glibc, and has debug
> information. It's not associated with your application.
It is a problem more for the other people I work with than I, because they
debug quite a bit more fortran code (and like to use ddd, which this seems to
break).
I think this is what you mean, right?
> gcc -gdwarf hello.c
> ~/bin/gdb ./a.out
GNU gdb 5.3
<snip>
(gdb) list hello.c:main
No source file named hello.c.
(gdb) break hello.c:6
No source file named hello.c.
(gdb)
vs.
> gcc -g hello.c
> ~/bin/gdb ./a.out
<snip>
(gdb) list hello.c:main
1 #include <stdio.h>
2
3 int
4 main ()
5 {
6 printf("Hello, World\n");
7 }
(gdb) break hello.c:6
Breakpoint 1 at 0x804834c: file hello.c, line 6.
(gdb)
Not much luck. /lib/libc.so.6 is not stripped. Are you suggesting I do so?
Thanks for your help.
-Ben