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

How to debug VBA code on MacOS using lldb

Assume I have VBA code that runs on Microsoft Office, how can I plug the runtime VBA into lldb to understand better what actually runs and where staff doesn't run, what is the underlying cause of it?
park joh
  • 23
  • 3
0
votes
1 answer

I encountered a very strange question about LLDB modifying variables

I set the breakpoint at line 29, and I want to modify the value through LLDB to let him enter the == 1 situation, but I found that this breakpoint jumped to line 33 without hitting it, which is very strange. class ViewController: UIViewController…
Zuqiu
  • 9
  • 1
0
votes
1 answer

LLDB How to use a file-defined macro in OC

Ive tried multiple variations of this, but none of them seem to work. Any ideas? in ViewController.m UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(100, 200, 300, 300)]; view1.backgroundColor = [UIColor redColor]; [self.view…
Zuqiu
  • 9
  • 1
0
votes
2 answers

Segmentation Fault Using LLDB

When I was debugging my .c file using lldb on terminal for Mac, I some how cannot find the location of the segmentation fault. I have debugged the code numerous of times and it is still producing the same error. Can someone help me on why I can find…
Aman
  • 1
  • 2
0
votes
0 answers

How do you print a struct in LLDB that can be used in C code

I would like to print a struct and then be able to copy/ paste the output into some of my code for setting up unit tests. ie something like typedef struct FOO{ int array[5]; const char * string; char stringBuff[5]; } FOO; FOO a = {.array =…
Sam P
  • 681
  • 5
  • 19
0
votes
1 answer

UNKNOWN classes in dumpheap sos plugin in linux

I try to detect memory leak on my .net core server and make memory dump via gcore. Try to analyze it via lldb and sos on debian 9. ulimit -c unlimited sudo gcore -o dump $(pidof dotnet) sudo lldb-4.0 $(which dotnet) --core ./dump.MY_PID (lldb)…
0
votes
2 answers

How to input value when use lldb debug my code

When I debug my program with lldb, I set a breakpoint in the main function, why did it end directly? In addition, the terminal should wait for my input ... func.c #include "func.h" void insert_head(pnode *phead,pnode *ptail,int i){ …
苏凯承
  • 51
  • 1
  • 8
0
votes
1 answer

How to find where my code is running with lldb

I have a big project (more specifically LibO). While reading the whole docs and code costs too much time, I just want to know where my code is running without setting breakpoints because I know a little about the project. That is, I want a command…
xiaoyu2006
  • 507
  • 7
  • 20
0
votes
2 answers

Debugging Python script that runs inside lldb

I want to send commands to a neovim instance from a lldb (gdb) extension python script. While this works without a problem with gdb, i get a python exception in lldb. Minimal example: (gdb) source test.py #works (lldb) command script import test.py…
Amr Memdu
  • 41
  • 5
0
votes
2 answers

How to make the command interpreter aware of the newly created target

I want to use LLDB as a python library as described here https://lldb.llvm.org/use/python-reference.html#using-the-lldb-py-module-in-python. After creating a target with debugger = lldb.SBDebugger.Create() target =…
Dimitri Vorona
  • 450
  • 3
  • 13
0
votes
1 answer

LLDB Python API, how do I find load address of a module?

I am trying to write a Python plugin for lldb that will make a breakpoint based on a given module name and an offset from the start of that module. Currenlty I'm doing so manually, with commands like: (lldb) image list my_module [ 0]…
LeeNeverGup
  • 1,096
  • 8
  • 23
0
votes
2 answers

How to execute a debugger command from within the app

In runtime I'm trying to recover an address of a function that is not exported but is available through shared library's symbols table and therefore is visible to the debugger. I'm working on advanced debugging procedure that needs to capture…
Kentzo
  • 3,881
  • 29
  • 54
0
votes
2 answers

What is SBLineEntry.GetLine()?

SBLineEntry is a proxy object in LLDB Python interface. SBLineEntry.GetColumn() returns point in a line, but I am not sure what it actually means. In C++ side source, it resolves to LineEntry.column value, but it also lacks how it is measured in. At…
eonil
  • 83,476
  • 81
  • 317
  • 516
0
votes
2 answers

lldb source paths for an external framework

I've made a small WebRTC player on macOS that is linked against Googles libwebrtc to torubleshoot my WebRTC streaming backend. But I am having issues putting any breakpoints in libwebrtc. For example, if I set a breakpoint in a known file like this…
Rudolfs Bundulis
  • 11,636
  • 6
  • 33
  • 71
0
votes
1 answer

lldb complains about variable named "this"

I'm using Xcode/lldb to debug some C code. But I get this error (lldb) p (int)g_list_position(start, next) (int) $0 = 1 (lldb) p (int)g_list_position(start, this) error: expected unqualified-id error: invalid use of 'this' outside of a non-static…
Maury Markowitz
  • 9,082
  • 11
  • 46
  • 98
1 2 3
99
100