From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18493 invoked by alias); 6 Apr 2009 20:10:14 -0000 Received: (qmail 18484 invoked by uid 22791); 6 Apr 2009 20:10:13 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Apr 2009 20:10:06 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n36K81Ta008444; Mon, 6 Apr 2009 16:08:01 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n36K81ix010019; Mon, 6 Apr 2009 16:08:02 -0400 Received: from opsy.redhat.com (vpn-12-50.rdu.redhat.com [10.11.12.50]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n36K809i004080; Mon, 6 Apr 2009 16:08:00 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 88F6F37817A; Mon, 6 Apr 2009 14:07:58 -0600 (MDT) To: Doug Evans Cc: gdb@sourceware.org Subject: Re: improved thread id reporting References: <20090404184604.8524C1C759C@localhost> <200904041904.n34J4UXV013513@brahms.sibelius.xs4all.nl> <20090404192132.GA28232@caradoc.them.org> From: Tom Tromey Reply-To: tromey@redhat.com Date: Mon, 06 Apr 2009 20:20:00 -0000 In-Reply-To: (Doug Evans's message of "Sun\, 5 Apr 2009 13\:36\:06 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00076.txt.bz2 >>>>> "Doug" == Doug Evans writes: Doug> + printf_filtered (_("[Switching from thread #%d, %s\n"), Doug> + pid_to_thread_id (previous_inferior_ptid), Doug> + target_pid_to_str (previous_inferior_ptid)); Doug> + printf_filtered (_(" to thread #%d, %s]\n"), This approach to lining things up is not i18n-friendly. You might be able to use wrap_here, but I'm not sure that is any friendlier, as it means you must break up the message. Tom