qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH RFC v20 3/8] target/avr: Add mechanism to check


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH RFC v20 3/8] target/avr: Add mechanism to check for active debugger connection
Date: Wed, 5 Jun 2019 11:06:51 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

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

[Prev in Thread] Current Thread [Next in Thread]