public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/30502] New: [gdb/tui] output window
@ 2023-05-31 23:35 vries at gcc dot gnu.org
  2023-06-01  9:43 ` [Bug tui/30502] " aburgess at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2023-05-31 23:35 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30502

            Bug ID: 30502
           Summary: [gdb/tui] output window
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: tui
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Created attachment 14910
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14910&action=edit
WIP patch

I've written a WIP patch on top of
https://sourceware.org/pipermail/gdb-patches/2023-May/199917.html .

The rough idea is as follows.  We add an output window, so we have:
...
┌─hello.c───────────────────────────────────────────────────┐
│       12   printf ("hello10\n");                          │
│  >    13   printf ("hello11\n");                          │
│       14   printf ("hello12\n");                          │
│       15   printf ("hello13\n");                          │
│       16   printf ("hello14\n");                          │
└───────────────────────────────────────────────────────────┘
native process 877 In: main               L13   PC: 0x40056f 
Temporary breakpoint 1, main () at hello.c:3
(gdb) n
(gdb) 
hello8
hello9
hello10

...

That is, from top to bottom:
- src window
- status window
- cmd window
- output window
...

This fixes the problem that:
...
(gdb) next
...
followed by <enter> produces very briefly:
...
(gdb) next
hello
...
before being overwritten by the following prompt:
...
(gdb) next
(gdb) 
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug tui/30502] [gdb/tui] output window
  2023-05-31 23:35 [Bug tui/30502] New: [gdb/tui] output window vries at gcc dot gnu.org
@ 2023-06-01  9:43 ` aburgess at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: aburgess at redhat dot com @ 2023-06-01  9:43 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30502

Andrew Burgess <aburgess at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aburgess at redhat dot com

--- Comment #1 from Andrew Burgess <aburgess at redhat dot com> ---
Adding this link just so there's a record.  Pedro made a start on having the
inferior always write into a pseudo tty in this series:

https://inbox.sourceware.org/gdb-patches/20210614212410.1612666-1-pedro@palves.net/

This doesn't try to address the TUI overwrite problem, but in theory should be
the basis for allowing GDB to keep the inferior output and TUI prompts in the
same window while avoiding the overwrite issue.

That said having the option of a separate output window would be a nice choice,
but I think it should be a choice.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2023-06-01  9:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-31 23:35 [Bug tui/30502] New: [gdb/tui] output window vries at gcc dot gnu.org
2023-06-01  9:43 ` [Bug tui/30502] " aburgess at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).