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

Continue after python-lldb script has finished

Is there a better way to issue the continue command, after my python-lldb script has finished ? def HelloWorld(debugger, command, result, internal_dict): """ HelloWorld function. It will print "Hello World", regardless of where lldb…
rustyMagnet
  • 3,479
  • 1
  • 31
  • 41
0
votes
1 answer

How to set debugserver's log level to LOG_RNB_PROC?

In LLVM project, debugserver.cpp has many logging levels. How to change it.
kuperxu
  • 55
  • 8
0
votes
1 answer

Debugging Python segmentation fault on Mac OS Catalina

I'm developing an application with PySide2 and scikit-learn. The application works properly if I use a single thread, but if I move the sckikit-learn calculations to a worker QThread (to keep the UI responsive during the processing) I get random…
Wolfy
  • 1,445
  • 1
  • 14
  • 28
0
votes
1 answer

Find methods that have been swizzled

If I am debugging a Mach-O binary using lldb, what data structures in memory can I examine to determine if any methods have been swizzled? Any steps I can follow? Also, is there a way to determine programmatically if any methods have been swizzled?
localacct
  • 611
  • 5
  • 13
0
votes
1 answer

Change value of const variables in LLDB

Const variables are good. However, sometimes I want to dynamically change their values when debugging to trace some specific behavior. When I po flag = NO I receive this error: error: :1:34: cannot assign to variable 'flag' with…
an0
  • 17,191
  • 12
  • 86
  • 136
0
votes
1 answer

Is there a data structure or class in LLDB to store the commands which typed from command line?

For some reasons I need to analysis the commands typed from stdin,eg:"br s -f hello.cpp -l 4". but I find it is hard to get where these commands stored in LLDB.
0
votes
1 answer

How to list in which function each thread is at with lldb?

I'm trying to debug a multithreaded function, and there are lots of threads that execute functions that take some time. The program works for a while and then hangs. I'd like to know what each thread is doing when this happens, to know which part of…
Guerlando OCs
  • 1,886
  • 9
  • 61
  • 150
0
votes
1 answer

LLDB lost the ability to autocomplete filenames

I'm not sure if I've been dreaming these past years, but all the time I've used lldb, I've been able to autocomplete source file names when setting breakpoints (lldb) breakpoint set --file m would autocomplete to (lldb) breakpoint set --file…
oarfish
  • 4,116
  • 4
  • 37
  • 66
0
votes
1 answer

Windows 10 LLDB error: Unable to resolve breakpoint to any actual locations

I'm on Windows 10, compiled llvm 11 with MSVC 16. This is main.cpp: #include int main() { std::cout << "Hello world" << std::endl; } These are the commands I run clang -g -O0 main.cpp -o a.exe lldb a.exe (lldb) target create…
Percee
  • 449
  • 5
  • 25
0
votes
1 answer

LLDB debugging - ignore variables of specific classes to speed up debugging

I'm new to c++ debugging and LLDB. I'm using VSCode with its c++ adapter, LLDB as the debugger, and bazel as the build system. My application deals with manipulating images. The application runs quickly but debugging it is very slow. That's…
NateW
  • 2,856
  • 5
  • 26
  • 46
0
votes
1 answer

How can I print XPC msg in lldb the full object using po or other method

(lldb) po 0x7fa5ed509460 : { length = 1921 bytes, contents = 0x62706c6973743030d4010203040506070a58247665727369... }> I have an…
jakob
  • 23
  • 2
0
votes
1 answer

Key mapping in LLDB

Is there any way to specify key mappings in LLDB? Similar to Key mapping in GDB.
Franklin Yu
  • 8,920
  • 6
  • 43
  • 57
0
votes
0 answers

How to find method, linked to NSButton?

I have Cocoa application, with a code, partially hidden in a framework. I need to press NSButton programmatically. When I use [myNSButton performClick:self], it behave differently, that when I press button physically. So I decide to find method,…
Alex
  • 36
  • 4
0
votes
2 answers

How do I update a NSAttributedString from within lldb

I am seeing this currently expr self.attributedText = [(NSAttributedString *)([NSAttributedString alloc]) initWithString:@""]; error: :1:75: no known method '-initWithString:'; cast the message send to the method's return…
Max
  • 29
  • 2
0
votes
1 answer

lldb optional Date it's never nil

Can someone explain me why the lldb when printing a Date optional passed as nil doesn't print nil. I declared a function which receives optional Date: override func setup() { super.setup() optionalFooTest(startDate: nil, endDate:…
firetrap
  • 1,947
  • 3
  • 24
  • 39