Remove a VEC from record-full.c
authorTom Tromey <tom@tromey.com>
Thu, 7 Jun 2018 23:22:49 +0000 (17:22 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 11 Jun 2018 04:12:32 +0000 (22:12 -0600)
commit219605fd6adadadfd40234e39254077e044741d0
treedbe1e44ac2bc80a38d485f3d5d897ce0af0bdfdb
parent71b73764977a3895b0dda3e7260eece7a8d3e60c
Remove a VEC from record-full.c

This replaces a VEC in record-full.c with a std::vector.  This version
of the patch also catches a memory leak in the original code noticed
by Simon.

Tested by the buildbot.

gdb/ChangeLog
2018-06-10  Tom Tromey  <tom@tromey.com>

* record-full.c (record_full_breakpoint_p): Remove typedef.  Don't
declare VEC.  Add constructor.
<in_target_beneath>: Now bool.
(record_full_breakpoints): Now a std::vector, static.
(record_full_sync_record_breakpoints)
(record_full_init_record_breakpoints)
(record_full_target::insert_breakpoint)
(record_full_target::remove_breakpoint): Update.  Don't use XNEW.
gdb/ChangeLog
gdb/record-full.c