Fix non stopping breakpoint on newer compilers.

The breakpoint presented in the return statement was not activated while
compiling the test with gcc 4.9.2.  Added a dummy statement to allow the
breakpoint again.

2015-10-14  Walfred Tedeschi  <walfred.tedeschi@intel.com>

gdb/testsuite:

	* i386-mpx-map.c (foo): Add dummy statement to trigger breakpoint.

Change-Id: I5293ca1c7f82a631e1e41cb650c30dd2d09ef3c2
Signed-off-by: Walfred Tedeschi <walfred.tedeschi@intel.com>
This commit is contained in:
Walfred Tedeschi 2015-11-04 11:09:03 +01:00
parent 1a2ccd2e32
commit 14cb1c0b38
1 changed files with 3 additions and 2 deletions

View File

@ -70,8 +70,9 @@ foo (T *p)
#if defined __GNUC__ && !defined __INTEL_COMPILER
__bnd_store_ptr_bounds (x, &x);
#endif
return; /* after-assign */
/* Dummy assign. */
x = x + 1; /* after-assign */
return;
}
int