aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-06-05 21:13:58 +0000
committerPedro Alves <palves@redhat.com>2008-06-05 21:13:58 +0000
commitcf30943b935788478e058f6c7d9d796b90ecea8c (patch)
tree8cedd2022eb41c88cd74a8c912caf831c8943ab2
parent49fd4a422bb6152043b2b41a1f734694056dbf3b (diff)
downloadfsf-binutils-gdb-cf30943b935788478e058f6c7d9d796b90ecea8c.zip
fsf-binutils-gdb-cf30943b935788478e058f6c7d9d796b90ecea8c.tar.gz
fsf-binutils-gdb-cf30943b935788478e058f6c7d9d796b90ecea8c.tar.bz2
* remote.c (kill_kludge): Delete.
(remote_wait, remote_async_wait): Don't set it. (remote_kill, remote_async_kill): Don't do anything with it.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/remote.c24
2 files changed, 6 insertions, 24 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bb7fd13..ec59517 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2008-06-05 Pedro Alves <pedro@codesourcery.com>
+ * remote.c (kill_kludge): Delete.
+ (remote_wait, remote_async_wait): Don't set it.
+ (remote_kill, remote_async_kill): Don't do anything with it.
+
+2008-06-05 Pedro Alves <pedro@codesourcery.com>
+
* linux-thread-db.c (thread_db_wait): Don't trim event ptid.
2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
diff --git a/gdb/remote.c b/gdb/remote.c
index 7e15873..3cbabba 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3330,10 +3330,6 @@ remote_async_terminal_ours (void)
remote_async_terminal_ours_p = 1;
}
-/* If nonzero, ignore the next kill. */
-
-int kill_kludge;
-
void
remote_console_output (char *msg)
{
@@ -3537,7 +3533,6 @@ Packet: '%s'\n"),
status->kind = TARGET_WAITKIND_SIGNALLED;
status->value.sig = (enum target_signal)
(((fromhex (buf[1])) << 4) + (fromhex (buf[2])));
- kill_kludge = 1;
goto got_status;
case 'O': /* Console output. */
@@ -3764,7 +3759,6 @@ Packet: '%s'\n"),
status->kind = TARGET_WAITKIND_SIGNALLED;
status->value.sig = (enum target_signal)
(((fromhex (buf[1])) << 4) + (fromhex (buf[2])));
- kill_kludge = 1;
goto got_status;
case 'O': /* Console output. */
@@ -5282,15 +5276,6 @@ getpkt_sane (char **buf, long *sizeof_buf, int forever)
static void
remote_kill (void)
{
- /* For some mysterious reason, wait_for_inferior calls kill instead of
- mourn after it gets TARGET_WAITKIND_SIGNALLED. Work around it. */
- if (kill_kludge)
- {
- kill_kludge = 0;
- target_mourn_inferior ();
- return;
- }
-
/* Use catch_errors so the user can quit from gdb even when we aren't on
speaking terms with the remote system. */
catch_errors ((catch_errors_ftype *) putpkt, "k", "", RETURN_MASK_ERROR);
@@ -5308,15 +5293,6 @@ remote_async_kill (void)
if (target_is_async_p ())
serial_async (remote_desc, NULL, 0);
- /* For some mysterious reason, wait_for_inferior calls kill instead of
- mourn after it gets TARGET_WAITKIND_SIGNALLED. Work around it. */
- if (kill_kludge)
- {
- kill_kludge = 0;
- target_mourn_inferior ();
- return;
- }
-
/* Use catch_errors so the user can quit from gdb even when we
aren't on speaking terms with the remote system. */
catch_errors ((catch_errors_ftype *) putpkt, "k", "", RETURN_MASK_ERROR);