summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-01-09 11:00:00 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-01-09 11:00:00 +0000
commit784c173fcf9c84e1963a573a951291ef83054009 (patch)
treec7838297a78ee52ff9748581dab77b77e9449e0a
parent91394ed36ab2a6859c9be169f0eb5fccf0e95559 (diff)
downloadgdb-784c173fcf9c84e1963a573a951291ef83054009.tar.gz
* event-top.c (async_disconnect, async_stop_sig): use "raise"
instead of "kill" to raise a signal.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/event-top.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3abe002d26b..aca2e2262e6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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
"base_address" to LPVOID. Remove unnecessary cast.
(struct lm_info): Change type of load_addr to LPVOID.
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 5483608bb89..fd7c521a5ea 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -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);