• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisionf98cd059076c64cdb94b9743c544458b2b91716c (tree)
Time2015-10-30 02:43:01
AuthorSimon Marchi <simon.marchi@poly...>
CommiterSimon Marchi

Log Message

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]

&out_len, PBUFSIZ - 2) + 1;

gdb/gdbserver/ChangeLog:

* server.c (write_qxfer_response): Change type of data to
gdb_byte *.

Change Summary

Incremental Difference

--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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+
16 2015-10-29 Pedro Alves <palves@redhat.com>
27
38 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
--- 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)
385385 to as much of DATA/LEN as we could fit. IS_MORE controls
386386 the first character of the response. */
387387 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)
389389 {
390390 int out_len;
391391