Clang does not add line information for lines that only contain a
closing } in functions. Many tests in the gdb.reverse folder set a
breakpoint in that line, but don't seem to use information available
after the return statement is executed, so this commit moves the
breakpoint to the previous line, where the return statement is.
Approved-By: Tom Tromey <tom@tromey.com>
{
xyz = 0; /* break in main */
foo ();
- return (xyz == 2 ? 0 : 1);
-} /* end of main */
+ return (xyz == 2 ? 0 : 1); /* end of main */
+}
testval.double_testval = 3.14159265358979323846; /* float_checkpoint */
double_resultval = double_func ();
main_test = 1; /* double_checkpoint */
- return 0;
-} /* end of main */
+ return 0; /* end of main */
+}
func4 ();
- return 0;
-} /* end of main */
+ return 0; /* end of main */
+}