This is an archive of the discontinued LLVM Phabricator instance.

Always rely on CFI unwind info for linux vdso
ClosedPublic

Authored by labath on Aug 31 2016, 8:36 AM.

Details

Summary

The vdso is full of hand-written assembly which the instruction emulator has a hard time
understanding. Luckily, the kernel already provides us with correct unwind info for them. So
let's use it.

This fixes (at least) the AssertingInferiorTestCase.test_inferior_asserting_disassemble test on
android N i386.

Diff Detail

Repository
rL LLVM

Event Timeline

labath updated this revision to Diff 69857.Aug 31 2016, 8:36 AM
labath retitled this revision from to Always rely on CFI unwind info for linux vdso.
labath updated this object.
labath added a reviewer: tberghammer.
labath added a subscriber: lldb-commits.
tberghammer accepted this revision.Aug 31 2016, 9:44 AM
tberghammer edited edge metadata.

Looks good

source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
13–14 ↗(On Diff #69857)

Why do we need this?

This revision is now accepted and ready to land.Aug 31 2016, 9:44 AM
labath added inline comments.Aug 31 2016, 10:51 AM
source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
13–14 ↗(On Diff #69857)

I'm not adding anything. I just took the opportunity to reorganize the headers into the new format while I was touching it. (The only new include is lldb/Symbol/Function.h).

This revision was automatically updated to reflect the committed changes.