From patchwork Thu Aug 24 16:38:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 716557 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1444189wrp; Thu, 24 Aug 2023 09:41:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHb1ts7XeQLa9DiucMQooeUd6dZPL7zjZgiaCxHVh8RSnfE/QOjT+/As2+g1Fkx28Mmd5PI X-Received: by 2002:a05:620a:258e:b0:76c:c601:3684 with SMTP id x14-20020a05620a258e00b0076cc6013684mr20031092qko.18.1692895305057; Thu, 24 Aug 2023 09:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692895305; cv=none; d=google.com; s=arc-20160816; b=I1Pl+04A9NyULlShK5lQCITa26nF4SbYCqlNsMrTbANHO5PQVXhOOlP2Mh4R+3O59o u21ns2UVJ4sL21S2yQMya7ajfOQenvRepzc0z0O04gY9N4H2I7rKqkBE6VKRyq+WL4GE Jrmf/paz31kpgrx35Ni8x0E0dp0WRzYh/VpRLCXvwNlxItilLJFNgygNociNXKvwHk/L n4yzatnbvwH3AID7G0Fti3yvvv5TzswhUZmi6dWKbaKLlJMf8rDK/V9GottXHHub7+yU Ukask92GDFBLaqyS4lywDIXY9+gwgQ6oArCoL+aBSq3HbszPbUV8ivKb6G/cjs3jh9mT 5tGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=YycZVtWAqh18UOqjLgbCV/FJBbrD5YwStlZMfvKCjE0=; fh=xfIA8VPYm4frMifZMc5Z1SVcvuTb3HMwCNSmJWBjt2E=; b=gbaHQFE+XhyPVnPvJGOF7P3BaUBDyDGONr3fMFnZIV+YlXZX/Chx4O7wwRIsX5KxQU nD7scNY2K64VFhRtN5vgT3wrMC0vkyAqGmKiKFHCjVb4GFCWX0gF7tzJo91TkkFnOuGv oe1dTDppPewEyrODQGI28F7Wiiu44vcny9wBwwxTBg07KhctagdoyUdd/m1Fv189wwUa 2PT2WV5lhBA8AB4LklGhrABCwJtvjfd2G4VJJCNTQII7s6W7n8Cfnwpwu6zVO92cMPb+ 4zMlaDcsEJVGy5Rkcz15j/6YAEZ1WlbyIGYIiMn7O9rdXqzixMQVEKRaYCHPSrE8ppuC aLTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zz52aMwH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x24-20020a05620a0b5800b0076da71016f3si1238676qkg.512.2023.08.24.09.41.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Aug 2023 09:41:45 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zz52aMwH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZDMe-0006Ep-LH; Thu, 24 Aug 2023 12:39:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZDMc-0006Ch-FE for qemu-devel@nongnu.org; Thu, 24 Aug 2023 12:39:18 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZDMY-00085n-21 for qemu-devel@nongnu.org; Thu, 24 Aug 2023 12:39:18 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fea0640d7aso232715e9.0 for ; Thu, 24 Aug 2023 09:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692895152; x=1693499952; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YycZVtWAqh18UOqjLgbCV/FJBbrD5YwStlZMfvKCjE0=; b=Zz52aMwH9B/gof9vivVLZUmAM+z37uZc7HljnuRlFJuq4X+Y/662SXeGi6pV76eE5/ Jhbv3fcYJomvRz/2xWoriIDLC9pi5uM2ILGFGTRUBZToa9Vo6FGHNDyPOC++cEXuElJY ONYu3hYjZBnv9QH7bz85dG3UpQE3S8j0QCK4mIAZON0KlE9LwyPOUyIezhzJJ5GQ+r6t /+nHrzH0R9CfUfN33a5NWkIODGajVvkF/HQTmg6gkycoeq3ARvJZMHp21dfOioBNXyHY 7nQ6WXfpvKQ9bZQ6nQg2sGnEox2KyhZLJnNKEYlwAtESk+KfmxGKJYIPy7R43XqXkAvp uAgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692895152; x=1693499952; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YycZVtWAqh18UOqjLgbCV/FJBbrD5YwStlZMfvKCjE0=; b=HWkF6XHR7iWbyUnYAVtOHWqH1mxpTXYYCf6hBIS55Lcfn/k28fyDkG4Vq6cfZOdbUK 6UINYn9lhIoEYIf/aqq3nZggIHGCriDkEcwmFyNIJIf2h8bw5swAPfYOOg/9i2iE5zAj orCRfyvyTKE36AsBBOXOuPn4Nc/jvJ5gWarE1bj5y0VjeakL9xgMhIHvFpS4ZPO2j76f vqV4+U8EtKcbI7AUDm35vKrE47jR6wX4K2wPGe5y7do/QxuvgHzVL7ZU0JXifLEhfu+n OOUH28pGAnGCtgkIe10agr894yQwdLtlZWGjXvEs8qEtOi8Wy97AN6uxGn8rvgTC0nNM qHgA== X-Gm-Message-State: AOJu0Yx66PalcXduBGoQqme/vGc8Mu/UyFUHKYgvs05oVnAIx/eSK71b k0SzHbPOdpQ8gsM/t5+TjKZHsQ== X-Received: by 2002:a05:600c:204:b0:3fc:7eb:1119 with SMTP id 4-20020a05600c020400b003fc07eb1119mr12188286wmi.15.1692895152160; Thu, 24 Aug 2023 09:39:12 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id j7-20020a5d4647000000b0031c4d4be245sm13660014wrs.93.2023.08.24.09.39.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 09:39:10 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 32BD81FFBB; Thu, 24 Aug 2023 17:39:10 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Beraldo Leal , Nicholas Piggin , Richard Henderson , Markus Armbruster , Yonggang Luo , qemu-ppc@nongnu.org, David Gibson , Daniel Henrique Barboza , qemu-s390x@nongnu.org, Akihiko Odaki , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-arm@nongnu.org, Juan Quintela , Thomas Huth , Peter Maydell , Ilya Leoshkevich , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , David Hildenbrand , Greg Kurz , Wainer dos Santos Moschetta , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , =?utf-8?q?C=C3=A9dric_Le_Goa?= =?utf-8?q?ter?= Subject: [PATCH v2 00/12] gdbstub and testing fixes for 8.2 Date: Thu, 24 Aug 2023 17:38:58 +0100 Message-Id: <20230824163910.1737079-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This is the current state for my maintainer queue getting ready for the first PR into the tree. It includes the previous testing/next fixes as well as some more cleanups to modernise the gdbstub tests and code. It also includes Matheus' fixes for SIGINT. v2 - added style patch - added comment move for gdbstub The following patches still need review: gdbstub: move comment for gdb_register_coprocessor gdbstub: replace global gdb_has_xml with a function gdbstub: refactor get_feature_xml gdbstub: remove unused user_ctx field (1 acks, 1 sobs, 0 tbs) tests: remove test-gdbstub.py tests/tcg: remove quoting for info output Alex Bennée (9): tests/docker: cleanup non-verbose output tests/tcg: remove quoting for info output docs/style: permit inline loop variables tests: remove test-gdbstub.py tests/tcg: clean-up gdb confirm/pagination settings gdbstub: remove unused user_ctx field gdbstub: refactor get_feature_xml gdbstub: replace global gdb_has_xml with a function gdbstub: move comment for gdb_register_coprocessor Daniel P. Berrangé (1): gitlab: enable ccache for many build jobs Matheus Branco Borella (1): gdbstub: fixes cases where wrong threads were reported to GDB on SIGINT Thomas Huth (1): .gitlab-ci.d/cirrus.yml: Update FreeBSD to v13.2 docs/devel/ci-jobs.rst.inc | 7 + docs/devel/style.rst | 9 +- gdbstub/internals.h | 3 +- include/exec/gdbstub.h | 20 +- gdbstub/gdbstub.c | 126 ++++++++----- gdbstub/softmmu.c | 1 - gdbstub/user.c | 1 - target/arm/gdbstub.c | 8 +- target/ppc/gdbstub.c | 4 +- tests/tcg/multiarch/system/interrupt.c | 28 +++ .gitlab-ci.d/buildtest-template.yml | 11 ++ .gitlab-ci.d/cirrus.yml | 2 +- .gitlab-ci.d/crossbuild-template.yml | 26 +++ .gitlab-ci.d/windows.yml | 13 +- tests/docker/Makefile.include | 6 +- .../dockerfiles/debian-hexagon-cross.docker | 9 +- tests/guest-debug/run-test.py | 2 + tests/guest-debug/test-gdbstub.py | 177 ------------------ tests/tcg/aarch64/Makefile.target | 2 +- tests/tcg/aarch64/gdbstub/test-sve-ioctl.py | 3 - tests/tcg/aarch64/gdbstub/test-sve.py | 3 - tests/tcg/multiarch/gdbstub/interrupt.py | 97 ++++++++++ tests/tcg/multiarch/gdbstub/memory.py | 3 - tests/tcg/multiarch/gdbstub/sha1.py | 4 - .../multiarch/gdbstub/test-proc-mappings.py | 4 - .../multiarch/gdbstub/test-qxfer-auxv-read.py | 4 - .../gdbstub/test-thread-breakpoint.py | 4 - .../multiarch/system/Makefile.softmmu-target | 16 +- tests/tcg/s390x/gdbstub/test-signals-s390x.py | 4 - tests/tcg/s390x/gdbstub/test-svc.py | 4 - 30 files changed, 312 insertions(+), 289 deletions(-) create mode 100644 tests/tcg/multiarch/system/interrupt.c delete mode 100644 tests/guest-debug/test-gdbstub.py create mode 100644 tests/tcg/multiarch/gdbstub/interrupt.py