01.09.2014 Views

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CH08.fm Page 255 Monday, October 7, 2002 9:16 PM<br />

Connecting to Target 255<br />

Table 8-1 Null modem connection for DB-9 connector serial cable<br />

DB-9 pin number (Host)<br />

DB-9 pin number (Target)<br />

TXD (3) RXD (2)<br />

RXD (2) TXD (3)<br />

RTS (7) CTS (8)<br />

CTS (8) RTS (7)<br />

Signal Ground (5) Signal Ground (5)<br />

DSR (6) DTR (4)<br />

DTR (4) DSR (6)<br />

For a DB-25 connector, the cable connections are as listed in Table 8-2.<br />

Table 8-2 Null modem connection for DB-25 connector serial cable<br />

DB-25 pin number (Host)<br />

DB-25 pin number (Target)<br />

Frame Ground (1) Frame Ground (1)<br />

TXD (2) RXD (3)<br />

RXD (3) TXD (2)<br />

RTS (4) CTS (5)<br />

CTS (5) RTS (4)<br />

Signal Ground (7) Signal Ground (7)<br />

DSR (6) DTR (20)<br />

DTR (20) DSR (6)<br />

8.5.2 Attaching to a Running Process <strong>Using</strong> gdbserver<br />

<strong>Using</strong> the gdbserver program, you can also connect to a running process on the target.<br />

For example, the following comm<strong>and</strong> can be executed on the target to connect to a process with<br />

process ID equal to 375.<br />

gdbserver /dev/ttyS1 375<br />

You can also use the TCP/IP connection by replacing the /dev/ttyS1 with hostname:port<br />

number as you have seen earlier.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!