diff options
author | Doug Evans <dje@google.com> | 1998-03-09 21:04:28 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-03-09 21:04:28 +0000 |
commit | bda9d8a33cbc104c9c5a866833d15ef5cd3c8d9b (patch) | |
tree | cda23f69adfb460e8cf99f5cdfc950be5a5ce795 /sim/common/sim-base.h | |
parent | 46bb89f0d2af0b832c8874e1ea9bc94eaaf8d95f (diff) | |
download | gdb-bda9d8a33cbc104c9c5a866833d15ef5cd3c8d9b.zip gdb-bda9d8a33cbc104c9c5a866833d15ef5cd3c8d9b.tar.gz gdb-bda9d8a33cbc104c9c5a866833d15ef5cd3c8d9b.tar.bz2 |
* sim-base.h (sim_state_base): New member environment.
(STATE_ENVIRONMENT): New macro.
* sim-config.c (current_environment): Delete.
(sim_config_default): New function.
(sim_config): Set STATE_ENVIRONMENT, not current_environment.
* sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
(sim_config_default): Add prototype.
* sim-module.c (sim_pre_argv_init): Call sim_config_default.
* sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
Set STATE_ENVIRONMENT, not current_environment.
Diffstat (limited to 'sim/common/sim-base.h')
-rw-r--r-- | sim/common/sim-base.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h index 270667b..654e71e 100644 --- a/sim/common/sim-base.h +++ b/sim/common/sim-base.h @@ -131,6 +131,10 @@ typedef struct { struct host_callback_struct *callback; #define STATE_CALLBACK(sd) ((sd)->base.callback) + /* The type of simulation environment (user/operating). */ + enum sim_environment environment; +#define STATE_ENVIRONMENT(sd) ((sd)->base.environment) + #if 0 /* FIXME: Not ready yet. */ /* Stuff defined in sim-config.h. */ struct sim_config config; |