Allocate bpstats with new
authorTom Tromey <tom@tromey.com>
Tue, 22 Aug 2017 03:08:59 +0000 (21:08 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 21 Sep 2017 04:05:14 +0000 (22:05 -0600)
commit04afa70c8e1c931dd44db76eb9f0ddd4949ed00c
tree94b8b178506c22d8c1a839bc6a2d100a09b8e900
parentf5b358c8aa564c58b0a3201b82cc782124d80bb9
Allocate bpstats with new

This changes struct bpstats to be allocated with new and freed with
delete, adding constructors and a destructor in the process.  This
allows the removal of one cleanup and clears the way for more to
follow.

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

* breakpoint.c (~bpstats): Rename from bpstat_free.  Update.
(bpstat_clear): Use delete.
(bpstats): New constructors.
(bpstat_copy, bpstat_stop_status): Use new.
(dprintf_after_condition_true): Update.
* breakpoint.h (bpstats::bpstats): Add constructors.
(bpstats::~bpstats): Add destructor.
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
This page took 0.025453 seconds and 4 git commands to generate.