求助:关于gdb问题
我进行如下操作:9 H: r/ r+ k5 P! x
[root@localhost lbw]# g++ -Wall -o net nettraf.c -g
+ H8 a8 P2 N l. V/ p% u[root@localhost lbw]# gdb. N! s9 j8 j3 ^5 [, J" ]6 m
GNU gdb Red Hat Linux (5.2.1-4)3 N% y' i1 \ l% F$ a: J9 @
Copyright 2002 Free Software Foundation, Inc.! p8 [: [- i* g4 O8 j
GDB is free software, covered by the GNU General Public License, and you are
% e9 C) r+ ` Ewelcome to change it and/or distribute copies of it under certain conditions.
# V- U% {. w3 `# yType "show copying" to see the conditions., `2 S- s0 H0 N0 |, B
There is absolutely no warranty for GDB. Type "show warranty" for details./ l/ {7 [* b0 V3 i1 b
This GDB was configured as "i386-redhat-linux".
/ `9 a7 f7 @5 y& u3 t# d! F7 Q) G(gdb) set args -a 192.168.0.26 -i 2
2 n, \& _+ b: ~(gdb) file net( G9 L" \; z' ^9 P4 p
Reading symbols from net...done.
5 @8 z/ F* ~* i$ Z+ g(gdb) b main. R! x, @% g) k9 u
Breakpoint 1 at 0x8048bd0: file nettraf.c, line 128.( D1 n/ b3 h- x2 ?; N2 g9 i
(gdb) r
) L8 \" h; S6 ^2 a# k/ m6 xStarting program: /home/lbw/net -a 192.168.0.26 -i 2 -------卡在此处! (A)& z7 I8 k4 i' s6 I0 k# ^, I
0 N9 a' s( a7 x2 p$ z执行到(A)处,gdb继续不下去了,这样的问题遇到好多次了,我换了几个程序调试,都出现过类似情况.
# ?4 e- `. M/ S+ i2 U有哪位高手知道为什么?望告之!