From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 86NMKnd3AmnqTxAAWB0awg (envelope-from ) for ; Wed, 29 Oct 2025 16:22:15 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=O3cjbWN3; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A01471E04C; Wed, 29 Oct 2025 16:22:15 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E487F1E04C for ; Wed, 29 Oct 2025 16:22:14 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7910D3858CDA for ; Wed, 29 Oct 2025 20:22:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7910D3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1761769334; bh=Q2srx+ok2rgL1TZvSd8u/DmftIVDr7joIeTFWxgQ9MM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=O3cjbWN34pDTXZ+JBgkSKdyYFpo3UDRIJCsFcaP3PScqF56iYy9iGJx4Fde15URT+ 8J5Ez12YGgpJS+28y36+mLfPFIu5R40Sf4zQ5OUVI5axlnrJ51SDKdieekEUmgRaIw av0cQVGC2aba/HQGyVwgEH23mjNGM/e8Yb/FOhtg= Received: from BL0PR03CU003.outbound.protection.outlook.com (mail-eastusazlp170120007.outbound.protection.outlook.com [IPv6:2a01:111:f403:c101::7]) by sourceware.org (Postfix) with ESMTPS id 42F933858D32 for ; Wed, 29 Oct 2025 20:21:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42F933858D32 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 42F933858D32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1761769281; cv=pass; b=Q2TLrvbwGv5LUQbQXMZVRkMLvzRKEkLKvqkRvOwdUeiHJmasWI3dSMbOUKwnapADenoYRcwv55XQlEgi0l1YKdbC2LGsrUlhfWkva2zgHrYwKi2CoE4WpGuhwUUOVYM2f0yfTx704CQFqVlgBsSQ/zHDRdIcxDL9pgKUku6HbwY= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1761769281; c=relaxed/simple; bh=EtMiHElqDVIvVSR2LIVZ30GXNdi1Dj5ICshMpzjr280=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=pz/Z5vac7PSA2W4rRMep0YyTNS1KYjYl/4D5ESnJcYtEdSQ2Cwe07wymvcVYa0Z0lZloy7XeRJsL8+VbRxjfDRdD7SdVROSe/abK+D487QxuZKT/t0OOC3cMgW3EZ4HmqUlj7TnpuFJflHezAcgAAkJ3BsfomO/KfE4947IVXuk= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 42F933858D32 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JNrLTY/e6G2NvMXmXl/J2J18QdbpnYUYazzfpuri3zaTxl413DLM3QCnIoKwQTNLg9FoW6zmQIOYtAP+lTCzPe432gupHtsQvud0FO40mKgbfrnaCuUu2UWyyz9iZCYpdQSxYhKb6dF7VasX3MnvXdb4CmewBcVWo7OcAYJkuHB48EdAGztKVm6Kq7xJT7uyryDW3vaNgI8+4ZyPtr0T3HxjwvHNws4YOtuemwHczaR+AI/m/2x7QP3w1e+Pf0NYwBomwIdr+HmsB1IY3pUM8zIN0z6Gy+cKa8qPwixAEQWNXmrgpot3qEOjnPRlFyGO7jIFz6XbeaLB6G4DskQijA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qkLvSIYA9MECn+HaBCDcY6I8AOvlwkREaGeRRLYwaKg=; b=Q2ZkNe9JmIf67/LV9M2WaHZVT2sHX42+Zpzc1wPtpKxoEGBF6muHaPQhiTaeUI6tbFKr4pQJk00pUYBiBOnzmCdMMqFY8i9qYlC4hbTyo/H2GVpAql92dFm28huYQHT1kLOuEXKTKCZiaR+/wNI0oBp47pEi0TpvosXc7xpYrlY+sEK5PBfwf38oFYj7FBucttO7aWNpR1giNTqrI+Ulrf2pIZDtcxGuhLT1qeIY5PZOCnKBQE2JGTZJ8uTQ6fxjkoDDUQrZ8iR5/wbXfmYuAEJsU7J9DDGfkoM4wM+phh8r66yP9xgks5IQSbUCy1HD7cJMVLpx/rJxVT2rwt0wWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.23.194) smtp.rcpttodomain=sourceware.org smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) Received: from SJ0PR13CA0045.namprd13.prod.outlook.com (2603:10b6:a03:2c2::20) by DS0PR10MB8031.namprd10.prod.outlook.com (2603:10b6:8:200::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9275.13; Wed, 29 Oct 2025 20:21:18 +0000 Received: from SJ5PEPF000001C9.namprd05.prod.outlook.com (2603:10b6:a03:2c2:cafe::5) by SJ0PR13CA0045.outlook.office365.com (2603:10b6:a03:2c2::20) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9275.13 via Frontend Transport; Wed, 29 Oct 2025 20:21:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.23.194) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none; dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.23.194 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.23.194; helo=lewvzet200.ext.ti.com; pr=C Received: from lewvzet200.ext.ti.com (198.47.23.194) by SJ5PEPF000001C9.mail.protection.outlook.com (10.167.242.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9275.10 via Frontend Transport; Wed, 29 Oct 2025 20:21:17 +0000 Received: from DLEE211.ent.ti.com (157.170.170.113) by lewvzet200.ext.ti.com (10.4.14.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Wed, 29 Oct 2025 15:21:13 -0500 Received: from DLEE211.ent.ti.com (157.170.170.113) by DLEE211.ent.ti.com (157.170.170.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Wed, 29 Oct 2025 15:21:13 -0500 Received: from DLEE211.ent.ti.com ([fe80::4e9d:7340:5514:6ecf]) by DLEE211.ent.ti.com ([fe80::4e9d:7340:5514:6ecf%6]) with mapi id 15.02.2562.020; Wed, 29 Oct 2025 15:21:13 -0500 To: "gdb@sourceware.org" Subject: test gdb as it runs qemu simulator Thread-Topic: test gdb as it runs qemu simulator Thread-Index: AdxJCo/WsCLoRZ1rSB+KNGqp1COhuQ== Date: Wed, 29 Oct 2025 20:21:13 +0000 Message-ID: <938d2b5574b94d9584b758eee3c0c064@ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.219.15.170] x-c2processedorg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001C9:EE_|DS0PR10MB8031:EE_ X-MS-Office365-Filtering-Correlation-Id: f02ad0ff-f9c4-4dcf-d7b3-08de1728b782 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700013|34020700016|8096899003; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?CK/dSi99wCVwohj0PuER7Lee2go4sH75wU2wyZto+YRTQX5dQEfcpTIIMOHJ?= =?us-ascii?Q?qVBHuVnc/fcermYrJ+p2iBsN4NI3MAWc7J5pf8vP1YvoZm80N+zPGgZEbPKk?= =?us-ascii?Q?Aqt2YPawwGRw8ATcU5Hxsp9r6zLf6JuI38kVdBg62UO4+uF16zjBEm7ea+W+?= =?us-ascii?Q?nERz+dmFaXzxcUD5DYMR+QvQgq1FpyywOX6fiFxBrZQhRUa5BE8ik4sPJh3C?= =?us-ascii?Q?s8k6wA5F1SK6WiENY5Q4EnfzQjQyID6fm0UmeMlGX4oq4soRw3NUswmWZRHd?= =?us-ascii?Q?fDN5qcxNu/OhO+mMtiNn5MJcaGasyZUuqk5Mx6+dP5mp7hCYeq29oLcJOB78?= =?us-ascii?Q?54+uB4fNOYty1EQP2/TXjmqGCC28WGxthVG8zJQ72tcnblRIhQ35q4jiYNqY?= =?us-asc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wW4YQ5?= =?us-ascii?Q?NASHqS9ruIq4ACEhYE1yRBO+k4n8dr6KoKH3YsSzYfSL714OM9EXmuVDrXXT?= =?us-ascii?Q?wLYdesLbFiF8FVhtTLa+f/nTqhzU+CnaW8dOy/7q2CPRggorZ6W/3L55fEvS?= =?us-ascii?Q?EoJmivjiqcpXgxIX1mJyLejHcqdbYeuERpi87V/+K7e4S9oXxnkwu3ByE9kD?= =?us-ascii?Q?OVDi0RxuphAeJ9JOTjOX57PsCTCXjmZd8MSjlvK4BFY354SXhaBA8RM+D4Ej?= =?us-ascii?Q?uM6aROgbKQGP4JPXDPg=3D?= X-Forefront-Antispam-Report: CIP:198.47.23.194; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:lewvzet200.ext.ti.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(1800799024)(36860700013)(34020700016)(8096899003); DIR:OUT; SFP:1101; X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2025 20:21:17.7095 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f02ad0ff-f9c4-4dcf-d7b3-08de1728b782 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7; Ip=[198.47.23.194]; Helo=[lewvzet200.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001C9.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB8031 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Mock, George via Gdb" Reply-To: "Mock, George" Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hello! I work on a team that implements C/C++ cross compilers. Among other combin= ations, one cross compiler runs on Linux and generates code for RISC-V syst= ems. I want to use the gdb testsuite. Not for the purpose of testing gdb,= but to test whether the Dwarf generated by our compiler works with gdb. I= need to test gdb while it controls execution of code running under a qemu = simulator for RISC-V. The following shows a typical way, from Linux, to interactively use gdb on = one program. # In one process $ qemu-riscv32 -g 1234 riscv-program # In a different process $ riscv32-unknown-elf-gdb riscv-program (gdb) target remote localhost:1234 (gdb) # typical gdb commands go here The option -g 1234 tells qemu-riscv32 to start gdbserver and wait for commu= nication through port 1234. I have some familiarity with testing gdb. I learned how to build and test = it for Linux. I built riscv32-unknown-elf-gdb, and I can interactively wat= ch it work. I know how to configure the testsuite to build with our cross = compiler. But I cannot find the configuration (I presume some combination = of a board file and command line options) which causes the testsuite to int= erface with qemu-riscv32 in a manner similar to that interactive example. While I would appreciate a fully fleshed out solution, I'm sure that is too= much to expect. I suspect many have done this before me, but none of my m= any searches have found the blog post (or whatever) which shows how they di= d it. I'd appreciate any light you can shed. Thanks and regards, -George Mock