Don't paginate "new thread" events

Pedro Alves pedro@codesourcery.com
Wed Mar 12 01:49:00 GMT 2008


New thread events printing ("New Thread 0x40077950 (LWP 13229)]") was
recently centralised in add_thread.  Unfortunatelly it brought with
it a behaviour change.  Before, we wouldn't paginate when these
events filled the terminal screen, and now we do.  This is quite bad,
as gdb now waits for use input to proceed.  Also, since add_thread
doesn't target_terminal_ours, gdb just stops due to SIGTTOU
when the pagination kicks in ("want to continue y or n" prompt).  User
now has to fg to restore it...

Easilly reproduced by running manythreads.exp manually.

This patch restores the old behaviour.

OK?

-- 
Pedro Alves
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dont_paginate_threads.diff
Type: text/x-diff
Size: 689 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080312/31fe5e20/attachment.bin>


More information about the Gdb-patches mailing list