Remove prepare_re_set_context
authorTom Tromey <tom@tromey.com>
Sun, 8 Oct 2017 20:03:41 +0000 (14:03 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 11 Oct 2017 21:46:31 +0000 (15:46 -0600)
commitfdf44873ec6e37417bf8c8ce33bb9b1a6b4ddcef
tree9d59f73575845d954d6a35ca8b1216dab62076dd
parent81b1e71c4a1370c77ad1d462e1a761402d48b1c0
Remove prepare_re_set_context

prepare_re_set_context returns a null cleanup and doesn't seem
generally useful.  This patch removes it plus a few more cleanups; and
changes breakpoint_re_set to use scoped_restore rather than its own
manual mechanism.

2017-10-11  Tom Tromey  <tom@tromey.com>

* breakpoint.c (prepare_re_set_context): Remove.
(breakpoint_re_set_one): Update.  Don't use cleanups.
(breakpoint_re_set): Use scoped_restore, std::string, and
scoped_restore_current_language.
gdb/ChangeLog
gdb/breakpoint.c