Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/1] gdb: disable pagination during inferior creation
@ 2026-07-01  7:03 Stephan Rohr
  2026-07-01  7:03 ` [PATCH 1/1] " Stephan Rohr
  0 siblings, 1 reply; 2+ messages in thread
From: Stephan Rohr @ 2026-07-01  7:03 UTC (permalink / raw)
  To: gdb-patches

From: "Rohr, Stephan" <stephan.rohr@intel.com>

Hello all,

I came accross a bug that triggered an assertion if adding a new
inferior causes pagintion and I hit 'quit' instead of 'Return' or
'continue'.  A minimal reproducer is

  (gdb) set width 10
  (gdb) set height 1
  (gdb) add-inferior -exec <some file>

Send quit when prompted for pagination.  A subsequent command that
switches inferiors, e.g., 'info inferiors', hits an assertion as the
inferior's pspace is not initialized.

Fix this by temporarily disabling pagination when setting up a new
inferior.

I appreciate your feedback.

Thanks
Stephan


Rohr, Stephan (1):
  gdb: disable pagination during inferior creation

 gdb/inferior.c                                |  7 ++
 gdb/remote.c                                  |  6 ++
 .../gdb.base/add-inferior-paginate.exp        | 67 +++++++++++++++++++
 3 files changed, 80 insertions(+)
 create mode 100644 gdb/testsuite/gdb.base/add-inferior-paginate.exp

-- 
2.43.0

Intel Deutschland GmbH

Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-01  7:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01  7:03 [PATCH 0/1] gdb: disable pagination during inferior creation Stephan Rohr
2026-07-01  7:03 ` [PATCH 1/1] " Stephan Rohr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox