aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-01-13 01:45:04 +0000
committerJason Molenda <jmolenda@apple.com>1999-01-13 01:45:04 +0000
commit9d4010dcac9b1f89b1c6f1df8b50a4f6a32186ed (patch)
tree9fcdbada4cfcf087349f52572dd43da449bce710 /gdb
parent4b6afe70127a0f1adbfb55848faa0a6a7ef5a113 (diff)
downloadgdb-9d4010dcac9b1f89b1c6f1df8b50a4f6a32186ed.zip
gdb-9d4010dcac9b1f89b1c6f1df8b50a4f6a32186ed.tar.gz
gdb-9d4010dcac9b1f89b1c6f1df8b50a4f6a32186ed.tar.bz2
1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
* monitor.c (init_monitor_ops): Initialize the monitor_ops structure if it hasn't already been done. PR 18735
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/monitor.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8a8401a..4af4c22 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
+
+ * monitor.c (init_monitor_ops): Initialize the monitor_ops
+ structure if it hasn't already been done.
+
Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
* inftarg.c (child_ops): Don't initialize statically.
diff --git a/gdb/monitor.c b/gdb/monitor.c
index 9420fe6..a8e4a6b 100644
--- a/gdb/monitor.c
+++ b/gdb/monitor.c
@@ -2268,6 +2268,9 @@ void
init_monitor_ops (ops)
struct target_ops *ops;
{
+ if (monitor_ops.to_magic != OPS_MAGIC)
+ init_base_monitor_ops ();
+
memcpy (ops, &monitor_ops, sizeof monitor_ops);
}