mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
Remove unnecessary block from execute_fn_to_ui_file
I noticed that execute_fn_to_ui_file has an extra, unnecessary block. This patch removes it.
This commit is contained in:
parent
ee7af0e710
commit
ac38857074
22
gdb/top.c
22
gdb/top.c
@ -609,20 +609,18 @@ execute_fn_to_ui_file (struct ui_file *file, std::function<void(void)> fn)
|
||||
|
||||
scoped_restore save_async = make_scoped_restore (¤t_ui->async, 0);
|
||||
|
||||
{
|
||||
ui_out_redirect_pop redirect_popper (current_uiout, file);
|
||||
ui_out_redirect_pop redirect_popper (current_uiout, file);
|
||||
|
||||
scoped_restore save_stdout
|
||||
= make_scoped_restore (&gdb_stdout, file);
|
||||
scoped_restore save_stderr
|
||||
= make_scoped_restore (&gdb_stderr, file);
|
||||
scoped_restore save_stdlog
|
||||
= make_scoped_restore (&gdb_stdlog, file);
|
||||
scoped_restore save_stdtarg
|
||||
= make_scoped_restore (&gdb_stdtarg, file);
|
||||
scoped_restore save_stdout
|
||||
= make_scoped_restore (&gdb_stdout, file);
|
||||
scoped_restore save_stderr
|
||||
= make_scoped_restore (&gdb_stderr, file);
|
||||
scoped_restore save_stdlog
|
||||
= make_scoped_restore (&gdb_stdlog, file);
|
||||
scoped_restore save_stdtarg
|
||||
= make_scoped_restore (&gdb_stdtarg, file);
|
||||
|
||||
fn ();
|
||||
}
|
||||
fn ();
|
||||
}
|
||||
|
||||
/* See top.h. */
|
||||
|
Loading…
Reference in New Issue
Block a user