winedbg: Implement single step for x86_64.

This commit is contained in:
Alexandre Julliard 2009-05-01 18:29:10 +02:00
parent b26ae69fcb
commit 8b3b328319
1 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,8 @@
#if defined(__x86_64__)
#define STEP_FLAG 0x00000100 /* single step flag */
static unsigned be_x86_64_get_addr(HANDLE hThread, const CONTEXT* ctx,
enum be_cpu_addr bca, ADDRESS64* addr)
{
@ -60,7 +62,8 @@ static unsigned be_x86_64_get_register_info(int regno, enum be_cpu_addr* kind)
static void be_x86_64_single_step(CONTEXT* ctx, unsigned enable)
{
dbg_printf("not done single_step\n");
if (enable) ctx->EFlags |= STEP_FLAG;
else ctx->EFlags &= ~STEP_FLAG;
}
static void be_x86_64_print_context(HANDLE hThread, const CONTEXT* ctx,