Comment 7 for bug 1420556

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-03-19 12:59 EDT-------
(In reply to comment #14)
> This is interesting, as this is exactly the behavior you get when debugging
> in gdb, and you've made changes in your code, and your breakpoints are now
> out of sync with your code. (because you've added or removed lines) It
> seem like the problem almost certainly has to be that the testsuite has some
> hard-code breakpoints, and these are out of sync with one or more files of
> the actual source code.

Actually this can be seen with this simple testcase (which is not part of gdb testsuite):

ubuntu@ubuntu:~$ cat array.c
int main (void)
{
int array[1];

return 0;
}

When using gcc-4.9 from community or gcc-4.8 from Ubuntu, 'breakpoint main' stops at line 5 ('return 0'), which is the expected behavior, while using the default gcc (4.9) from Ubuntu 15.04, it stops at line 2.

Thus, I can't see how this can be a problem with hard-code breakpoints from the testsuite.