From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 705A73858D35 for ; Fri, 3 Dec 2021 16:30:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 705A73858D35 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-420-0nQtuA_MOQm-OtpL5dTWJA-1; Fri, 03 Dec 2021 11:30:05 -0500 X-MC-Unique: 0nQtuA_MOQm-OtpL5dTWJA-1 Received: by mail-wr1-f70.google.com with SMTP id b1-20020a5d6341000000b001901ddd352eso789371wrw.7 for ; Fri, 03 Dec 2021 08:30:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UcBC6BuweqKBJy5cn0sXTIxOOAo/mkXkKV209frU9WA=; b=FC1NDasq53ABqTvukAhcder1Alh6XdH7DN/ZNWJiEOfBvPBsJziszUEaG56UQAPoe+ c1oyJ7DVMalFJuPOLsM1AeeECLn6sDlcyVabFaQO61Z/66Z0XmsH1hE3x+evZawB7Tbc nJMZ0omr1rS0qZ6/IrUvK09H9IpcHgez4laMQewu2Jwx8VaiFegBuxCJKttuqGJYZBac Qzv1lZ+gPPezYa+nB004RQ/JwVxTWe2+aDUvM9DNdkkOUAn9m4k8S9YBEMb1r9Pbw32E 7wqyHxIgCQ8FGwJaEt6OiKvKiLh8HY3I8+uyc4r/IWOyA9wTpkrSNh88tlBYnsqTOJ6R uiEw== X-Gm-Message-State: AOAM5301CU8iWeYuTfOu2vr2QO4VmoW7PU9F+paqERm2LXuyFYJ335l2 9e/rvPvsaBplglnz3vplaIYmytUEqP9yAKsJw1V6IyUmaVfuAIVmXLAQX2bpn7W2+4uDB0PDm0x SOxMyGkvaOy9T6jrCvJU6D9m5pAx3X+FXrMNNxPv8xJRR/x7NAPjX9ydjp4BBoNKebbxxHDUUBg == X-Received: by 2002:a5d:6447:: with SMTP id d7mr22562374wrw.118.1638549004171; Fri, 03 Dec 2021 08:30:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQr94YpHMq3Scyaq11ZoOtdfvQGuV9RYFQe6ETnwAx9sISb9SQ6SkJ5wTlYj0Ip8H9rpWvnw== X-Received: by 2002:a5d:6447:: with SMTP id d7mr22562340wrw.118.1638549003891; Fri, 03 Dec 2021 08:30:03 -0800 (PST) Received: from localhost (host86-134-238-138.range86-134.btcentralplus.com. [86.134.238.138]) by smtp.gmail.com with ESMTPSA id r11sm3070895wrw.5.2021.12.03.08.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Dec 2021 08:30:03 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Jan Vrany , Andrew Burgess Subject: [PATCHv2 0/5] refactoring towards Python MI command API Date: Fri, 3 Dec 2021 16:29:55 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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-List-Received-Date: Fri, 03 Dec 2021 16:30:09 -0000 I originally posted these patches here: https://sourceware.org/pipermail/gdb-patches/2021-November/183231.html but as that was buried in the middle of a general discussion thread I was worried the series might not have been noticed. The work in those patches is not my own, but is based on Jan's work which has been previously posted here: https://sourceware.org/pipermail/gdb-patches/2019-May/158010.html This series is not all of Jan's work, his series goes all of the way to adding a Python API for creating MI commands. This series is just the refactoring ahead of the final Python changes, but I think these changes stand on their own, so would like to have them considered for acceptance. We can then rebase the remained of Jan's work on top of master once this series lands. Pedro had some feedback on Jan's V3 series, but only one of the feedback items applies to the work I'm submitting here: https://sourceware.org/pipermail/gdb-patches/2019-June/158431.html I've gone thought that email and I believe that all of the issues listed have been addressed. Changes since _my_ V1 series: - rebased onto current upstream master, and - ensured that all of Pedro's feedback has been addressed. Any additional feedback would be welcome. Thanks, Andrew --- Andrew Burgess (1): gdb/mi: int to bool conversion in mi_execute_cli_command Jan Vrany (4): gdb/mi: rename mi_lookup to mi_cmd_lookup gdb/mi: use std::map for MI commands in mi-cmds.c gdb/mi: use separate classes for different types of MI command gdb/mi: rename mi_cmd to mi_command gdb/mi/mi-cmd-info.c | 4 +- gdb/mi/mi-cmds.c | 571 ++++++++++++++++++++++++------------------- gdb/mi/mi-cmds.h | 70 ++++-- gdb/mi/mi-main.c | 51 +--- gdb/mi/mi-main.h | 12 + gdb/mi/mi-parse.c | 20 +- gdb/mi/mi-parse.h | 6 +- 7 files changed, 401 insertions(+), 333 deletions(-) -- 2.25.4