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

Unified Diff: gdb/testsuite/gdb.reverse/singlejmp-reverse.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 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.reverse/singlejmp-reverse.S ('k') | gdb/testsuite/gdb.reverse/singlejmp-reverse.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:");
« no previous file with comments | « gdb/testsuite/gdb.reverse/singlejmp-reverse.S ('k') | gdb/testsuite/gdb.reverse/singlejmp-reverse.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698