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

List source around break point in lldb

When I arrive at a breakpoint in lldb, I want to be able to see the source code around the stopped point of execution. The l command does not appear to have any option to do that: help l List relevant source code using one of several shorthand…
Thomas
  • 6,032
  • 6
  • 41
  • 79
0
votes
1 answer

How to reinstall / reset lldb?

My LLDB seems like broken by a plugin. Its output seems a little bit weird like this: Process 771 stopped * thread #1, stop reason = signal SIGSTOP frame #0: 0x0000000100ac1000 cy-5Xn7dn.dylib`_dyld_start cy-5Xn7dn.dylib`_dyld_start: I don't…
0
votes
0 answers

Debug Rcpp with ldbb: variables not available

I'm making a package with RcppArmadillo under the latest version of Rstudio (1.3.959) and R (4.0.0). Consider the following minimal example, which create the package…
infophile
  • 21
  • 2
0
votes
1 answer

Is there a way to watch memory allocation and '\0' signs in VScode or CLion?

I use this website to debug small programs. And it shows in a clear way what's happening with memory on each step. Like on the screenshot. In VScode I only know how to write an expression for each element of the array str[i]; and watch it. It shows…
kukinpower
  • 45
  • 1
  • 1
  • 7
0
votes
2 answers

LLDB - count the number of steps to execute a thread or to execute a function eg. main(), and skip to Xth step

(1) Is there a way to count the number of steps it takes to execute a function or a thread with LLDB? As an example, #include int main() { printf("\n\n\t\tStudytonight - Best place to learn\n\n\n"); // step count: 1 int number; …
forgodsakehold
  • 870
  • 10
  • 26
0
votes
1 answer

call methods on WKWebView from lldb

As I debug my app to find why the webview dowsn't receive my messages, I found out that another WkWebview (let's call it B) was created on top of my existing webview (A). Since I only have reference to A, I'm trying to evaluate js directly on B…
Yarden
  • 45
  • 6
0
votes
0 answers

Cannot create Swift scratch context in LLDB (couldn't load the Swift stdlib)

I have a swift module managed by CocoaPods, the spec file looks like this: s.source_files="#{root}/xxx-umbrella.h","#{root}/Classes/**/*.{h,m,swift}" s.swift_version = '5.0' s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" } It's not a pure…
boog
  • 1,813
  • 3
  • 18
  • 21
0
votes
1 answer

Can I skip one line and stop?

In gdb I have this define in order to skip one line define skip tbreak +1 jump +1 end Can one do the same with lldb?
brian0
  • 95
  • 8
0
votes
0 answers

Displaying the FPU registers in LLDB in floating point

I’m trying to display the contents of a desired FPU register in floating point. It’s very simple in GDB: p $st0 I know that register is called stmm0 in LLDB, but I can only get it to display the ten byte in hexadecimal. I haven’t been able to…
0
votes
1 answer

Disable LLDB restoring state whenever a function called within debugger is crashed

I'm debugging a C project using LLDB debugger. I'm attaching the debugger to a program and then calling some functions within the debugger, which are expected to crash. I wanted to know where this function crashes. The problem is - since the…
Insaf K
  • 336
  • 4
  • 8
0
votes
0 answers

How to add `stop-hook` in Visual Studio

Using XCode with lldb, I can add stop-hook like this target stop-hook add expr -- (int) printf(...., some_function_in_app()) DONE which will run everytime a breakpoint is caught. How can I achieve this in Visual Studio ?
0
votes
0 answers

LLDB run command not asking for input c++

I have a program that I compiled with clang++ -Wall -g, and it runs when I just do ./a.out. It asks me for my input and then computes some stuff. However, when I try debugging it with LLDB, the run command doesn't ask for an input. I just did: lldb…
henhao
  • 1
  • 2
0
votes
0 answers

lldb type summary not work for sub-object

I have written a python script to provide summary function for a class, and it work fine for inspecting the instance directly. def init(debugger): debugger.HandleCommand("type summary add -F pix_lldb.pix_lldb_summary.show_bxstr bxstr") def…
fatfatson
  • 796
  • 10
  • 24
0
votes
1 answer

How to attach the second next process with lldb

Is is possible to let lldb to attach to the 2nd new process of some executable? We could attach the next new process of some executable with attach -w -n "/path/to/executable" But now an action will launch a pair of instances of some executable, I…
brook hong
  • 573
  • 6
  • 13
0
votes
1 answer

Setting breakpoint in dynamic loader on iOS simulator

I'm running into an issue where the dynamic loader is crashing in dyld_sim`memcmp. I'm trying to determine which library was loading at the time, but the stack seems corrupt (at least, the argument registers aren't available). So I'm trying to set a…
Rick
  • 3,298
  • 3
  • 29
  • 47
1 2 3
99
100