From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12740 invoked by alias); 3 Aug 2007 13:28:56 -0000 Received: (qmail 12731 invoked by uid 22791); 3 Aug 2007 13:28:55 -0000 X-Spam-Check-By: sourceware.org Received: from mms1.broadcom.com (HELO mms1.broadcom.com) (216.31.210.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Aug 2007 13:28:53 +0000 Received: from [10.10.64.154] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Fri, 03 Aug 2007 06:28:40 -0700 X-Server-Uuid: 6B5CFB92-F616-4477-B110-55F967A57302 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 1A6E92AF; Fri, 3 Aug 2007 06:28:40 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 073522AE for ; Fri, 3 Aug 2007 06:28:40 -0700 (PDT) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FNK86543; Fri, 3 Aug 2007 06:28:39 -0700 (PDT) Received: from NT-IRVA-0752.brcm.ad.broadcom.com ( nt-irva-0752.brcm.ad.broadcom.com [10.8.194.67]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id A493969CA3 for ; Fri, 3 Aug 2007 06:28:39 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: Test failure in mi-cli.exp Date: Fri, 03 Aug 2007 13:28:00 -0000 Message-ID: From: "Robert Norton" To: gdb@sourceware.org X-WSS-ID: 6AADF20235W1686126-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00021.txt.bz2 I observed the following when running the gdb testsuite on our (proprietary) target: 888-interpreter-exec console "set $pc=3D0x0" ~"Current language: auto; currently asm\n" 888^done (gdb) FAIL: gdb.mi/mi-cli.exp: -interpreter-exec console "set $pc=3D0x0" The problem is that setting $pc to 0 puts us in an asm file causing the ~"Current language:" message which doesn't match the regex. The same failure occurs in mi2-cli.exp. Since setting the pc is quite likely to cause messages of this type on various targets may I propose changing the test to something like: mi_gdb_test "888-interpreter-exec console \"set \$pc=3D0x0\"" \ {.*888\^done} \ "-interpreter-exec console \"set \$pc=3D0x0\"" (Note the .* before 888\^done) An alternative would be to set something other than the pc. This has caused problems in the past: http://www.ecos.sourceware.org/ml/gdb/2004-04/msg00101.html Cheers, Robert