Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Probelm with kdbg/gdb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
et-see
n00b
n00b


Joined: 22 Jul 2002
Posts: 8

PostPosted: Fri May 02, 2003 9:50 pm    Post subject: Probelm with kdbg/gdb Reply with quote

Using kdbg i can't watch the variable i. One way to solve the problem is to declare i after a, but there must be another way using gdb.

Code:

 int a=0;
  for( int i=0; i<=20 ; i++ ){
   a+=3;
   cout<<"a: "<<a<<" i: "<<i<<"\n"; //breakpoint on this line
   a++;   //breakpoint on this line
  }


Any help is appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum