Artificial intelligent assistant

How to launch «gdbserver» in background? When I run gdbserver on a device _(like`gdbserver :2345 myapp`)_, gdbserver completely blocks the terminal. Neither adding an ampersand `&`, nor pressing `^z` makes it running in background. I also checked: it is reproducible on Kubuntu too. I really need to use shell commands, and since I've no idea how to execute these via gdbserver, after it's running I feel myself crippled.

This seems to have worked for the OP.


gdbserver :2345 ls > /dev/null 2>&1 &


I think the reason for this is because when a program is daemonized it closes all the STDIO 0,1 & 2\. The next IO to open will be 0. If the program tries to use 0,1 or 2 with things like printf or scanf it will be acting on the wrong IO or a closed IO. For example if it is daemon-ized the socket opens on 0 were STDIN was and if the printf is called it will be writing to a non-open FD what would cause the program to crash.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 32ff37ad37a7209448387ff3b964bd8b