From 7da6dd916ceb0c4ec91bfd0e74763e8ddd951b1a Mon Sep 17 00:00:00 2001 From: "elias.bachaalany" Date: Thu, 13 May 2010 09:36:56 +0000 Subject: [PATCH] idd.i: dbg_can_query() was returning false when called from a bpt condition idc.py: AskStr() was calling idaapi.askstr w/ wrong parameter --- python/idc.py | 2 +- swig/idd.i | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/idc.py b/python/idc.py index 9d7983a..7b0e423 100644 --- a/python/idc.py +++ b/python/idc.py @@ -2837,7 +2837,7 @@ def AskStr(defval, prompt): @return: the entered string or 0. """ - return idaapi.askstr(idaapi.HIST_IDENT, defval, prompt) + return idaapi.askstr(0, defval, prompt) def AskFile(forsave, mask, prompt): diff --git a/swig/idd.i b/swig/idd.i index 52a62d6..56a122a 100644 --- a/swig/idd.i +++ b/swig/idd.i @@ -16,7 +16,7 @@ static bool dbg_can_query() { // Reject the request only if no debugger is set // or the debugger cannot be queried while not in suspended state - return !(dbg == NULL || (!dbg->may_disturb() && get_process_state() != DSTATE_SUSP)); + return !(dbg == NULL || (!dbg->may_disturb() && get_process_state() > DSTATE_SUSP)); } //-------------------------------------------------------------------------