Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Troubleshoot lldb on Ubuntu (WSL)

$
0
0

Problem Description:

I'm encountering difficulties using lldb and have been unable to identify the root cause. Here's a breakdown of my setup and the issues faced:

Setup:

  • Installed clang via sudo apt install clang.
  • Installed lldb with sudo apt-get install lldb.
  • Testing with a file named test.c.
#include <stdio.h>int main() {  printf("hello world!\n");}

Issue Encountered:

After attempting to debug using lldb, here's what happened in the shell:

$ clang -g -o test test.c$ ./testhello world!$ lldb(lldb) file ./testCurrent executable set to '/mnt/c/Users/Admin/test' (x86_64).(lldb) scriptPython Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.>>> m = lldb.target.module['test']>>> for i in range(m.GetNumCompileUnits()):...   m.GetCompileUnitAtIndex(i).file.fullpath...'/mnt/c/Users/Admin/test.c'>>> exit()(lldb) breakpoint list --verboseNo breakpoints currently set.(lldb) runProcess 576 launched: '/mnt/c/Users/Admin/test' (x86_64)[2]  + 570 suspended  lldb

I terminated lldb after receiving no response for approximately 10 seconds.

Version Information:

$ cat /etc/*releaseDISTRIB_ID=UbuntuDISTRIB_RELEASE=22.04DISTRIB_CODENAME=jammyDISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"PRETTY_NAME="Ubuntu 22.04.4 LTS"NAME="Ubuntu"VERSION_ID="22.04"VERSION="22.04.4 LTS (Jammy Jellyfish)"VERSION_CODENAME=jammyID=ubuntuID_LIKE=debianHOME_URL="https://www.ubuntu.com/"SUPPORT_URL="https://help.ubuntu.com/"BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"UBUNTU_CODENAME=jammy$ clang --versionUbuntu clang version 14.0.0-1ubuntu1.1Target: x86_64-pc-linux-gnuThread model: posixInstalledDir: /usr/bin$ lldb --versionlldb version 14.0.0$ python3 --versionPython 3.10.12

Additional Notes:

I've attempted to troubleshoot the issue according to the lldb manual without success.

Any insights or suggestions would be greatly appreciated. Thank you!


Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>