This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Simplified MI tests
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 3 Jan 2007 18:13:55 -0500
- Subject: Re: Simplified MI tests
- References: <200612201417.30428.vladimir@codesourcery.com>
On Wed, Dec 20, 2006 at 02:17:30PM +0300, Vladimir Prus wrote:
> I've converted one of MI tests to use this mechanism and found that
> the result is much more clear than it was. There are problems --
> namely that the syntax of the special comments looks weird and that
> Emacs does not highlight them as Tcl. But I think those I minor
> glitches and the new way is overall better?
>
> OK?
No one commented, and overall I think it's a good idea. I'll approve
the patch if you'll fix one thing for me...
> + if {$first==1} {
> + # Start the program afresh.
> + set line_now [mi_run_to_line "$mi_autotest_source:$line"\
> + "exec-run"]
> + set first 0
> + } elseif {$line_now!=$line} {
> + set line_now [mi_run_to_line "$mi_autotest_source:$line"\
> + "exec-continue"]
> + }
Instead of using exec-run, can you arrange to use mi_runto, or at least
mi_run_cmd? You can't "run" a remote target, e.g. gdbserver or
foo-elf.
--
Daniel Jacobowitz
CodeSourcery