Re: GDB 8.2.90 available for testing

Tom Tromey
2019-03-07T22:44:54Z

Pedro> #1 - Run a program to main, so that the source window displays the source.

Pedro> a) Press the "up" key. That manages to actually move the cursor to the line above.

I could not reproduce this.

Some of the odd behavior I do see seems to predate any of these changes.
With the system gdb on Fedora 28 and 29 I can:

(gdb) tui enable
(gdb) print 23
$1 = 23
(gdb) ... press Enter a a few times

Here the subsequent prompts aren't seen and the output just looks like

$2 = 23
$3 = 23
...

With git master this is worse and the output looks like:

(gdb) print 23
$1 = 23
(gdb)
(gdb) $2 = 23

(gdb) $3 = 23

(gdb) $4 = 23

This I tracked down to the "nonl" patch.
I haven't yet debugged that one seriously.

Pedro> #3 - Start gdb with a program, and enable the TUI. The source window
Pedro> displays "No Source Available". Now type "list" in the TUI console.
Pedro> I just tried it now, and the first time, it printed the source name in
Pedro> the console window and didn't update/display the source in the source window.
Pedro> The second time, it displayed the source in the source window, and the third
Pedro> time it crashed GDB with an uncaught exception:

I will look into the crash, but note that the "list" command is pretty
broken in the TUI.

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

So it isn't super surprising to me that it doesn't work correctly in all
cases.

Tom