From 9d4010dcac9b1f89b1c6f1df8b50a4f6a32186ed Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Wed, 13 Jan 1999 01:45:04 +0000 Subject: 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 --- gdb/monitor.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/monitor.c') 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); } -- cgit v1.1