mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
* event-top.c (async_disconnect, async_stop_sig): use "raise"
instead of "kill" to raise a signal.
This commit is contained in:
parent
d3653bf635
commit
ec4dfccf28
@ -1,3 +1,8 @@
|
||||
2009-01-09 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* event-top.c (async_disconnect, async_stop_sig): use "raise"
|
||||
instead of "kill" to raise a signal.
|
||||
|
||||
2009-01-09 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* win32-nat.c (get_module_name): Change the type of parameter
|
||||
|
@ -977,7 +977,7 @@ async_disconnect (gdb_client_data arg)
|
||||
"Could not kill the program being debugged",
|
||||
RETURN_MASK_ALL);
|
||||
signal (SIGHUP, SIG_DFL); /*FIXME: ??????????? */
|
||||
kill (getpid (), SIGHUP);
|
||||
raise (SIGHUP);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -1005,7 +1005,7 @@ async_stop_sig (gdb_client_data arg)
|
||||
#elif HAVE_SIGSETMASK
|
||||
sigsetmask (0);
|
||||
#endif
|
||||
kill (getpid (), SIGTSTP);
|
||||
raise (SIGTSTP);
|
||||
signal (SIGTSTP, handle_stop_sig);
|
||||
#else
|
||||
signal (STOP_SIGNAL, handle_stop_sig);
|
||||
|
Loading…
Reference in New Issue
Block a user