在64位环境中使用gdb调试32位应用程序 [英] Debug 32 bit application with gdb in 64 bit environment
问题描述
在64位操作系统下,使用64位gdb调试32位应用程序是否需要采取任何具体步骤?
Is there any specific step required to debug 32 bit application with 64 bit gdb under 64 bit O.S.
通常我对gcc使用-m32开关,对于gdb是否有类似的东西?
Normally I use -m32 switch for gcc, is there something like for gdb?
推荐答案
否:64位GDB可以调试32或64位进程.
No: 64-bit GDB can debug either 32 or 64-bit processes.
此消息warning: the debug information found in "/lib/ld-2.11.1.so" does not match "/lib/ld-linux.so.2" (CRC mismatch)
只是意味着您安装的libc-debuginfo软件包与安装的libc软件包不匹配,并且您将无法在ld-linux.so.2
上进行源代码级调试.大多数情况下,您无论如何都不希望在ld-linux.so.2
中调试任何内容,因此该消息是无害的.
This message warning: the debug information found in "/lib/ld-2.11.1.so" does not match "/lib/ld-linux.so.2" (CRC mismatch)
simply means that your installed libc-debuginfo package does not match your installed libc package, and that you will not be able to do source-level debugging on ld-linux.so.2
. Most of the time you don't want to debug anything in ld-linux.so.2
anyway, so the message is harmless.
这篇关于在64位环境中使用gdb调试32位应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!