aboutsummaryrefslogtreecommitdiff
path: root/config/gdb_stub.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2018-12-08 00:29:35 +1100
committerBen Elliston <bje@gnu.org>2018-12-08 00:29:35 +1100
commit39f9a7703a57127792b0760bef116c1cb6952d52 (patch)
treefb6b77fdb54045750ef3d2b0cd2e04eafab72288 /config/gdb_stub.exp
parentb3d43d3be8208272573563943690fff25ee50c8f (diff)
downloaddejagnu-39f9a7703a57127792b0760bef116c1cb6952d52.zip
dejagnu-39f9a7703a57127792b0760bef116c1cb6952d52.tar.gz
dejagnu-39f9a7703a57127792b0760bef116c1cb6952d52.tar.bz2
* runtest.exp, lib/utils.exp, lib/targetdb.exp, lib/target.exp,
lib/remote.exp, lib/framework.exp, lib/dg.exp, config/vxworks.exp, config/sim.exp, config/gdb_stub.exp, config/aarch64-fv8.exp, baseboards/vr4300-sim.exp, baseboards/vr4111-sim.exp, baseboards/vr4100-sim.exp, baseboards/sh-sid.exp, baseboards/mt-sid.exp, baseboards/mips-sim.exp, baseboards/mips-sim-idt64.exp, baseboards/mips-sim-idt32.exp, baseboards/i386-sid.exp, baseboards/arm-sim.exp, baseboards/arm-ice.exp, baseboards/androideabi.exp, testsuite/runtest.all/utils.test, testsuite/runtest.all/target.test: Replace string literal comparisons using == and != with 'eq' and 'ne'.
Diffstat (limited to 'config/gdb_stub.exp')
-rw-r--r--config/gdb_stub.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/gdb_stub.exp b/config/gdb_stub.exp
index b86c8e5..d776b84 100644
--- a/config/gdb_stub.exp
+++ b/config/gdb_stub.exp
@@ -347,7 +347,7 @@ proc gdb_stub_start { dest } {
global gdb_prompt
set exit_brnum [gdb_stub_add_breakpoint _exit]
- if { $exit_brnum == "undef" || [board_info $dest exists always_break_exit] } {
+ if { $exit_brnum eq "undef" || [board_info $dest exists always_break_exit] } {
set exit_brnum [gdb_stub_add_breakpoint exit]
}
set abort_brnum [gdb_stub_add_breakpoint abort]
@@ -399,7 +399,7 @@ proc gdb_stub_spawn { dest prog args } {
}
set result [gdb_stub_start $dest]
- if { [lindex $result 0] != "pass" } {
+ if { [lindex $result 0] ne "pass" } {
remote_reboot target
} else {
return 666; # does anyone use this value?