mirror of
https://github.com/cemu-project/idapython.git
synced 2024-12-28 18:51:53 +01:00
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:
parent
5cede13626
commit
7da6dd916c
@ -2837,7 +2837,7 @@ def AskStr(defval, prompt):
|
|||||||
|
|
||||||
@return: the entered string or 0.
|
@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):
|
def AskFile(forsave, mask, prompt):
|
||||||
|
@ -16,7 +16,7 @@ static bool dbg_can_query()
|
|||||||
{
|
{
|
||||||
// Reject the request only if no debugger is set
|
// Reject the request only if no debugger is set
|
||||||
// or the debugger cannot be queried while not in suspended state
|
// 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));
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user