From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30682 invoked by alias); 17 Aug 2009 11:50:50 -0000 Received: (qmail 30669 invoked by uid 22791); 17 Aug 2009 11:50:49 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,J_CHICKENPOX_73,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Aug 2009 11:50:43 +0000 Received: (qmail 21810 invoked from network); 17 Aug 2009 11:50:41 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 Aug 2009 11:50:41 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: gdb reverse execution: how to actually run tests for it? Date: Mon, 17 Aug 2009 11:55:00 -0000 User-Agent: KMail/1.9.10 Cc: "Jakob Engblom" References: <002001ca1f0e$4c9b74a0$e5d25de0$@com> <002101ca1f2e$746e1ad0$5d4a5070$@com> In-Reply-To: <002101ca1f2e$746e1ad0$5d4a5070$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908171251.07179.pedro@codesourcery.com> 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: 2009-08/txt/msg00141.txt.bz2 On Monday 17 August 2009 12:32:50, Jakob Engblom wrote: > > make check RUNTESTFLAGS="break-reverse.exp --target_board=precord" && > > I had to do > > make check RUNTESTFLAGS="gdb.reverse/break-reverse.exp --target_board=precord" > > > To make this work, after creating the precord.exp file in > /usr/share/dejagnu/baseboards/ > You don't really need to clobber that directory. See: http://sourceware.org/gdb/wiki/TestingGDB#head-4eade7db27381c0f4747113b6edea1b8f365d73f # Create an empty file named site.exp. # Create a directory named boards in the same location as site.exp. # Create a file named native-gdbserver.exp in the boards directory (see below). # Set the DEJAGNU environment variable to point to the empty site.exp. # Run the testsuite with make check-gdb RUNTESTFLAGS="--target_board native-gdbserver". Adjust as needed, of course. Although, needing to set "gdb,use_precord" seems weird though. Can't we make it so that if we're testing a native gdb, and, if the target matches a list of targets that support precord, then, well, claim support for reverse, and test with precord? That is, get rid of the need for a board file at all unless testing against a remote target that supports reverse. In any case, for the cases a board file is needed for testing reverse, it would be nice to have that explained in the wiki (or somewhere else). -- Pedro Alves