commit | b6dfea2438b61116f7883926b3a3819277788752 | [log] [tgz] |
---|---|---|
author | Tom de Vries <tdevries@suse.de> | Sat May 04 10:41:09 2024 +0200 |
committer | Tom de Vries <tdevries@suse.de> | Sat May 04 10:41:09 2024 +0200 |
tree | bc879eb8203f27360fe867355ae57c679a511ebc | |
parent | f4b228ee68fc411a6db0f0b86ae6071c98f5e8a3 [diff] |
[gdb/testsuite] Factor out proc get_portnum In gdbserver_start, we have some code that determines what port number to use: ... # Port id -- either specified in baseboard file, or managed here. if [target_info exists gdb,socketport] { set portnum [target_info gdb,socketport] } else { # Bump the port number to avoid conflicts with hung ports. incr portnum } ... Factor this out into a new proc get_portnum. Tested on aarch64-linux. Approved-By: Tom Tromey <tom@tromey.com>