Questions tagged [lldb]

LLDB is a debugger built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler.

LLDB is a debugger built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler. It is distributed with the Xcode development environment. Home page is http://lldb.llvm.org/

1918 questions
0
votes
1 answer

Debugging with lldb

ALL, Consider following class structure: class Base -> class public Derived1 -> class public Derived2. I.e. there is a Base class. Class Derived1 is a direct child of Base and class Derived2 is a direct child of Derived2, but not not Base. Is there…
Igor
  • 5,620
  • 11
  • 51
  • 103
0
votes
1 answer

How to write an lldb script to launch the process to be debugged

I have some simple gdb defines that I would like to implement in lldb. I use a small wrapper script that actually generates the gdb defines and then loads them when I launch gdb. The simplest is define rm run $LIBLIST $KEXTRAS $EXTRAS end Which…
dohashi
  • 1,771
  • 8
  • 12
0
votes
1 answer

LLDB SBProcess stuck on launching Ubuntu 18.04

I'm getting started with LLDB and am following the tutorial here: https://lldb.llvm.org/python_reference/lldb.SBDebugger-class.html. Whenever I Launch a target the process gets stuck in the launching state and will never launch. I've tried lldb in…
KFH
  • 1
  • 1
0
votes
1 answer

MacOS 12 beta dyld error: file Array.h, line 54

I wrote an QT application which works well on macOS Big Sur. Recently I upgrade to MacOS 12 beta 2. The compile process still works. But the application can't start. The backtrace stack shows it crashes at dyld process. dyld[16971]: Assertion…
Yage
  • 21
  • 4
0
votes
1 answer

LLDB analog for GDB "info sym"

Is there an analog command in LLDB to show current binary file where the symbol is located? In GDB it can be done with info sym command, like shown in this answer. This is crucial for ODR violation checking.
Sergey Kolesnik
  • 3,009
  • 1
  • 8
  • 28
0
votes
1 answer

Why is there an 8 byte offset for storing an integer?

I am trying to learn assembly, and I am following a guide from a book, and in this book the author disassembles a very simple C program and goes line by line through the assembly. I am doing the same, but I am getting slightly different results. I…
nickhealy
  • 43
  • 7
0
votes
0 answers

Breakpoint with condition generates an unhandled Error in lldb

I am trying to set up a conditional breakpoint. This is my sample code: #include int main() { int i = 0; for(i=0; i<1000000; i++) { printf("%d\n",i); } return 0; } This is how I compile…
M.E.
  • 4,955
  • 4
  • 49
  • 128
0
votes
1 answer

LLDB is not launching a Clang++ compiled program

I am tying to launch a debugging of clang code via lldb. I'm using a WSL Ubuntu 20.04 LTS. I installed a clang and lldb via sudo apt-get install clang and sudo apt-get install lldb accordingly. The test code (mytest.cpp) is the following: #include…
Ghorm
  • 85
  • 5
0
votes
1 answer

Android Studio LLDB hangs when debugging on specific device

I've been developing a native application (C++ with an android wrapper) and have been successfully debugging it using Android Studio on two devices via USB: a portable POS with android 7.1.2 and a smartphone with 5.1, both armeabi-v7a. Suddenly, i…
vesperto
  • 804
  • 1
  • 6
  • 26
0
votes
2 answers

GDB display LLVM IR variables fails

I build a simple application: hello.c #include void foo(int x) { printf("%d", x); } int main() { printf("Hello\n"); foo(6+5); return 0; } With an LLVM IR representation: ; ModuleID = 'hello.ll' source_filename =…
ar2015
  • 5,558
  • 8
  • 53
  • 110
0
votes
1 answer

LLDB : Tab completion after user defined aliases?

Uding lldb I defined the following alias : command alias bfn breakpoint set -n %1 Sadly, it does not allow Tab completion as the regular command does. It's a pity because all the time gained in typing the command is lost typing whole identifiers…
cassepipe
  • 371
  • 6
  • 16
0
votes
0 answers

lldb cannot connect to debugserver using python API

I'm trying to connect to debugserver on Mac, using lldb. While the following set of commands work fine and in the lldb cli, the same set of commands fails with error: the platform is not currently connected when run from python using the…
nisargjhaveri
  • 1,469
  • 11
  • 21
0
votes
1 answer

Can lldb display char * / strings in structs more efficiently?

lldb has a habit to show me strings in a very spread out manner, which is a little annoying but not a show stopper. But maybe someone already knows how to make it a bit more efficient with its display size: Example: (lldb) p *tq (taskq_t) $14 = { …
lundman
  • 1,616
  • 13
  • 25
0
votes
1 answer

Unable to resolve segmentation fault

Hello am newbie here am getting segmentation fault when running the program but unable to find reason behind it . I have googled and know that it occurs due to memory violation but unable to find what is causing seg fault in my code. Code…
user14742911
0
votes
1 answer

VSCode Rust debugging with lldb and cppvsdbg panics at "NotFound" message

Trying to debug my program written in rust with lldb and cppvsdbg, and after executing a function, that supposed to return either tuple of Result(Protocol, Value), or Box it throws this panic: thread 'main' panicked at 'called…
Xeizzeth
  • 441
  • 1
  • 3
  • 10