gdb 不显示参数信息
gdb doesn't display parameter info
我使用 -g 编译了我的二进制文件并尝试使用 gdb 进行调试。我能够调试它,但它不显示参数值。我尝试了所有配置选项来显示参数,但没有帮助。如果我遗漏了什么,请告诉我。让我粘贴命令输出
<code>
root> gdb /os/libexec/libmgr
GNU gdb (GDB) 7.2
This GDB was configured as "i386-linux".
Reading symbols from /os/libexec/libmgr...done.
(gdb) attach 2685
Attaching to program: /os/libexec/libmgr, process 2685
Reading symbols from /os/lib/libts.so.1.0...done.
................
0x74890047 in select () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
in ../sysdeps/unix/syscall-template.S
(gdb) bt
\#0 0x74890047 in select () at ../sysdeps/unix/syscall-template.S:82
\#1 0x0817774b in thread_fetch ()
\#2 0x0809b528 in libmLocalMain ()
\#3 0x0809b6bb in main ()
(gdb)
</code>
我移植了 gdb 7.8。不改一行代码问题就解决了
我使用 -g 编译了我的二进制文件并尝试使用 gdb 进行调试。我能够调试它,但它不显示参数值。我尝试了所有配置选项来显示参数,但没有帮助。如果我遗漏了什么,请告诉我。让我粘贴命令输出
<code>
root> gdb /os/libexec/libmgr
GNU gdb (GDB) 7.2
This GDB was configured as "i386-linux".
Reading symbols from /os/libexec/libmgr...done.
(gdb) attach 2685
Attaching to program: /os/libexec/libmgr, process 2685
Reading symbols from /os/lib/libts.so.1.0...done.
................
0x74890047 in select () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
in ../sysdeps/unix/syscall-template.S
(gdb) bt
\#0 0x74890047 in select () at ../sysdeps/unix/syscall-template.S:82
\#1 0x0817774b in thread_fetch ()
\#2 0x0809b528 in libmLocalMain ()
\#3 0x0809b6bb in main ()
(gdb)
</code>
我移植了 gdb 7.8。不改一行代码问题就解决了