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
2 answers

How do I can print shared dependencies of ios app in Linux

I want to print shared object dependencies of ios app in linux script for crash parsing. But I am getting following error while executing commands. 1) ldd ./demoApp.app not a regular file 2) ldd ./demoApp.ipa not a dynamic executable 3) ldd…
Bhupesh Kumar
  • 369
  • 2
  • 18
0
votes
0 answers

How do I interpret this lldb trace?

Following a segfault in my program, I tried using lldb for the first time to debug it and find the problematic line (I tried with valgrind at first, but it wasn't all that helpful), but the trace is less than clear, and I haven't been able to find…
Morgade
  • 33
  • 7
0
votes
1 answer

Is it possible to use a label as a breakpoint in a nasm file using lldb?

I am struggling with constant changes to a code written in nasm using os x 64 bit. I find it rather boring having to redefine the line where to make a break point every time (because changing the code, the line changes). So I thought of using a…
Roberto Rocco
  • 450
  • 2
  • 11
0
votes
2 answers

Android studio 4.1.1 Failed to connect port

I'm using Android studio 4.1.1 on a windows machine with gradle 6.5, NDK version=21.3.6528147 and SDK platform tools 30.0.5 When I try to connect a debugger I get "Failed to connect port" message with exit code 0. (maybe has something to do with…
Niki
  • 33
  • 4
0
votes
1 answer

How can I store "image lookup -v address" result inside a variable?

I am able to symbolicate symbol address through following lldb command: image lookup --address $SYMBOL_ADDRRESS But while writing a shell script to parse, I am not able to find a way to store the output of above command into a variable or file.
Bhupesh Kumar
  • 369
  • 2
  • 18
0
votes
0 answers

Can we use lldb in shell script(Bash)?

I need to execute few lldb commands in sequence using bash script. In my script, it opens lldb in terminal but do not execute rest commands.
Bhupesh Kumar
  • 369
  • 2
  • 18
0
votes
0 answers

how to get all strong references to an object in LLDB

How to get all strong references to an object (identified by address) in LLDB? I tried to use ptr_refs (as in this post) but it contains too many, which makes me think not all of them are strong references (or existing ones) because I called…
grubbyfan
  • 1
  • 1
0
votes
1 answer

"Console" showing nil value for variable whereas "Variables view" showing values for the same

During debugging I noticed that console was showing nil values for all the properties of an object when I used po command but it passed !=nil validation so I checked the Variables view and it showed that the properties were not actually nil but had…
user121095
  • 697
  • 2
  • 6
  • 18
0
votes
1 answer

swift LLDB, Let variables often appear in projects, and I want to modify them so that I don't have to reruns the project

How do I change this value directoryPath let directoryPath = String(URL(fileURLWithPath: filePath).deletingLastPathComponent().absoluteString.dropLast()) if createDirectory(filePath: directoryPath) { }
swifter
  • 1
  • 1
0
votes
1 answer

How to set an expression as a watchpoint in LLDB?

Here is a program: int main(int argc, char **argv) { int *arr = NULL; arr = malloc(2 * sizeof(*arr)); arr[0] = 1; arr[1] = 2; return 0; // break is here } I want to examine the content of an arr on a break. Here is how I…
Timur Fayzrakhmanov
  • 17,967
  • 20
  • 64
  • 95
0
votes
1 answer

Is there a way to get a an integer stored in memory output in lldb having a watch point

Is there a way to get a an integer stored in memory x8 00000....21 output in lldb having a watch point on ex: 0x000000010092e1b4 without stoping the app (i am trying to read a live int value from an IOS app)
dn70a
  • 73
  • 2
  • 8
0
votes
0 answers

How to unit test in XCTest auto layout exceptions that are dynamic?

When a test is running and it detects an auto layout exception it should fail it. What I don't want to do is assert against a specific value. For example I don't want to do this: XCTAssertEqual(view.bounds.height, 200.0)
0
votes
1 answer

Unable to debug Fortran program in VS Code

I'm trying to debug a Fortran program using Visual Studio Code (VSC) under Mac OS X Catalina (10.15.3). I can set a breakpoint and VSC breaks at that line appropriately, but I can't Watch any variables. VSC displays "error: no value" in the Watch…
Epsilon
  • 1,016
  • 1
  • 6
  • 15
0
votes
1 answer

Call make from inside LLDB

I noticed that it is possible to call Gnu Make from gdb’s prompt, but it does not work with lldb. Is there a way to call to call make from lldb ?
cassepipe
  • 371
  • 6
  • 16
0
votes
1 answer

Is there a way to print what an if statement or any other conditional expression evaluates to in LLDB?

Is there a way to print what the condition of an if statement evaluates to in LLDB ? Or the value value of any conditionnal expression at some point in of the execution of the program ? I know how to print a variable with var or print, how to print…
cassepipe
  • 371
  • 6
  • 16