Home » Language IDEs » C / C++ IDE (CDT) » CDT GDB No source file named ... error
CDT GDB No source file named ... error [message #236177] |
Mon, 20 July 2009 19:03 |
T Kruse Messages: 73 Registered: July 2009 |
Member |
|
|
Hi,
I am using CDT on Eclipse 3.4.2 to develop on a large C project, which has
its own custom makefiles.
I am facing problems with debugging, which I could not resolve after
spending hours on google looking for solutions.
I had everything run perfect on Debian 32 for a while. I then copied the
workspace to a different PC, running Debian 64 bit, with different home
directory.
I made a make clean and make, and I am able to run the application without
problems. However, when i try to set breakpoints, it does not work. While
the application runs with the c files I set the break points in, if I add
another breakpoint, I get in the gdb console:
(gdb)
300*stopped,reason="signal-received",signal-name="SIGINT",signal-meaning= "Interrupt",thread-id="0",frame={addr="0x00007f13ba656c93 ",func="??",args=[],from="/lib/libc.so.6"}
No source file named gnuplot.c.
(gdb)
301-break-insert gnuplot.c:103
&"No source file named gnuplot.c.\n"
301^error,msg="No source file named gnuplot.c."
The same happens for absolute paths. The debugger can stop on startup at
main, and the debugger works fine with a HelloWorld c app in the same
workspace.
Would this be due to that SIGINT, and does anyone here understand what
causes this and how I may fix it?
|
|
| |
Re: CDT GDB No source file named ... error [message #236192 is a reply to message #236177] |
Tue, 21 July 2009 13:41 |
Eclipse User |
|
|
|
Originally posted by: subs._nospam_consertum.com
My guess is that you have the Source lookup path wrong for the debug
configuration. Look in the Source tab of the debug configuration.
btw: it is recommended that when moving projects between machines, you
should Export and then Import, rather than copying.
T Kruse wrote:
> Hi,
>
> I am using CDT on Eclipse 3.4.2 to develop on a large C project, which
> has its own custom makefiles.
> I am facing problems with debugging, which I could not resolve after
> spending hours on google looking for solutions.
>
> I had everything run perfect on Debian 32 for a while. I then copied the
> workspace to a different PC, running Debian 64 bit, with different home
> directory.
> I made a make clean and make, and I am able to run the application
> without problems. However, when i try to set breakpoints, it does not
> work. While the application runs with the c files I set the break points
> in, if I add another breakpoint, I get in the gdb console:
>
> (gdb)
> 300*stopped,reason="signal-received",signal-name="SIGINT",signal-meaning= "Interrupt",thread-id="0",frame={addr="0x00007f13ba656c93 ",func="??",args=[],from="/lib/libc.so.6"}
>
> No source file named gnuplot.c.
> (gdb) 301-break-insert gnuplot.c:103
> &"No source file named gnuplot.c.\n"
> 301^error,msg="No source file named gnuplot.c."
>
> The same happens for absolute paths. The debugger can stop on startup at
> main, and the debugger works fine with a HelloWorld c app in the same
> workspace.
>
> Would this be due to that SIGINT, and does anyone here understand what
> causes this and how I may fix it?
>
--
Derek
|
|
|
Re: CDT GDB No source file named ... error [message #236201 is a reply to message #236192] |
Tue, 21 July 2009 14:49 |
T Kruse Messages: 73 Registered: July 2009 |
Member |
|
|
The Source tab of the default configuration has a root item "Default",
which has elements "Absolute file path" which has no children, and the
project, with all its folders. It looks fine to me, and I aldo tried
removing all Debug configurations and have a new one created for me. I do
not use any subprojects.
I tried adding only the project or only the absolute filesystem location
as source in the Debug Configuration. The same error happens.
For fun, I added the project tree same path several times, as workspace,
workspace project, filesystem folder, workspace folder. No change.
I removed all the source path, then the breakpoints did not even trigger
any gdb action.
I tried creating a new project of the same name, copied the project files
(except .project and .cproject) into it, and still nothing.
There ought to be a logical explanation to this, aren't there gdb commands
that I could use somehow to check where it looks for files or something?
|
|
| | | | | |
Goto Forum:
Current Time: Thu Sep 26 11:38:37 GMT 2024
Powered by FUDForum. Page generated in 0.03709 seconds
|