Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
11.69k stars 1.67k forks source link

Don't go through a shell in `gdb.debug` #2378

Closed peace-maker closed 2 months ago

peace-maker commented 3 months ago

gdbserver starts a shell and runs the target process through it. This behavior was added in gdbserver 8.0 in 2017 together with the commandline flag --no-startup-with-shell to disable it. Some shells can be configured to start the target command in a new process instead of replacing itself with it using execve, which confuses gdbserver's signal handling.

Fixes #2377