On Wed, 19 Mar 2008 09:10:56 +0100, Jan Kratochvil wrote: > On Wed, 19 Mar 2008 00:17:38 +0100, Daniel Jacobowitz wrote: > > On Tue, Mar 18, 2008 at 11:54:36PM +0100, Jan Kratochvil wrote: > > > Hi, > > > > > > PR 544 des gdb.cp/annota2.exp and gdb.cp/annota3.exp sometimes FAIL with: > > > FAIL: gdb.cp/annota3.exp: annotate-quit (pattern 1) > ... > > Isn't this a bug in GDB, not a bug in the test? > > You are right it is probably better to fix it in readline. The patch was approved by the readline maintainer: On Fri, 21 Mar 2008 19:37:31 +0100, Chet Ramey wrote: > I will add something like your block_sigint/release_sigint changes around > the guts of rl_redisplay. That's the right thing to do anyway. It will > probably not come out as a patch for readline-5.2; you can use your > current patch (though the names will change to _rl_block_sigint and > _rl_release_sigint -- fair warning). It could be probably also coded only in GDB by modifying the function pointer RL_REDISPLAY_FUNCTION instead to a custom wrapper calling RL_REDISPLAY but it would need the SIGINT blocking/handling done in GDB. OK to commit as a readline fork before readline-6 is here? Regards, Jan