diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-22 09:16:14 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-22 09:16:14 +0000 |
commit | 4ca7d6d25b8020a15edf366aeb0fa9b3ac636e2b (patch) | |
tree | 32c616c5cac5b6d6aa2ae15a9cbbac71a83621a3 /sim/common/sim-base.h | |
parent | 794e9ac96aca71d2cb7683383bb445c3125d9660 (diff) | |
download | gdb-4ca7d6d25b8020a15edf366aeb0fa9b3ac636e2b.zip gdb-4ca7d6d25b8020a15edf366aeb0fa9b3ac636e2b.tar.gz gdb-4ca7d6d25b8020a15edf366aeb0fa9b3ac636e2b.tar.bz2 |
Fix disabling of model code when simulator does not support modeling.
Stops `-p' crashing simulators.
Diffstat (limited to 'sim/common/sim-base.h')
-rw-r--r-- | sim/common/sim-base.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h index f2b13d6..21be805 100644 --- a/sim/common/sim-base.h +++ b/sim/common/sim-base.h @@ -70,10 +70,12 @@ typedef struct _sim_cpu sim_cpu; #include "sim-module.h" #include "sim-trace.h" -#include "sim-profile.h" -#include "sim-model.h" #include "sim-core.h" #include "sim-events.h" +#include "sim-profile.h" +#ifdef SIM_HAVE_MODEL +#include "sim-model.h" +#endif #include "sim-io.h" #include "sim-engine.h" #include "sim-watch.h" @@ -136,10 +138,12 @@ typedef struct { MODULE_SUSPEND_LIST *suspend_list; #define STATE_SUSPEND_LIST(sd) ((sd)->base.suspend_list) +#ifdef SIM_HAVE_MODEL /* ??? This might be more appropriate in sim_cpu. */ /* Machine tables for this cpu. See sim-model.h. */ const MODEL *model; #define STATE_MODEL(sd) ((sd)->base.model) +#endif /* Supported options. */ struct option_list *options; |