mi_load_progress: Restore current_uiout using a scoped_restore
authorSimon Marchi <simon.marchi@ericsson.com>
Sat, 16 Sep 2017 11:45:56 +0000 (13:45 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Sat, 16 Sep 2017 11:45:56 +0000 (13:45 +0200)
commit5846367a24e24f334077ceb7f7389acbd072b11a
tree854f0bf70feb00e461b427953085c3b037158974
parentbd77e8ff276864d6622f2433b8a499bf4332fa65
mi_load_progress: Restore current_uiout using a scoped_restore

Simply use a scoped_restore instead of manually saving and restoring
current_uiout.

gdb/ChangeLog:

* mi/mi-main.c (mi_load_progress): Restore current_uiout using a
scoped_restore.
gdb/ChangeLog
gdb/mi/mi-main.c