Eric Pouech : winedbg: Properly guard against setting a watchpoint against a variable stored in a register .

Alexandre Julliard julliard at winehq.org
Tue Apr 13 11:24:39 CDT 2010


Module: wine
Branch: master
Commit: e9a31f277019e620c716409c259b553b8ce3a6fc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e9a31f277019e620c716409c259b553b8ce3a6fc

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Mon Apr 12 21:18:12 2010 +0200

winedbg: Properly guard against setting a watchpoint against a variable stored in a register.

---

 programs/winedbg/break.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/programs/winedbg/break.c b/programs/winedbg/break.c
index 6413c43..b1cef6a 100644
--- a/programs/winedbg/break.c
+++ b/programs/winedbg/break.c
@@ -373,6 +373,11 @@ static void break_add_watch(const struct dbg_lvalue* lvalue, BOOL is_write)
     int         num;
     DWORD64     l = 4;
 
+    if (lvalue->cookie == DLV_HOST)
+    {
+        dbg_printf("Cannot set a watch point on register or register-based variable\n");
+        return;
+    }
     num = init_xpoint((is_write) ? be_xpoint_watch_write : be_xpoint_watch_read,
                       &lvalue->addr);
     if (num == -1) return;




More information about the wine-cvs mailing list