Skip to content

Instantly share code, notes, and snippets.

@KevinKu
Created September 17, 2016 04:41
Show Gist options
  • Save KevinKu/131333914f3fa9e282deec2217e544f9 to your computer and use it in GitHub Desktop.
Save KevinKu/131333914f3fa9e282deec2217e544f9 to your computer and use it in GitHub Desktop.
c = "b main"
gdb.execute(c,True,True)
c = "r"
gdb.execute(c,True,True)
a = open("./test_result","w")
c = "info breakpoints"
r = gdb.execute(c,True,True)
a.write(r)
c = "q"
gdb.execute(c,True,True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment