I’m curious if there is some kind of macro or define statement that would allow me to structure certain portions of my code to execute under the OpenOCD debugger with VisualGDB. Ideally it would be something like:
if (IN_DEBUG_MODE)
{
//Execute debug specific code here that won't run normally
// like the printf() statement to the ARM Semihosting Console
}