This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 02/16] make remote_protocol_features "const"
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Fri, 28 Jun 2013 11:40:15 -0600
- Subject: [PATCH 02/16] make remote_protocol_features "const"
- References: <1372441229-305-1-git-send-email-tromey at redhat dot com>
This is a trivial patch to make remote_protocol_features "const".
* remote.c (remote_protocol_features): Now const.
---
gdb/remote.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/remote.c b/gdb/remote.c
index e40dc4e..430ff2b 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3968,7 +3968,7 @@ remote_augmented_libraries_svr4_read_feature
rs->augmented_libraries_svr4_read = (support == PACKET_ENABLE);
}
-static struct protocol_feature remote_protocol_features[] = {
+static const struct protocol_feature remote_protocol_features[] = {
{ "PacketSize", PACKET_DISABLE, remote_packet_size, -1 },
{ "qXfer:auxv:read", PACKET_DISABLE, remote_supported_packet,
PACKET_qXfer_auxv },
--
1.8.1.4