| 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;
|
| }
|
|
|