mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
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:
@ -70,8 +70,9 @@ foo (T *p)
|
|||||||
#if defined __GNUC__ && !defined __INTEL_COMPILER
|
#if defined __GNUC__ && !defined __INTEL_COMPILER
|
||||||
__bnd_store_ptr_bounds (x, &x);
|
__bnd_store_ptr_bounds (x, &x);
|
||||||
#endif
|
#endif
|
||||||
|
/* Dummy assign. */
|
||||||
return; /* after-assign */
|
x = x + 1; /* after-assign */
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Reference in New Issue
Block a user