This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: fixlet for linux-dp.exp
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 26 Apr 2012 15:03:57 +0100
- Subject: Re: FYI: fixlet for linux-dp.exp
- References: <8762cndijg.fsf@fleche.redhat.com>
On 04/25/2012 02:53 PM, Tom Tromey wrote:
> It would be nice if dejagnu made a new interpreter for each .exp file,
> so that variable name clashes couldn't happen...
I assume this would mean use "interp create". It's even on dejagnu's TODO file:
Last updated $Date: 2004/02/08 14:02:07 $
Bigger items
============
...
* Use a throw-away slave interpreter for running each test case.
I think the trouble would be globals that _are_ supposed to be persistent
across tests, like e.g., "portnum", or whatever other globals board
files can come up with. We'd need some common way to make
those "master interp" owned variables (through aliases or env vars?).
Alternatively, we could save/restore globals, but there's no globals
standard naming scheme in place to make that remotely sane.
--
Pedro Alves