lldb Questions

3

Solved

I'm trying to add the capability of generating a stack trace from a core dump on mac automatically when one of our tests crashes. I was able to do it pretty easily on linux with gdb --batch --qui...
Isadoraisadore asked 7/11, 2014 at 23:56

2

Solved

I'm trying to debug a Rust library in Visual Studio Code and I'm running into an issue. When I run the debug, all the breakpoints turn grey and when I hover over them they show Locations: 0 (Pictur...
Titanomachy asked 25/4, 2021 at 22:48

2

I have a large-ish C/C++/Objective-C project building for OS X in Xcode. The project links to pre-built Qt5 libraries. That all works very nicely, until something crashes and I get a stack trace w...
Lifelike asked 6/4, 2015 at 18:27

3

Solved

Message from debugger: Xcode has killed the LLDB RPC server to allow the debugger to detach from your process. You may need to manually terminate your process. I keep running into errors when tryin...
Burger asked 6/9, 2022 at 18:26

3

Solved

This is the test code. #include <string> int main(int argc, char const *argv[]) { std::string a = "hello"; std::string b = "world"; return 0; } I compile it by the command: clang++ te...
Hypotenuse asked 1/9, 2016 at 3:3

7

Solved

I'm getting this error whenever I build in XCode 6 beta 4. It seems to be making my app insanely slow. Warning: Error creating LLDB target at path '/***/***/***/***.app'- using an empty LLDB ta...
Pforzheim asked 1/8, 2014 at 20:35

2

I'm trying to debug a very simple C program on OSX and the debugger is taking MINUTES for each step over instruction, with instructions as simple as doing a single multiplication. I've googled a lo...
Qualified asked 26/3, 2023 at 21:15

4

Solved

I am trying to use lldb for c++ debugging and I want to halt if an exception is thrown, like gdb's catch throw, and I cannot find an equivalent in the lldb documentation.
Octarchy asked 14/11, 2011 at 13:36

3

Solved

I've read this tutorial, but I haven't found there anything about reverse debugging. Does lldb have some features like target record in gdb? If yes, where can I read about it?
Remediless asked 22/8, 2013 at 7:50

16

Solved

I am getting a message in my debugger: The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and att...
Zhdanov asked 26/4, 2017 at 13:22

3

Solved

I need a lldb python library to debug my python script. I made my python environment configuration following the lldb.llvm.org's instructions. But I got some errors as follow: /Users/heping/Deskto...
Krusche asked 4/1, 2020 at 14:9

4

I'm new to lldb and trying to diagnose an error by using po [$eax class] The error shown in the UI is: Thread 1: EXC_BREAKPOINT (code=EXC_i386_BPT, subcode=0x0) Here is the lldb console includi...
Neopythagoreanism asked 18/11, 2014 at 5:28

8

I want to debug OpenSSL on MacOS to see how it creates an elliptic curve point. So, I compiled OpenSSL with debug symbols and no optimizations. However, when I run with lldb, it doesn't work $ cat ...
Howsoever asked 13/10, 2022 at 18:0

3

Solved

I'm used to running gdb like so: $ gdb --args exe --lots --of --flags -a -b -c d e ... (gdb) r Is there an equivalent for lldb?
Teahan asked 29/10, 2015 at 21:8

4

Solved

I'm trying to configure Visual Studio Code for compiling/debugging C++ programs on macOS. I am using the following launch.json file: When I try and start a debugging session, I get the following e...
Spoof asked 26/4, 2021 at 16:33

1

I need to temporarily install a custom signal handler in my code. Afterwards, I need to restore control to the original signal handler. I've seen the following before in other StackOverflow answers...
Muller asked 19/7, 2017 at 5:9

5

Solved

I'm using lldb inside Xcode, and one of my variables contains a huge chunk of JSON data. Using po myVar isn't much helpful to analyse this data, as it will output in the tiny Xcode debug console. I...
Ursola asked 4/10, 2013 at 8:29

2

Solved

I am defining an lldb user variable as follows (no errors reported by lldb): (lldb) expression -l swift -- let $servicesButton = unsafeBitCast(0x127979670, to: UIButton.self) When I attempt to u...
Jurisdiction asked 2/10, 2018 at 14:17

10

Solved

Example: I write the following string in my old project and a new, clear one: UIInterfaceOrientation k = [UIApplication sharedApplication].statusBarOrientation; Console input/output for a clear pr...
Solarism asked 2/3, 2015 at 9:33

2

Solved

I am trying to print a variable's address with lldb. However, calling print &(myVar) prints the variable's content instead of its address. (lldb) print &(myVar) (const string *) $18 = "hel...
Acrylic asked 19/3, 2016 at 17:38

2

Solved

I'd like to print a string, either const char* or std::string, using lldb so that it is human readable. Most importantly, \n's would be printed as a newline. Does anyone know how to do this? I trie...
Chuddar asked 14/12, 2015 at 23:5

5

I'm having a pretty annoying problem in the Swift debugger when I'm trying to print out the description of an object. When trying to print and object, either using the po command or fr v command, I...
Outface asked 3/8, 2015 at 19:43

2

Solved

I'm working on a patch for FFmpeg and need to debug my code. I'm loading an external library, and in order to test different library versions, I have them in different folders. To select which one ...
Phiona asked 7/11, 2015 at 19:58

2

It's a iOS application using cocoapods. Xcode 14 and Xcode 13.4.1 behavior same. I am using a static lib. With Xcode 14 new lldb cmd swift-healthcheck, print "SwiftASTContextForExpressions::L...
Mroz asked 14/6, 2022 at 12:3

3

Solved

How can I debug my Android NDK project in C++, using the lldb debugger from the command line?
Stoat asked 11/12, 2018 at 23:15

© 2022 - 2024 — McMap. All rights reserved.