2019-01-14 Tom Tromey <tom@tromey.com>
+ * remote-notif.c (handle_notification, remote_notif_ack)
+ (remote_notif_parse): Make "buf" const.
+ * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
+ const.
+ (remote_notif_parse, remote_notif_ack, handle_notification):
+ Likewise.
+ * remote.c (remote_notif_stop_parse): Make "buf" const.
+ (remote_target::remote_parse_stop_reply): Make "buf" const.
+ (remote_notif_stop_ack): Make "buf" const.
+
+2019-01-14 Tom Tromey <tom@tromey.com>
+
* remote.c (remote_console_output): Make parameter const.
2019-01-14 Tom Tromey <tom@tromey.com>
void
remote_notif_ack (remote_target *remote,
- struct notif_client *nc, char *buf)
+ struct notif_client *nc, const char *buf)
{
struct notif_event *event = nc->alloc_event ();
struct cleanup *old_chain
struct notif_event *
remote_notif_parse (remote_target *remote,
- struct notif_client *nc, char *buf)
+ struct notif_client *nc, const char *buf)
{
struct notif_event *event = nc->alloc_event ();
struct cleanup *old_chain
update STATE. */
void
-handle_notification (struct remote_notif_state *state, char *buf)
+handle_notification (struct remote_notif_state *state, const char *buf)
{
struct notif_client *nc;
size_t i;
function may throw exception if contents in BUF is not the
expected event. */
void (*parse) (remote_target *remote,
- struct notif_client *self, char *buf,
+ struct notif_client *self, const char *buf,
struct notif_event *event);
/* Send field <ack_command> to remote, and do some checking. If
something wrong, throw an exception. */
void (*ack) (remote_target *remote,
- struct notif_client *self, char *buf,
+ struct notif_client *self, const char *buf,
struct notif_event *event);
/* Check this notification client can get pending events in
struct notif_event *pending_event[REMOTE_NOTIF_LAST];
};
-void remote_notif_ack (remote_target *remote, notif_client *nc, char *buf);
+void remote_notif_ack (remote_target *remote, notif_client *nc,
+ const char *buf);
struct notif_event *remote_notif_parse (remote_target *remote,
notif_client *nc,
- char *buf);
+ const char *buf);
void notif_event_xfree (struct notif_event *event);
void handle_notification (struct remote_notif_state *notif_state,
- char *buf);
+ const char *buf);
void remote_notif_process (struct remote_notif_state *state,
struct notif_client *except);
struct stop_reply *remote_notif_remove_queued_reply (ptid_t ptid);
struct stop_reply *queued_stop_reply (ptid_t ptid);
int peek_stop_reply (ptid_t ptid);
- void remote_parse_stop_reply (char *buf, stop_reply *event);
+ void remote_parse_stop_reply (const char *buf, stop_reply *event);
void remote_stop_ns (ptid_t ptid);
void remote_interrupt_as ();
void
remote_notif_stop_parse (remote_target *remote,
- struct notif_client *self, char *buf,
+ struct notif_client *self, const char *buf,
struct notif_event *event)
{
remote->remote_parse_stop_reply (buf, (struct stop_reply *) event);
static void
remote_notif_stop_ack (remote_target *remote,
- struct notif_client *self, char *buf,
+ struct notif_client *self, const char *buf,
struct notif_event *event)
{
struct stop_reply *stop_reply = (struct stop_reply *) event;
result is stored in EVENT, or throws an error. */
void
-remote_target::remote_parse_stop_reply (char *buf, stop_reply *event)
+remote_target::remote_parse_stop_reply (const char *buf, stop_reply *event)
{
remote_arch_state *rsa = NULL;
ULONGEST addr;