我正在尝试在基于 Debian 的嵌入式 PowerPC 系统上安装 Valgrind。我已经成功地交叉编译了它,但现在它抱怨找不到调试信息。我已将相关共享对象的未剥离副本放入文件系统,并将此目录告知 Valgrind,但它仍然无法正常工作。
调用:
root@192.168.0.200:/# /root/valgrind/bin/valgrind --extra-debuginfo-path=/root/valgrind/usr/lib/debug /path/to/my_program -log
==6000== Memcheck, a memory error detector
==6000== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==6000== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==6000== Command: /path/to/my_program -log
==6000==
valgrind: Fatal error at startup: a function redirection
valgrind: which is mandatory for this platform-tool combination
valgrind: cannot be set up. Details of the redirection are:
valgrind:
valgrind: A must-be-redirected function
valgrind: whose …Run Code Online (Sandbox Code Playgroud) 嗨,所以我一直在尝试对美洲狮进行 Valgrind。我按照 valgrind 网页上的说明进行操作:http : //valgrind.org/docs/manual/dist.install.html
以及此博客上的说明:http : //prateekvjoshi.com/2013/02/27/how-to-install-valgrind-on-mac-os-x/
但是在任何一种情况下,当我尝试“make”或“make install”时都会遇到相同的错误:
make[3]: *** [libcoregrind_amd64_darwin_a-m_syscall.o] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
Run Code Online (Sandbox Code Playgroud)
有谁知道这些错误可能意味着什么?我找不到任何帮助,即使在 valgrind 的常见问题解答中也是如此。任何帮助都会很棒。
此外,在我上面提到的错误之前还有几行错误,以防万一:
m_syscall.c:525:1: error: unknown type name '__private_extern__'
m_syscall.c:526:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'do_syscall_unix_WRK'
m_syscall.c:549:1: error: unknown type name '__private_extern__'
m_syscall.c:550:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'do_syscall_mach_WRK'
m_syscall.c: In function 'vgPlain_do_syscall':
m_syscall.c:703:10: warning: implicit declaration of …Run Code Online (Sandbox Code Playgroud) 我正在尝试卸载以前版本的 valgrind。我已手动删除了特定的 valgrind 文件夹,该文件夹保存在我的工作目录中并具有名称valgrind 3.11,现在我尝试检查系统中是否遗留有任何内容。我find / -name valgrind -type d在终端中使用命令来查看 valgrind 目录可能所在的位置列表。结果我得到了一大堆我无法解读的东西(我是新手,只学习编程和计算机科学)。
请查看此列表的一部分,帮助我理解它告诉我的内容,以及我应该做什么来确保我没有任何 valgrind 程序的痕迹。获取列表后,我尝试使用 Finder 中的 Go to 以及终端中的 cd 来访问一些显示的文件夹,每次都得到相同的响应,即找不到该文件夹。另外,在运行此find命令之前,我已从中删除了 valgrind 文件夹
/usr/local/lib/valgrind
/usr/local/include/valgrind
/usr/local/share/doc/valgrind
Run Code Online (Sandbox Code Playgroud)
这是我在终端中看到的列表的一部分:
find / -name valgrind -type d
Run Code Online (Sandbox Code Playgroud)
输出:
find: /.com.apple.NetBootX: Permission denied
find: /.DocumentRevisions-V100: Permission denied
find: /.Spotlight-V100: Permission denied
find: /.TemporaryItems/folders.0: Permission denied
find: /.Trashes: Permission denied
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
find: /Library/Application Support/Apple/ParentalControls/Users: Permission denied
find: /Library/Application Support/ApplePushService: Permission …Run Code Online (Sandbox Code Playgroud) 我正在尝试在运行我的扩展程序之一时调试 Chrome 的一些行为。然而,该测试相当占用内存,我想在 Valgrind 下运行它。是否可以启动一个浏览器实例,它完全独立于浏览器窗口的其余部分,这样我就可以调试它而无需在持续时间内将主浏览器切换到其他浏览器?