Re: [PATCH 3/7] [gdb/testsuite] Log on return in Term::_log_cur

Tom Tromey
2025-07-23T18:28:39Z

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

Tom> + set code [catch {uplevel $body} result]

Tom> + if { $code == 1 } {
Tom> + global errorInfo errorCode
Tom> + return -code $code -errorinfo $errorInfo -errorcode $errorCode $result
Tom> + } else {
Tom> + return -code $code $result
Tom> + }

I suspect this could be:

catch {uplevel $body} result options

and then just

return -options $options $result

Tom