]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/bp-permanent.c
Use 2-byte instead of 4-byte NOP on S390 in 'bp-permanent' test case
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / bp-permanent.c
index a45a922e8f34c8e5dc5575c49b2a6c964fbeef2d..64cfb4db43e8bbc393496a99333ff2441ffb298f 100644 (file)
 #include <unistd.h>
 #endif
 
+/* NOP instruction: must have the same size as the breakpoint
+   instruction.  */
+
+#if defined(__s390__) || defined(__s390x__)
+#define NOP asm("nopr 0")
+#else
 #define NOP asm("nop")
+#endif
 
 /* Buffer holding the breakpoint instruction.  */
 unsigned char buffer[16];