Remove release_stop_context_cleanup
authorTom Tromey <tom@tromey.com>
Thu, 14 Jun 2018 23:54:04 +0000 (16:54 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 17 Sep 2018 06:42:19 +0000 (00:42 -0600)
commit2d844eaf9c60832756cff80af67e16969c0e11fc
tree62c7b589e0087f434e28542af33b387a1dac2ae3
parentc7c4d3fa80d2fef74fd4bd6b1e22c0399b19455f
Remove release_stop_context_cleanup

This removes release_stop_context_cleanup, replacing it with a
stop_context destructor.  It also mildly c++-ifies this struct.

gdb/ChangeLog
2018-09-17  Tom Tromey  <tom@tromey.com>

* infrun.c (struct stop_context): Declare constructor,
destructor, "changed" method.
(stop_context::stop_context): Rename from save_stop_context.
(stop_context::~stop_context): Rename from
release_stop_context_cleanup.
(normal_stop): Update.
(stop_context::changed): Rename from stop_context_changed.  Return
bool.
gdb/ChangeLog
gdb/infrun.c