我正在尝试 lldb 调试这个特定的 iOS 应用程序。
它的行为是当我单击应用程序时,会出现启动/加载屏幕,然后是主要活动。
但是,每当我尝试通过 lldb 调试应用程序时,它都会卡在启动/加载屏幕中。即使我设置了断点,它也不会停止,而是停留在屏幕上。
例如,当我通过 lldb 处理连接时,会显示:
Process 2517 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x000000010496d444 dyld` dyld::findMappedRange(unsigned long) + 32
dyld`dyld::findMappedRange:
-> 0x10496d444 <+32>: cbz x8, 0x10496d460 ; <+60>
0x10496d448 <+36>: ldur x13, [x12, #-0x8]
0x10496d44c <+40>: cmp x13, x0
0x10496d450 <+44>: b.hi 0x10496d460 ; <+60>
0x10496d454 <+48>: ldr x13, [x12]
0x10496d458 <+52>: cmp x13, x0
0x10496d45c <+56>: b.hi 0x10496d47c ; <+88>
0x10496d460 <+60>: add x11, x11, #0x1 ; =0x1
Target 0: () stopped.
thread #1: tid = 0x1e2a0, 0x000000010496d444 'dyld`dyld::findMappedRange(unsigned long) + 32, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
然后, I continue,但启动/加载屏幕不会处理到下一个活动。
Process 2517 resuming
所以我process interrupt停下来,lldb显示以下内容:
Process 2517 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x000000018348816c libsystem_kernel.dylib` mach_msg_trap + 8
libsystem_kernel.dylib`mach_msg_trap:
-> 0x18348816c <+8>: ret
libsystem_kernel.dylib'mach_msg_overwrite_trap: 0x183488170 <+0>: mov x16, #-0x20
0x183488174 <+4>: svc #0x80
0x183488178 <+8>: ret
libsystem_kernel.dylib'semaphore_signal_trap: 0x18348817c <+0>: mov x16, #-0x21
0x183488180 <+4>: svc #0x80
0x183488184 <+8>: ret
libsystem_kernel.dylib'semaphore_signal_all_trap: 0x183488188 <+0>: mov x16, #-0x22
Target 0: () stopped.
* thread #1: tid = 0x1e2a0, 0x000000018348816c 'libsystem_kernel.dylib`mach_msg_trap + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #7: tid = 0x1e646, 0x00000001834a6314 'libsystem_kernel.dylib`__semwait_signal + 8, name = 'DeadLockMonitorThread'
thread #8: tid = 0x1e647, 0x000000018348816c 'libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.uikit.eventfetch-thread'
thread #11: tid = 0x1e667, 0x000000018348816c 'libsystem_kernel.dylib`mach_msg_trap + 8, name = 'APFileLog'
thread #17: tid = 0x1e66d, 0x000000018348816c 'libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.NSURLConnectionLoader'
thread #18: tid = 0x1e67b, 0x000000018348816c 'libsystem_kernel.dylib`mach_msg_trap + 8, name = 'AVAudioSession Notify Thread'
thread #19: tid = 0x1e68b, 0x00000001834a5e1c 'libsystem_kernel.dylib`__psynch_cvwait + 8
thread #20: tid = 0x1e6ea, 0x000000018348816c 'libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.alipay.antlog'
thread #21: tid = 0x1e70c, 0x00000001834a6a88 'libsystem_kernel.dylib`__workq_kernreturn + 8
thread #22: tid = 0x1e719, 0x00000001834a6a88 'libsystem_kernel.dylib`__workq_kernreturn + 8
有谁知道为什么它没有通过启动/加载屏幕?
谢谢