mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_dump.c (dump_thread): get only required rights of the target
thread because THREAD_ALL_ACCESS causes an access error on XP. reported by Masaya TARUI via IRC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
952a357274
commit
f55d567b59
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri Nov 26 11:40:11 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* vm_dump.c (dump_thread): get only required rights of the target
|
||||
thread because THREAD_ALL_ACCESS causes an access error on XP.
|
||||
reported by Masaya TARUI via IRC.
|
||||
|
||||
Fri Nov 26 11:09:07 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* vm_dump.c (dump_thread): show the displacement from the beginning
|
||||
|
|
|
@ -684,7 +684,7 @@ dump_thread(void *arg)
|
|||
SymSetOptions(SYMOPT_UNDNAME | SYMOPT_DEFERRED_LOADS | SYMOPT_DEBUG | SYMOPT_LOAD_LINES);
|
||||
ph = GetCurrentProcess();
|
||||
pSymInitialize(ph, NULL, TRUE);
|
||||
th = pOpenThread(THREAD_ALL_ACCESS, FALSE, tid);
|
||||
th = pOpenThread(THREAD_SUSPEND_RESUME|THREAD_GET_CONTEXT, FALSE, tid);
|
||||
if (th) {
|
||||
if (SuspendThread(th) != (DWORD)-1) {
|
||||
CONTEXT context;
|
||||
|
|
Loading…
Reference in a new issue