idd.i: dbg_can_query() was returning false when called from a bpt condition

idc.py: AskStr() was calling idaapi.askstr w/ wrong parameter
This commit is contained in:
elias.bachaalany 2010-05-13 09:36:56 +00:00
parent 5cede13626
commit 7da6dd916c
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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));
}
//-------------------------------------------------------------------------