From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9907 invoked by alias); 2 Aug 2005 11:51:15 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9886 invoked by uid 22791); 2 Aug 2005 11:51:08 -0000 Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 02 Aug 2005 11:51:08 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 12F8F1D08A; Tue, 2 Aug 2005 13:51:06 +0200 (CEST) From: Andreas Schwab To: Klaus Zeitler Cc: gdb@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: gdb output problems when run in shell (bash or ksh) References: X-Yow: Talking Pinhead Blues: Oh, I LOST my ``HELLO KITTY'' DOLL and I get BAD reception on channel TWENTY-SIX!! Th'HOSTESS FACTORY is closin' down and I just heard ZASU PITTS has been DEAD for YEARS.. (sniff) My PLATFORM SHOE collection was CHEWED up by th'dog, ALEXANDER HAIG won't let me take a SHOWER 'til Easter.. (snurf) So I went to the kitchen, but WALNUT PANELING whup me upside mah HAID!! (on no, no, no.. Heh, heh) Date: Tue, 02 Aug 2005 11:51:00 -0000 In-Reply-To: (Klaus Zeitler's message of "Tue, 02 Aug 2005 11:03:52 +0200") Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-08/txt/msg00043.txt.bz2 Klaus Zeitler writes: > I'm trying to debug a program with more than 100 threads under Solaris 5.8, > that generates lots of output. When I run the program under gdb in bash, > the first few threads are started, then gdb suspends itself and I need to > call 'fg' to resume execution, i.e. the whole thing looks like e.g.: Does this patch help? 2005-08-02 Andreas Schwab * sol-thread.c (sol_thread_wait): Call target_terminal_ours before printing output. --- gdb/sol-thread.c.~1.50.~ 2005-06-27 10:03:40.000000000 +0200 +++ gdb/sol-thread.c 2005-08-02 13:46:35.000000000 +0200 @@ -463,6 +463,7 @@ sol_thread_wait (ptid_t ptid, struct tar && !ptid_equal (rtnval, save_ptid) && !in_thread_list (rtnval)) { + target_terminal_ours (); printf_filtered ("[New %s]\n", target_pid_to_str (rtnval)); add_thread (rtnval); } Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."