This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do I figure out why GDB isn't breaking at main?

(PLEASE SEE COMMENT BELOW) I've got a Nordic project that I imported into Eclipse as a makefile project. I've got it working and I can debug into it. Everything is good. So I created a native Eclipse project to build the same target, carefully copying all the flags and such from the makefile. It builds without error (finally!). But I cannot debug it. It seems that GDB tries to set a breakpoint at main, but it never hits. After it loads the program, it hangs on "Starting Target CPU ..." I've carefully looked at the map files for both programs. They aren't completely identical (some versions of the gnu libs are newer in the native eclipse project), but they are really close, and all the entry code at the isr_vector looks the same.

I'm new to this toolset and remote GDB server and so I have absolutely no idea how to figure out what is wrong, since I can't even start to step through code. Can someone help me?

Parents Reply Children
No Data
Related