[ was: Re: [PATCH v8 6/6] gdb/infrun: handle already-exited threads when attempting to stop ] On 15-05-2020 19:17, Tom de Vries wrote: > On 15-05-2020 17:46, Pedro Alves wrote: >> Curious -- is there a reason for the underscores? >> > > Yeah, I'm trying to avoid this: > ... > $ cat test.tcl > #!/usr/bin/tclsh > > proc foo { var } { > global $var > } > > foo var > $ ./test.tcl > variable "var" already exists > while executing > "global $var" > (procedure "foo" line 2) > invoked from within > "foo var" > (file "./test.tcl" line 7) > ... I managed to find a better way of dealing with this, using "upvar #0". I've also added more comments to the patch. Thanks, - Tom