Re: how to stop execution in for loop

"vamsi krishna" <[email protected]>
Newsgroups gmane.comp.gdb.general
Message-ID <[email protected]>
(gdb) b <file_name.c:line_no> if i==50

replace <file_name.c:line_no> with the file name which
has the for loop and line_no inside the loop.


On 9/6/07, ddd sh <[email protected]> wrote:
> Hi all,
>
>
>  I am working on a c source code nearly 2000 line .  it contains one big
> for( i=0; i< 200 ; i++ ) loop of around 600 lines
>  could any tell me how to  break  the execution of prog    when the  value
> of   i  is  50   in for  loop so  that i can  check
>  inside the loop.
>
>
>
>  Thanks..
>
>


-- 
Sincerely,
Vamsi Kundeti
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.