winedbg: Implemented is_break_insn for x86-64 CPUs.
authorEric Pouech <eric.pouech@orange.fr>
Wed, 3 Feb 2010 20:47:51 +0000 (21:47 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 4 Feb 2010 12:39:27 +0000 (13:39 +0100)
programs/winedbg/be_x86_64.c

index e2cdc12629dec23ee252e348da8aa52fcdb499b1..4cc5162b1677725132d0ffab2a936f79f7a1fbd6 100644 (file)
@@ -176,8 +176,8 @@ static unsigned be_x86_64_is_function_return(const void* insn)
 
 static unsigned be_x86_64_is_break_insn(const void* insn)
 {
-    dbg_printf("not done is_break_insn\n");
-    return FALSE;
+    BYTE        c;
+    return dbg_read_memory(insn, &c, sizeof(c)) && c == 0xCC;
 }
 
 static unsigned be_x86_64_is_func_call(const void* insn, ADDRESS64* callee)