From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22287 invoked by alias); 14 Jun 2005 19:46:34 -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 22236 invoked by uid 22791); 14 Jun 2005 19:46:30 -0000 Received: from e33.co.us.ibm.com (HELO e33.co.us.ibm.com) (32.97.110.131) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 14 Jun 2005 19:46:30 +0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e33.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j5EJkRmD353368 for ; Tue, 14 Jun 2005 15:46:27 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j5EJkRKX231598 for ; Tue, 14 Jun 2005 13:46:27 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id j5EJkQAp029201 for ; Tue, 14 Jun 2005 13:46:27 -0600 Received: from austin.ibm.com (netmail2.austin.ibm.com [9.41.248.176]) by d03av03.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j5EJkQ62029193 for ; Tue, 14 Jun 2005 13:46:26 -0600 Received: from lazy.austin.ibm.com (lazy.austin.ibm.com [9.53.94.97]) by austin.ibm.com (8.12.10/8.12.10) with ESMTP id j5EJkLoT044268 for ; Tue, 14 Jun 2005 14:46:26 -0500 Date: Tue, 14 Jun 2005 19:46:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: gdb-patches@sources.redhat.com Subject: [RFC] switch-threads.exp added tests. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-06/txt/msg00185.txt.bz2 I added couple of tests to explicitly test switching threads. Any comments/suggestion? 2005-06-14 Manoj Iyer * gdb.base/switch-threads.exp: Added test explicitly changing threads. -------------------------------------------------------------- --- ./switch-threads.exp 2003-10-09 14:49:28.000000000 -0500 +++ /tmp/switch-threads.exp 2005-06-14 14:01:15.000000000 -0500 @@ -24,8 +24,6 @@ # multi-threaded stubs to reliably get this correct; gdbserver defaulted # to the first thread. -# TODO: we should also test explicitly changing threads with the "thread" -# command. if $tracelevel then { strace $tracelevel @@ -49,4 +47,7 @@ runto_main gdb_breakpoint thread_func gdb_continue_to_breakpoint "continue to thread_func" gdb_test "next" ".*foo \\(\\);" - +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.*" ----- manjo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Cogito ergo sum + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++