This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix crash on NULL rl_prompt
On Tuesday 30 March 2010 17:22:50, Tom Tromey wrote:
> Pedro> It isn't clear to me your patch isn't doing so, FTR. It could
> Pedro> have been a readline change only visible when using a more recent
> Pedro> system readline, instead of the version bundled with gdb, for
> Pedro> example.
>
> The included readline handles rl_prompt == NULL:
Yes, and doesn't leave rl_display_promp as NULL. But,
how did rl_prompt end up NULL in the first place? Was GDB running in
batch/non-tty stdin, "set editing off", with readline not setup
at all, and tried to enable the TUI/curses anyway? That's
what I meant by masking out a bug.
--
Pedro Alves