This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/MI testsuite] Add mi_runto
- From: Keith Seitz <keiths at redhat dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 10 Sep 2002 07:51:55 -0700 (PDT)
- Subject: Re: [RFA/MI testsuite] Add mi_runto
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