GDB mode (ctrl-c, $, or possibly even some user command you give your
application) and when you want to switch do:
cyg_hal_user_break( (CYG_ADDRWORD *)hal_saved_interrupt_state );
You'll have to have defined these first:
#include <cyg/hal/hal_arch.h>
#include <cyg/hal/hal_misc.h>
extern struct Hal_SavedRegisters *hal_saved_interrupt_state;
I tried doing this, but initially gdb is spoken (i.e., $.....) on the
serial port. Is there a configuration option to disable gdb from the
serial port until I do the cyg_hal_user_break()? Or do I need to comment
out something from cyg_start? I'm using a configuration where the GDB
stubs are being included in the application.
Ah, presumably you're loading via GDB, then continuing, then disconnecting
your GDB session, right?