Code Debugging Using the code sourcery


I want to debug the code using the gdbserver on code sourcery. I have
connected one serial cable to shell prompt so to establish connection
for debugging I have used USB to serial converter.

On the beagle board shell console ttyS2 is enabled so to debug the
application either I have to use ttyS0 or ttyS1 but ttyS0 is enabled
on the host for the minicom. so if I give /dev/ttyS1 as a device name
and establish connection using gdb server I get the error: "/dev/
ttyS1: input/output error".

Any one know how to do debugging on beagle board using code sourcery
ARM/Linux -172 ?