Error in `gdb.prompt_hook` might cause infinite loop
Closed this issue · 0 comments
lebr0nli commented
If we set gdb.prompt_hook
as following:
x = 0
def foo(current_prompt):
global x
if x & 1:
x += 1
raise gdb.error("err")
x += 1
return "(test) "
gdb.prompt_hook = foo
GEP will step into an infinite loop after the first prompt.