[PATCHv2,17,0/2] Fixes for scoped_gdb_ttystate class

Message ID cover.1765615940.git.aburgess@redhat.com
Headers
Series Fixes for scoped_gdb_ttystate class |

Message

Andrew Burgess Dec. 13, 2025, 8:53 a.m. UTC
  In v2:

  - New first patch, renames scoped_gdb_ttystate and makes it non-copyable.

  - Second patch is update of v1.  No longer uses std::optional,
    instead check for NULL.  Some updates to comments to match.

Thanks,
Andrew

---

Andrew Burgess (2):
  gdb: rename scoped_gdb_tty_state, and make it non-copyable
  gdb: fix crash from 'shell' when GDB has no terminal

 gdb/cli/cli-cmds.c                           |  2 +-
 gdb/inflow.c                                 | 12 ++--
 gdb/ser-unix.c                               |  1 +
 gdb/serial.h                                 |  3 +-
 gdb/terminal.h                               | 15 +++--
 gdb/testsuite/gdb.base/shell-no-terminal.exp | 60 ++++++++++++++++++++
 6 files changed, 82 insertions(+), 11 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/shell-no-terminal.exp


base-commit: 5f69c00a6e0704627ab1b529d3a2fcdf244da3e8