Connecting to Target255
For a DB-25 connector, the cable connections are as listed in Table 8-2.
8.5.2Attaching to a Running Process Using
gdbserver
Using the
gdbserver
program, you can also connect to a running process on the target.
For example, the following command can be executed on the target to connect to a process with
process ID equal to 375.
gdbserver /dev/ttyS1 375
You can also use the TCP/IP connection by replacing the
/dev/ttyS1
with host-
name:port number as you have seen earlier.
Table8-1 Null modem connection for DB-9 connector serial cable
DB-9 pin number (Host)DB-9 pin number (Target)
TXD (3)RXD (2)
RXD (2)TXD (3)
RTS (7)CTS (8)
CTS (8)RTS (7)
Signal Ground (5)Signal Ground (5)
DSR (6)DTR (4)
DTR (4)DSR (6)
Table8-2 Null modem connection for DB-25 connector serial cable
DB-25 pin number (Host)DB-25 pin number (Target)
Frame Ground (1)Frame Ground (1)
TXD (2)RXD (3)
RXD (3)TXD (2)
RTS (4)CTS (5)
CTS (5)RTS (4)
Signal Ground (7)Signal Ground (7)
DSR (6)DTR (20)
DTR (20) DSR (6)
Next Page >>
<< Previous Page
Back to the Table of Contents