diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-06 13:30:00 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-14 17:32:24 -0700 |
commit | bb27775165d9b992120371383012404e213b1981 (patch) | |
tree | 61d3ff87dfb04c5ea6d43f20f7bda37987e9fd12 /gdb/remote.c | |
parent | 05be00a884850c5fe314004c9b91609f480308f6 (diff) | |
download | gdb-bb27775165d9b992120371383012404e213b1981.zip gdb-bb27775165d9b992120371383012404e213b1981.tar.gz gdb-bb27775165d9b992120371383012404e213b1981.tar.bz2 |
Constify some remote-notif functions
This constifies the "buf" arguments to various remote-notif functions
and updates the users.
gdb/ChangeLog
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.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 6b5870a..949c69c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -768,7 +768,7 @@ public: /* Remote specific methods. */ 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 (); @@ -6864,7 +6864,7 @@ remote_target::stop_reply_queue_length () 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); @@ -6872,7 +6872,7 @@ remote_notif_stop_parse (remote_target *remote, 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; @@ -7201,7 +7201,7 @@ strprefix (const char *p, const char *pend, const char *prefix) 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; |