Refer the code below with line numbers with it.
1 void f(string& s){
...
//some code
...
12 for(unsigned int i = 0; i <= end; i++){
13 unsigned int a = s[i] - 'a' + 1;
14 unsigned int b = s[end-i] - 'a' + 1;
15 }
16 }
In gdb, I have to check the value of variable b. How do I set breakpoints here correctly. I know that breakpoint has to be after line 14. But, whenever I type line 15, b 15, it adds breakpoint at line 16.
Can somebody please help ?