aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/bp-permanent.c
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2017-12-09 05:57:25 +0900
committerStafford Horne <shorne@gmail.com>2017-12-12 23:37:04 +0900
commitc3d186206bf04a40244e727fa381f78a1600f196 (patch)
tree1cf01e5d029d114b20bae58d8021f64a6a4e14f4 /gdb/testsuite/gdb.base/bp-permanent.c
parenta994fec4f8f7a886be61cfb3023c354cd2483b9d (diff)
downloadgdb-c3d186206bf04a40244e727fa381f78a1600f196.zip
gdb-c3d186206bf04a40244e727fa381f78a1600f196.tar.gz
gdb-c3d186206bf04a40244e727fa381f78a1600f196.tar.bz2
gdb: testsuite: Add or1k l.nop instruction
The test case requires adding a nop instruction. For or1k the instruction is `l.nop`. This change uses the correct operation. gdb/testsuite/ChangeLog: 2017-12-12 Stafford Horne <shorne@gmail.com> * gdb.base/bp-permanent.c: Define nop of or1k.
Diffstat (limited to 'gdb/testsuite/gdb.base/bp-permanent.c')
-rw-r--r--gdb/testsuite/gdb.base/bp-permanent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/bp-permanent.c b/gdb/testsuite/gdb.base/bp-permanent.c
index acd5be7..d42aafa 100644
--- a/gdb/testsuite/gdb.base/bp-permanent.c
+++ b/gdb/testsuite/gdb.base/bp-permanent.c
@@ -26,6 +26,8 @@
#if defined(__s390__) || defined(__s390x__)
#define NOP asm("nopr 0")
+#elif defined(__or1k__)
+#define NOP asm("l.nop")
#else
#define NOP asm("nop")
#endif