From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15009 invoked by alias); 9 Nov 2009 18:36:16 -0000 Received: (qmail 15001 invoked by uid 22791); 9 Nov 2009 18:36:15 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Nov 2009 18:36:12 +0000 Received: (qmail 16090 invoked from network); 9 Nov 2009 18:36:10 -0000 Received: from unknown (HELO ?192.168.9.129?) (daniel@127.0.0.2) by mail.codesourcery.com with ESMTPA; 9 Nov 2009 18:36:10 -0000 Message-ID: <4AF86112.2040304@codesourcery.com> Date: Mon, 09 Nov 2009 18:36:00 -0000 From: Daniel Gutson User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Daniel Gutson , Michael Snyder , "gdb-patches@sourceware.org" Subject: Re: [PATCH] gcore registers storing fix References: <4AF4A505.4010600@codesourcery.com> <4AF72404.1070808@vmware.com> <4AF82E4E.8000500@codesourcery.com> <20091109153110.GA12924@caradoc.them.org> <4AF85CC0.2030002@codesourcery.com> <20091109182550.GA30593@caradoc.them.org> In-Reply-To: <20091109182550.GA30593@caradoc.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: 2009-11/txt/msg00158.txt.bz2 Daniel Jacobowitz wrote: > On Mon, Nov 09, 2009 at 03:17:36PM -0300, Daniel Gutson wrote: >> The problem shows up when "in ??" appears. I think that the current >> thread will never be shown in that way unless the test does fail. >> That being said, I think that I could add the regex for the "*" in >> order to looking into the current thread only. > > How is that different from the two following tests in > gcore-thread.exp? > > # One thread in the corefile should be in the "thread2" function. > > gdb_test "info threads" ".* thread2 .*" \ > "a corefile thread is executing thread2" > > # The thread2 thread should be marked as the current thread. > > gdb_test "info threads" ".*${nl}\\* ${horiz} thread2 .*" \ > "thread2 is current thread in corefile" > Because none of them checks that the text "in ??" does *not* show up -- Daniel Gutson CodeSourcery www.codesourcery.com