iOS Debugging

Published on February 2017 | Categories: Documents | Downloads: 31 | Comments: 0 | Views: 222
of 52
Download PDF   Embed   Report

Comments

Content

!"# %&'())!*)

+,-. /

9$)%$)0 ")% *($4$)":)0 ;705 $) +.* -/%* $5 " -8$:-"( 3."5* /< +.* %*2*(/34*)+ 38/-*55=

!"#$% '(")*+"  ,*-.)/(/01 !*2*(/34*)+ ,./45/) 6*7+*85 >/)%/)? @7075+ ABCD  ABCD 

E7*5:/)

0123 345& !6 78!79&: ;'<&73=

J4"0$)* +."+ 1/7 "8* )*# +/ +.* 38/K*-+ ")% 1/7 #")+ +/ L7$-H(1 H)/# +.* )"4* /< " 5*(*-+*% -("55= M/# +/ %/ +.$5 75$)0 %*;700*8N

FG2*81;/%1 H)/#5 +."+ 5/4*+.$)0 -")I+ ;* %/)* ")% +.*) 5/4*;/%1 +78)5 73 ")% .* %/*5)I+ H)/# $+ -")I+ ;* %/)* ")% .* %/*5 $+=F $OP !*;700$)0 Q '"8+ J

!"#$% '(")*+" Q ,*-.)/(/01 !*2*(/34*)+

A

E7*5:/) >?@ 0123 345& !6 78!79&: ;'<&73=

M/# +/ R)% +.* ")5#*8N S.*8* ")% #."+ H$)% ;8*"H3/$)+ +/ -8*"+*N (lldb) breakpoint set --name -[UIResponder touchesEnded:withEvent:] (lldb) breakpoint set --name "-[UIWindow sendEvent:]"

 

(lldb) breakpoint set --selector touchesEnded:withEvent: Check breakpoint list.

N

(lldb) breakpoint list

*2E& H6 6&8&73;F :!I&F&*36=

A&3B6 71&79 C123 !6 );!*) ;* !* 31& 7;:&? A;;9 23 D;57;:&@ 266&E'84 !*63F(7G;*6? @55*4;(1 (")07"0*? /8 K75+ "55*4;(1? $5 " (/#T(*2*( 38/08"44$)0 (")07"0*? #.$-. 75*5 4)*4/)$-5? $)5+87-:/)5 ")% /3*8")%5 +/ 8*38*5*)+ 4"-.$)* -/%*=

$OP !*;700$)0 Q '"8+ J

!"#$% '(")*+" Q ,*-.)/(/01 !*2*(/34*)+

D

E7*5:/) (lldb) breakpoint set --name "-[UIResponder touchesEnded:withEvent:]"  Breakpoint 2: where = UIKit`-[UIResponder touchesEnded:withEvent:], address = 0x02cc898e   (lldb) disassemble --frame  

UIKit`-[UIResponder touchesEnded:withEvent:]: -> 0x2cc898e: pushl %ebp

 

0x2cc898f: movl

%esp, %ebp

0x2cc8991: subl

$8, %esp

0x2cc8994: movl   0x2cc8997: movl 0x2cc899b: movl   0x2cc899e: movl 0x2cc89a1: movl

 

 

GU"43(*V 375. *;3 -/31 5+"-H 3/$)+*8 +/ *;3 4"H* 53"-* /) 5+"-H </8 (/-"( %"+"

20(%ebp), %eax %eax, 4(%esp)  16(%ebp), %eax %eax, (%esp) 

*;3 TT 75*% +/ "--*55 %"+" /) 5+"-H /3-/%* 6;(F7&J :&63

8(%ebp), %ecx

  0x2cc89a4: movl 12(%ebp), %edx   0x2cc89a7: calll 0x2cc882d 0x2cc89ac: addl

$8, %esp 

0x2cc89af: popl

%ebp 

; forwardTouchMethod 

0x2cc89b0: ret (lldb)

$OP !*;700$)0 Q '"8+ J

!"#$% '(")*+" Q ,*-.)/(/01 !*2*(/34*)+

W

E7*5:/) G@X T @--747("+/8 6*0$5+*8

0123 61;(8: C& 71&79 *&K3=

LMN O M26& -&)!63&F DP;F (6& C!31 2FF246@ LQN O Q;(*3&F -&)!63&F

G!X T !"+" 6*0$5+*8 GPJ T P/78-* J)%*U

.1F&2: '2793F27&=

L%/ O %&6G*2G;* /*:&K

R;31!*)= A&3B6 F&2: 31& F&)!63&F6S

GY' T Y"5* '/$)+*8 GP' T P+"-H '/$)+*8

(lldb) register read General Purpose Registers:  

eax = 0x0012098 0x0012098e e UIKit`-[UIResponder UIKit`-[UIResponder touchesEnded:withEvent:]

 

ebx = 0x0f4133f0

 

ecx = 0x005b20f9 "touchesEnded:withEvent:"  edx = 0x00000000

 

edi = 0x08a143c0

 

esi = 0x07645d00

 

ebp = 0xbfffe038

 

esp = 0xbfffdefc $OP !*;700$)0 Q '"8+ J

!"#$% '(")*+" Q ,*-.)/(/01 !*2*(/34*)+

Z

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close