base,cpu,dev: Simplify ListenSocket::listen().
Remove the "reuse" parameter which default to true and was always also explicitly set to true. Tidy up the code itself slightly, mostly by using "panic_if" to remove some nesting. Change-Id: Ie23971aabf2fe4252d27f1887468360722a72379 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69159 Maintainer: Gabe Black <gabeblack@google.com> Reviewed-by: Yu-hsin Wang <yuhsingw@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -45,8 +45,7 @@ NativeTrace::NativeTrace(const Params &p)
|
||||
fatal("All listeners are disabled!");
|
||||
|
||||
int port = 8000;
|
||||
while (!native_listener.listen(port, true))
|
||||
{
|
||||
while (!native_listener.listen(port)) {
|
||||
DPRINTF(GDBMisc, "Can't bind port %d\n", port);
|
||||
port++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user