diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-13 20:19:19 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-13 20:19:19 +0000 |
commit | 8f6a8e8417fa1e8191993f4869628460605e6221 (patch) | |
tree | 3e380f8cf21b6666371b7e76d15eb8e93f73de04 /gdb/infcmd.c | |
parent | fa452fa6833cbb3088361ac35f4c51716afde520 (diff) | |
download | gdb-8f6a8e8417fa1e8191993f4869628460605e6221.zip gdb-8f6a8e8417fa1e8191993f4869628460605e6221.tar.gz gdb-8f6a8e8417fa1e8191993f4869628460605e6221.tar.bz2 |
Don't suppress *running when doing finish.
* infcall.c (call_function_by_hand): Set both
suppress_resume_observer and suppress_stop_observer.
* infcmd.c (suppress_run_stop_observers): Split into...
(suppress_resume_observer, suppress_stop_observer): ...those.
(finish_command_continuation): Clear suppress_stop_observer.
(finish_command): Set suppress_stop_observer.
* inferior.h (suppress_run_stop_observers): Split into...
(suppress_resume_observer, suppress_stop_observer): ...those.
* infrun.c (normal_stop): Check for suppress_stop_observer.
* thread.c (set_running): Check for suppress_resume_observer.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index a4f40a5..d9c9cb7 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -207,9 +207,10 @@ int step_multi; struct gdb_environ *inferior_environ; -/* When set, normal_stop will not call the normal_stop observer. - Resume observer likewise will not be called. */ -int suppress_run_stop_observers = 0; +/* When set, no calls to target_resumed observer will be made. */ +int suppress_resume_observer = 0; +/* When set, normal_stop will not call the normal_stop observer. */ +int suppress_stop_observer = 0; /* Accessor routines. */ @@ -1304,7 +1305,7 @@ finish_command_continuation (struct continuation_arg *arg, int error_p) observer_notify_normal_stop (stop_bpstat); } - suppress_run_stop_observers = 0; + suppress_stop_observer = 0; delete_breakpoint (breakpoint); } @@ -1371,8 +1372,8 @@ finish_command (char *arg, int from_tty) } proceed_to_finish = 1; /* We want stop_registers, please... */ - make_cleanup_restore_integer (&suppress_run_stop_observers); - suppress_run_stop_observers = 1; + make_cleanup_restore_integer (&suppress_stop_observer); + suppress_stop_observer = 1; proceed ((CORE_ADDR) -1, TARGET_SIGNAL_DEFAULT, 0); arg1 = |