From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5126 invoked by alias); 7 Jul 2004 17:31:03 -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 5108 invoked from network); 7 Jul 2004 17:31:02 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 7 Jul 2004 17:31:02 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i67HV2e3030704 for ; Wed, 7 Jul 2004 13:31:02 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i67HUt010287; Wed, 7 Jul 2004 13:30:56 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 50A232B9D; Wed, 7 Jul 2004 13:30:44 -0400 (EDT) Message-ID: <40EC3344.8050001@gnu.org> Date: Wed, 07 Jul 2004 17:31:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Andrew Cagney Cc: Michael Elizabeth Chastain , drow@false.org, ac131313@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [rfa] New test sigbpt.{c,exp} References: <20040706185952.3360F4B104@berman.michael-chastain.com> <40EAFD7B.9020506@gnu.org> In-Reply-To: <40EAFD7B.9020506@gnu.org> Content-Type: multipart/mixed; boundary="------------040300070403000900090405" X-SW-Source: 2004-07/txt/msg00063.txt.bz2 This is a multi-part message in MIME format. --------------040300070403000900090405 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 574 >> mec> How about: >> mec> mec> (1) before running the program, 'disassemble bowler' >> mec> (2) at the breakpoint, 'x/i $pc' >> mec> check that the output of (2) matches one of the lines in (1) > > > FYI, that's effectively what I did. It checks the $pc address against a table of valid instruction addresses. It doesn't match it fails, via gdb_test_multiple internals. All thats missing is a pattern to match any other pc address in bowler. I've added the attached. Andrew > Trying to single-step after corrupting the $pc would be meaningless. > > Andrew --------------040300070403000900090405 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 728 2004-07-07 Andrew Cagney * gdb.base/sigbpt.exp (stepi_out): Check for a single step corrupting the PC. Index: gdb.base/sigbpt.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sigbpt.exp,v retrieving revision 1.1 diff -p -u -r1.1 sigbpt.exp --- gdb.base/sigbpt.exp 6 Jul 2004 15:08:54 -0000 1.1 +++ gdb.base/sigbpt.exp 7 Jul 2004 17:28:50 -0000 @@ -184,6 +184,9 @@ proc stepi_out { name args } { -re "pc *[after_segv] .*bowler.*$gdb_prompt $" { kfail gdb/1702 "$test (skipped fault insn)" } + -re "pc *0x\[a-z0-9\]* .*bowler.*$gdb_prompt $" { + kfail gdb/1702 "$test (corrupt pc)" + } } # Clear any breakpoints --------------040300070403000900090405--