Let say your python script is named `a.py`. Following command will do
gdb -ex r --args python a.py [arguments_to_script]
You would probably interested in peda (https://github.com/longld/peda) which lets you do a lot of things inside GDB through python, even shell commands!
Thanks. I just cloned the repo. Its looks great. Will update the post about its performance once I use it for some time.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Enter your email address to follow this blog and receive notifications of new posts by email.
Join 195 other followers