Determine nested return value from asm in debugger
Determine nested return value from asm in debugger
- Subject: Determine nested return value from asm in debugger
- From: Trygve Inda <email@hidden>
- Date: Thu, 30 Apr 2009 06:06:02 +0000
- Thread-topic: Determine nested return value from asm in debugger
Given:
if ([lock lockWhenCondition:kConditionThreadMustExit beforeDate:[self
blockUntil]])
The end of blockUntil in this case is a simple return ([NSDate date])
I need to be able to see the return value of blockUntil while I am stepping
through the asm of the above "if" statement.
It looks like the last asm lines of the blockUntil method are:
0x0000a5bd <+0241> call 0x2d288 <dyld_stub_objc_msgSend>
0x0000a5c2 <+0246> mov êx,-0xc(ëp)
0x0000a5c5 <+0249> mov -0xc(ëp),êx
0x0000a5c8 <+0252> add $0x24,%esp
0x0000a5cb <+0255> pop ëx
0x0000a5cc <+0256> leave
0x0000a5cd <+0257> ret
It then comes back to finish the rest of the if statement
0x0000a400 <+0820> mov êx,íx
0x0000a402 <+0822> lea 0x21219(ëx),êx
0x0000a408 <+0828> mov (êx),êx
0x0000a40a <+0830> mov íx,0xc(%esp)
0x0000a40e <+0834> movl $0x2,0x8(%esp)
0x0000a416 <+0842> mov êx,0x4(%esp)
0x0000a41a <+0846> mov %esi,(%esp)
0x0000a41d <+0849> call 0x2d288 <dyld_stub_objc_msgSend>
Which register is the pointer to the NSDate in and how can I print its
description to the console?
Thanks,
Trygve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden