aboutsummaryrefslogtreecommitdiff
path: root/lib/debugger.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2018-12-06 18:05:05 +1100
committerBen Elliston <bje@gnu.org>2018-12-06 18:05:05 +1100
commitd439887f64b9c7c146d9a9062b459d08c43f2a12 (patch)
tree2a2921cdef799eb805e6ec027ed258bbf72deec3 /lib/debugger.exp
parenta8e4dbd2a65255a1470962994b2888fc8ee3b9bc (diff)
downloaddejagnu-d439887f64b9c7c146d9a9062b459d08c43f2a12.zip
dejagnu-d439887f64b9c7c146d9a9062b459d08c43f2a12.tar.gz
dejagnu-d439887f64b9c7c146d9a9062b459d08c43f2a12.tar.bz2
* runtest.exp: Replace [string match] commands involving literal
strings and variables known to not be Tcl glob patterns with eq and ne. * config/unix.exp: Likewise. * lib/debugger.exp: Likewise. * lib/dg.exp: Likewise. * lib/framework.exp: Likewise. * lib/remote.exp: Likewise. * lib/utils.exp: Likewise. * baseboards/androideabi.exp: Likewise. * baseboards/multi-sim.exp: Likewise. * testsuite/lib/util-defs.exp: Likewise. * testsuite/runtest.all/config.test: Likewise.
Diffstat (limited to 'lib/debugger.exp')
-rw-r--r--lib/debugger.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debugger.exp b/lib/debugger.exp
index 8831251..abcbb2d 100644
--- a/lib/debugger.exp
+++ b/lib/debugger.exp
@@ -63,13 +63,13 @@ proc dumpwatch { args } {
set tmp ""
if { [catch "uplevel 1 array name $i" names] } {
set tmp [uplevel 1 trace vinfo $i]
- if {![string match "" $tmp]} {
+ if {$tmp ne ""} {
puts "$i $tmp"
}
} else {
foreach k $names {
set tmp [uplevel 1 trace vinfo [set i]($k)]
- if {![string match "" $tmp]} {
+ if {$tmp ne ""} {
puts "[set i]($k) = $tmp"
}
}