diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-10 10:23:54 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-10 10:23:54 +0000 |
commit | e1ac3328737bc34a23dbfff92b416a9d9306329a (patch) | |
tree | a6ffb502159f70dbab8c069def57709877ec7b9d /gdb/infcmd.c | |
parent | f7f9a841a31878b377a60bfc7c793e6c8400fafe (diff) | |
download | gdb-e1ac3328737bc34a23dbfff92b416a9d9306329a.zip gdb-e1ac3328737bc34a23dbfff92b416a9d9306329a.tar.gz gdb-e1ac3328737bc34a23dbfff92b416a9d9306329a.tar.bz2 |
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.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 01e1ebe..a4f40a5 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -207,8 +207,9 @@ int step_multi; struct gdb_environ *inferior_environ; -/* When set, normal_stop will not call the normal_stop observer. */ -int suppress_normal_stop_observer = 0; +/* When set, normal_stop will not call the normal_stop observer. + Resume observer likewise will not be called. */ +int suppress_run_stop_observers = 0; /* Accessor routines. */ @@ -1303,7 +1304,7 @@ finish_command_continuation (struct continuation_arg *arg, int error_p) observer_notify_normal_stop (stop_bpstat); } - suppress_normal_stop_observer = 0; + suppress_run_stop_observers = 0; delete_breakpoint (breakpoint); } @@ -1370,8 +1371,8 @@ finish_command (char *arg, int from_tty) } proceed_to_finish = 1; /* We want stop_registers, please... */ - make_cleanup_restore_integer (&suppress_normal_stop_observer); - suppress_normal_stop_observer = 1; + make_cleanup_restore_integer (&suppress_run_stop_observers); + suppress_run_stop_observers = 1; proceed ((CORE_ADDR) -1, TARGET_SIGNAL_DEFAULT, 0); arg1 = |