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

Unified Diff: gdb/testsuite/gdb.arch/amd64-tailcall-ret.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.arch/amd64-tailcall-ret.S ('k') | gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.arch/amd64-tailcall-ret.c
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.c
similarity index 76%
copy from gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c
copy to gdb/testsuite/gdb.arch/amd64-tailcall-ret.c
index 84245b6fa66a07b3cbc88d15d7551e3bdd6372dd..ec9a1fbb0c81512216bb7285173adad917a324f1 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c
+++ b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.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,23 +15,25 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-asm (".globl f_start");
-asm ("f_start:");
-
volatile int v;
-void
-f (int x)
+static __attribute__ ((noinline, noclone)) void
+g (void)
{
- v++;
+ v = 2;
}
-asm (".globl f_end");
-asm ("f_end:");
+static __attribute__ ((noinline, noclone)) void
+f (void)
+{
+ g ();
+}
int
main (void)
{
- f (1);
+ f (); /* first */
+ f (); /* second */
+ v = 3;
return 0;
}
« no previous file with comments | « gdb/testsuite/gdb.arch/amd64-tailcall-ret.S ('k') | gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698