Skip to content

Instantly share code, notes, and snippets.

@nelix
Created July 3, 2009 04:54
Show Gist options
  • Save nelix/139916 to your computer and use it in GitHub Desktop.
Save nelix/139916 to your computer and use it in GitHub Desktop.
define ppystack
while $pc < Py_Main || $pc > Py_GetArgcArgv
if $pc > eval_frame && $pc < PyEval_EvalCodeEx
set $__fn = PyString_AsString(co->co_filename)
set $__n = PyString_AsString(co->co_name)
printf "%s (%d): %s\n", $__fn, f->f_lineno, $__n
end
up-silently 1
end
select-frame 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment