* gdb suddenly unable to read source files?
@ 2001-06-16 16:35 Brent Phillips
2001-06-17 9:03 ` Fernando Nasser
0 siblings, 1 reply; 2+ messages in thread
From: Brent Phillips @ 2001-06-16 16:35 UTC (permalink / raw)
To: gdb
Hi,
I've been using gdb successfully for quite some time, and recently a
strange problem came seemingly out of nowhere. Now, whenever I try to set a
breakpoint, I always get the error "No line xxx in source file yyy". This
happens even if I set a breakpoint at line 1 in a file in the same
directory that gdb is running from. It also happens whether I try to read
the breakpoints from an init file or type them in manually.
Additionally, when using gdb to inspect a core dump, it no longer is able
to "list"; it just says
1 init.c: no such file or directory
But I am able to get a stack trace.
What happened here? How do I fix this? I've tried reinstalling gcc, gdb,
etc., to no avail...please advise!
Thanks in advance
Brent Phillips
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gdb suddenly unable to read source files?
2001-06-16 16:35 gdb suddenly unable to read source files? Brent Phillips
@ 2001-06-17 9:03 ` Fernando Nasser
0 siblings, 0 replies; 2+ messages in thread
From: Fernando Nasser @ 2001-06-17 9:03 UTC (permalink / raw)
To: Brent Phillips; +Cc: gdb
Which version of gdb?
Which Operation System (version)?
What is the full path to you files?
What is the exact command line you've used to compile your programs?
Compiler version?
You haven't provided us with much info....
Brent Phillips wrote:
>
> Hi,
>
> I've been using gdb successfully for quite some time, and recently a
> strange problem came seemingly out of nowhere. Now, whenever I try to set a
> breakpoint, I always get the error "No line xxx in source file yyy". This
> happens even if I set a breakpoint at line 1 in a file in the same
> directory that gdb is running from. It also happens whether I try to read
> the breakpoints from an init file or type them in manually.
>
> Additionally, when using gdb to inspect a core dump, it no longer is able
> to "list"; it just says
>
> 1 init.c: no such file or directory
>
> But I am able to get a stack trace.
>
> What happened here? How do I fix this? I've tried reinstalling gcc, gdb,
> etc., to no avail...please advise!
>
> Thanks in advance
>
> Brent Phillips
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-17 9:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-16 16:35 gdb suddenly unable to read source files? Brent Phillips
2001-06-17 9:03 ` Fernando Nasser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox