bash-gdbserver exit problem on PPC4xx board ( the Walnut)

hp aput99 at
Sat Feb 7 01:58:13 EST 2004


I encountered a weird problem while using gdbserver-5.3-3 in bash-2.05b on a
PPC4xx board (the Walnut).  I telnet into the board which gives me a bash
shell.  However when I kick of a remote debugging session with gdbserver and
when that session ends, bash terminates the telnet session too.

Here is a senario:

HOST (running RedHat 9.0)

(gdb)target remote
(gdb) c

Program exited normally.


WALNUT:  ( <---- telnet in)

bash-2.05b$  /bin/gdbserver /bin/mount
Process /bin/mount created; pid = 42
Remote debugging from host
/dev/root on / type unknown (rw,errors-remount,-re)

Child exited with retcode = 0

Child exited with status 1
GDBserver exiting
bash-2.05b$ logout
Connection closed by foreign host.

[back to where I telnet'ed in from]$

The weird thing is that if I do the debugging on the console using minicom
directly from the Walnut, bash-2.05b does NOT display this behavior.  Only
when I telnet in, then bash kills the telnet session when the remote debug
session ends.
I wonder if anyone knows what is going on here?  Or any pointers as to how to
debug and solve this problem.  That is to stop bash from terminating the
telnet session when the debug session ends.

I'm using strace but it's confusing to trace (telnet->bash->gdbserver) :(

Thanks in advance for any input.

ps.  Sorry if this is a re-post.

** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list