From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89784 invoked by alias); 6 Apr 2016 20:22:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 89766 invoked by uid 89); 6 Apr 2016 20:22:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: usplmg20.ericsson.net Received: from usplmg20.ericsson.net (HELO usplmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 06 Apr 2016 20:22:53 +0000 Received: from EUSAAHC004.ericsson.se (Unknown_Domain [147.117.188.84]) by usplmg20.ericsson.net (Symantec Mail Security) with SMTP id 61.49.30335.3E965075; Wed, 6 Apr 2016 21:56:19 +0200 (CEST) Received: from elxcz23q12-y4.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.84) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 6 Apr 2016 16:22:50 -0400 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH] Fix gdb.threads/dlopen-libpthread.exp crash Date: Wed, 06 Apr 2016 20:22:00 -0000 Message-ID: <1459974166-1706-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00136.txt.bz2 Following, commit 6e774b13c3b81ac2599812adf058796948ce7e95 Make ftrace tests work with remote targets the test gdb.threads/dlopen-libpthread.exp started to fail with: ERROR: error copying "/home/emaisin/build/binutils-gdb/gdb/testsuite/gdb.threads/dlopen-libpthread.so": no such file or directory This is because the library path is not computed using standard_output_file, so we try to gdb_load_shlibs an unexisting file. gdb/testsuite/ChangeLog: * gdb.threads/dlopen-libpthread.exp: Set binfile_lib using standard_output_file. Remove unused binfile variable. --- gdb/testsuite/gdb.threads/dlopen-libpthread.exp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp index 33789cc..206b16a 100644 --- a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp +++ b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp @@ -23,8 +23,7 @@ set testfile "dlopen-libpthread" set srcmainfile ${testfile}.c set srclibfile ${testfile}-lib.c set executable ${testfile} -set binfile_lib ${objdir}/${subdir}/${executable}.so -set binfile ${objdir}/${subdir}/${executable} +set binfile_lib [standard_output_file ${executable}.so] set lib_dlopen [shlib_target_file ${executable}.so] # Use build_executable_own_libs as prelinked libpthread.so can produce false -- 2.8.1