diff options
author | Tom de Vries <tdevries@suse.de> | 2023-12-08 17:36:35 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-12-08 17:36:35 +0100 |
commit | ee1e9bbb5139d766d70cfa036979cec73a1223b7 (patch) | |
tree | 1ece1cc9745f4b7c440581531d8a4d61dc514d95 /gdb/testsuite/gdb.python/py-pp-cast.py | |
parent | 44671f3f7f4c6435e7a639ad2215629f4e1ea8a7 (diff) | |
download | binutils-ee1e9bbb5139d766d70cfa036979cec73a1223b7.zip binutils-ee1e9bbb5139d766d70cfa036979cec73a1223b7.tar.gz binutils-ee1e9bbb5139d766d70cfa036979cec73a1223b7.tar.bz2 |
[gdb/tui] Fix displaying main after resizing
A TUI src window is displaying either:
- the source for the current frame,
- the source for main, or
- the string "[ No Source Available ]".
Since commit 03893ce67b5 ("[gdb/tui] Fix resizing of terminal to 1 or 2 lines")
we're able to resize the TUI to 1 line without crashing.
I noticed that if TUI is displaying main, and we resize to 1 line (destroying
the src window) and then back to a larger terminal (reconstructing the src
window), the TUI displays "[ No Source Available ]" instead of main.
Fix this by moving the responsibility for showing main from tui_enable to
tui_source_window_base::rerender.
Tested on x86_64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/gdb.python/py-pp-cast.py')
0 files changed, 0 insertions, 0 deletions