Use gdb::byte_vector in pascal_object_print_value
authorTom Tromey <tom@tromey.com>
Mon, 14 Aug 2017 06:15:33 +0000 (00:15 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 9 Sep 2017 20:10:49 +0000 (14:10 -0600)
commit49663d051c70e1366f9b94f586459a329e9b7053
tree7bdf3526f3abcddcdadee7efe6c156df2af1376c
parent0b868b60c97b13566cefc8c8f1984225b0165eec
Use gdb::byte_vector in pascal_object_print_value

This changes pascal_object_print_value to use a gdb::byte_vector.
This removes a cleanup.  This change also points out how the previous
code had a possible use-after-free bug.

ChangeLog
2017-09-09  Tom Tromey  <tom@tromey.com>

* p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
gdb/ChangeLog
gdb/p-valprint.c