From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11805 invoked by alias); 18 Apr 2005 19:51:14 -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 11794 invoked from network); 18 Apr 2005 19:51:11 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 18 Apr 2005 19:51:11 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j3IJpBqv010023 for ; Mon, 18 Apr 2005 15:51:11 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j3IJp5O27449 for ; Mon, 18 Apr 2005 15:51:05 -0400 Received: from [172.16.24.50] (bluegiant.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j3IJp4th020779 for ; Mon, 18 Apr 2005 15:51:04 -0400 Message-ID: <42640FA7.9090406@redhat.com> Date: Mon, 18 Apr 2005 19:51:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. User-Agent: Mozilla Thunderbird (X11/20050322) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [RFA/RFC] testsuite: gdb_run_cmd tweak Content-Type: multipart/mixed; boundary="------------050306090006010007070506" X-SW-Source: 2005-04/txt/msg00201.txt.bz2 This is a multi-part message in MIME format. --------------050306090006010007070506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 354 This just adds a regular expression to prevent gdb_run_cmd from choking on the msg that gdb emits when it detects that the file has changed and re-reads the symbols. I honestly don't remember the circumstances that caused me to add this -- it's been sitting in my sandbox for a while. Thought it would be better to offer it up than to throw it away... --------------050306090006010007070506 Content-Type: text/plain; name="lib" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lib" Content-length: 672 2005-04-18 Michael Snyder * lib/gdb.exp (gdb_run_cmd): Keep going past "executable has changed" msg. Index: lib/gdb.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v retrieving revision 1.61 diff -p -r1.61 gdb.exp *** lib/gdb.exp 14 Apr 2005 19:06:19 -0000 1.61 --- lib/gdb.exp 18 Apr 2005 19:42:38 -0000 *************** proc gdb_run_cmd {args} { *** 258,263 **** --- 258,266 ---- send_gdb "y\n" exp_continue } + -re ".* has changed; re-reading symbols\[^\r\n\]*\[\r\n\]*" { + exp_continue + } -re "Starting program: \[^\r\n\]*" {} } } --------------050306090006010007070506--