Simplify write_inferior_memory
authorTom Tromey <tromey@adacore.com>
Wed, 14 Aug 2019 15:11:28 +0000 (09:11 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 15 Aug 2019 13:42:21 +0000 (07:42 -0600)
commitc6778d00df0fbc7fe53801717eb934a5d7b9674a
tree97a12845481ffc66f619df16df190856b2e2a988
parent9177214a228f7d0eb8543725287a6163993fbebf
Simplify write_inferior_memory

gdbserver's write_inferior_memory uses a static variable to avoid
memory leaks, and has a comment referring to the lack of cleanups.
This patch removes this comment and the code in favor of a
straightforward use of std::vector.

gdb/gdbserver/ChangeLog
2019-08-15  Tom Tromey  <tromey@adacore.com>

* target.c (write_inferior_memory): Use std::vector.
gdb/gdbserver/ChangeLog
gdb/gdbserver/target.c