Bug 256464 - (llvm-12-update) lldb run fails with error: unable to locate lldb-server
Summary: (llvm-12-update) lldb run fails with error: unable to locate lldb-server
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Dimitry Andric
Keywords: regression
Depends on:
Reported: 2021-06-07 05:02 UTC by Jan Beich
Modified: 2021-06-07 21:02 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2021-06-07 05:02:12 UTC
In-base lldb 12 unlike devel/llvm12 lacks server component required to debug live processes.

$ fetch -o clang12.diff https://github.com/freebsd/freebsd-src/compare/main...DimitryAndric:llvm-12-update.diff
$ git apply clang12.diff
$ make world

$ lldb ls
(lldb) target create "ls"
Current executable set to 'ls' (x86_64).
(lldb) run
error: unable to locate lldb-server

$ pkg install llvm12
$ pkg info -l llvm12 | grep 'lldb.*server'
Comment 1 Dimitry Andric freebsd_committer 2021-06-07 19:12:56 UTC
Should now be fixed, as of https://github.com/DimitryAndric/freebsd-src/commit/f93b529f825425e6851c47641b1fa7cf5c7aa123 . Please double-check :)
Comment 2 Jan Beich freebsd_committer 2021-06-07 21:02:34 UTC
Appears to work fine.