在 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屋!