From 3ab2abae9ac2dc0ab96fc2d1a678b463485b90a0 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 13 Jan 1999 23:53:30 +0000 Subject: Wed Jan 13 14:59:02 1999 Michael Snyder * infrun.c (set/show scheduler-locking) New command. Set a mode bit that will control how GDB attempts to control thread scheduling for step, continue, etc. (resume): make use of the schedule-locking mode. * target.h (struct target_ops): new field to_has_thread_control. * sol-thread.c: initialize target_ops to_has_thread_control. * procfs.c: ditto. * target.c: ditto. * m3-nat.c: ditto. * remote.c: ditto. * hpux-thread.c: ditto. --- gdb/procfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/procfs.c') diff --git a/gdb/procfs.c b/gdb/procfs.c index b5b331d..1e9e040 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -5760,9 +5760,9 @@ struct target_ops procfs_ops = { 0, /* to_close */ procfs_attach, /* to_attach */ NULL, /* to_post_attach */ - procfs_attach, /* to_require_attach */ + procfs_attach, /* to_require_attach */ procfs_detach, /* to_detach */ - procfs_detach, /* to_require_detach */ + procfs_detach, /* to_require_detach */ procfs_resume, /* to_resume */ procfs_wait, /* to_wait */ NULL, /* to_post_wait */ @@ -5816,6 +5816,7 @@ struct target_ops procfs_ops = { 1, /* to_has_stack */ 1, /* to_has_registers */ 1, /* to_has_execution */ + tc_none, /* to_has_thread_control */ 0, /* sections */ 0, /* sections_end */ OPS_MAGIC /* to_magic */ -- cgit v1.1