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: Fri, 31 May 2019 08:54:33 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 5/30/19 2:07 PM, Michael Rolnik wrote:
> From: Sarah Harris <address@hidden>
> 
> AVR CPUs have a BREAK instruction which behaves differently depending on 
> whether debugging is enabled.
> Since the hardware fuses that normally control this are difficult to emulate, 
> and the BREAK instruction is useful for testing, the BREAK instruction is 
> instead enabled/disabled depending on whether a GDB session is attached.

I don't think that this is the right way to model this.

I think that BREAK should always raise an exception and return to the main
loop.  If there we find that the debugger is not attached, the main loop will
simply continue.  Which becomes a nop, as documented.


r~



reply via email to

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