John Doe <firstname.lastname@example.org> wrote:
Has anyone ever used tcpserv ?
In all my years in QNX, I have never used it (I have always done debugging
across the QNX network). I have a need to use it now, but I can’t get
tcpserv to even start (just complains that it can’t open stream socket).
TCP/IP is up, configured correctly and working (there are 3 interfaces). I
assume that tcpserv is going to try and attach to ports on each interface
(since there is no way to direct it to a particular interface near as I can
Any pointers are appreciated.
here’s a technote i have that has helped me in the past.
be sure to have the right trap file on the target:
e.g. you need /usr/watcom/wd/std.trp
Using WD over tcp
wd needs a license, so the machine running wd must be able to acquire
a Watcom license. The machine running tcpserv does not need a license.
In order to use TCP/IP to remotely debug a program, you must start the
TCPSERV server program first. For example,
Socket port number: 1024
WATCOM TCP/IP Debug Server
Copyright by WATCOM International …
Press ‘q’ to exit
The server program displays an available socket port number on the
You also need to know your IP address. This can be
in alphanumeric or numeric form (for example,
jdoe.watcom.on.ca or 172.31.0.99).
To use the remote TCP/IP server, you must specify the TCP/IP trap
filename to the debugger along with an argument consisting of the
socket port number given by TCPSERV and your IP address. You must
also include the name of the application you wish to debug. For
B>wd -tr=“tcp;1024.jdoe.watcom.on.ca” app
B>wd -tr=“tcp;1024.172.31.0.99” app
The TCP/IP remote debug service permits debugging of applications
anywhere on the Internet. However, response varies with the type of
The ‘app’ must be the path to the real binary being debugged. The protocol
will not automatically download the executable to the target.
Randy Martin email@example.com
Manager of FAE Group, North America
QNX Software Systems www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579