From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24705 invoked by alias); 14 Jun 2005 19:50:44 -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 24605 invoked by uid 22791); 14 Jun 2005 19:50:34 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 14 Jun 2005 19:50:34 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DiHQd-0005cq-72; Tue, 14 Jun 2005 15:50:31 -0400 Date: Tue, 14 Jun 2005 19:50:00 -0000 From: Daniel Jacobowitz To: Manoj Iyer Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] switch-threads.exp added tests. Message-ID: <20050614195031.GA21575@nevyn.them.org> Mail-Followup-To: Manoj Iyer , gdb-patches@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00186.txt.bz2 On Tue, Jun 14, 2005 at 02:35:05PM -0500, Manoj Iyer wrote: > +gdb_test "info threads" "\\* .*2 Thread.*.LWP.* .*thread_func.*" > +gdb_test "thread 1" ".*Switching to thread 1.*" > +gdb_test "next" ".*foo \\(\\).*\[0-9\]*" > +gdb_test "thread 2" ".*Switching to thread 2.*" The numbers of threads depend on the operating system, and on the order in which GDB notices new threads. For instance the LinuxThreads manager thread, or a remote target which does not report new threads immediately. Also the format of "info threads" output is target specific. LWP comes from the Linux specific native code. -- Daniel Jacobowitz CodeSourcery, LLC