This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello Aleksandar,
the problem is that for this testcase: /*1*/ static int i; /*2*/ static void /*3*/ f (int q) /*4*/ { /*5*/ for (;; i--) /*6*/ if (i++) /*7*/ break; /*8*/ } /*9*/ int main (void) { f (5); return 0; }
Built with: gcc -o f2 f2.c -Wall -g -Werror gcc (GCC) 4.6.3 20111028 (prerelease) -- the version should not matter x86_64
it has a regression gdb ./f2 -ex 'b f' -ex r FSF GDB HEAD: Breakpoint 1, f (q=5) at f2.c:6 ^ 6 if (i++) with your patch: Breakpoint 1, f (q=0) at f2.c:4 ^ 4 {
For reader's convenience attaching objdump at the bottom of this mail.
--- Aleksandar
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |