This is an archive of the discontinued LLVM Phabricator instance.

Fix upper->lower case for /usr/lib/debug/.build-id/**.debug
ClosedPublic

Authored by jankratochvil on Feb 2 2018, 10:06 AM.

Details

Summary

I have found the lookup by build-id (when lookup by /usr/lib/debug/path/name/exec.debug failed) does not work as LLDB tries the build-id hex string in uppercase but Fedora uses lowercase.
xubuntu-16.10 also uses lowercase during my test:

/usr/lib/debug/.build-id/6c/61f3566329f43d03f812ae7057e9e7391b5ff6.debug

So I do not see when it could work, I haven't found any such regression-looking change in GIT history.

Diff Detail

Event Timeline

jankratochvil created this revision.Feb 2 2018, 10:06 AM
clayborg accepted this revision.Feb 2 2018, 10:21 AM

Many file systems are case insensitive so that is probably why it works on some computers.

This revision is now accepted and ready to land.Feb 2 2018, 10:21 AM

Simplify the testcase using: lldbutil.run_to_name_breakpoint

This revision was automatically updated to reflect the committed changes.