From 610f8c63394782fa73b12ff67f6cd2b76180ad2c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 12 Aug 2022 13:30:31 -0600 Subject: [PATCH] Remove a call to clear_interpreter_hooks mi_interp::resume does not need to call clear_interpreter_hooks, because this is already done by interp_set. --- gdb/mi/mi-interp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index dbf71185ea7..af242208a0b 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -190,10 +190,6 @@ mi_interp::resume () /* Route target error through the MI as well. */ gdb_stdtargerr = mi->targ; - /* Replace all the hooks that we know about. There really needs to - be a better way of doing this... */ - clear_interpreter_hooks (); - deprecated_show_load_progress = mi_load_progress; } -- 2.30.2