From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19620 invoked by alias); 17 Aug 2009 07:42:57 -0000 Received: (qmail 19609 invoked by uid 22791); 17 Aug 2009 07:42:56 -0000 X-SWARE-Spam-Status: No, hits=1.2 required=5.0 tests=AWL,BAYES_20,SARE_COLLEGE_SCAM X-Spam-Check-By: sourceware.org Received: from oden.vtab.com (HELO oden.vtab.com) (62.20.90.195) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Aug 2009 07:42:43 +0000 Received: from oden.vtab.com (oden.vtab.com [127.0.0.1]) by oden.vtab.com (Postfix) with ESMTP id 8A26026EF2D for ; Mon, 17 Aug 2009 09:42:39 +0200 (CEST) Received: from polhem (unknown [62.20.90.206]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by oden.vtab.com (Postfix) with ESMTP id 67D6126EF0A for ; Mon, 17 Aug 2009 09:42:39 +0200 (CEST) From: "Jakob Engblom" To: Subject: gdb reverse execution: how to actually run tests for it? Date: Mon, 17 Aug 2009 07:42:00 -0000 Message-ID: <002001ca1f0e$4c9b74a0$e5d25de0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable x-cr-hashedpuzzle: snQ= AYRZ Aj0L A6jt DKMu EXvm EYq/ E0bD E80J Hwss H96y IXhA IflX IvfS JM9D Kcyo;1;ZwBkAGIAQABzAG8AdQByAGMAZQB3AGEAcgBlAC4AbwByAGcA;Sosha1_v1;7;{4099D8E4-04A0-4D3B-84BC-00A355447064};agBhAGsAbwBiAEAAdgBpAHIAdAB1AHQAZQBjAGgALgBjAG8AbQA=;Mon, 17 Aug 2009 07:42:37 GMT;ZwBkAGIAIAByAGUAdgBlAHIAcwBlACAAZQB4AGUAYwB1AHQAaQBvAG4AOgAgAGgAbwB3ACAAdABvACAAYQBjAHQAdQBhAGwAbAB5ACAAcgB1AG4AIAB0AGUAcwB0AHMAIABmAG8AcgAgAGkAdAA/AA== x-cr-puzzleid: {4099D8E4-04A0-4D3B-84BC-00A355447064} 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/msg00133.txt.bz2 I am trying to finally implement the reverse ability for MI commands, but creating and testing the tests is looking challenging. The fundamental issu= e is that it seems that I cannot get the regular reverse tests to run, to know h= ow to properly code the reverse tests for reverse MI.=20 When I run $ make check RUNTESTFLAGS=3D"gdb.reverse/*.exp" There is a flurry of activity ending in this: --- =3D=3D=3D gdb tests =3D=3D=3D Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for targ= et. Using ../../../src/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running ../../../src/gdb/testsuite/gdb.reverse/solib-reverse.exp ... Running ../../../src/gdb/testsuite/gdb.reverse/step-reverse.exp ... Running ../../../src/gdb/testsuite/gdb.reverse/until-reverse.exp ... Running ../../../src/gdb/testsuite/gdb.reverse/break-reverse.exp ... Running ../../../src/gdb/testsuite/gdb.reverse/finish-reverse.exp ... Running ../../../src/gdb/testsuite/gdb.reverse/machinestate.exp ... Running ../../../src/gdb/testsuite/gdb.reverse/consecutive-reverse.exp ... Running ../../../src/gdb/testsuite/gdb.reverse/watch-reverse.exp ... =3D=3D=3D gdb Summary =3D=3D=3D /home/jakob/gdb7/gdb-host-revpatched/gdb/testsuite/../../gdb/gdb version 6.8.50.20090814-cvs -nw -nx make[3]: Leaving directory `/home/jakob/gdb7/gdb-host-revpatched/gdb/testsu= ite' make[2]: Leaving directory `/home/jakob/gdb7/gdb-host-revpatched/gdb' make[1]: Nothing to be done for `check-target'. make[1]: Leaving directory `/home/jakob/gdb7/gdb-host-revpatched' --- Which seems to indicate that no tests were actually run. This is a 6.8.50 b= ranch that I checked out of cvs late last week.=20 What is required to actually run the reverse tests? Do I need to build my g= db in any special way? I suspect that this line the test scripts is the cause of the premature exit from the tests: --- if ![target_info exists gdb,can_reverse] { return } --- So how do I make gdb realize that it can indeed reverse itself? Best regards, /jakob _______________________________________________________ Jakob Engblom, PhD, Technical Marketing Manager Virtutech=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Direct: +46= 8 690 07 47=A0=A0=A0 Drottningholmsv=E4gen 22=A0=A0=A0=A0=A0 Mobile: +46 709 242 646=A0=A0 11243 Stockholm=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Web:=A0=A0=A0 www.virtu= tech.com=A0 Sweden ________________________________________________________ =A0=20