Remove VEC from breakpoint
authorTom Tromey <tom@tromey.com>
Tue, 5 Jun 2018 16:22:01 +0000 (10:22 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 4 Jul 2018 05:00:49 +0000 (23:00 -0600)
commitf51e0e20bd303a9b366084ac719db10978402713
tree021c92b289956ebdb0ed96266e5bddb6bf86e3a0
parent9b960ba18c83e3f9aad16fe8bf845f5c469712bd
Remove VEC from breakpoint

This removes a use of VEC from breakpoint.h, also removing the
now-unnecessary breakpoint_p typedef.

This patch fixes a latent memory leak in
find_matching_tracepoint_location, which neglected to free the vector
returned by all_tracepoints.

Tested by the buildbot.

gdb/ChangeLog
2018-07-03  Tom Tromey  <tom@tromey.com>

* tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
(stop_tracing, tstatus_command)
(find_matching_tracepoint_location, merge_uploaded_tracepoints)
(print_one_static_tracepoint_marker): Update.
* breakpoint.c (static_tracepoints_here, all_tracepoints): Return
std::vector.
* breakpoint.h (breakpoint_p): Remove typedef.  Don't declare
VEC.
(all_tracepoints, static_tracepoints_here): Return std::vector.
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/tracepoint.c