From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6991 invoked by alias); 22 Dec 2009 11:34:14 -0000 Received: (qmail 6980 invoked by uid 22791); 22 Dec 2009 11:34:13 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_50 X-Spam-Check-By: sourceware.org Received: from dns.vtab.com (HELO oden.vtab.com) (62.20.90.195) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Dec 2009 11:34:05 +0000 Received: from oden.vtab.com (oden.vtab.com [127.0.0.1]) by oden.vtab.com (Postfix) with ESMTP id 08E7726EE8A; Tue, 22 Dec 2009 12:34:02 +0100 (CET) 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 CB69826EE73; Tue, 22 Dec 2009 12:34:01 +0100 (CET) From: "Jakob Engblom" To: "'Vladimir Prus'" Cc: "'Michael Snyder'" , , "'Hui Zhu'" References: <00ce01ca265a$ccb66ca0$662345e0$@com> <200912161056.58856.vladimir@codesourcery.com> <008f01ca7f26$d9e97140$8dbc53c0$@com> <200912211305.55412.vladimir@codesourcery.com> In-Reply-To: <200912211305.55412.vladimir@codesourcery.com> Subject: RE: GDB MI Reverse Commands added [1 of 3] Date: Tue, 22 Dec 2009 11:34:00 -0000 Message-ID: <00af01ca82fa$a8b74b60$fa25e220$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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: 2009-12/txt/msg00335.txt.bz2 > > Can someone familiar with the main reverse code illuminate me on how to= call > into the reverse code in teh right way? It seems that the reverse.c code= has > already changed from the code that was (bad style) copied into mi-main.c.= .. > which is exactly what we want to avoid in the first place. > > > > Or is the logical thing to do from MI to just call > > > > static void > > reverse_continue (char *args, int from_tty) > > { > > exec_reverse_once ("continue", args, from_tty); > > } > > > > As the implementation of reverse continue? This does looks like the we > submitted has rotted since the patch was submitted... >=20 > Just to clarify -- who's got the ball here? Calling 'reverse_continue' so= unds > like reasonable thing to me > if one wants to do a reverse continue ;-) I think the ball is mine.=20 But I need to understand how to put the two things together, and for that I= need some help by the people who did reverse.c.=20 In particular, from MI, what should the "from_tty" argument be? And the "ar= gs"? MI args look different from the command-line arguments to me, so how can one convert between the two? I also have a gdb 7.0-compatible version of the current patch brewing, the = one submitted in August was really against 6.8, and is thus really a bit out of date. We are currently shipping this patch with Simics, along with a patch= ed gdb that supports reverse over MI for the benefit of our Eclipse integratio= n.=20 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