Skip to content

Instantly share code, notes, and snippets.

@fcamel
Created November 18, 2013 14:58
Show Gist options
  • Save fcamel/7529142 to your computer and use it in GitHub Desktop.
Save fcamel/7529142 to your computer and use it in GitHub Desktop.
import gdb
# Ref. http://stackoverflow.com/a/14698568/278456
v = gdb.selected_frame().read_var('LOCAL_VARIABLE_NAME')
for k in v.type.target():
try:
print k, v[k]
except Exception, e:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment