This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix non stopping breakpoint on newer compilers.
- From: Walfred Tedeschi <wtedeschi at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 4 Nov 2015 10:11:03 -0000
- Subject: [binutils-gdb] Fix non stopping breakpoint on newer compilers.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=14cb1c0b38b120cf5325d9538cce1a0347e2b626
commit 14cb1c0b38b120cf5325d9538cce1a0347e2b626
Author: Walfred Tedeschi <walfred.tedeschi@intel.com>
Date: Wed Nov 4 11:09:03 2015 +0100
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>
Diff:
---
gdb/testsuite/gdb.arch/i386-mpx-map.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/i386-mpx-map.c b/gdb/testsuite/gdb.arch/i386-mpx-map.c
index 8a9094c..ee7f11b 100644
--- a/gdb/testsuite/gdb.arch/i386-mpx-map.c
+++ b/gdb/testsuite/gdb.arch/i386-mpx-map.c
@@ -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