diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2000-11-25 09:18:52 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2000-11-25 09:18:52 +0000 |
commit | ce13044d7a335947b721e7e83730a9f7d97de8e0 (patch) | |
tree | d5540213d0bb6e9c9dd55214fda2ea6bca419de2 /sim/common/hw-base.c | |
parent | 7c070881e4a395f2e803aef0254508ee7a9dda99 (diff) | |
download | gdb-ce13044d7a335947b721e7e83730a9f7d97de8e0.zip gdb-ce13044d7a335947b721e7e83730a9f7d97de8e0.tar.gz gdb-ce13044d7a335947b721e7e83730a9f7d97de8e0.tar.bz2 |
Fix for sim/common hw_delete()/hw_tree_delete()
Diffstat (limited to 'sim/common/hw-base.c')
-rw-r--r-- | sim/common/hw-base.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c index a13ac64..9c05da8 100644 --- a/sim/common/hw-base.c +++ b/sim/common/hw-base.c @@ -510,10 +510,15 @@ hw_delete (struct hw *me) delete_hw_alloc_data (me); /* finally */ - zfree (me->base_of_hw); zfree (me); } +void +set_hw_delete (struct hw *hw, hw_delete_callback method) +{ + hw->base_of_hw->to_delete = method; +} + /* Go through the devices various reg properties for those that specify attach addresses */ |