diff options
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/target.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index f536686..adac3e8 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,9 @@ 2019-08-15 Tom Tromey <tromey@adacore.com> + * target.c (target_write_memory): Use gdb::byte_vector. + +2019-08-15 Tom Tromey <tromey@adacore.com> + * tracepoint.c (write_inferior_data_pointer) (write_inferior_integer, write_inferior_int8) (write_inferior_uinteger, m_tracepoint_action_download) diff --git a/gdb/gdbserver/target.c b/gdb/gdbserver/target.c index 6f6b448..0b45b6c 100644 --- a/gdb/gdbserver/target.c +++ b/gdb/gdbserver/target.c @@ -20,6 +20,7 @@ #include "server.h" #include "tracepoint.h" +#include "gdbsupport/byte-vector.h" struct target_ops *the_target; @@ -154,7 +155,7 @@ target_write_memory (CORE_ADDR memaddr, const unsigned char *myaddr, { /* Make a copy of the data because check_mem_write may need to update it. */ - std::vector<unsigned char> buffer (myaddr, myaddr + len); + gdb::byte_vector buffer (myaddr, myaddr + len); check_mem_write (memaddr, buffer.data (), myaddr, len); return (*the_target->write_memory) (memaddr, buffer.data (), len); } |