DerekSelander/LLDB

symbol import in lldb

reverseXiang opened this issue · 2 comments

I would like to ask you how to solve the problem of symbol import in lldb, when I use it, I get an error like this "use of undeclared identifier 'Method'", and it seems to be very time consuming to import the required system headers one by one, because one system header file may depend on another system header file.

Happy to look into it, please give me a concrete example of what Xcode are you using, what you are trying to do, and what's failing

This is on a windows machine remote debugging an arm64 ios 17.4 device for the process of instagram via gdb-remote protocol.

search UIView
error:


error: error: error: <user expression 9>:7:5: unknown type name 'CFMutableSetRef'
7 | CFMutableSetRef classesSet;
| ^
error: <user expression 9>:8:5: unknown type name 'CFMutableSetRef'
8 | CFMutableSetRef results;
| ^
error: <user expression 9>:11:5: unknown type name 'CFMutableArrayRef'
11 | CFMutableArrayRef ptrRefResults;
| ^
error: <user expression 9>:15:21: unknown type name 'task_t'
15 | auto task_peek = [](task_t task, vm_address_t remote_address, vm_size_t size, void **local_memory) -> kern_return_t {
| ^
error: <user expression 9>:15:34: unknown type name 'vm_address_t'
15 | auto task_peek = [](task_t task, vm_address_t remote_address, vm_size_t size, void **local_memory) -> kern_return_t {
| ^
error: fatal too many errors emitted, stopping now
error: while importing modules:
Header search couldn't locate module Foundation
error: Header search couldn't locate module ObjectiveC