diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-11-20 20:41:51 -0800 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-11-22 00:53:23 -0500 |
commit | d320201dbe5a3677e96008738cb6cc754147e3bd (patch) | |
tree | 311ff550d40fe28730a9a859144a427c5026ba99 /sim/mn10300/interp.c | |
parent | 3559ed3fa4b4b8496dc304e3eb35ef468f7c3601 (diff) | |
download | gdb-d320201dbe5a3677e96008738cb6cc754147e3bd.zip gdb-d320201dbe5a3677e96008738cb6cc754147e3bd.tar.gz gdb-d320201dbe5a3677e96008738cb6cc754147e3bd.tar.bz2 |
sim: mn10300: drop global callback handle
It's used in one place and can easily be replaced by using the sim state.
Diffstat (limited to 'sim/mn10300/interp.c')
-rw-r--r-- | sim/mn10300/interp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sim/mn10300/interp.c b/sim/mn10300/interp.c index f3941ae..4940acc 100644 --- a/sim/mn10300/interp.c +++ b/sim/mn10300/interp.c @@ -24,7 +24,6 @@ #include "bfd.h" -host_callback *mn10300_callback; struct _state State; @@ -97,7 +96,6 @@ sim_open (SIM_OPEN_KIND kind, { int i; SIM_DESC sd = sim_state_alloc (kind, cb); - mn10300_callback = cb; SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); @@ -418,10 +416,7 @@ program_interrupt (SIM_DESC sd, /* avoid infinite recursion */ if (in_interrupt) - { - (*mn10300_callback->printf_filtered) (mn10300_callback, - "ERROR: recursion in program_interrupt during software exception dispatch."); - } + sim_io_printf (sd, "ERROR: recursion in program_interrupt during software exception dispatch."); else { in_interrupt = 1; |