88 """Internal function called from GDB to execute all unwinders.
90 Runs each currently enabled unwinder until it finds the one that
91 can unwind given frame.
94 pending_frame: gdb.PendingFrame instance.
99 [0] gdb.UnwindInfo instance
100 [1] Name of unwinder that claimed the frame (type `str`)
102 or None, if no unwinder has claimed the frame.
105 for unwinder
in objfile.frame_unwinders:
107 unwind_info = unwinder(pending_frame)
108 if unwind_info
is not None:
109 return (unwind_info, unwinder.name)
113 unwind_info = unwinder(pending_frame)
114 if unwind_info
is not None:
115 return (unwind_info, unwinder.name)
117 for unwinder
in frame_unwinders:
119 unwind_info = unwinder(pending_frame)
120 if unwind_info
is not None:
121 return (unwind_info, unwinder.name)
168 for package
in packages:
169 location = os.path.join(os.path.dirname(__file__), package)
170 if os.path.exists(location):
172 lambda x: x.endswith(
".py")
and x !=
"__init__.py", os.listdir(location)
175 for py_file
in py_files:
177 modname =
"%s.%s.%s" % (__name__, package, py_file[:-3])
179 if modname
in sys.modules:
181 reload(__import__(modname))
185 sys.stderr.write(traceback.format_exc() +
"\n")