Skip to content

Commit 23f1ce7

Browse files
committed
openocd_run.exp: match "." symbol at the end of rbb port
The RBB port should end with "." symbol, without it the script could theoretically match the wrong (truncated) value.
1 parent b5a9765 commit 23f1ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/syntacore/openocd_run.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ proc runSpikeIfNeeded {} {
907907
spawn $SpikeBinary {*}$SpikeArgs
908908
send_user -- "==== Spawned Spike PID=[exp_pid -i $spawn_id] ====\n"
909909
expect {
910-
-re "Listening for remote bitbang connection on port (\[0-9\]+)" {
910+
-re {Listening for remote bitbang connection on port ([1-9][0-9]*)\.} {
911911
set MatchedBitbangPort $expect_out(1,string)
912912
send_user -- "spike launched successfully! bitbang_port = $MatchedBitbangPort\n"
913913
if {$SETTINGS(bitbang_port) == 0} {

0 commit comments

Comments
 (0)