This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Add lldb-server targets to build docs
ClosedPublic

Authored by DavidSpickett on Dec 20 2022, 3:34 AM.

Details

Summary

The current doc has people just do "ninja lldb" which is
not incorrect, it does build lldb. However it does not build lldb-server.
So you can't just "lldb some-binary" and expect it to work.

I've updated the instructions to reflect that most of the time
you'll want both lldb and lldb-server.

Though there is a use case for building just lldb. I'm assuming
Mac OS (where you have debugserver) and if you only wanted to do
remote debug.

Fixes #59575

Diff Detail

Event Timeline

DavidSpickett created this revision.Dec 20 2022, 3:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2022, 3:34 AM
DavidSpickett requested review of this revision.Dec 20 2022, 3:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2022, 3:34 AM

Current page: https://lldb.llvm.org/resources/build.html
Github issue: https://github.com/llvm/llvm-project/issues/59575

This works for Linux but I don't know what happens on Mac OS. Would the equivalent be ninja lldb debugserver?

This revision is now accepted and ready to land.Dec 20 2022, 3:53 PM
This revision was automatically updated to reflect the committed changes.