This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gdb: testsuite: Add or1k l.nop instruction


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c3d186206bf04a40244e727fa381f78a1600f196

commit c3d186206bf04a40244e727fa381f78a1600f196
Author: Stafford Horne <shorne@gmail.com>
Date:   Sat Dec 9 05:57:25 2017 +0900

    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.

Diff:
---
 gdb/testsuite/ChangeLog               | 4 ++++
 gdb/testsuite/gdb.base/bp-permanent.c | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 28dfa14..f4dee9e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2017-12-12  Stafford Horne  <shorne@gmail.com>
+
+	* gdb.base/bp-permanent.c: Define nop of or1k.
+
 2017-12-11  Joel Brobecker  <brobecker@adacore.com>
 
 	* gdb.ada/variant_record_packed_array.exp: Adapt test to accept
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]