[PATCH]: Improve TUI status line
Stephane Carrez
stcarrez@nerim.fr
Sun Sep 1 03:24:00 GMT 2002
Hi!
The TUI displays a status line above the command window to give various
information on the program. This patch improves that by:
- avoiding to display the file name (because it's displayed in window border)
- display the current target (if enough width)
- display the current pid (if enough width)
- use print_address_numeric() to print the PC (instead of an sprintf; so
that it now handles PC masking & 64-bit PCs)
- print a (SingleKey) marker to know we are in this mode.
Committed on mainline.
Note: The documentation says nothing about the status line... I'll try to write something...
Stephane
2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
* tuiStack.c (tui_make_status_line): New function to create the
status line.
(tuiShowLocatorContent): Use it instead of displayableWinContentAt.
* tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix.
(PC_PREFIX): Use upper case.
(SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define.
(MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tui-status.diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020901/4a151bbb/attachment.ksh>
More information about the Gdb-patches
mailing list