今天写了个demo添加了一个symbolic break
然后断点出发后打印
po $arg1
po $arg2
po $arg3
po $arg4
po $arg5
po $arg6
这6个参数都有输出, 本人想知道这6个具体指的是些什么内容? 有相关文档推荐下
然后断点出发后打印
po $arg1
po $arg2
po $arg3
po $arg4
po $arg5
po $arg6
这6个参数都有输出, 本人想知道这6个具体指的是些什么内容? 有相关文档推荐下
解决方案
40
参考如下帖子:
http://stackoverflow.com/questions/27831946/in-the-iphone-arm64-calling-convention-what-is-in-register-x1
核心思想就是下面这句话:
lldb provides register alias names for armv7/arm64/x86_64, $argi, to refer to the ith argument. $arg1, $arg2
深入了解推荐如下文章和相关引用:
https://www.objc.io/issues/19-debugging/debugging-case-study/#calling-conventions-101
http://stackoverflow.com/questions/27831946/in-the-iphone-arm64-calling-convention-what-is-in-register-x1
核心思想就是下面这句话:
lldb provides register alias names for armv7/arm64/x86_64, $argi, to refer to the ith argument. $arg1, $arg2
深入了解推荐如下文章和相关引用:
https://www.objc.io/issues/19-debugging/debugging-case-study/#calling-conventions-101