From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30938 invoked by alias); 11 Jun 2010 18:34:08 -0000 Received: (qmail 30924 invoked by uid 22791); 11 Jun 2010 18:34:08 -0000 X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Jun 2010 18:34:01 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5BIXpqQ010783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Jun 2010 14:33:51 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5BIXnPD027887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Jun 2010 14:33:51 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o5BIXmbS017370; Fri, 11 Jun 2010 20:33:48 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o5BIXlNi017368; Fri, 11 Jun 2010 20:33:47 +0200 Date: Fri, 11 Jun 2010 18:34:00 -0000 From: Jan Kratochvil To: Ulrich Weigand Cc: Frederic Riss , Pedro Alves , gdb-patches@sourceware.org Subject: Re: [patch 1/3] Clear stale specific locs, not whole bpts [rediff] Message-ID: <20100611183347.GA17356@host0.dyn.jankratochvil.net> References: <20100610203913.GA11204@host0.dyn.jankratochvil.net> <201006111624.o5BGOegq009123@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201006111624.o5BGOegq009123@d12av02.megacenter.de.ibm.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-IsSubscribed: yes 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-06/txt/msg00282.txt.bz2 On Fri, 11 Jun 2010 18:24:40 +0200, Ulrich Weigand wrote: > This fails on platforms that do not support non-stop mode: > > (gdb) set non-stop on^M > (gdb) PASS: gdb.base/moribund-step.exp: set non-stop on > delete breakpoints^M > (gdb) info breakpoints^M > No breakpoints or watchpoints.^M > (gdb) break main^M > Breakpoint 1 at 0x18c: file /home/uweigand/fsf/gdb-head/gdb/testsuite/gdb.base/start.c, line 34.^M > (gdb) run ^M > The target does not support running in non-stop mode.^M > (gdb) FAIL: gdb.base/moribund-step.exp: running to main in runto I see now lib/mi-support.exp catches: -re "\\^error,msg=\"The target does not support running in non-stop mode.\"" { unsupported "Non-stop mode not supported" return -1 } while CLI lib/gdb.exp so far has not. OK to check-in? Tested on x86 opensolaris. Thanks, Jan 2010-06-11 Jan Kratochvil * lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt. (runto): Catch "The target does not support running in non-stop mode.". --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -290,6 +290,9 @@ proc gdb_run_cmd {args} { exp_continue } -notransfer -re "Starting program: \[^\r\n\]*" {} + -notransfer -re "$gdb_prompt $" { + # There is no more input expected. + } } } @@ -416,6 +419,10 @@ proc runto { function args } { -re "Breakpoint \[0-9\]*, \[0-9xa-f\]* in .*$gdb_prompt $" { return 1 } + -re "The target does not support running in non-stop mode.\r\n$gdb_prompt $" { + unsupported "Non-stop mode not supported" + return 0 + } -re "$gdb_prompt $" { fail "running to $function in runto" return 0