From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yP+jL3hZEGBoMAAAWB0awg (envelope-from ) for ; Tue, 26 Jan 2021 13:03:36 -0500 Received: by simark.ca (Postfix, from userid 112) id C0EA91EF80; Tue, 26 Jan 2021 13:03:36 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 183351E945 for ; Tue, 26 Jan 2021 13:03:36 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B5B48386F46F; Tue, 26 Jan 2021 18:03:35 +0000 (GMT) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 6BE153857012 for ; Tue, 26 Jan 2021 18:03:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6BE153857012 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tdevries@suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 92E96AB92 for ; Tue, 26 Jan 2021 18:03:33 +0000 (UTC) Date: Tue, 26 Jan 2021 19:03:31 +0100 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH][gdb/testsuite] Fix g0 search in gdb.arch/i386-sse-stack-align.exp Message-ID: <20210126180330.GA7889@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Hi, When running test-case gdb.arch/i386-sse-stack-align.exp on target board unix/-m32, I run into: ... (gdb) print (int) g0 ()^M Invalid data type for function to be called.^M (gdb) FAIL: gdb.arch/i386-sse-stack-align.exp: print (int) g0 () ... Gdb is supposed to use minimal symbol g0: ... $ nm i386-sse-stack-align | grep g0 08049194 t g0 ... but instead it finds a g0 symbol in the debug info of libm, specifically in ./sysdeps/ieee754/ldbl-96/e_lgammal_r.c. Fix this by disabling reading symbols for shared libs. Tested on x86_64-linux. Any comments? Thanks, - Tom [gdb/testsuite] Fix g0 search in gdb.arch/i386-sse-stack-align.exp gdb/testsuite/ChangeLog: 2021-01-26 Tom de Vries * gdb.arch/i386-sse-stack-align.exp: Set auto-solib-add to off. --- gdb/testsuite/gdb.arch/i386-sse-stack-align.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp index 2c1cdd89c70..57dd12f9830 100644 --- a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp +++ b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp @@ -37,6 +37,11 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts clean_restart $executable +# With libm debug info installed, I get a g0 from +# ./sysdeps/ieee754/ldbl-96/e_lgammal_r.c instead of the local g0. +# Fix this by disabling reading symbols for shared libs. +gdb_test_no_output "set auto-solib-add off" + if ![runto_main] then { return -1 }