From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70530 invoked by alias); 9 Sep 2019 18:08:37 -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 70520 invoked by uid 89); 9 Sep 2019 18:08:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-12.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:880, H*MI:google X-HELO: mail-qk1-f202.google.com Received: from mail-qk1-f202.google.com (HELO mail-qk1-f202.google.com) (209.85.222.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Sep 2019 18:08:35 +0000 Received: by mail-qk1-f202.google.com with SMTP id 11so17318436qkh.15 for ; Mon, 09 Sep 2019 11:08:35 -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=Y0fOKKBC6gqkX+h6791gbWzu4USrKpXyFGxU+PduVSw=; b=Xa9HcC40M6oJg6tlHyLXYAHlYUfgHoaK8UseDHjzRu7iEmMmeTzFUYhvVeLtYUN3iT dwpcbQN9QYqdwKqSa/7XJ7AbyevwGi1M2ENd+e9GhJagdk/wiolV3yMxLmlEUvWmMk0Y n6Sic9ADDSRL/AArK2leg7R8Y4WtYZ3YB2vVcZY7ZbzfywyZbVb7nhm+c/vIgQS1hf+D XORHN5hi5JGx9VbnPWC1EJ6Bv25NBhQxQf+xkiMjvZ9wfK1+EOt1eeJc7/YDe87W+T30 BUaj8l7zOlMOWSsE+ttkD8lmkRVPitr5YLC8vAe3tDq66IN7RAlZMGXGQGIjHawWUZi2 E1GQ== Date: Mon, 09 Sep 2019 18:08:00 -0000 Message-Id: <20190909180830.215313-1-cbiesinger@google.com> Mime-Version: 1.0 Subject: [PATCH 0/3] Refactor some path methods in main.c to use std::string 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-09/txt/msg00136.txt.bz2 Patches 1 and 2 in this series are extracted from my previous patch series to support a system gdbinit.d directory, but since they are independent from that and (I hope) less controversial, I moved them here in hopes to get them committed sooner. (https://sourceware.org/ml/gdb-patches/2019-08/msg00436.html) Patch 3 is new. Christian Biesinger (3): Refactor get_init_files to use std::string Factor out the code to do the datadir-relocation for gdbinit Make relocate_{path,gdb_directory} return std::string gdb/auto-load.c | 2 +- gdb/defs.h | 8 +- gdb/guile/guile.c | 5 +- gdb/jit.c | 4 +- gdb/main.c | 210 ++++++++++++++++++++++---------------------- gdb/python/python.c | 2 +- gdb/top.c | 2 +- gdb/xml-syscall.c | 7 +- 8 files changed, 123 insertions(+), 117 deletions(-) -- 2.23.0.187.g17f5b7556c-goog