跟着书本做例子,用lldb附加了一另外一个程序。
image list -o -f之后,输入c
[321] 0x0000000001318000 /Users/barryng/Library/Developer/Xcode/iOS DeviceSupport/9.1 (13B143)/Symbols/System/Library/PrivateFrameworks/PrototypeTools.framework/PrototypeTools
[322] 0x0000000001318000 /Users/barryng/Library/Developer/Xcode/iOS DeviceSupport/9.1 (13B143)/Symbols/System/Library/PrivateFrameworks/ProgressUI.framework/ProgressUI
[323] 0x00000000014f8000 /Users/barryng/Library/Developer/Xcode/iOS DeviceSupport/9.1 (13B143)/Symbols/System/Library/PrivateFrameworks/CoreTime.framework/CoreTime
[324] 0x00000000000d4000 /Users/barryng/Library/Developer/Xcode/iOS DeviceSupport/9.1 (13B143)/Symbols/usr/lib/dyld
(lldb) c
Process 1345 resuming
以上还是正常的,可是没有任何操作,过了一会,就出现以下错误:
Process 1345 stopped
- thread #1: tid = 0x20894, 0x0000000198c73140 libsystem_kernel.dylib
__pthread_kill + 8, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x0000000198c73140 libsystem_kernel.dylib
__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
→ 0x198c73140 <+8>: b.lo 0x198c73158 ; <+32>
0x198c73144 <+12>: stp x29, x30, [sp, #-16]!
0x198c73148 <+16>: mov x29, sp
0x198c7314c <+20>: bl 0x198c5a140 ; cerror_nocancel
(lldb)
不知道是什么原因造成的,求解~