Index: gdb/testsuite/gdb.reverse/singlejmp-reverse.c |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust-main.cc b/gdb/testsuite/gdb.reverse/singlejmp-reverse.c |
similarity index 75% |
copy from gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust-main.cc |
copy to gdb/testsuite/gdb.reverse/singlejmp-reverse.c |
index d7fd34790c6c0af51d3bfd6dc282da4ce76a7074..c9ebf37451ebcb8ee7e7894526c4c153dbc04ba8 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust-main.cc |
+++ b/gdb/testsuite/gdb.reverse/singlejmp-reverse.c |
@@ -1,6 +1,6 @@ |
/* This testcase is part of GDB, the GNU debugger. |
- Copyright 2011-2012 Free Software Foundation, Inc. |
+ Copyright 2012 Free Software Foundation, Inc. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
@@ -15,27 +15,28 @@ |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
-/* class C |
- { |
- public: |
- static int f (); |
- }; */ |
+volatile int v; |
-asm (".globl cu_text_start"); |
-asm ("cu_text_start:"); |
+static __attribute__ ((noinline, noclone)) void |
+g (void) |
+{ |
+ v = 2; |
+} |
-int |
+static __attribute__ ((noinline, noclone)) void |
f (void) |
{ |
- return 31173; |
+ g (); |
} |
+extern void nodebug (void); |
+ |
int |
main (void) |
{ |
+ v = 1; |
f (); |
+ nodebug (); |
+ v = 3; |
return 0; |
} |
- |
-asm (".globl cu_text_end"); |
-asm ("cu_text_end:"); |