我正在尝试在64位Ubuntu系统上调试32位可执行文件。它本身可以从命令行正常运行,但是当我尝试使用gdb时,它挂在ld-linux.so.2中。另外,gdb适用于可执行文件的64位版本。有人知道我应该尝试什么吗?
我只是将计算机重新映像到Ubuntu 18.04.3,然后安装了glib和g ++的multilib版本。
提前致谢。
gdb <executable>
GNU gdb ...
This GDB was configured as "x86_64-linux-gnu"
...
Reading symbols from <executable>...done.
(gdb) show archi
The target architecture is set automatically (currently i386)
(gdb) break main
Breakpoint 1 at ...
(gdb) run
Starting program...
warning: Breakpoint address adjusted from 0xf7fd9be0 to 0xfffffffff7fd9be0.
...
(7 of these)
[hangs...]
[In another terminal, ran 'kill -CONT <pid>']
Program received signal SIGCONT, Continued.
0xf7fd9be0 in ?? () from /lib/ld-linux.so.2
(gdb) cont
[hangs again...]
Run Code Online (Sandbox Code Playgroud)