From 11cff555b80eff00e3da343a16cb4b53b76f2533 Mon Sep 17 00:00:00 2001 From: Harding Date: Fri, 19 May 2023 22:50:43 +0200 Subject: [PATCH] Fix: replaced a magic constant with a constant --- examples/debugging/show_debug_names.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/debugging/show_debug_names.py b/examples/debugging/show_debug_names.py index 05ba426..6875e6d 100644 --- a/examples/debugging/show_debug_names.py +++ b/examples/debugging/show_debug_names.py @@ -16,7 +16,7 @@ def main(): if not ida_dbg.is_debugger_on(): print("Please run the process first!") return - if ida_dbg.get_process_state() != -1: + if ida_dbg.get_process_state() != ida_dbg.DSTATE_SUSP: print("Please suspend the debugger first!") return