Debugging Cortex M0 (error: Bad CPU type in executable)

A bit more googling turned up gdb-remote:

(lldb) platform disconnect
(lldb) gdb-remote 3333
Process 1 stopped
* thread #1, stop reason = signal SIGINT
    frame #0: 0x00002280 Blink.ino.elf`micros at delay.c:54:13
   51  	    ticks=ticks2;
   52  	    pend=pend2;
   53  	    count=count2;
-> 54  	    ticks2  = SysTick->VAL;
   55  	    pend2   = !!(SCB->ICSR & SCB_ICSR_PENDSTSET_Msk)  ;
   56  	    count2  = _ulTickCount ;
   57  	  } while ((pend != pend2) || (count != count2) || (ticks < ticks2));

I wonder what that’s doing differently.

In any case, I still don’t really know how to get it to reset the processor and stop at the beginning of the program.