gdbserver/proc-service.c: bogus return value conversion
authorPedro Alves <palves@redhat.com>
Thu, 27 Aug 2015 12:37:01 +0000 (13:37 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 27 Aug 2015 12:37:01 +0000 (13:37 +0100)
commitab29043019ae2aaebe686d15aa460780280b6f66
tree7a4433affb8f9fdd1bc09bc9e56e00c6094f22d8
parent14d88147787588b1473da05adf95980931fd3485
gdbserver/proc-service.c: bogus return value conversion

Building in C++ mode shows:

   int write_inferior_memory (CORE_ADDR memaddr, const unsigned char *myaddr,
       ^
  src/gdb/gdbserver/proc-service.c:93:64: error: invalid conversion from ‘int’ to ‘ps_err_e’ [-fpermissive]
     return write_inferior_memory ((unsigned long) addr, buf, size);
  ^

It only works today by accident, write_inferior_memory does not return
a ps_err_e.

gdb/gdbserver/ChangeLog:
2015-08-27  Pedro Alves  <palves@redhat.com>

* proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
gdb/gdbserver/ChangeLog
gdb/gdbserver/proc-service.c