This is an archive of the discontinued LLVM Phabricator instance.

Modify lldb_suite.py to enable python debugging
ClosedPublic

Authored by lanza on Jul 20 2018, 3:07 PM.

Details

Summary

pudb and pdb interfere with the behavior of the inspect module. calling
inspect.getfile(inspect.currentframe()) returns a different result
depending on whether or not you're in a debugger. Calling
os.path.abspath on the result of inspect.getfile(...) normalizes the
result between the two environments.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

lanza created this revision.Jul 20 2018, 3:07 PM
lanza updated this revision to Diff 156618.Jul 20 2018, 3:10 PM

clean up

sas accepted this revision.Jul 20 2018, 3:30 PM
This revision is now accepted and ready to land.Jul 20 2018, 3:30 PM
This revision was automatically updated to reflect the committed changes.