[PATCH] ntdll: Add a shortcut to NtReadVirtualMemory for the local process

Alexandre Julliard julliard at winehq.org
Wed Oct 30 05:21:08 CDT 2019


Martin Storsjö <martin at martin.st> writes:

> On Wed, 30 Oct 2019, Alexandre Julliard wrote:
>> Not being able to use ptrace isn't a very interesting case, particularly
>> if you are talking about exception handling, since you'll also need
>> ptrace for the debug registers.
>
> Hmm, are the debug registers used somewhere in exception unwinding?
> SEH based exception handling works fine without ptrace at the moment.

They would be used if the app has changed them.

>> I don't think it's worth adding complicated workarounds for this.
>
> Ok, fair enough.
>
> I presume you're not willing to add a special case directly within
> EnumProcessModules either? That has much less risk of vaguely changing
> semantics of other functions, but it does add a bit of code
> duplication though.

That could be acceptable, depending on what the resulting code looks
like.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list