This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Remove param LENGTH from handle_notification
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Wed, 15 Aug 2012 14:45:29 +0800
- Subject: [obv] Remove param LENGTH from handle_notification
Hi,
Parameter 'length' is not used in function 'handle_notification'.
This patch is to remove it and update callers of 'handle_notification'.
I'll check it in.
gdb:
2012-08-15 Yao Qi <yao@codesourcery.com>
* remote.c (handle_notification): Remove parameter 'length'.
(putpkt_binary, getpkt_or_notif_sane_1): Caller update.
---
gdb/remote.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/remote.c b/gdb/remote.c
index a974dc1..3696709 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -6744,7 +6744,7 @@ remote_read_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, int len)
/* Remote notification handler. */
static void
-handle_notification (char *buf, size_t length)
+handle_notification (char *buf)
{
if (strncmp (buf, "Stop:", 5) == 0)
{
@@ -7156,7 +7156,7 @@ putpkt_binary (char *buf, int cnt)
str);
do_cleanups (old_chain);
}
- handle_notification (rs->buf, val);
+ handle_notification (rs->buf);
/* We're in sync now, rewait for the ack. */
tcount = 0;
}
@@ -7534,7 +7534,7 @@ getpkt_or_notif_sane_1 (char **buf, long *sizeof_buf, int forever,
do_cleanups (old_chain);
}
- handle_notification (*buf, val);
+ handle_notification (*buf);
/* Notifications require no acknowledgement. */
--
1.7.7.6