Error in Debugging

Hello,

I am using beagle board Rev C and I want to debug an application on it
using the gdb-server and runtime libraries provided by code sourcery.
I am using code sourcery IDE for arm GNU/Linux -172 .

following are the connection on my beagle board:

one serial cable from beagle board conncted to linux host machine and
usb to serial converter on beagle board connected to serial on host
machine.

I am getting the error on debuggging and target gets hang.

I have copied sysroot files and I can run the sample code that is
given with the code sourcery sample programs but I am getting error in
debugging.

This is the output on bealge board shell:

root@beagleboard:/sysroot/usr/lib/bin# sysroot-run /
sample1

HelloWorld!

root@beagleboard:/sysroot/usr/lib/bin# sysroot-gdbserver :10000 /
sample1
Process /sample1 created; pid =
9700
Listening on port 10000

+$Hg0#dfc-1#09$qC#b4+$s#4b-+

I am getting above error when in the dedug configuration/ debugger/
connection I have set

type: Serial
Device: /dev/ttyS0
Speed: 115200

Also in the console pane I am getting:

in the console pane i am getting:

warning: unrecognized item "qSupported" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...

after some time I get following error:

"launching sample1" has encountered a problem.
Target selection Failed.

Malformed response to offset query,timeout
Malformed response to offset query,timeout
Malformed response to offset query,timeout

Can anyone tell me the settings necessary for solving these errors?

Thanks,
Ritika