init.c: No such file or directory.

Daniel Jacobowitz drow@mvista.com
Mon Jun 9 20:17:00 GMT 2003


On Mon, Jun 09, 2003 at 03:08:59PM -0500, Benjamin P Myers wrote:
> 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)

Then I don't know what's wrong.  MUST you use DWARF?  Is DWARF-2 an
option?

I seem to be saying this a lot lately.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list