This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: GDB 8.2.90 available for testing
- From: Tom Tromey <tom at tromey dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, Joel Brobecker <brobecker at adacore dot com>, gdb-patches at sourceware dot org
- Date: Thu, 07 Mar 2019 15:44:46 -0700
- Subject: Re: GDB 8.2.90 available for testing
- References: <20190227055112.4A5E782D7B@joel.gnat.com> <835zt3kbjf.fsf@gnu.org> <a1b789a8-160c-824f-592a-f7b59c7072ff@redhat.com>
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