From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6960 invoked by alias); 25 Dec 2010 17:54:39 -0000 Received: (qmail 6949 invoked by uid 22791); 25 Dec 2010 17:54:38 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 25 Dec 2010 17:54:33 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 11FBC1C08CD0; Sat, 25 Dec 2010 18:54:29 +0100 (CET) X-Auth-Info: cx4MH5fKHyc3wcK5U4JZNGk8NBsEoGP2nQNWOhHEdZk= Received: from linux.local (p508B14C8.dip.t-dialin.net [80.139.20.200]) by mail.mnet-online.de (Postfix) with ESMTPA id 38BDE1C00156; Sat, 25 Dec 2010 18:54:29 +0100 (CET) Received: by linux.local (Postfix, from userid 501) id 010431E52EC; Sat, 25 Dec 2010 18:54:26 +0100 (CET) From: Andreas Schwab To: Tom Tromey Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: RFC: add table headers to "info thread" output References: <201012210939.09003.pedro@codesourcery.com> X-Yow: Don't hit me!! I'm in the Twilight Zone!!! Date: Sat, 25 Dec 2010 19:23:00 -0000 In-Reply-To: (Tom Tromey's message of "Tue, 21 Dec 2010 12:09:47 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-12/txt/msg00464.txt.bz2 Tested on ppc-linux and checked in as obvious. Andreas. 2010-12-25 Andreas Schwab * gdb.threads/thread-specific.exp (get_thread_list): Update. * gdb.threads/execl.exp: Update. Index: gdb.threads/execl.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/execl.exp,v retrieving revision 1.4 diff -u -a -p -r1.4 execl.exp --- gdb.threads/execl.exp 21 Dec 2010 19:10:15 -0000 1.4 +++ gdb.threads/execl.exp 25 Dec 2010 17:52:30 -0000 @@ -57,11 +57,11 @@ gdb_test "info threads" ".*" "info threa set test "info threads after exec" gdb_test_multiple "info threads" "$test" { - -re "2 Thread .*$gdb_prompt $" { + -re "2 *Thread .*$gdb_prompt $" { # Old threads left behind. fail "$test" } - -re "4 Thread .*$gdb_prompt $" { + -re "4 *Thread .*$gdb_prompt $" { # New threads registered. fail "$test" } Index: gdb.threads/thread-specific.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/thread-specific.exp,v retrieving revision 1.13 diff -u -a -p -r1.13 thread-specific.exp --- gdb.threads/thread-specific.exp 18 Jun 2010 17:44:40 -0000 1.13 +++ gdb.threads/thread-specific.exp 25 Dec 2010 17:52:30 -0000 @@ -44,11 +44,14 @@ proc get_thread_list { } { -re "New Thread \[^\n\]*\n" { exp_continue } - -re "^\\* *(\[0-9\]*) Thread \[^\n\]*main\[^\n\]*\n" { + -re "^ *Id *Target Id\[^\n\]*\n" { + exp_continue + } + -re "^\\* *(\[0-9\]*) *Thread \[^\n\]*main\[^\n\]*\n" { set thr_list "$expect_out(1,string) $thr_list" exp_continue } - -re "^ *(\[0-9\]*) Thread \[^\n\]*\n" { + -re "^ *(\[0-9\]*) *Thread \[^\n\]*\n" { lappend thr_list $expect_out(1,string) exp_continue } -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."