This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] new tcp_open


"Martin M. Hunt" wrote:
> 
> Problem:  Using "target remote" to open a tcp connection to a target board
> doesn't timeout properly if the target isn't running or you mistype the name
> or port number. The tcp_open function tries to connect 15 times, each of which can take
> a couple of minutes to timeout.  You can't interrupt the connect from the GUI, which
> is not updated, or from the command line with a ^C.
> 
> I propose replacing tcp_open with a new function that does a non-blocking connect
> with a maximum timeout of 15 seconds.  This is easily interruptable by typing ^C or
> clicking on the stop button. I have tested this with Linux, Solaris, and Cygwin.

In my setup, this patch makes the testsuite run an order of a magnitude
slower (I downgraded only this file from an otherwise updated tree, and
it fixes the problem).  My target board runs an unsubmitted port (for
various reasons) of the gdbserver on a Linux 2.4.14 kernel, and my host
is a Linux 2.2.19.  I don't see any recent gdbserver changes that should
be related to this change.  Anyone else seeing this slowdown?

-- 
Orjan Friberg
Axis Communications AB


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]