全部博文(14)
2011年(14)
分类: C/C++
2011-03-22 14:52:02
#./debugme Enter a string to count words: |
# ps -ax | grep debugme 555 pts/1 S 0:00 ./debugme |
# gdb debugme 555 GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Attaching to program: /home/xiaowp/debugme, process 555 Reading symbols from /lib/libc.so.6...done. …… |
(gdb) file /home/xiaowp/debugme Reading symbols from /home/xiaowp/debugme...done. (gdb) attach 555 …… |