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

gdb-peda quits while debugging program, regular gdb works file #143

Closed
41northstudios opened this issue Sep 5, 2019 · 1 comment
Closed

Comments

@41northstudios
Copy link

Hello -

I am trying to install PEDA on a new Kali Linux 2019-2 installation. When running default gdb on an executable I can set breakpoints, run the program, step through, etc as normal. However, after installing PEDA gdb will not work anymore. I can load it but when trying to run my file it exits (where the program should be waiting for user input) and displays: "Warning: program not running", If I try and show registers or anything it says there is no program loaded.

Not sure what is causing this or what I can check to fix it.

@41northstudios
Copy link
Author

41northstudios commented Sep 5, 2019

Found a solution, it was related to the follow-fork-mode. Looks like vanilla gdb has this set to parent where PEDA sets it to child. Ran the below command and I am in business!

sed -i 's/follow-fork-mode child/follow-fork-mode parent/g' ~/peda/peda.py

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

No branches or pull requests

1 participant