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

float arithmetic confuses GDB

Why does this simple float arithmetic cause my GDB client to hang and my GDB server to say "GDB closed TCP/IP connection"? I'm sure I've got other float operations working just fine.

	float a, b, c;

	a = 1.0f;
	b = 2.0f;
	c = b - a;

When flashing the Nordic and letting it run without debugging, I can see this code executes and a debug LED turned on right after is lit. So it's just the debugger getting upset.

GDB client: started within Eclipse as part of the GNU Arm Eclipse Plugin GDB server: JLinkARM.dll V4.80e (DLL compiled Jan 31 2014 18:13:40)

Related