[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ncurses 20170401 (+) SEGV gdb 7.12.1 in TUI mode on MinGW-w64
From: |
Thomas Dickey |
Subject: |
Re: ncurses 20170401 (+) SEGV gdb 7.12.1 in TUI mode on MinGW-w64 |
Date: |
Tue, 13 Jun 2017 05:24:43 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Jun 13, 2017 at 05:11:08AM +0000, Allen Hewes wrote:
> It's because termp.type.type_names is empty (0x0):
...
this looks like something I recall fixing, but don't see it immediately
in the change-log.
> I don't know enough of ncurses to know why the member
> termp->type.term_names would be empty on Windows. But setting the
> breakpoint and assigning a value does allow gdb --tui to run. I will
> make a local patch to check gdb further.
offhand: type_names is part of TERMINAL; as part of my ongoing changes,
I cloned TERMINAL as TERMINAL2 for the "real" information and generate
the content of TERMINAL from that.
With MinGW, you have to use an option (--enable-term-driver) which uses
different code in which it seems I overlooked the fix mentioned above.
> On another note, I rebuilt ncurses with --with-trace and I didn't get
> any output or a trace file. I set NCURSES_TRACE=1. I was expecting to
> find a file called trace.log in the current directory.
with NCURSES_TRACE=1, you'd see nothing:
#define TRACE_TIMES 0x0001 /* trace user and system times of updates */
since that's used only in doupdate (executed when repainting the screen)
and that would be "trace", not "trace.log"
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature