gdb: Use scoped_restore_terminal_state in annotate.c
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 13 Jun 2019 21:13:28 +0000 (22:13 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 14 Jun 2019 14:27:34 +0000 (15:27 +0100)
commit7c39e397aafaea64812f2611b061bdd50f30dce4
treefc2e03944a4fd0851ed307904316d1a1a93a561e
parentf411722cbc18820e5266ec4c2aadd2269eb15447
gdb: Use scoped_restore_terminal_state in annotate.c

In a couple of places in annotate.c we are manually backing up and
restoring the terminal ownership, we could instead make use of
scoped_restore_terminal_state.

gdb/ChangeLog:

* annotate.c (annotate_breakpoints_invalid): Make use of
scoped_restore_terminal_state.
(annotate_frames_invalid): Likewise.
gdb/ChangeLog
gdb/annotate.c