[RFA] Remove a VEC from record-full.c
Simon Marchi
simon.marchi@polymtl.ca
Sat Jun 9 12:11:00 GMT 2018
On 2018-06-07 22:56, Tom Tromey wrote:
> @@ -1830,10 +1820,7 @@ record_full_target::remove_breakpoint (struct
> gdbarch *gdbarch,
> }
>
> if (reason == REMOVE_BREAKPOINT)
> - {
> - VEC_unordered_remove (record_full_breakpoint_p,
> - record_full_breakpoints, ix);
> - }
> + record_full_breakpoints.erase (iter);
> return 0;
You can use one of the overloads of unordered_remove in
common/gdb_vecs.h to try to preserve the exact same behavior as with the
VEC.
Simon
More information about the Gdb-patches
mailing list