From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89370 invoked by alias); 16 Jun 2015 09:42: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 89339 invoked by uid 89); 16 Jun 2015 09:42:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 16 Jun 2015 09:42:53 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id B2E18C12A7; Tue, 16 Jun 2015 09:42:52 +0000 (UTC) Received: from blade.nx (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5G9gqd6011111; Tue, 16 Jun 2015 05:42:52 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 6A25D262FE8; Tue, 16 Jun 2015 10:42:51 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Cc: =?UTF-8?q?C=C3=A9dric=20Buissart?= Subject: [PATCH 0/5] Separate debugfile improvements Date: Tue, 16 Jun 2015 09:42:00 -0000 Message-Id: <1434447768-17328-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00338.txt.bz2 Hi all, This series makes a number of improvements to the code that locates separated debuginfo. This series (patch 4 specifically) goes really nicely with the remote/container improvements I made this past few months, and it'd be really nice to get this into 7.10. - Patch 1 pulls filename building (including buffer allocation) out of find_separate_debug_file into a new function, build_debug_file_name. This simplifies find_separate_debug_file ready for the other patches. The new code avoids generating paths with repeated separators, but operation is otherwise unchanged. - Patch 2 alters find_separate_debug_file's caller to supply all paths without trailing separators, which patch 1 of this series made unnecessary. This allows paths to be compared more simply. - Patch 3 changes how find_separate_debug_file's CANON_DIR argument is handled. The new code avoids looking in CANON_DIR if it is the same as DIR, but operation is otherwise unchanged. - Patch 4 updates find_separate_debug_file to handle filenames prefixed with "target:". This allows GDB to locate and access separated debuginfo from remote targets and from inferiors in containers. - Patch 5 causes GDB to look for debug files in gdb_sysroot in addition to the other searched locations. This allows for easier analysis of core files from foreign machines. Built and regtested on RHEL 6.6 x86_64. Ok to commit? Thanks, Gary -- http://gbenson.net/