又现起了一个办法,能不能直接跟踪/src/bbs这一个可执行文件,因为它是由src/下的所有程序生成的,但
(gdb) tb online
Note: breakpoint 1 also set at pc 0x80543aa.
Breakpoint 2 at 0x80543aa: file delete.c, line 173.
(gdb) s
The program is not being run.
(gdb) n
The program is not being run.
这样因为程序没有执行起来,所以不行。
(gdb) r
You cannot execute this program directly.
Program exited with code 0377.
这样又不能直接执行,那么只有在BBS界面运行的时候才能正常跟踪,就没有别的办法让这bbs这个程序,先执行起来?
【 在 sdymhua (胡搅蛮缠) 的大作中提到: 】
: 想编译一下ht代码/src/下的单个程序,方便用gdb跟踪来看懂此程序,但却总编译不成功,难道src下的程序,不能单独编译?
: [bbs@xztu debug]$ gcc -g -o delete delete.c
: delete.c:259: dereferencing pointer to incomplete type
: delete.c:265: dereferencing pointer to incomplete type
: ...................
--
FROM 220.172.239.*