Under Python 3, lldb sees an extra frame on the stack, so I check that the stack has at least the number frames we expect.
Python 3 doesn't have dict.iteritems(). I used a wrapper function from six to keep this portable between the two versions.
Differential D16017
Fix TestMiniDump.py for Python 3 amccarth on Jan 8 2016, 3:41 PM. Authored by
Details Under Python 3, lldb sees an extra frame on the stack, so I check that the stack has at least the number frames we expect. Python 3 doesn't have dict.iteritems(). I used a wrapper function from six to keep this portable between the two versions.
Diff Detail
Event TimelineComment Actions What's the extra frame? Why does Python have an effect on the number of Comment Actions Sorry, I misspoke. It has nothing to do with the version of Python. There's a new frame showing below main:
I suppose this might be from a change to the linker or the generation of debug info. Originally, the deepest frame that showed was main. Comment Actions Meh. This reminds me of why I wanted to check in the dump file. We're seeing different call stacks with different compilers. But I guess this is fine. |