From: Tom Tromey Date: Fri, 12 Aug 2022 19:30:31 +0000 (-0600) Subject: Remove a call to clear_interpreter_hooks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=610f8c63394782fa73b12ff67f6cd2b76180ad2c;p=binutils-gdb.git 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. --- 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; }