Skip to content
This repository was archived by the owner on Nov 19, 2018. It is now read-only.

Commit 8880235

Browse files
author
elias.bachaalany
committed
idd.i: dbg_can_query() was returning false when called from a bpt condition
idc.py: AskStr() was calling idaapi.askstr w/ wrong parameter
1 parent feafa00 commit 8880235

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/idc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2837,7 +2837,7 @@ def AskStr(defval, prompt):
28372837
28382838
@return: the entered string or 0.
28392839
"""
2840-
return idaapi.askstr(idaapi.HIST_IDENT, defval, prompt)
2840+
return idaapi.askstr(0, defval, prompt)
28412841

28422842

28432843
def AskFile(forsave, mask, prompt):

swig/idd.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static bool dbg_can_query()
1616
{
1717
// Reject the request only if no debugger is set
1818
// or the debugger cannot be queried while not in suspended state
19-
return !(dbg == NULL || (!dbg->may_disturb() && get_process_state() != DSTATE_SUSP));
19+
return !(dbg == NULL || (!dbg->may_disturb() && get_process_state() > DSTATE_SUSP));
2020
}
2121

2222
//-------------------------------------------------------------------------

0 commit comments

Comments
 (0)