Index: gdb/testsuite/gdb.arch/thumb-bx-pc.S |
diff --git a/gdb/config/nm-linux.h b/gdb/testsuite/gdb.arch/thumb-bx-pc.S |
similarity index 70% |
copy from gdb/config/nm-linux.h |
copy to gdb/testsuite/gdb.arch/thumb-bx-pc.S |
index 459c9c24b7603cec1b3bb049f6f96a83f7144365..7326701db5f1a08761f1b302a618873673d6637e 100644 |
--- a/gdb/config/nm-linux.h |
+++ b/gdb/testsuite/gdb.arch/thumb-bx-pc.S |
@@ -1,6 +1,6 @@ |
-/* Native support for GNU/Linux. |
+/* Test PC adjustment from Thumb-mode "bx pc" instruction. |
- Copyright 1999-2012 Free Software Foundation, Inc. |
+ Copyright 2012-2013 Free Software Foundation, Inc. |
This file is part of GDB. |
@@ -17,8 +17,18 @@ |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
-/* Use elf_gregset_t and elf_fpregset_t, rather than |
- gregset_t and fpregset_t. */ |
- |
-#define GDB_GREGSET_T elf_gregset_t |
-#define GDB_FPREGSET_T elf_fpregset_t |
+ .syntax unified |
+ .thumb |
+ .text |
+ .p2align 2 |
+ .global main |
+ .thumb |
+ .thumb_func |
+ .type main, %function |
+main: |
+ bx pc |
+ nop |
+.code 32 |
+ mov r0, #0 |
+ bx lr |
+ .size main, .-main |