aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-utils.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-02 09:23:06 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-02 10:27:56 -0500
commitd47f5b30d8481272e9480118bdcb283690070349 (patch)
tree589f77d62110d7456496fde754036fa24c89369d /sim/common/sim-utils.c
parent32273fe68f3d1288b2eef6b96beda3732d0ac25e (diff)
downloadgdb-d47f5b30d8481272e9480118bdcb283690070349.zip
gdb-d47f5b30d8481272e9480118bdcb283690070349.tar.gz
gdb-d47f5b30d8481272e9480118bdcb283690070349.tar.bz2
sim: delete dead current_state globals
The global current_state handle to the current simulator state is a design idea that was half implemented, but never really cleaned up. The point was to have a global variable pointing to the state so that funcs could more quickly & easily access the state anywhere. We've instead moved in the direction of passing state around everywhere and don't have any intention of moving back. I also can't find any references to gdb using this variable, or to cgen related "dump_regs" functions, both of which were used in the comments related to this code.
Diffstat (limited to 'sim/common/sim-utils.c')
-rw-r--r--sim/common/sim-utils.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c
index 5439b8b..d2b5f7c 100644
--- a/sim/common/sim-utils.c
+++ b/sim/common/sim-utils.c
@@ -48,10 +48,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "bfd.h"
#include "sim-utils.h"
-/* Global pointer to all state data.
- Set by sim_resume. */
-struct sim_state *current_state;
-
/* Allocate zero filled memory with xcalloc - xcalloc aborts if the
allocation fails. */