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

Add configurable gdbinit #1007

Merged
merged 2 commits into from
Sep 6, 2017
Merged

Conversation

bennofs
Copy link
Contributor

@bennofs bennofs commented Aug 3, 2017

See commit description for details

bennofs added 2 commits August 3, 2017 13:16
This allows setting the default gdbinit for GDB, which is helpful when you want
to enable some GDB extension only when using pwntools and not by default.
@zachriggle
Copy link
Member

You can already do this pretty easily. Just add “source foo.py” to your GDB script.

For example,

gdb.attach(proc, gdbscript=“source foo.py”)

@bennofs
Copy link
Contributor Author

bennofs commented Aug 3, 2017

@zachriggle correct. but that means that I have to remember to do this in each of my pwntools scripts, and also have to change it everywhere if i want to. This way, I can set it in ~/.pwn.conf and need to do so only once.

@zachriggle zachriggle merged commit 5831796 into Gallopsled:dev Sep 6, 2017
@TethysSvensson TethysSvensson added this to the 3.10.0 milestone Oct 5, 2017
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.

3 participants