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

Unified Diff: gdb/testsuite/gdb.arch/amd64-entry-value-inline.c

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
Index: gdb/testsuite/gdb.arch/amd64-entry-value-inline.c
diff --git a/gdb/testsuite/gdb.base/step-symless.c b/gdb/testsuite/gdb.arch/amd64-entry-value-inline.c
similarity index 66%
copy from gdb/testsuite/gdb.base/step-symless.c
copy to gdb/testsuite/gdb.arch/amd64-entry-value-inline.c
index 97eaf5edc11f56490e1776847e5561009426cf64..236e5fc789be3883211dbbf3916304b19a774207 100644
--- a/gdb/testsuite/gdb.base/step-symless.c
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value-inline.c
@@ -1,6 +1,6 @@
/* This testcase is part of GDB, the GNU debugger.
- Copyright 2012 Free Software Foundation, Inc.
+ Copyright 2012-2013 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
@@ -17,22 +17,34 @@
static volatile int v;
-static void
-symful (void)
+static __attribute__((noinline, noclone)) void
+fn1 (int x)
{
v++;
}
-static void
-symless (void)
+static int
+fn2 (int x, int y)
{
- v++;
+ if (y)
+ {
+ fn1 (x);
+ y = -2 + x; /* break-here */
+ y = y * y * y + y;
+ fn1 (x + y);
+ }
+ return x;
+}
+
+__attribute__((noinline, noclone)) int
+fn3 (int x, int y)
+{
+ return fn2 (x, y);
}
int
-main (void)
+main ()
{
- symless ();
- symful ();
+ fn3 (6, 25);
return 0;
}
« no previous file with comments | « gdb/testsuite/gdb.arch/amd64-entry-value-inline.S ('k') | gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698