使用Valgrind测试iPhone应用程序 [英] Testing iPhone app with Valgrind

查看:97
本文介绍了使用Valgrind测试iPhone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很棒的错误:对象被释放后被修改,因此我倾向于使用valgrind。从他们的svn成功安装后,请按以下步骤操作:

I have terrific bug "object was modified after being freed", so I tend to take valgrind. After successfull installation from their svn, doing little trick from here:

http://landonf.bikemonkey.org/code/iphone/iPhone_Simulator_Valgrind.20081224.html

我的路径到valgrind的路径,我得到调试器终止。使用gdb日志:

and changing path to valgrind with my one, I get "Debugger terminated." with gdb log:

[会议开始于2010-08-03 10:47:25 +0500。]
GNU gdb 6.3.50-20050815(Apple版本gdb-1469)(UTC 2010年5月5日星期三04:36:56)
版权所有2004自由软件基金会,公司。
GDB是自由软件,受GNU通用公共许可保护,您是
欢迎您在某些条件下进行更改和/或分发。
键入显示复制以查看条件。
GDB绝对没有保修。键入显示保修以获取详细信息。
此GDB配置为 x86_64-apple-darwin。sharedlibraryapply-load-rules全部
附加到进程17763。
警告:无法删除 0x8fe0b830处的断点。
因为程序不再可写,所以无法删除断点。
它可能正在另一个进程中运行。
进一步执行可能是不可能的。
警告:check_safe_call:无法恢复当前帧

[Session started at 2010-08-03 10:47:25 +0500.] GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all Attaching to process 17763. warning: Could not remove breakpoint at "0x8fe0b830". Cannot remove breakpoints because program is no longer writable. It might be running in another process. Further execution is probably impossible. warning: check_safe_call: could not restore current frame

警告:check_safe_call:无法恢复当前帧

warning: check_safe_call: could not restore current frame

为线程0x5123lx1243的浮点寄存器调用thread_get_state时出错,错误,msg =目前无法安全调用dlopen。

Error calling thread_get_state for float registers for thread 0x5123lx1243^error,msg="Not safe to call dlopen at this time."

请告知我。

推荐答案

运行而不是调试。

这篇关于使用Valgrind测试iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆