This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH c++ 3/6] Change type of write_qxfer_response parameter
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Thu, 29 Oct 2015 09:02:44 -0400
- Subject: [PATCH c++ 3/6] Change type of write_qxfer_response parameter
- Authentication-results: sourceware.org; auth=none
- References: <1446123767-25046-1-git-send-email-simon dot marchi at polymtl dot ca>
Fixes:
/home/simark/src/binutils-gdb/gdb/gdbserver/server.c: In function âint write_qxfer_response(char*, const void*, int, int)â:
/home/simark/src/binutils-gdb/gdb/gdbserver/server.c:398:32: error: invalid conversion from âconst void*â to âconst gdb_byte* {aka const unsigned char*}â [-fpermissive]
&out_len, PBUFSIZ - 2) + 1;
^
gdb/gdbserver/ChangeLog:
* server.c (write_qxfer_response): Change type of data to
gdb_byte *.
---
gdb/gdbserver/server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index ad6626e..1312760 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -385,7 +385,7 @@ decode_xfer (char *buf, char **object, char **rw, char **annex, char **offset)
to as much of DATA/LEN as we could fit. IS_MORE controls
the first character of the response. */
static int
-write_qxfer_response (char *buf, const void *data, int len, int is_more)
+write_qxfer_response (char *buf, const gdb_byte *data, int len, int is_more)
{
int out_len;
--
2.6.1