aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/pending.c8
-rw-r--r--gdb/testsuite/gdb.base/pendshr.c5
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/pending.c b/gdb/testsuite/gdb.base/pending.c
index 42c3655..a83a451 100644
--- a/gdb/testsuite/gdb.base/pending.c
+++ b/gdb/testsuite/gdb.base/pending.c
@@ -23,13 +23,13 @@
int k = 0;
-extern void pendfunc1 (int x);
+extern void pendfunc (int x);
int main()
{
- pendfunc1 (3); /* break main here */
- pendfunc1 (4);
+ pendfunc (3); /* break main here */
+ pendfunc (4);
k = 1;
- pendfunc1 (3);
+ pendfunc (3);
return 0;
}
diff --git a/gdb/testsuite/gdb.base/pendshr.c b/gdb/testsuite/gdb.base/pendshr.c
index 5097f94..672fe8a 100644
--- a/gdb/testsuite/gdb.base/pendshr.c
+++ b/gdb/testsuite/gdb.base/pendshr.c
@@ -26,3 +26,8 @@ void pendfunc1 (int x)
int y = x + 4;
printf ("in pendfunc1, x is %d\n", x);
}
+
+void pendfunc (int x)
+{
+ pendfunc1 (x);
+}