This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FYI: fixlet for linux-dp.exp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]