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

Using LLDB API to get the address of an expression in an elf file compiled with ARM-GCC

Given an ARM .elf file with a nested structure in a .cpp file, I can use LLDB to evaluate an expression to get an address of a global structure/array element. lldb my_arm.elf (lldb) ex &user_data.sub_type[2].i[3] This gives the expected…
Jim Fred
  • 1,076
  • 13
  • 27
0
votes
0 answers

LLDB Automatic Stepping Through Program With Python Returning Steps/Lines That Don't Appear Manually

Following LLDB - automatically step, and print list of lines, until a breakpoint, I was able to successfully write a csv file of the line numbers and file names of each step when stepping through my program. However, I find my output very strange.…
forgodsakehold
  • 870
  • 10
  • 26
0
votes
0 answers

lldb: `frame variable` has no value return

I use electron/build_tools to build electron and run e init --root=~/electron --bootstrap testing; e debug.(e debug runs local Electron build inside of lldb.) Set a breakpoint by (lldb) br set --file archive.cc --line 155 Print any variable in this…
Jenny
  • 111
  • 8
0
votes
0 answers

How to pass arguments to mac terminal in llldb mode

I'am developing an mac app.I need to open the terminal and execute lldb command. I've found the solution:Open a terminal window to a specified folder from a Cocoa app. However,i need to pass more arguments to the opened terminal after entering lldb…
0
votes
1 answer

Where can I found a documentation for raw input of LLDB commands?

Some of LLDB commands have informations that accept raw input but I am not sure what can be in that 'input'. It seems to me that it is not specified by documentation. For example: process launch --stop-at-entry -- -program_arg value I really don't…
lapwingg
  • 112
  • 9
0
votes
1 answer

LLDB - automatically step, and print list of lines, until a breakpoint

I'd like to keeping on executing the following command: (lldb) s until it reach a breakpoint. Or simply when it reaches some function (eg. read()) While this is happening, I'd like to save the list of line numbers (and the full path of the files)…
forgodsakehold
  • 870
  • 10
  • 26
0
votes
1 answer

LLDB fails to examine global variables

A global var is defined in my framework var showersInProgress: [ProgressShower] = [] It's global so that I can stop the program and hopefully examine the state like so: (lldb) po showersInProgress error: :1:1: use of undeclared…
Anton Tropashko
  • 5,486
  • 5
  • 41
  • 66
0
votes
1 answer

LLDB: restart an appliation in the same session (and keeping all memory/context) upon hitting a signal?

Say I'm in the middle of a function and LLDB stopped on a segfault (bad memory access). Is it possible to clear the signal, and return to main, and re-execute everything? (If the code has made any stateful changes, i would expect those to be…
Curious Learner
  • 343
  • 2
  • 9
0
votes
1 answer

LLDB fails to read the memory adresses in the argv pointer-array, given as an argument in the main method in C

I am trying to reproduce an example given in the book "The Art of Exploitation" by Jon Erickson. The procedure is actually pretty simple: I want to give commandline-arguments to my program and examine their memory addresses using lldb. The C class…
Paul B.
  • 3
  • 2
0
votes
1 answer

when remote-debugging with lldb, does the remote binary need debug symbols?

With gdb, the remote binary can be stripped, and local binary contain debug symbols. With lldb, I can use gdb-remote to connect to the remote gdbserver, but how do I tell lldb where to find debug symbols? lldb local-binary doesn't seem to recognize…
sify
  • 645
  • 9
  • 19
0
votes
1 answer

LLDB summary strings without quotes

Lets say that I have a c++ class that contains two c strings like below. class PathExample { char* partA; // Eg: "/some/folder/" char* partB; // Eg: "SomeFile.txt" } I can make an lldb summary string for it: type summary add PathExample…
0
votes
0 answers

swift project scope, how to convert address to custom class?

using po in swift project, how to convert address to custom class? I know the default UIKit is using Objective-C here is what I tried: (lldb) po 0x7fe5d570f600 <ÊàëËØª‰Ω†Èªò.MineController: 0x7fe5d570f600> I don't know what ÊàëËØª‰Ω†Èªò is (lldb)…
DNG
  • 599
  • 4
  • 14
0
votes
1 answer

Androidstudio 4.1.2 Native debugging not getting connected and app crashes

I'm hitting this issue in Androidstudio 4.1.1 and 4.1.2 Whenever I try to debug the app in dual mode, the app crashes while androidstudio tries to start native debug session and then it fails to connect to the debugger(obviously!). Here's the…
0
votes
0 answers

module.GetUUIDString() is nil in linux but working fine in Mac for same .app and crashlog file

I am creating a lldb parser to symbolicate crashlog. Parser is working fine in mac machine but not in Linux(VirtualBox). After debugging python script I found that module.GetUUIDString() is giving nil in linux machine where module
Bhupesh Kumar
  • 369
  • 2
  • 18
0
votes
0 answers

LLDB: No selected frame to use to find the default file. No file supplied and no default file available

I've made a "Hello World!" C file called a.c. #include int main(int argc, char *argv[]) { printf("Hello World!"); return 0; } To compile I run clang -g a.c -o a.exe To debug I run C:\folder>lldb a.exe Current executable set to…
TwistyTurtleFish
  • 61
  • 1
  • 2
  • 8