8000
Skip to content

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

Merged
peace-maker merged 3 commits intoGallopsled:stablefrom
peace-maker:fishy_gdb
Apr 21, 2024
Merged

Don't go through a shell in gdb.debug#2378
peace-maker merged 3 commits intoGallopsled:stablefrom
peace-maker:fishy_gdb

Conversation

@peace-maker
Copy link
Copy Markdown
Member

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

gdbserver starts a shell and runs the target process through it.
This behavior was added in gdbserver 8.0 together with the
commandline flag --no-startup-with-shell to disable it.
@peace-maker peace-maker changed the base branch from dev to stable March 29, 2024 14:10
@peace-maker peace-maker changed the title Don't go though a shell in gdb.debug Don't go through a shell in gdb.debug Mar 29, 2024
@peace-maker peace-maker enabled auto-merge (squash) April 21, 2024 20:26
@peace-maker peace-maker merged commit db98e5e into Gallopsled:stable Apr 21, 2024
peace-maker added a commit that referenced this pull request Apr 21, 2024
Only add it when we don't want to manipulate the environment or argv[0].
This will cause the problem with fish shell to reappear in those cases, but
it's another step for compatibility at least.

#2378
@peace-maker peace-maker deleted the fishy_gdb branch April 21, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gdb.debug not working with fish shell

3544 1 participant

0