[PATCH] Name Thread Exception support in Wine debugger
james at macadamian.com
Fri Apr 6 14:22:48 CDT 2001
> something seems wrong in your patch...
> the szName field from the exception field is never copied from the
> program space to the debugger space (only the address is)
> so, you should use ReadProcessMemory instead (something like
> ReadProcessMemory(pThread->name, sizeof(pThread->name),
> DEBUG_CurrThread->process->handle, pThreadName->szName);
OOPs... you're right. Works a lot better with ReadProcessMemory.
I'll send a modified patch ASAP.
> also, I don't like the fact that you put the #define in a public header
> and the exception struct definition inside the file
> it would make more sense to me if both were either public or private
> (I'd go for private, since those values don't seem to be defined in
> standard headers)
Hmm.. sure, I can put both in the private header... I had the entry
in the public one since there was already a WINE specific entry there,
but I'll move my stuff all into the private debugger.h.
Software Designer - Macadamian Technologies, Inc.
james at macadamian.com ~ http://www.macadamian.com
"Man könnte froh sein, wenn die Luft so rein wäre wie das Bier"
"One could be happy if the air were as pure as the beer"
More information about the wine-devel