2,039 questions
0
votes
0
answers
42
views
How to inspect structures like NSRect/NSSize using lldb?
I have previously used lldb to print structures like NSRect or NSSize of 3rd party processes without issues. But I am struggling in modern versions of Xcode to inspect them. Namely since the ...
0
votes
1
answer
37
views
Disassembly view in Xcode: how can I symbolicate a function's address?
In Xcode, I set a breakpoint to a function which is a part of an iOS framework and the disassembly view showed up. All function calls except one (0x1bb286280) were symbolicated (i.e. Xcode showed the ...
0
votes
0
answers
23
views
Is there a way to debug macports provided packages with source code?
How do I debug a macports provided package with the source code?
I currently see the decompiled assembly language, what I need is the line on which the code crashed.
Process 90037 stopped
* thread #1, ...
0
votes
0
answers
117
views
Debugger not stepping through code in VSCode with Rust – Unable to debug using `lldb` on Windows
I'm trying to debug my Rust project in VSCode but the debugger doesn't step through the code. I have lldb configured as the debugger, but breakpoints aren't hit, and I can't step through my code. I’m ...
0
votes
2
answers
58
views
How can I access synthetic children whose names have special characters in LLDB?
Consider this program.cpp:
struct Foo {
int field1;
int field2;
};
int main() {
Foo foo{.field1 = -1, .field2 = -2};
return 0;
}
I've implemented a custom LLDB data formatter for the Foo ...
0
votes
1
answer
113
views
How does Xcode display the recorded stack frame, and can I retrieve it manually using LLDB?
In iOS development, I’ve noticed that when I set a breakpoint on a dispatch_* object (e.g., dispatch_async) in Xcode, it sometimes allows me to trace back to the original caller of the dispatch. In ...
0
votes
1
answer
95
views
[LLDB][RUN][error: execve failed: Permission denied]
I used Clang to compile a large project to Linux X86_64 executable file my_out.
./my_out runs successfully.
When I try to use lldb my_out to debug the execution of my_out.
It can success launch the ...
-1
votes
1
answer
184
views
lldb-dap exception 0x80000003 under Windows 11 / arm64
I just learned about the lldb-dap extension for VSCode and set about using it on a trivial hello world program. Well, things are running, but not comfortably. I set a breakpoint on the printf line, ...
0
votes
1
answer
44
views
Awful lldb Command Indentation
I created a ~/.lldbinit file with only one setting:
settings set prompt "\x1b[0;33m(lldb) \x1b[0m"
hoping only to change the color of prompt. It works, very well, but then there comes an ...
0
votes
1
answer
76
views
LLDB breaks on adding a breakpoint using python
I want a LLDB breakpoint callback to add another breakpoint on the next frame in the callstack.
For this I have a file trace_mvp.py with the following code:
import lldb
def syscall_callback(frame: ...
0
votes
1
answer
148
views
Why does the local variable display in the debugger disappear while debugging Rust in VSCode/LLDB?
I am debugging Rust in VSCode using LLDB.
Why do some of the local variables that appear in the debugger disappear when I place a breakpoint at the end of the scope in the image code?
Is there a ...
1
vote
0
answers
50
views
Branch-and-link not jumping when branch does (ARM64 on apple silicon)
New to assembly, trying to write some fibonacci recursive code
.section __TEXT,__text,regular,pure_instructions
_main:
mov X0, 5
bl fib
bl exit
fib_end:
mov X0, 0
b exit
.align 2
fib:
...
0
votes
1
answer
51
views
How to detect presence of the lldb at runtime?
Please note: this question is not about statically determined conditional code compilation.
My question is: how do I determine at runtime that my process is being debugged by LLDB by analyzing the ...
0
votes
1
answer
45
views
LLDB - how do I import a symbol so I can access a struct definition?
I'm using lldb to debug an application and I have this breakpoint right before a call SCNetworkReachability
imp___stubs__SCNetworkReachabilityCreateWithAddress:
jmp qword [...
0
votes
1
answer
57
views
LLDB running a Python debugging script. I'm getting error: invalid thread
I'm trying to run a Python debug script in LLDB, but I'm getting invalid thread errors. I'm not sure why.
Here are my programs:
main.c:
#include <stdio.h>
#include <stdlib.h>
int addNumbs(...
0
votes
0
answers
38
views
lldb configuration?
I have compiled a very simple file with the command
clang++ main.cpp -g -o test
then
lldb ./test
b main , r, gui, n n n n n …
and as you can see in the upper part of the following screenshot, the ...
0
votes
1
answer
140
views
LLDB How to remove module is current target list
image add will add a new module to the current target list, but how can I remove a module afterwards?
0
votes
0
answers
160
views
Consistency problem with debug symbol paths when debugging bazel build C++ with lldb
I'm using bazel 7.4.1-homebrew on MacOS 15.1.1 within VS Code.
The issue I'm having, is that I want to debug a target with lldb. I have setup my launch.json like this:
{
"name": &...
1
vote
0
answers
258
views
great memory leak on lldb in C++ code on mac
I ran a small C++ program:
#include <iostream>
#include <map>
#include <vector>
using namespace std;
class Solution
{
public:
string minWindow(string s, string t)
{
...
0
votes
0
answers
101
views
How to debug C++ under VSCode under Windows on Apple hardware?
I live on a Macintosh. I want to be able to build and debug my code on Macintosh and Windows both. So I set up my Windows world in a parallels VM running Windows 11, on my Apple Silicon 1 Macintosh. (...
0
votes
0
answers
32
views
android native - How my native library path not listed in GetMemoryRegions result when I debug using lldb?
I want to debug my native library libtestnative.so at the low level using lldb. In order to do that I have to know what is the base address of the target shared object. I wrote a lldb script ...
0
votes
2
answers
58
views
How can I script LLDB to update an external source code view?
In GDB I have a Python script which uses gdb.prompt_hook to send a command to an open vim session whenever the current file/line number changes. Effectively giving me a "live updating" ...
0
votes
1
answer
203
views
LLDB how to add symbol files at certain address?
In GDB you can do add-symbol-file <library> <address> to load symbols files at a particular address. What's the equivalent in LLDB?
I have already tried
image add <symbol file>
...
0
votes
1
answer
135
views
Asserts emit SIGABRT in debug mode
CLion SIGABRT
I am using CLion 2024.1.6, lldb-1600.0.39.3. In debug mode, the program triggered SIGABRT. It is expected that breakpoints should be triggered here. I want to know what the problem is.
I ...
1
vote
0
answers
91
views
Attach lldb debugger to the compiled program's executable when the main executable is not the compiled program
I am building an MPI C project in Xcode. In order to do run it, I had to:
Specify /path/to/mpiexec in Edit Scheme -> Run -> Info -> Executable, instead of the "default" one, say ...