remote_gdb.cc (5499:8bfc7650c344) remote_gdb.cc (5523:6279e78a2df2)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 181 unchanged lines hidden (view full) ---

190GDBListener::name()
191{
192 return gdb->name() + ".listener";
193}
194
195void
196GDBListener::listen()
197{
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 181 unchanged lines hidden (view full) ---

190GDBListener::name()
191{
192 return gdb->name() + ".listener";
193}
194
195void
196GDBListener::listen()
197{
198 if (ListenSocket::allDisabled()) {
199 warn_once("Sockets disabled, not accepting gdb connections");
200 return;
201 }
202
198 while (!listener.listen(port, true)) {
199 DPRINTF(GDBMisc, "Can't bind port %d\n", port);
200 port++;
201 }
202
203 event = new Event(this, listener.getfd(), POLLIN);
204 pollQueue.schedule(event);
205

--- 813 unchanged lines hidden ---
203 while (!listener.listen(port, true)) {
204 DPRINTF(GDBMisc, "Can't bind port %d\n", port);
205 port++;
206 }
207
208 event = new Event(this, listener.getfd(), POLLIN);
209 pollQueue.schedule(event);
210

--- 813 unchanged lines hidden ---