Bug 816117 - Part 3: Only get control registers from the profiled thread. r=bgirard

This commit is contained in:
Bas Schouten 2012-12-08 06:15:21 +01:00
Родитель a60a6c0bfe
Коммит 22f1ab7082
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -125,7 +125,7 @@ class SamplerThread : public Thread {
if (SuspendThread(profiled_thread) == kSuspendFailed)
return;
context.ContextFlags = CONTEXT_FULL;
context.ContextFlags = CONTEXT_CONTROL;
if (GetThreadContext(profiled_thread, &context) != 0) {
#if V8_HOST_ARCH_X64
sample->pc = reinterpret_cast<Address>(context.Rip);