diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-05-25 08:18:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-05-25 08:18:03 +0000 |
commit | 69be0d4cb816ba39cbe29091d8579b661f57d3fc (patch) | |
tree | 4ab56c60c4aae652609f72a2031d57fd9ad54355 /sim/common/hw-base.c | |
parent | 39e953a72287cfa9335871478f27258989a22a66 (diff) | |
download | gdb-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.c | 3 |
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); |