From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14827 invoked by alias); 9 Jul 2008 12:52:45 -0000 Received: (qmail 14816 invoked by uid 22791); 9 Jul 2008 12:52:44 -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; Wed, 09 Jul 2008 12:52:27 +0000 Received: (qmail 7711 invoked from network); 9 Jul 2008 12:52:25 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 9 Jul 2008 12:52:25 -0000 From: Pedro Alves To: Vladimir Prus Subject: Re: Don't try to report =?utf-8?q?=09resumed_thread_it_the_thread_list_is?= empty. Date: Wed, 09 Jul 2008 12:52:00 -0000 User-Agent: KMail/1.9.9 Cc: gdb-patches@sourceware.org References: <200807052158.30295.vladimir@codesourcery.com> <200807091131.22424.pedro@codesourcery.com> <200807091604.11646.vladimir@codesourcery.com> In-Reply-To: <200807091604.11646.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807091352.28573.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-07/txt/msg00136.txt.bz2 A Wednesday 09 July 2008 13:04:11, Vladimir Prus wrote: > On Wednesday 09 July 2008 14:31:21 Pedro Alves wrote: > > A Saturday 05 July 2008 18:58:29, Vladimir Prus wrote: > > > I've checked in the below to make GDB not assert in MI mode on > > > targets where single-threaded programs have zero threads in the > > > GDB thread table. > > > > FYI, running the MI testsuite on a target that doesn't register > > the main thread in ST programs, > > For the record, which target did you test on? arm-elf with target sim. I've checked in the patch to make it always have a thread, but it's just a matter of commenting out the add_thread_silent call to get the old behaviour. > I'm not sure which way we want to make it consistent. Outputiing > "thread-id" with a "I don't exist" value of thread id seems a little bit > distasteful. I guess I can modify regexp to make thread-id optional. I meant either output -thread-id="0" everywhere, or don't output -thread=id at all, nowhere. -- Pedro Alves