This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to fix the error "No source file named .....\main.c" when adding a breakpoint in Eclipse when debugging with gdb

When trying to setup the gcc toolchain with Eclipse Luna IDE, I ran into the problem when I can't set a break point when debugging with the GNU ARM J-Link Debugging Support plugin. When I added a breakpoint, I got "No source file named ... " in the gdb trace. I have made sure that I used -g option when compiling with gcc (make debug).

image description

I could step through the code but when I clicked resume (F8), the PC didn't seem to stop at the breakpoint I set. Nothing happened after Resume.

This issue caused debugging impossible in most cases.

Related