From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39810 invoked by alias); 13 Feb 2019 03:05:54 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 39801 invoked by uid 89); 13 Feb 2019 03:05:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (158.69.185.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 13 Feb 2019 03:05:52 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Use child_path to determine if an object file is under a sysroot. From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: Date: Wed, 13 Feb 2019 03:05:00 -0000 X-SW-Source: 2019-q1/txt/msg02668.txt.bz2 *** TEST RESULTS FOR COMMIT cd4b78483c3b0e4bd7737b67ed5074b7c252faa4 *** Author: John Baldwin Branch: master Commit: cd4b78483c3b0e4bd7737b67ed5074b7c252faa4 Use child_path to determine if an object file is under a sysroot. This fixes the case where the sysroot happens to end in a trailing '/'. Note that the path returned from child_path always skips over the directory separator at the start of the base path, so a separator must always be explicitly added before the base path. gdb/ChangeLog: * symfile.c (find_separate_debug_file): Use child_path to determine if an object file is under a sysroot.