diff options
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 4c27d51..1eb39d1 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -835,7 +835,12 @@ read_actions (t) immediate_quit++; #ifdef STOP_SIGNAL if (job_control) - signal (STOP_SIGNAL, stop_sig); + { + if (async_p) + signal (STOP_SIGNAL, handle_stop_sig); + else + signal (STOP_SIGNAL, stop_sig); + } #endif old_chain = make_cleanup ((make_cleanup_func) free_actions, (void *) t); while (1) |