From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4212 invoked by alias); 10 Sep 2002 21:58:27 -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 4205 invoked from network); 10 Sep 2002 21:58:26 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 10 Sep 2002 21:58:26 -0000 Received: by localhost.redhat.com (Postfix, from userid 469) id 6BAC2106CC; Tue, 10 Sep 2002 17:56:35 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15742.27282.583778.995345@localhost.redhat.com> Date: Tue, 10 Sep 2002 14:58:00 -0000 To: Keith Seitz Cc: Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: [RFA/MI testsuite] Add mi_runto In-Reply-To: References: <15742.1117.465316.863673@localhost.redhat.com> X-SW-Source: 2002-09/txt/msg00159.txt.bz2 Keith Seitz writes: > On Tue, 10 Sep 2002, Elena Zannoni wrote: > > > Yes, please. Thanks. It will be easier to maintain if we have only one > > copy of these functions. > > UGH. Now I remember why I did this... mi_run_to_helper expects an MI > command to execute, either "exec-continue" or "exec-run". There is no way > for us to know this if we are attempting to run the inferior for the first > time (or re-run it). This is usually handled by mi_run_cmd, and that is > the difference between these to functions. They are essentially the same, > otherwise. The best I can do is put the mi_gdb_test for the stop in > anohter proc, but I think that would just mess the code up even more. > (mi_step and mi_next are okay, though). > > Of course, it's your call. > Keith > Oh ok. mi_run_to executes an inferior that has already started. While mi_runto starts it from scratch. Could we rename mi_run_to to something like mi_execute_to instead? It is used only in mi-var-cmd.exp. And add your paragraph above in mi-support.exp as a comment? Elena