From c5e71b3332279ece95a7872aee2890af3ee047b4 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 4 Jan 2021 16:48:48 +0100 Subject: [gdb/testsuite] Don't require gold for gdb.base/morestack.exp While working on PR26935 I noticed that the test-case requires the gold linker, but doesn't really need it. The -fuse-ld=gold was added to support the printf in the test-case, which prints some information but is not otherwise needed for the test-case. Fix this by removing the printf and the corresponding -fuse-ld=gold. Tested on x86_64-linux. Also checked that the test still fails when the fix from the commit that added the test-case is reverted. gdb/testsuite/ChangeLog: 2021-01-04 Tom de Vries * gdb.base/morestack.c: Remove printf. * gdb.base/morestack.exp: Don't use -fuse-ld=gold. --- gdb/testsuite/gdb.base/morestack.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gdb/testsuite/gdb.base/morestack.c') diff --git a/gdb/testsuite/gdb.base/morestack.c b/gdb/testsuite/gdb.base/morestack.c index 6f9a27e..78ab3db 100644 --- a/gdb/testsuite/gdb.base/morestack.c +++ b/gdb/testsuite/gdb.base/morestack.c @@ -62,10 +62,7 @@ down (int i) static void *last; if (last && last < (void *) buf) - { - printf ("%d: %p < %p\n", i, last, buf); - marker_hit (); - } + marker_hit (); last = buf; if (i == 500) -- cgit v1.1