Re: [committed][gdb/testsuite] Don't leak tuiterm.exp spawn override

Tom Tromey
2020-06-15T19:46:47Z

>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

>> There was a report recently about gdb overrides like this breaking
>> with a newer dejagnu.

Tom> You're referring to this (
Tom> https://sourceware.org/pipermail/gdb/2020-June/048689.html ) ?

Yeah.

Tom> Now the idiom is:
Tom> ...
Tom> -load_lib tuiterm.exp
Tom> +tuiterm_env
Tom> ...

Looks good, thanks.

Tom> I've also tried wrapping the test-case body using the tuiterm_env proc,
Tom> like this:
Tom> ...
Tom> tuiterm_env {
Tom> ...
Tom> }
Tom> ...
Tom> but ran into curly-braces trouble in gdb.tui/new-layout.exp.

Very unexpected.

Tom