From e1ac3328737bc34a23dbfff92b416a9d9306329a Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 10 Jun 2008 10:23:54 +0000 Subject: Implement *running. * Makefile.in: Update dependencies. * gdbthread.h (struct thread_info): New field running_. (set_running, is_running): New. * thread.c (set_running, is_running): New. * inferior.h (suppress_normal_stop_observer): Rename to... (suppress_run_stop_observers): ..this. * infcmd.c (suppress_normal_stop_observer): Rename to... (suppress_run_stop_observers): ..this. (finish_command_continuation, finish_command): Adjust. * infcall.c (call_function_by_hand): Adjust. * infrun.c (normal_stop): Call set_running. * target.c (target_resume): New. Call set_running. * target.h (target_resume): Convert from macro to a function. * mi/mi-interp.c (mi_on_resume): New. (mi_interpreter_init): Register mi_on_resume. --- gdb/target.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index be7f3a11e22..6b009a8e76c 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -40,6 +40,7 @@ #include "exceptions.h" #include "target-descriptions.h" #include "gdb_stdint.h" +#include "gdbthread.h" static void target_info (char *, int); @@ -1715,6 +1716,14 @@ target_disconnect (char *args, int from_tty) tcomplain (); } +void +target_resume (ptid_t ptid, int step, enum target_signal signal) +{ + dcache_invalidate (target_dcache); + (*current_target.to_resume) (ptid, step, signal); + set_running (ptid, 1); + +} /* Look through the list of possible targets for a target that can follow forks. */ -- cgit v1.2.1