Valgrind没有显示函数名称

时间:2014-12-11 04:25:27

标签: valgrind

我现在用valgrind测试我的程序。

结果很奇怪。

所以我的期望就像下面的

    ==19364== Conditional jump or move depends on uninitialised value(s)
    ==19364==    at 0x20ED4E25: ipConvert (in /usr/lib/libhpip.so.0.0.1)
    ==19364==    by 0x20EB7595: sclpml_read (in /usr/lib/sane/libsane-hpaio.so.1.0.0)
    ==19364==    by 0x424595: _scanner_scan_thread_gthread_func (scanner.c:7155)

在上面的例子中,有“at”和“by”但在我的结果中我只是“at”

    ==7807== HEAP SUMMARY:
    ==7807==     in use at exit: 3,940,633 bytes in 1,119 blocks
    ==7807==   total heap usage: 2,466 allocs, 1,347 frees, 4,848,416 bytes allocated
    ==7807==
    ==7807== 24 bytes in 3 blocks are definitely lost in loss record 2 of 14
    ==7807==    at 0x4836994: operator new(unsigned int) (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so)

所以印刷的一切都是一样的。没有“通过”只是“在”。

我想做什么?

请帮帮我。

感谢。

1 个答案:

答案 0 :(得分:0)

我找到了。

编译时,必须删除-formit-frame-pointer标记。

祝你好运!