Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: gdb/testsuite/gdb.arch/thumb-bx-pc.S

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.arch/system-gcore.exp ('k') | gdb/testsuite/gdb.arch/thumb-bx-pc.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « gdb/testsuite/gdb.arch/system-gcore.exp ('k') | gdb/testsuite/gdb.arch/thumb-bx-pc.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698