aboutsummaryrefslogtreecommitdiff
path: root/sim/common/hw-device.h
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-device.h
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-device.h')
-rw-r--r--sim/common/hw-device.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/sim/common/hw-device.h b/sim/common/hw-device.h
index 558c41d..a787089 100644
--- a/sim/common/hw-device.h
+++ b/sim/common/hw-device.h
@@ -351,23 +351,6 @@ typedef int (hw_unit_size_to_attach_size_callback)
-/* Memory allocator / de-allocator.
-
- All memory allocated using the below will be automatically
- reclaimed when the device is deleted.
-
- A device implementation can either use these functions when
- allocating memory or use malloc/zalloc/free an co-ordinate its own
- garbage collection. */
-
-#define HW_ZALLOC(me,type) (type*) hw_zalloc (me, sizeof (type))
-#define HW_MALLOC(me,type) (type*) hw_malloc (me, sizeof (type))
-
-extern void *hw_zalloc (struct hw *me, unsigned long size);
-extern void *hw_malloc (struct hw *me, unsigned long size);
-extern void hw_free (struct hw *me, void *);
-extern void hw_free_all (struct hw *me);
-
extern char *hw_strdup (struct hw *me, const char *str);