* [PATCH] sim: use STATE_MAGIC helper [committed]
@ 2016-01-05 4:01 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2016-01-05 4:01 UTC (permalink / raw)
To: gdb-patches
---
sim/common/ChangeLog | 4 ++++
sim/common/sim-utils.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index f8cdbf4..8ad6a41 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
2016-01-04 Mike Frysinger <vapier@gentoo.org>
+ * sim-utils.c (sim_state_free): Change to STATE_MAGIC.
+
+2016-01-04 Mike Frysinger <vapier@gentoo.org>
+
* cgen-scache.c (MAX): Delete.
(scache_init): Change MAX to max.
* cgen-trace.c (min): Delete.
diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c
index d2b5f7c..d11d3b4 100644
--- a/sim/common/sim-utils.c
+++ b/sim/common/sim-utils.c
@@ -101,7 +101,7 @@ sim_state_alloc (SIM_OPEN_KIND kind,
void
sim_state_free (SIM_DESC sd)
{
- ASSERT (sd->base.magic == SIM_MAGIC_NUMBER);
+ ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
#ifdef SIM_STATE_FREE
SIM_STATE_FREE (sd);
--
2.6.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-05 4:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-05 4:01 [PATCH] sim: use STATE_MAGIC helper [committed] Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).