public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/32623] New: TUI console window doesn't update while inferior is running
@ 2025-01-30 16:48 ssbssa at sourceware dot org
  2025-02-08 19:45 ` [Bug tui/32623] " aburgess at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ssbssa at sourceware dot org @ 2025-01-30 16:48 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 32623
           Summary: TUI console window doesn't update while inferior is
                    running
           Product: gdb
           Version: 16.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tui
          Assignee: unassigned at sourceware dot org
          Reporter: ssbssa at sourceware dot org
  Target Milestone: ---

Using this test program:
```
#include <thread>

void pause()
{
  std::this_thread::sleep_for(std::chrono::seconds(3));
}

int main()
{
  std::thread thread(pause);
  thread.join();
}
```

Without TUI mode, while the program is running, it looks something like this:
```
(gdb) run
Starting program: C:\src\tests\sleeper.exe
[New Thread 4708.0x2b74]
```

But in TUI mode, there is nothing visible after `run`:
```
(gdb) run
```

And once the program finishes, everything appears:
```
Starting program: C:\src\tests\sleeper.exe
[New Thread 9748.0x22a8]
[Thread 9748.0x22a8 exited with code 0]
[Inferior 1 (process 9748) exited normally]
(gdb)
```

I think it started with [1], because inside tui_wrefresh it changed wrefresh
to wnoutrefresh, so tui_file::flush no longer flushes to the screen.


[1]
https://sourceware.org/cgit/binutils-gdb/commit/?id=d3acf3d759d085df544687b39a0c2900d3117bf7

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

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

end of thread, other threads:[~2025-02-08 20:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-30 16:48 [Bug tui/32623] New: TUI console window doesn't update while inferior is running ssbssa at sourceware dot org
2025-02-08 19:45 ` [Bug tui/32623] " aburgess at redhat dot com
2025-02-08 19:48 ` cvs-commit at gcc dot gnu.org
2025-02-08 20:11 ` cvs-commit at gcc dot gnu.org
2025-02-08 20:13 ` 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).