Remove make_cleanup_clear_parser_state
authorTom Tromey <tom@tromey.com>
Sun, 13 Aug 2017 16:37:13 +0000 (10:37 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 6 Sep 2017 21:49:30 +0000 (15:49 -0600)
commiteae49211e13efa075d57ab354ea4207666eadc96
tree6cbf8e62f73a076d795c0fb3aacd84487037cd9a
parent73b9be8b5301c4ac056e10c38a47414867ee892a
Remove make_cleanup_clear_parser_state

This removes make_cleanup_clear_parser_state in favor of
scoped_restore.

2017-09-05  Tom Tromey  <tom@tromey.com>

* utils.c (do_clear_parser_state): Remove.
(make_cleanup_clear_parser_state): Remove.
* p-exp.y (pascal_parse): Use scoped_restore.
* m2-exp.y (m2_parse): Use scoped_restore.
* f-exp.y (f_parse): Use scoped_restore.
* d-exp.y (d_parse): Use scoped_restore.
* c-exp.y (c_parse): Use scoped_restore.
* ada-exp.y (ada_parse): Use scoped_restore.
* utils.h (make_cleanup_clear_parser_state): Remove.
gdb/ChangeLog
gdb/ada-exp.y
gdb/c-exp.y
gdb/d-exp.y
gdb/f-exp.y
gdb/go-exp.y
gdb/m2-exp.y
gdb/p-exp.y
gdb/utils.c
gdb/utils.h