diff options
author | Jackie Smith Cashion <jsmith@redhat.com> | 1995-11-06 11:43:04 +0000 |
---|---|---|
committer | Jackie Smith Cashion <jsmith@redhat.com> | 1995-11-06 11:43:04 +0000 |
commit | 3e38efa06e117699d5262d9fd4401f5eb3533742 (patch) | |
tree | ad20260b5b0f062820dcc902317cb32effd09275 /gdb | |
parent | 4fe6d901bd49996a77c84ab710918c94e84e9a23 (diff) | |
download | gdb-3e38efa06e117699d5262d9fd4401f5eb3533742.zip gdb-3e38efa06e117699d5262d9fd4401f5eb3533742.tar.gz gdb-3e38efa06e117699d5262d9fd4401f5eb3533742.tar.bz2 |
Moved the "sim_open" call to after the callback initialisation. This
is to allow the simulator initialisation code to make use of the host
callback facilities. Had discussed this with sac, and it should be a
harmless change since none of the other simulators really make use of
the call, and it does not return a result.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/remote-sim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index c7208b0..d0f0f50 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -217,11 +217,12 @@ gdbsim_open (args, from_tty) { if (sr_get_debug ()) printf_filtered ("gdbsim_open: args \"%s\"\n", args ? args : "(null)"); - sim_open (args); sim_set_callbacks (&default_callback); default_callback.init (&default_callback); + sim_open (args); + push_target (&gdbsim_ops); target_fetch_registers (-1); printf_filtered ("Connected to the simulator.\n"); |