Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Apr 21, 2024

Conversation

peace-maker
Copy link
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
11 checks passed
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
1 participant