QTCreator 中分析菜单下的valgrind工具使用
ldxab 2018-01-31 10:09:31 各位大牛们,想使用valgrind检测一下代码的漏洞,但是点击分析菜单下的“valgrind内存分析器”后,弹出如下错误:
内存分析中/root/Desktop/helloworld/memchecktest/memchecktest/memchecktest
valgrind: Bad option: --xml=yes, but no XML destination specified
valgrind: --xml=yes has been specified, but there is no XML output
valgrind: destination. You must specify an XML output destination
valgrind: using --xml-fd, --xml-file or --xml-socket.
valgrind: Use --help for more information or consult the user manual.
** 分析完成**
** 未知的错误 **
从错误输出中可以看出应该是执行valgrind命令行中配置了xml选项但是没有参数,我想修改QT调用的命令行,但是找不到从哪里能够修改,请问题有遇到这个问题的么?如何能够修改?
另外,QT用在redhat的linux系统上,我通过命令行的方式(非QTcreator中的菜单工具)能够执行valgrind,但是这样麻烦,还是直接使用QTcreator工具比较方便一些。