From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10869 invoked by alias); 16 Oct 2008 03:12:52 -0000 Received: (qmail 10860 invoked by uid 22791); 16 Oct 2008 03:12:52 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Oct 2008 03:12:17 +0000 Received: (qmail 6501 invoked from network); 16 Oct 2008 03:12:15 -0000 Received: from unknown (HELO ?192.168.0.104?) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 16 Oct 2008 03:12:15 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: RFA: non-stop/linux, thread stopping Date: Thu, 16 Oct 2008 03:12:00 -0000 User-Agent: KMail/1.9.9 References: <200810160354.39189.pedro@codesourcery.com> In-Reply-To: <200810160354.39189.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810160412.39381.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00393.txt.bz2 On Thursday 16 October 2008 03:54:38, Pedro Alves wrote: > To make it nicer on the eye, I'm making an output change in > the CLI: > > New: > > [Thread 0xf7e306b0 (LWP 26335)] #1 stopped. > 0xffffe410 in __kernel_vsyscall () > > Old: > > Program received signal 0, Signal 0. > 0xffffe410 in __kernel_vsyscall () > > + > + if (0 && (stop_info == TARGET_SIGNAL_0 && !ui_out_is_mi_like_p (uiout))) > + { > + struct thread_info *t = inferior_thread (); > + > + ui_out_text (uiout, "\n["); > + ui_out_field_string (uiout, "thread-name", > + target_pid_to_str (t->ptid)); > + ui_out_field_fmt (uiout, "thread-id", "] #%d", t->num); > + ui_out_text (uiout, " stopped"); Eh, this `0 &&' sneaked in while writing the above. :-) Please ignore that. It should be like this, of course: + if (stop_info == TARGET_SIGNAL_0 && !ui_out_is_mi_like_p (uiout)) :-) -- Pedro Alves