diff options
author | Ben Elliston <bje@gnu.org> | 2018-12-08 00:09:42 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2018-12-08 00:09:42 +1100 |
commit | b3d43d3be8208272573563943690fff25ee50c8f (patch) | |
tree | 7245bff4e6eb16bd95c5c9ecfc65bd76241a8a7e /config/gdb-comm.exp | |
parent | 4c9fa60d34fce9f5df2a48b6e025a8a2c0ac3acd (diff) | |
download | dejagnu-b3d43d3be8208272573563943690fff25ee50c8f.zip dejagnu-b3d43d3be8208272573563943690fff25ee50c8f.tar.gz dejagnu-b3d43d3be8208272573563943690fff25ee50c8f.tar.bz2 |
* runtest.exp, lib/utils.exp, lib/target.exp, lib/ssh.exp,
lib/rsh.exp, lib/rlogin.exp, lib/remote.exp, lib/libgloss.exp,
lib/framework.exp, lib/dg.exp, lib/dejagnu.exp,
config/vxworks.exp, config/unix.exp, config/sim.exp,
config/gdb_stub.exp, config/gdb-comm.exp, config/adb.exp,
baseboards/multi-sim.exp, baseboards/cris-sim.exp,
baseboards/basic-sim.exp, baseboards/basic-sid.exp,
baseboards/androideabi.exp, testsuite/runtest.all/load_lib.exp,
testsuite/libdejagnu/tunit.exp: Replace empty string comparisons
using == and != with 'eq' and 'ne'.
Diffstat (limited to 'config/gdb-comm.exp')
-rw-r--r-- | config/gdb-comm.exp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/gdb-comm.exp b/config/gdb-comm.exp index 07ba25e..141e4ee 100644 --- a/config/gdb-comm.exp +++ b/config/gdb-comm.exp @@ -165,7 +165,7 @@ proc gdb_comm_start { dest } { # provided with one. if {![info exists GDB]} then { set GDB "[lookfor_file ${tool_root_dir} gdb/gdb]" - if { $GDB == "" } { + if { $GDB eq "" } { set GDB [transform gdb] } } @@ -218,7 +218,7 @@ proc quit_gdb { } { set spawn_id [board_info host fileid] - if { $spawn_id != "" && $spawn_id > -1 } { + if { $spawn_id ne "" && $spawn_id > -1 } { if { [remote_send host "quit\n"] eq "" } { remote_expect host 10 { -re ".*y or n.*$" { @@ -257,7 +257,7 @@ proc gdb_comm_load { dest prog args } { set argnames { "command-line arguments" "input file" "output file" } for { set x 0 } { $x < [llength $args] } { incr x } { - if { [lindex $args $x] != "" } { + if { [lindex $args $x] ne "" } { return [list "unsupported" "no support for [lindex $argnames $x] on this target"] } } @@ -399,7 +399,7 @@ proc gdb_comm_load { dest prog args } { # work would be necessary for things like the g++ testsuite which # use printf to indicate pass/fail status. - if { [gdb_comm_add_breakpoint _exit] != "" } { + if { [gdb_comm_add_breakpoint _exit] ne "" } { gdb_comm_add_breakpoint exit } gdb_comm_add_breakpoint abort @@ -528,7 +528,7 @@ proc gdb_comm_reload { dest prog aargs } { # how many times have we done this? set n_reloads [board_info $dest n_reloads] - if {$n_reloads == ""} { + if {$n_reloads eq ""} { set n_reloads 0 } @@ -539,7 +539,7 @@ proc gdb_comm_reload { dest prog aargs } { # how many times are we allowed to do this? set max [board_info $dest max_reload_reboots] - if {$max == ""} { + if {$max eq ""} { set max 15 } |