了解 iPhone 堆栈跟踪中的内存偏移量
我试图了解 iPhone 堆栈跟踪中的这些偏移量:
11 FOO 0x0005684a +[TTURLRequest requestWithURL:delegate:] + 42
12 FOO 0x00056840 +[TTURLRequest requestWithURL:delegate:] + 32
十六进制数字 0x0005684a 和 0x00056840 是什么? +42 和 +32 是什么数字?
我希望十六进制数字与二进制文件中的偏移量相匹配。不幸的是,它似乎没有任何对应关系:
$ nm build/AdHoc\ Release-iphoneos/FOO.app/FOO | grep 'requestWithURL'
00056820 t +[TTURLRequest requestWithURL:delegate:]
00056810 t +[TTURLRequest requestWithURL:delegate:]
I'm trying to understand what these offsets are in an iphone stack trace:
11 FOO 0x0005684a +[TTURLRequest requestWithURL:delegate:] + 42
12 FOO 0x00056840 +[TTURLRequest requestWithURL:delegate:] + 32
What are the hex numbers 0x0005684a and 0x00056840? What are the numbers +42, and +32?
I would have expected the hex numbers to match up to offsets in the binary. Unfortunately, it doesn't seem to have any correspondence:
$ nm build/AdHoc\ Release-iphoneos/FOO.app/FOO | grep 'requestWithURL'
00056820 t +[TTURLRequest requestWithURL:delegate:]
00056810 t +[TTURLRequest requestWithURL:delegate:]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
记忆位置。与结构的偏移。
Memory locations. Offsets from/into the structure.