Re: [patch] Fix testsuite annotate-quit race (PR 544)

Daniel Jacobowitz
2008-03-25T02:53:55Z

On Mon, Mar 24, 2008 at 09:01:30PM -0400, Chet Ramey wrote:
> Daniel Jacobowitz wrote:
>
>> What I think is happening is that rl_redisplay has some optimizations
>> which cause it not to redisplay. And since we have a custom function
>> installed readline isn't calling the alternate hooks that force
>> display. So rl_redisplay does not actually meet the interface
>> associated with rl_redisplay_function despite being its default
>> value. Nasty.
>
> That's interesting, if true. Can anyone add detail confirming this?

Sure. There's a check "rl_redisplay_function == rl_redisplay" in the
readline source, and another in the definition of
CUSTOM_REDISPLAY_FUNCTION. So that function is inherently special.

From what Nick and Jan have found, stty -echo and then running GDB
with a custom redisplay function that just calls rl_redisplay
will not display the GDB prompt.

--
Daniel Jacobowitz
CodeSourcery