This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: GDB 9 TUI mode broken
- From: Tom Tromey <tom at tromey dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: Tom Tromey <tom at tromey dot com>, midenok at gmail dot com, gdb at sourceware dot org, gdb-patches at sourceware dot org
- Date: Sat, 22 Feb 2020 11:04:59 -0700
- Subject: Re: GDB 9 TUI mode broken
- References: <CAF8BazBni=TZWTc5fbpdHU5bv1eM=24xpML46GCC2u4pFTkSAw@mail.gmail.com> <835zg5m7ib.fsf@gnu.org> <83mu9aj1pj.fsf@gnu.org>
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
Eli> Tom, where's the position update of the status line supposed to be
Eli> handled?
I looked at the gdb-9 branch. In tui_adjust_win_heights, it is code
like this:
locator->resize (1, width,
0, (second_win->origin.y
+ second_win->height + 1));
Eli> And btw, the meaning of the 'locator' object in tui_adjust_win_heights
Eli> is unclear: to which window does it pertain, and what is the
Eli> significance of this line:
You and Simon discussed this down-thread. FWIW the name "locator" has
been used in the source since the beginning; but I also don't
particularly care for it (for a long time I could never remember the
name and had to search to find it whenever I needed it). So, I would
appreciate a rename in the code here as well.
Also, thanks for pointing out that this is called "status" in the docs.
That affects my other series to make user-specified layouts. In that
series I called the window "locator" -- but I'm going to go rename it.
Eli> TUI_CMD_WIN-> origin.y = locator->origin.y + 1;
This is a leftover and should be removed. The resize method is the way
to modify a window's size and position.
This code is all different on git master.
Your patch looks reasonable to me.
Tom