jl 发帖数: 398 | 1 GDB PROGRAM 不知道怎么了, 就是说 程序 没有运行. |
h***o 发帖数: 539 | 2 这个东西很多人给我推荐过,不过我还是更喜欢直接输出。hoho
【在 jl 的大作中提到】 : GDB PROGRAM 不知道怎么了, 就是说 程序 没有运行.
|
o******d 发帖数: 1552 | 3 gdb your_exe
your executable should be compiled with "-g"
【在 jl 的大作中提到】 : GDB PROGRAM 不知道怎么了, 就是说 程序 没有运行.
|
a***u 发帖数: 72 | 4 gcc -g foo.c
gdb a.out
in gdb
run
to set break points,
l (to list)
break
run (or c to continue, s to step, n to next, ...)
print a (to print the varible a).
【在 o******d 的大作中提到】 : gdb your_exe : your executable should be compiled with "-g"
|
X****r 发帖数: 3557 | 5 why don't you read the man pages? spend 15 minutes and you know all the basics
【在 jl 的大作中提到】 : GDB PROGRAM 不知道怎么了, 就是说 程序 没有运行.
|