This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: init.c: No such file or directory.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]