GNU Binutils with patches for OS216
Revisión | f98cd059076c64cdb94b9743c544458b2b91716c (tree) |
---|---|
Tiempo | 2015-10-30 02:43:01 |
Autor | Simon Marchi <simon.marchi@poly...> |
Commiter | Simon Marchi |
Change type of write_qxfer_response parameter
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]
gdb/gdbserver/ChangeLog:
* server.c (write_qxfer_response): Change type of data to
gdb_byte *.
@@ -1,3 +1,8 @@ | ||
1 | +2015-10-29 Simon Marchi <simon.marchi@polymtl.ca> | |
2 | + | |
3 | + * server.c (write_qxfer_response): Change type of data to | |
4 | + gdb_byte *. | |
5 | + | |
1 | 6 | 2015-10-29 Pedro Alves <palves@redhat.com> |
2 | 7 | |
3 | 8 | * mem-break.c (Z_packet_to_bkpt_type): Add cast. |
@@ -385,7 +385,7 @@ decode_xfer (char *buf, char **object, char **rw, char **annex, char **offset) | ||
385 | 385 | to as much of DATA/LEN as we could fit. IS_MORE controls |
386 | 386 | the first character of the response. */ |
387 | 387 | static int |
388 | -write_qxfer_response (char *buf, const void *data, int len, int is_more) | |
388 | +write_qxfer_response (char *buf, const gdb_byte *data, int len, int is_more) | |
389 | 389 | { |
390 | 390 | int out_len; |
391 | 391 |