From patchwork Fri Jun 9 16:46:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 55823 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A325D3856636 for ; Fri, 9 Jun 2023 16:46:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A325D3856636 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686329214; bh=MtzztBB365ZQH4lXiDqQ1ueJHTX2aBCSt+ZNINHNBoE=; h=Subject:Date:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Jn63N/NLgTS+imkFFQPxtPhItJMYLNg9mP9Kltncm8WUVqWuG5oaalVTPXG1R0GBF 4+2Lsw1Hh8R48PZS85SN/Q4O111tqSaVPup6ajkWinG7O43nQZFGijel69dE977aXc by49zvLwoYNHBg12ESBHTAXZeouFUBqwn0BkusGw= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by sourceware.org (Postfix) with ESMTPS id 9DE743858D3C for ; Fri, 9 Jun 2023 16:46:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9DE743858D3C Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-33c1e7743b7so8640535ab.1 for ; Fri, 09 Jun 2023 09:46:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686329189; x=1688921189; h=to:content-transfer-encoding:mime-version:message-id:date:subject :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MtzztBB365ZQH4lXiDqQ1ueJHTX2aBCSt+ZNINHNBoE=; b=DNDk7Tm4WlE78O5QGbxWmQJ8aAkXxp6ggSbF6ELRQKUKQCDoo5oZqdCqmUAuLD8Eex kQdAEHsDbgeOncdLiXERXCcSIodXxDUz/yuYe7tySyHpFn0B1K/J7MekpiQSL/1PdjbK 41iXBRnfEIpGTpcrZl7m3ZnmkYz2ROB+n2b/qLtrK40MxitDknOeOlES/Oop4WEfXxJZ aVOpOAmhI2YXA5xr3Q5bxbmdxvXDMnLfbYphzdFlzBdpQx4eHVsGGOaFjBgdjRr1UomX bIow3bacdrMBYFsAY+bpCol8pAfhvc//HA4utxuOrtBdKr4Tvcrul50/Nd1xJFa6cq4j oeKw== X-Gm-Message-State: AC+VfDxB7vQU7ywkvHKH4HoVoQDwYyRjZj9ZigHIUo6UubSJ5BDHc2ry XWoBOE4fw92WpvlHS+7+fbyZfHdRNuhOLMw2dlj1BA== X-Google-Smtp-Source: ACHHUZ4+wTQhSMH6zJoWSN2qaPClkm5gkQs7gsLdqqG0GyduHxAYTERU4+/uLxP7O9L39dVMoAx9yw== X-Received: by 2002:a92:d8cf:0:b0:33c:68aa:7c3b with SMTP id l15-20020a92d8cf000000b0033c68aa7c3bmr2029125ilo.25.1686329188821; Fri, 09 Jun 2023 09:46:28 -0700 (PDT) Received: from localhost.localdomain (75-166-136-83.hlrn.qwest.net. [75.166.136.83]) by smtp.gmail.com with ESMTPSA id n18-20020a92dd12000000b00325df6679a7sm1195610ilm.26.2023.06.09.09.46.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 09:46:28 -0700 (PDT) Subject: [PATCH 0/2] Remove some use of xfree from MI Date: Fri, 09 Jun 2023 10:46:24 -0600 Message-Id: <20230609-mi-xfree-v1-0-04e9c8d9a679@adacore.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGBXg2QC/x2NQQrCMBBFr1Jm7UCs2qBXEReT5NfOolFmRAqld zd1+fjv81ZymMLp1q1k+KrrqzY4HjrKk9QnWEtj6kN/CkO48qy8jAbwOeZLikVQ4kBNT+LgZFL ztB9m8Q9sH96GUZd/4/7Yth9D2E5YcwAAAA== To: gdb-patches@sourceware.org X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom Tromey via Gdb-patches From: Tom Tromey Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" This series removes some uses of xfree from the MI code. No visible changes are expected. Regression tested on x86-64 Fedora 36. Reviewed-by: Keith Seitz --- Tom Tromey (2): Use std::string for MI token Use unique_xmalloc_ptr for mi_parse::command gdb/mi/mi-cmds.c | 4 ++-- gdb/mi/mi-main.c | 28 ++++++++++++++-------------- gdb/mi/mi-main.h | 2 +- gdb/mi/mi-parse.c | 30 ++++++++++++------------------ gdb/mi/mi-parse.h | 15 ++++++++------- gdb/python/py-micmd.c | 2 +- 6 files changed, 38 insertions(+), 43 deletions(-) --- base-commit: 05d63bafad71b534c041275831489f3e0dedcf3f change-id: 20230609-mi-xfree-47c5b7daed76 Best regards,