Oh, let me also add that this assertion fails in gdb: Thread 1 hit Breakpoint 3, 0x40f102d8 in ?? () (gdb) si ./../../src/gdb-8.1/gdb/sparc-tdep.c:1737: internal-error: std::vector<long unsigned int> sparc_software_single_step(regcache*): Assertion `nnpc != npc || orig_npc == 0' failed.
I had this assertion commented out so when I unrolled my patch to repeat the test in order to write my previous reply to you, I saw it be stuck on the same instruction rather than fail this assertion. I guess this could be a gdb bug, too. Steven