Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC0F3CA9ED1 for ; Mon, 12 Oct 2026 17:05:44 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xGJSf-0006Mc-4O; Mon, 12 Oct 2026 13:05:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xGJRW-0005G1-8k for qemu-arm@nongnu.org; Mon, 12 Oct 2026 13:04:11 -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 1xGJRR-00077a-OD for qemu-arm@nongnu.org; Mon, 12 Oct 2026 13:04:06 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4a161d9b8c7so14607165e9.3 for ; Mon, 12 Oct 2026 10:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1791824635; x=1792429435; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=4Y3ACsmZ3EhAUMAFT0gmky/QQHKNO1XjjQL0eM7lIcQ=; b=Ag1p8TBcEuvSOdqle670EQUHgpPbinQF+mv7eC0KfqmZ+wiBV6SCm5PG0Ke1Snl65Z +TSH/v2U9Y6jhYJ7HOo99cYv7jAiuLICzGPXEo26wZYzron0vFtfkGZkSX3MWATwhGjT 07tKSO1ThNq+8LN3r8dgLA3S1Dh0/XQosJjRHhIvGwDeoAGdBPvuG7TFWgxGR0B4YrzM PuDyxfGriJbt+Y/8gUV1DbCh96aMVGWbhanhq0JeTfq8/svQcRxXiZQBZJG4gkpVUG7Y 7M76A1LodcIPtGD/Frga/tDNbXNSiZKUDVJLRR3x95VsH+BjRgw4uZ3iUd0DvcKPiZJj REBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791824635; x=1792429435; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4Y3ACsmZ3EhAUMAFT0gmky/QQHKNO1XjjQL0eM7lIcQ=; b=Y1Qy66kJhzzGbXdvffiAApP8yVic4MTQd4NyIiouIieHHcp2na+pxnb0nTJaLi/ldA UDP1A1cUGxZAiJmKn4RMq9EBsReXjFeVw+G8LG0zo8UEq+64/ZhU9fYTj6TQJCBId2xL cCO1bTasHBQkNnj/pCpbR/h03O6te0OGlQTj5kXRlV6E9gWGwpixEXWgQucdej2D28DV nvCW2YR1yrwsLT+yMEQ8W1t8m3YQN5/ADN0A8tLXgsx6oiTP5dR3ly8B9j02gLDoZPGr NaLrTarWk92ES24EUCFBNOnlchmiqOBRpc1AkaZwfktqpV5NCpi2jdAMuU73Ymniq9/Q b5UQ== X-Forwarded-Encrypted: i=1; AKwUvBys3J9wC5lwS/PwDCZVGoPIglyUzJA5Z22s/2axfGKE57+wPq4B0DxDE90a9+arS7NU2WUpzXwdaA==@nongnu.org X-Gm-Message-State: AFq9FYIpc/bRnYlhW8s7iJPMf8b6V03Ny3gobe3NRE+tQ0WKa9OUJIr5 CPQ4df6mEzjTBZSxXHpT7z0x+MiwEi/2SOmScL/9j1y1QSls1jDFgkHUDDi4OCpXVWA= X-Gm-Gg: AYBFou0I+oBc/18fq7eVMDsYU19vhTgpsjcIqTBGdEPeakp/wFJXTXnleurd35aryuy 9HBaQY07ao+uDkNWvfW56SQQ/wMaIDxOG0AYZJznZkZJIxuFaAyAlVQ6jYMmHGvTBnVCR9e/rCd m+t57o1MCF1ycxsje4vZZBkSOqIuP1KDy7Wfpyc1Q8YXggmUbayhS1laEeY+h9ic6mk9km5jq/5 VZd3GVl+bubAzhB8j3POzm2EiNvyNIKzBcY3L0728PxRDv54jE6wxokskKHc4psM1hZLYCFgTqm V3ZTlh7tUV4VYbbfemfPP1UUFcUGMet/dlIoa8YUZOAm8njRDGJb4Ha5hn4gdrC7YOZzLuw56uz fvwaR8mH5+kTXyUTJ7lD+I9qWUlyKTytcLL3kRWq2PvQLv3CB+ELbnh63ycu+yPDhh6deD4bvc9 WchjeS1bVDICra5tiVS9OtNnSaBGaQHZEjYT7x1/qo4vvKlaoobaANpO+d1d3Vl54XysO2aQ== X-Received: by 2002:a05:600c:8206:b0:4a1:6811:8d with SMTP id 5b1f17b1804b1-4a18e4a3b34mr196651375e9.11.1791824635007; Mon, 12 Oct 2026 10:03:55 -0700 (PDT) Received: from draig.lan ([185.124.0.156]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a18bea0f1csm433669045e9.9.2026.10.12.10.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2026 10:03:50 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CDAF35FD12; Mon, 12 Oct 2026 18:03:31 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Zhao Liu , Kyle Evans , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Brian Cain , Richard Henderson , Brad Smith , Ani Sinha , Christian Borntraeger , Thomas Huth , Keith Busch , Matthew Rosato , Cornelia Huck , Paolo Bonzini , Halil Pasic , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Eric Farman , Pierrick Bouvier , Anders Roxell , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , "Michael S. Tsirkin" , Warner Losh , qemu-arm@nongnu.org, Peter Maydell , Yoshinori Sato , Peter Xu , Klaus Jensen , Song Gao , qemu-s390x@nongnu.org, Laurent Vivier , Ilya Leoshkevich Subject: [PATCH v2 08/16] tests/guest-debug: add --symbols option to run-test Date: Mon, 12 Oct 2026 18:03:22 +0100 Message-ID: <20261012170330.1144446-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261012170330.1144446-1-alex.bennee@linaro.org> References: <20261012170330.1144446-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sometimes the debug symbols are not in the kernel binary image but in a separate elf blob. Provide --symbols to facilitate using them. Reviewed-by: Marc-André Lureau Message-ID: <20260930164649.433573-12-alex.bennee@linaro.org> Signed-off-by: Alex Bennée --- tests/guest-debug/run-test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/guest-debug/run-test.py b/tests/guest-debug/run-test.py index 4aa24939b7d..0c7cbd137ef 100755 --- a/tests/guest-debug/run-test.py +++ b/tests/guest-debug/run-test.py @@ -28,6 +28,7 @@ def get_args(): parser.add_argument("--kargs", help="Kernel args to --append") parser.add_argument("--binary", help="Binary to debug", required=True) + parser.add_argument("--symbols", help="Symbol file for binary to debug") parser.add_argument("--test", help="GDB test script") parser.add_argument('test_args', nargs='*', help="Additional args for GDB test script. " @@ -114,6 +115,10 @@ def log(output, msg): gdb_cmd += " -ex 'set confirm off'" # connect to remote gdb_cmd += " -ex 'target remote %s'" % (socket_name) + + if args.symbols: + gdb_cmd += " -ex 'symbol-file %s'" % args.symbols + # finally the test script itself if args.test: if args.test_args: -- 2.47.3