Bug 14584 - Cannot scroll the cmd window in TUI mode
Summary: Cannot scroll the cmd window in TUI mode
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: tui (show other bugs)
Version: 7.4
: P2 normal
Target Milestone: ---
Assignee: patrick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-14 19:10 UTC by Byron Hawkins
Modified: 2015-07-03 22:42 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Byron Hawkins 2012-09-14 19:10:49 UTC
It is not possible to scroll up in the CMD window in TUI mode. Only the SRC window will scroll. Setting focus to the CMD window does not change the problem. All of the following keys are ignored: {PgUp,PgDn,<,>,+,-}, and the up and down arrows traverse the command history. This makes TUI mode substantially useless, because it is not possible to see the output of past values. One can enable logging and tail the log, but the log fails to report the commands from which the output was generated (and therefore the log is overall quite useless). 

The debugger is only usable when all past session information can be seen by scrolling back to it (and he logging output is only usable when it contains both the commands and the resulting output).

GDB 7.4-2012.04 
Ubuntu 12.04
  kernel version 3.2.0-29-generic
x86 PC

Thanks for your help with this.
Comment 1 Jan Kratochvil 2012-09-14 19:36:26 UTC
(In reply to comment #0)
> but the log fails to report the commands from which the output was generated

set trace-commands on


Otherwise you are right that readline library does not provide any real terminal, it cares only about the current line.  GDB uses 'set pagination on' so that no output is accidentally lost but what is scrolled away is really lost. Maybe you would prefer some other front end besides TUI:
  http://sourceware.org/gdb/wiki/GDB_Front_Ends
Comment 2 Byron Hawkins 2012-09-14 20:07:07 UTC
Actually with "set trace-commands on" I can just tail the log. (I searched for a long time trying to find such a setting and did not come up with anything.) The graphical interfaces seem to always be missing essential things, like printing assembly at an arbitrary address, so I will use TUI with logging.

It still seems unfortunate that TUI mode is so convenient, yet destroys the output. If it would just work the same as GDB without TUI mode, it would be great.
Comment 3 Byron Hawkins 2012-09-14 20:07:07 UTC
Actually with "set trace-commands on" I can just tail the log. (I searched for a long time trying to find such a setting and did not come up with anything.) The graphical interfaces seem to always be missing essential things, like printing assembly at an arbitrary address, so I will use TUI with logging.

It still seems unfortunate that TUI mode is so convenient, yet destroys the output. If it would just work the same as GDB without TUI mode, it would be great.
Comment 4 Byron Hawkins 2012-09-14 20:07:58 UTC
Actually with "set trace-commands on" I can just tail the log. (I searched for a long time trying to find such a setting and did not come up with anything.) The graphical interfaces seem to always be missing essential things, like printing assembly at an arbitrary address, so I will use TUI with logging.

It still seems unfortunate that TUI mode is so convenient, yet destroys the output. If it would just work the same as GDB without TUI mode, it would be great.