aboutsummaryrefslogtreecommitdiff
path: root/sim/common/hw-base.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-05-25 08:18:03 +0000
committerAndrew Cagney <cagney@redhat.com>1998-05-25 08:18:03 +0000
commit69be0d4cb816ba39cbe29091d8579b661f57d3fc (patch)
tree4ab56c60c4aae652609f72a2031d57fd9ad54355 /sim/common/hw-base.c
parent39e953a72287cfa9335871478f27258989a22a66 (diff)
downloadgdb-69be0d4cb816ba39cbe29091d8579b661f57d3fc.zip
gdb-69be0d4cb816ba39cbe29091d8579b661f57d3fc.tar.gz
gdb-69be0d4cb816ba39cbe29091d8579b661f57d3fc.tar.bz2
Split out hw-alloc code. Add constructor and destructor for hw-alloc.
Diffstat (limited to 'sim/common/hw-base.c')
-rw-r--r--sim/common/hw-base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c
index 25b5c23..03aad9b 100644
--- a/sim/common/hw-base.c
+++ b/sim/common/hw-base.c
@@ -417,6 +417,7 @@ hw_create (struct sim_state *sd,
}
/* Attach dummy ports */
+ create_hw_alloc_data (hw);
create_hw_port_data (hw);
create_hw_event_data (hw);
@@ -500,7 +501,7 @@ hw_delete (struct hw *me)
}
/* blow away all memory belonging to the device */
- hw_free_all (me);
+ delete_hw_alloc_data (me);
/* finally */
zfree (me->base_of_hw);