aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-05-25 08:29:05 +0000
committerAndrew Cagney <cagney@redhat.com>1998-05-25 08:29:05 +0000
commit325a1ba87687ac0a8002b24a6a1215b933ae28bb (patch)
tree7e6c37f8d8a42de205db97ee72101896334e926c /sim/common
parent69be0d4cb816ba39cbe29091d8579b661f57d3fc (diff)
downloadgdb-325a1ba87687ac0a8002b24a6a1215b933ae28bb.zip
gdb-325a1ba87687ac0a8002b24a6a1215b933ae28bb.tar.gz
gdb-325a1ba87687ac0a8002b24a6a1215b933ae28bb.tar.bz2
Initialize/destory hw-properties within the hw-device.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog8
-rw-r--r--sim/common/hw-base.c2
-rw-r--r--sim/common/hw-base.h8
-rw-r--r--sim/common/hw-properties.c11
4 files changed, 29 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index ae5e2a3..96431f0 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,11 @@
+Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * hw-base.h (create_hw_property_data, delete_hw_property_data):
+ Declare.
+ * hw-base.c (hw_create, hw_delete): Call
+ * hw-properties.c (create_hw_property_data,
+ delete_hw_property_data): Define.
+
Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
* hw-device.c, hw-properties.c: Include hw-base.h
diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c
index 03aad9b..3adef18 100644
--- a/sim/common/hw-base.c
+++ b/sim/common/hw-base.c
@@ -418,6 +418,7 @@ hw_create (struct sim_state *sd,
/* Attach dummy ports */
create_hw_alloc_data (hw);
+ create_hw_property_data (hw);
create_hw_port_data (hw);
create_hw_event_data (hw);
@@ -473,6 +474,7 @@ hw_delete (struct hw *me)
delete_hw_event_data (me);
delete_hw_port_data (me);
+ delete_hw_property_data (me);
/* now unlink us from the tree */
if (hw_parent (me))
diff --git a/sim/common/hw-base.h b/sim/common/hw-base.h
index 1866d64..f63807c 100644
--- a/sim/common/hw-base.h
+++ b/sim/common/hw-base.h
@@ -150,6 +150,14 @@ extern void delete_hw_port_data
(struct hw *hw);
+/* PROPERTIES */
+
+extern void create_hw_property_data
+(struct hw *hw);
+extern void delete_hw_property_data
+(struct hw *hw);
+
+
/* EVENTS */
extern void create_hw_event_data
diff --git a/sim/common/hw-properties.c b/sim/common/hw-properties.c
index b46f295..ceb8d64 100644
--- a/sim/common/hw-properties.c
+++ b/sim/common/hw-properties.c
@@ -42,6 +42,17 @@ struct hw_property_data {
unsigned sizeof_init_array;
};
+void
+create_hw_property_data (struct hw *me)
+{
+}
+
+void
+delete_hw_property_data (struct hw *me)
+{
+}
+
+
/* Device Properties: */
static struct hw_property_data *