+2013-08-14 Tom Tromey <tromey@redhat.com>
+
+ * remote.c (struct remote_state) <last_sent_signal>:
+ New field.
+ (last_sent_signal): Remove.
+ (new_remote_state, remote_resume, remote_wait_as): Update.
+
2013-08-14 Tom Tromey <tromey@redhat.com>
* remote.c (struct remote_state) <last_program_signals_packet>:
packet is exactly the same as the last we sent. IOW, we only let
the target know about program signals list changes. */
char *last_program_signals_packet;
+
+ enum gdb_signal last_sent_signal;
};
/* Private data that we'll store in (struct thread_info)->private. */
result->buf_size = 400;
result->buf = xmalloc (result->buf_size);
result->remote_traceframe_number = -1;
+ result->last_sent_signal = GDB_SIGNAL_0;
return result;
}
/* Tell the remote machine to resume. */
-static enum gdb_signal last_sent_signal = GDB_SIGNAL_0;
-
static int last_sent_step;
static void
if (!non_stop)
remote_notif_process (¬if_client_stop);
- last_sent_signal = siggnal;
+ rs->last_sent_signal = siggnal;
last_sent_step = step;
/* The vCont packet doesn't need to specify threads via Hc. */
break;
case '\0':
- if (last_sent_signal != GDB_SIGNAL_0)
+ if (rs->last_sent_signal != GDB_SIGNAL_0)
{
/* Zero length reply means that we tried 'S' or 'C' and the
remote system doesn't support it. */
target_terminal_ours_for_output ();
printf_filtered
("Can't send signals to this remote system. %s not sent.\n",
- gdb_signal_to_name (last_sent_signal));
- last_sent_signal = GDB_SIGNAL_0;
+ gdb_signal_to_name (rs->last_sent_signal));
+ rs->last_sent_signal = GDB_SIGNAL_0;
target_terminal_inferior ();
strcpy ((char *) buf, last_sent_step ? "s" : "c");