On 6/5/19 10:19 AM, Michael Rolnik wrote:
> Richard.
> 
> We use break instruction for testing.
> (Here 
> https://github.com/seharris/qemu-avr-tests/tree/master/instruction-tests).
> Each test is a big list of small tests with a break between them. We run the
> tests on HW and on QEMU then compare register after each break. If we don't
> implement break the way Sarah suggested we have no way of testing.
> What do you suggest?

Hmm.

Ordinarily I would say to use some sort of syscall/exception/interrupt
instruction, but I see that avr doesn't have any of those.

You could use "call breakpoint" instead of using raw BREAK instructions with
the implementation just being

breakpoint:
        ret

and have gdb issue "break breakpoint" before beginning.

But perhaps I'm being over-pedantic about this, and someone else should weigh
in.  Alex, I nominate you since you most recently touched gdbserver.  ;-)


r~

Reply via email to