Monday, 12 August 2013

GetThreadContext registers always return 0xCCCCCCCC

GetThreadContext registers always return 0xCCCCCCCC

I am trying to utilize GetThreadContext to view what the current debug
registers are set to. No matter what program I debug, it returns
0xCCCCCCCC. I am able to successfully set breakpoints ctx.Dr0 and then
catch these breaks with a custom exception handler, but if I try to view
the address stored at ctx.Dr0, it always appears as 0xCCCCCCCC. Why is
that?
Thanks
CONTEXT ctx;
GetThreadContext(GetCurrentThread(),&ctx);
cout << hex << ctx.Eip << endl;

No comments:

Post a Comment