From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44960 invoked by alias); 20 Aug 2019 22:17: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 44952 invoked by uid 89); 20 Aug 2019 22:17:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-12.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=biesinger, Biesinger, H*MI:google X-HELO: mail-qk1-f201.google.com Received: from mail-qk1-f201.google.com (HELO mail-qk1-f201.google.com) (209.85.222.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 20 Aug 2019 22:17:53 +0000 Received: by mail-qk1-f201.google.com with SMTP id q62so89056qkd.3 for ; Tue, 20 Aug 2019 15:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=XzoxyHCwni0LRqdbddGDK2PWDUvz+XdWYBPaeNIyaWI=; b=UZulRlxMcEK0Tbvg2AhzR9j0YBi4gxilTa0DlhWBMQCgw/+kowlLLy+D8r6KwHz0w9 T8paylYh2V5l5QRcv6Nz8Atet2z/3I4uD1h2PRrFXceDPvVfR19y/nEQ/+OfXPv0HYWV knyITNNE7Nr+w8TSVuFPnVFl/pZ6YbeQCsO+vDCBRbBGv6HRE8i01APggE5eZIKu5mMJ Rf5NCdgfNo0TDpTqjx1x7/OfApT6ubvSkfnAHWto+58CyeoD6zJJq7n1qyDpQY8u1K1r ARR/Xt+dcFSl/LS8HBhg3xlVDlBvFSA+I73xgywtOiTIYYQYMaiLtcprsHtMeOrmC3B5 nnpw== Date: Tue, 20 Aug 2019 22:17:00 -0000 Message-Id: <20190820221745.147370-1-cbiesinger@google.com> Mime-Version: 1.0 Subject: [PATCH 0/3] [RFC] Load gdbinit files from a directory From: "Christian Biesinger via gdb-patches" Reply-To: Christian Biesinger To: gdb-patches@sourceware.org Cc: Christian Biesinger Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00436.txt.bz2 This patch series is some refactoring and then a patch to load gdbinit files from a directory, instead of only allowing a single file. Fedora ships a system gdbinit file that does something similar; this does this by default and also works if Python is disabled. Christian Biesinger (3): Refactor get_init_files to use std::string Factor out the code to do the datadir-relocation for gdbinit Load system gdbinit files from a directory gdb/config.in | 3 + gdb/configure | 77 +++++++++++++++++++-- gdb/configure.ac | 3 + gdb/main.c | 175 ++++++++++++++++++++++++++++------------------- 4 files changed, 183 insertions(+), 75 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog