+2013-08-14 Tom Tromey <tromey@redhat.com>
+
+ * remote.c (struct remote_state) <last_sent_step>:
+ New field.
+ (last_sent_step): Remove.
+ (remote_resume, remote_wait_as): Update.
+
2013-08-14 Tom Tromey <tromey@redhat.com>
* remote.c (struct remote_state) <last_sent_signal>:
char *last_program_signals_packet;
enum gdb_signal last_sent_signal;
+
+ int last_sent_step;
};
/* Private data that we'll store in (struct thread_info)->private. */
/* Tell the remote machine to resume. */
-static int last_sent_step;
-
static void
remote_resume (struct target_ops *ops,
ptid_t ptid, int step, enum gdb_signal siggnal)
remote_notif_process (¬if_client_stop);
rs->last_sent_signal = siggnal;
- last_sent_step = step;
+ rs->last_sent_step = step;
/* The vCont packet doesn't need to specify threads via Hc. */
/* No reverse support (yet) for vCont. */
rs->last_sent_signal = GDB_SIGNAL_0;
target_terminal_inferior ();
- strcpy ((char *) buf, last_sent_step ? "s" : "c");
+ strcpy ((char *) buf, rs->last_sent_step ? "s" : "c");
putpkt ((char *) buf);
/* We just told the target to resume, so a stop reply is in