[uClibc]gdbserver on mips
Kuefmann Andreas ICM CP RD SD 1
andreas.kuefmann at siemens.com
Tue Apr 29 07:00:10 UTC 2003
Hi,
I'm having problems to get gdbserver run on an embedded mips target based
on busybox and uclibc.
I could successfully configure/compile/build the gdbserver as well as an
hello-world
example program and transfer it to the target's file system.
- starting gdbserver: ./gdbserver 192.168.1.3:2345 ./hello seems to work
fine
- checking with ps yields the following:
PID TTY Uid Size State Command
190 ttyp0 admin 660 S gdbserver host:2345 hello
191 ttyp0 admin 40 T hello
This assures that gdbserver program is running and that it had started the
program
to be debugged, which is left in the "trace" or "debug" state "T"
However, gdb on the host cannot connect to gdbserver ("connection refused"
message).
I found out that gdbserver didn't open any socket (on 2345 port); so there
is no
process on the target listening on that port. (so no chance for GDB to
connect)
Does anybody have an idea why gdbserver does not reach the code sequence,
where
the sockets are opened. It get's stuck somewhere between starting the hello
prog
and listening on the socket.
best regards,
- Andy
More information about the uClibc
mailing list