]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
gdb: rename scoped_gdb_tty_state, and make it non-copyable
authorAndrew Burgess <aburgess@redhat.com>
Sat, 13 Dec 2025 08:36:01 +0000 (08:36 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 16 Dec 2025 14:01:42 +0000 (14:01 +0000)
commit2e7575cbeb9abcb47be84f82c33b5ce48b8ed898
treee1ec38550f2293f2388090aca8f1da10e645b1e6
parent9529188a184f69d804c9c1c974c51d3b3460e676
gdb: rename scoped_gdb_tty_state, and make it non-copyable

The scoped_gdb_tty_state class seems misnamed.  For save/restore type
classes the pattern in GDB is usually scoped_restore_<whatever>, so
lets rename this to scoped_restore_tty_state.  I dropped the 'gdb' part
of the name as the underlying functions being called are
serial_get_tty_state and serial_set_tty_state, so the new name
matches (I think) what's actually being called.

I've also made the class non-copyable like other scoped_restore_
classes.

There should be no user visible changes after this commit.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/cli/cli-cmds.c
gdb/inflow.c
gdb/terminal.h