qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 0/5] Debugger enhancements


From: Fabrice Bellard
Subject: Re: [Qemu-devel] [PATCH 0/5] Debugger enhancements
Date: Sat, 31 May 2008 20:33:02 +0200
User-agent: Thunderbird 1.5.0.9 (X11/20070212)

Paul Brook wrote:
>> 2) The current watchpoint code is not implemented correctly so it is not
>> safe to improve it using the same system (IMHO it should not have been
>> commited in its current state). A correct implementation should not
>> delay the DEBUG exception. It should be implemented like the "normal"
>> MMU exceptions.
> 
> On most targets watchpoint traps occur after the instruction completes, so 
> you 
> have to defer the DEBUG exception.
> Normal MMU faults occur before the instruction completes.

If this is the wanted behavior then the same system as the Self
Modifying Code on x86 should be used. Basically it consists in doing as
a MMU fault and single stepping one instruction after. Unfortunately I
fear the implementation will be complicated.

Fabrice.





reply via email to

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