On Tue, 14 Oct 2003, Charles Lockhart wrote:
>I'm guessing that gdb is only breaking on the "x = 0" part of the code,
>and since that only happens once, it's not breaking on that line again.
GDB can only place breakpoints on a statement. There's only one for-loop
statement in this program. Thus, gdb can only hit this breakpoint once.
>1
>2 int main()
>3 {
>4 int x = 0;
>5 for(x = 0; x < 10; x++)
>6 {
>7 printf("the value of x is %i\n", x);
>8 }
>9 return 0;
>10 }
>11
--
Jimen Ching (WH6BRR) [EMAIL PROTECTED] [EMAIL PROTECTED]