qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH 02/13] Refactor and enhance break/watchpoint API


From: Jan Kiszka
Subject: [Qemu-devel] Re: [PATCH 02/13] Refactor and enhance break/watchpoint API
Date: Tue, 14 Oct 2008 19:53:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

Glauber Costa wrote:
>>  /* Add a watchpoint.  */
>> -int cpu_watchpoint_insert(CPUState *env, target_ulong addr, int type)
>> +int cpu_watchpoint_insert(CPUState *env, target_ulong addr, target_ulong 
>> len,
>> +                          int flags, CPUWatchpoint **watchpoint)
> 
> Any particular reason you're not simply returning the address of the 
> watchpoint?
> Although I must admit it's a matter of personal taste.

Then I would have to express potential errors as pointer values. I think
I didn't find a precedence for this in QEMU, so I went for the above
interface.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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