From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04olkn2017.outbound.protection.outlook.com [40.92.73.17]) by sourceware.org (Postfix) with ESMTPS id 6F66F3858D39 for ; Thu, 9 May 2024 13:17:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F66F3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=hotmail.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hotmail.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6F66F3858D39 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.92.73.17 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1715260652; cv=pass; b=NGKIPFs/DFDqXTgAAozG7vBeSXhnH6dBIQ/2OuswBrCIHxTy23bcKEadS5+5pwYE4fHJmrZkG9JUYfLPafDZSPe85b/lmWpQGvJ54jJojFBjFq/bnVsPoN28ugx5ykIPyIPAcdtWOJ/avnclUHGEYz7JiSi8IGeyYIL89Dbf6Mk= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1715260652; c=relaxed/simple; bh=qmnSXH7ED7H5gZvguY4aK5j8fPTPzxGUC+bjRaEFkCk=; h=DKIM-Signature:Message-ID:Date:Subject:To:From:MIME-Version; b=fcWbZpJqG7KhFqe456lfydkydU5fpsMc7GM1fIF/yLVQ2Yv4WPTFdQPXfv3pn5VA2vnsgkFQmgFIhrMLCXprHq9vH56e51cbGB6huRApkLNIEpo+wwYwP1Y+wsq7TDy5UajLM8Phm9R3bWpzT7E27FOrrx8DtStfHBMsMuMct80= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NSYFTuE0A9Xn3R+3pS/dq75QSb2lJIHeddK8MNDZuMdZY1WE1oZ9CjGQ5Tfgvb0svcbPKLbhAbH7IAKpu0YbV17bVaUuYRdSXQMBgzmnu1OQJlmuhju25ooEs8qT3lHmQos4BOr0V4cFyyiXgDOup4mHCWhUoYrtRG/a+fVNXBpdhXlDAGnhQjBSSmJPtlFuwv4JkQtITSNHaGpLrMbcE6wOV1GCVLwdLJM9ucUAnbWhmgAlO4+38+G/VMEJ4cwA3Hb5ljWcdJAnWl0OBYSU15GdCbZYl5jvD7UeQzJErRCThMY3qAzuiNnCdXB9dVHUSZBKhpwzPSvIQLvXyak/rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=UL70kXvzXFEXe97wrv/iESQIZ5y2uWUwkg49x9Eb+HY=; b=UxfIwZDhW4oaDVFBSw/gjFy9Ro1SpLf2mqyWnbvv3vOgrarEA23bBr/YnDDjj1NqdZ05MX32YqzR3vapsVobo+K7wjIPY9Yl20Xa5dvO1rlMLKL4WO7T83FAPTFgaKurfF1mvzdyVLN6oRyQB735KMNcDSKasadYIurFXVykxr6kWE7J4Lv8GyFjfUxeesdR2h06bAcfOtzCkxZ0kOfhKv1f59uXpGEQoPrAg+Ckj7yzK49QsofdrbTSyHhSntrk9eCd0HYIXCl/1/vGaELnG7SFYXu1/JbrZ1QdEXoMxlbzeM4NVNubQRcfl68MNi2wPgWj4qzLWal0/4c/5NlGyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=HOTMAIL.DE; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UL70kXvzXFEXe97wrv/iESQIZ5y2uWUwkg49x9Eb+HY=; b=i9lkzSPbITbLn2IqaMoQGnHp+k2KyMDW+Dr7VAULuXj40wE/Tv44XLjgIlkBxaezqcu4MTBZW/HBnis/CV8lI8jR9pK11Ng35qqHJlstbxPlmSSVqTfAEaFAurluNRXSN1lcrBngGNaPVdcJm6I2U+52VCsVClG0tjus2Nem0f2E4U2qgAbknLjtAbFITzmIgTEMbzr4UVcA/H1pYyXGkRkWAOSwnplqcgwUgZRryWxSovBDIY8bw/cEhu5CSx4yRjSwfSlK2z/BIe4LOyUaZtMtq4nMimLGn6UPYkqyeJp+N6hx7pqanJB6vlAT+ocki9jzG0tTlSvjV4RcFBwgUQ== Received: from AS8P193MB1285.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:333::21) by VI1P193MB0575.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:154::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.45; Thu, 9 May 2024 13:17:25 +0000 Received: from AS8P193MB1285.EURP193.PROD.OUTLOOK.COM ([fe80::e65d:5dd2:5662:c61f]) by AS8P193MB1285.EURP193.PROD.OUTLOOK.COM ([fe80::e65d:5dd2:5662:c61f%3]) with mapi id 15.20.7544.041; Thu, 9 May 2024 13:17:25 +0000 Message-ID: Date: Thu, 9 May 2024 15:19:31 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/12] gdb_target_is_native -> gdb_protocol_is_native To: Pedro Alves , Tom Tromey Cc: gdb-patches@sourceware.org References: <20240419151342.1592474-1-pedro@palves.net> <20240419151342.1592474-10-pedro@palves.net> <87edb1w5iq.fsf@tromey.com> <3a7ddd13-c4f7-4dcd-99d4-2c943195540a@palves.net> Content-Language: en-US From: Bernd Edlinger In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TMN: [d/xkfRoRUNJmvYULccmwAVd0YQIwErGq/BrJxBW1wY/haPvctP9cR44XTcbU6Xlx] X-ClientProxiedBy: BE1P281CA0155.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:67::12) To AS8P193MB1285.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:333::21) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P193MB1285:EE_|VI1P193MB0575:EE_ X-MS-Office365-Filtering-Correlation-Id: 08d26f46-2787-4214-0f3b-08dc702a5e14 X-Microsoft-Antispam: BCL:0;ARA:14566002|461199019|1602099003|3412199016|440099019; X-Microsoft-Antispam-Message-Info: VTgM+SG4RJ6lxTz2/y3AHVwAG3SOftauNV9uwiPHT3N//87zHhTZxXR5ECc7nBVXT3CeMYKj1CjUzCiMpX/CA7Hmc+1eSY49RUP09G1qSYeSUp7PilVoCjcL8pPHgBplefR0wZw2MbuatPeeMlSkMlxUhq0rBXN/5rWk9xo1JPJpy5b6uRd0dhBTDgm+fas330ESq64JQT1Bm1CWWhlaC71E/PzTbqWAzwpeDVUvoltBf4ndchJr6B2UFVecZI59QFycm0WHymczvK2vF3f/FLJi0+6jf3SrPYXtktlQFs8PwWbiJ0tEIvv7jb6kv79LjlwpkTabF2kp5N27bGOu7USus9RrAbIIzMkwN+1s+jsIBOBwHAeEx2vcCRHeK4AJPkuhk8jVOoYtGSC6jBjYZCz7F5iAcMq5M5ci3RNhfK5Jo/AizP6hrcB6GgdRekhk64uODgkYH4z/DQ4Fz5Ub5FebVKzqHG2HPUxkR2vJN6G9qVK8kGaxCMegLXTP52MqlCDxcF3IX5iyhaznLNs3CKF+Guqw6EdveSNk/GZ59WNE4Ahy4m3nagiKCe/XSvH0oJvcrT+eFLIdD8qJRxUqflE++G78blC7lLiMeoUgoJ+MppgmsB0swVb9t6RqDMy5JhSsqbJaVhYWdGCpHutTMe8Vh2/WO6+CBO/4pkPxBws= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OWhTcG8vMXcxeVBWZnFteFlPWl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RzXRNRcT?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-80ceb.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 08d26f46-2787-4214-0f3b-08dc702a5e14 X-MS-Exchange-CrossTenant-AuthSource: AS8P193MB1285.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2024 13:17:25.3657 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1P193MB0575 X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 5/9/24 14:05, Pedro Alves wrote: > On 2024-05-09 12:54, Bernd Edlinger wrote: >> On 5/9/24 11:47, Pedro Alves wrote: >> I think that file would be used when I run the gcc testsuite, >> there I set the path to my riscv-toolchain, >> and invoke this in the gcc-build directory: >> make check -i RUNTESTFLAGS="--target_board=multi-sim SIM=riscv-unknown-elf-run" >> or SIM=qemu-riscv32 for comparison. >> >> But if I run the gdb testsuite I can do the same, but the SIM=parameter I could even >> use SIM=true, is only a dummy, it must be executable, but it is not used in the end. >> And I believe for gdb the following file is picked up instead: >> >> binutils-gdb/gdb/testsuite/config/sim.exp >> > > Ah, OK, that makes a lot more sense. I got confused with the "multi-sim" thing. > > Since it's our file, it makes it makes easier. > > I guess we should try sticking: > > set_board_info gdb_protocol "sim" > > in that file. Like the patchlet below. Could you give it a try, please? > Okay sure. Here are the test results for rv32 and rv64 simulator, - is from before your patch + with your patch. rv32 test result differences: -Test run by ed on Thu May 9 09:07:20 2024 +Test run by ed on Thu May 9 14:46:45 2024 Target is riscv-unknown-elf Host is x86_64-pc-linux-gnu @@ -20210,7 +20210,11 @@ PASS: gdb.base/list.exp: list around current line again PASS: gdb.base/list.exp: testing repeated invocations with GDB's auto-repeat Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/load-command.exp ... -UNSUPPORTED: gdb.base/load-command.exp: the native target does not support the load command +PASS: gdb.base/load-command.exp: check initial value of the_variable +PASS: gdb.base/load-command.exp: manually change the_variable +PASS: gdb.base/load-command.exp: check manually changed value of the_variable +PASS: gdb.base/load-command.exp: reload: re-load binary +PASS: gdb.base/load-command.exp: reload: check initial value of the_variable Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/logical.exp ... PASS: gdb.base/logical.exp: evaluate x; variables x = 0; expecting 0 PASS: gdb.base/logical.exp: evaluate !x; variables x = 0; expecting 1 @@ -20950,11 +20954,7 @@ PASS: gdb.base/many-completions.exp: set max-completions unlimited PASS: gdb.base/many-completions.exp: duplicate check Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/many-headers.exp ... -gdb compile failed, ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/many-headers.c:20:10: fatal error: sys/mman.h : No such file or directory - 20 | #include - | ^~~~~~~~~~~~ -compilation terminated. -UNTESTED: gdb.base/many-headers.exp: failed to prepare +UNSUPPORTED: gdb.base/many-headers.exp: not native Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/max-depth-c++.exp ... PASS: gdb.base/max-depth-c++.exp: exp='s1': depth=0: set print max-depth 0 PASS: gdb.base/max-depth-c++.exp: exp='s1': depth=0: p s1 @@ -75717,10 +75717,7 @@ collect2: error: ld returned 1 exit status UNTESTED: gdb.multi/start-inferior-specific.exp: start-inferior-specific.exp Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.multi/stop-all-on-exit.exp ... -gdb compile failed, ..../riscv-unknown-elf/lib/gcc/riscv-unknown-elf/14.1.0/../../../../riscv-unknown-elf/bin/ld: /home/ed/gnu/binutils-build-riscv/gdb/testsuite/outputs/gdb.multi/stop-all-on-exit/stop-all-on-exit0.o: in function `main': -..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.multi/stop-all-on-exit.c:25:(.text+0xe): undefined reference to `sleep' -collect2: error: ld returned 1 exit status -UNTESTED: gdb.multi/stop-all-on-exit.exp: failed to prepare +UNTESTED: gdb.multi/stop-all-on-exit.exp: the test is aimed at a native target Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.multi/tids-gid-reset.exp ... PASS: gdb.multi/tids-gid-reset.exp: successfully compiled posix threads test case PASS: gdb.multi/tids-gid-reset.exp: single-inferior: before restart: info threads -gid @@ -76379,23 +76376,23 @@ Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.reverse/watch-reverse.exp ... UNSUPPORTED: gdb.reverse/watch-reverse.exp: require failed: supports_reverse Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/fork-exec-gpu-to-non-gpu.exp ... -UNSUPPORTED: gdb.rocm/fork-exec-gpu-to-non-gpu.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/fork-exec-gpu-to-non-gpu.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/fork-exec-non-gpu-to-gpu.exp ... -UNSUPPORTED: gdb.rocm/fork-exec-non-gpu-to-gpu.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/fork-exec-non-gpu-to-gpu.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp ... -UNSUPPORTED: gdb.rocm/multi-inferior-gpu.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/multi-inferior-gpu.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory-exec.exp ... -UNSUPPORTED: gdb.rocm/precise-memory-exec.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory-exec.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory-fork.exp ... -UNSUPPORTED: gdb.rocm/precise-memory-fork.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory-fork.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory-multi-inferiors.exp ... -UNSUPPORTED: gdb.rocm/precise-memory-multi-inferiors.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory-multi-inferiors.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory-warning-sigsegv.exp ... -UNSUPPORTED: gdb.rocm/precise-memory-warning-sigsegv.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory-warning-sigsegv.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory.exp ... -UNSUPPORTED: gdb.rocm/precise-memory.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/simple.exp ... -UNSUPPORTED: gdb.rocm/simple.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/simple.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rust/completion.exp ... UNSUPPORTED: gdb.rust/completion.exp: require failed: can_compile rust Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rust/dwindex.exp ... @@ -77180,7 +77177,6 @@ | pthread_atfork UNTESTED: gdb.threads/break-while-running.exp: failed to prepare Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/check-libthread-db.exp ... -UNSUPPORTED: gdb.threads/check-libthread-db.exp: require failed: istarget *-linux* Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/clone-attach-detach.exp ... Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/clone-new-thread-event.exp ... Running ..../binutils-build-riscv/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/clone-thread_db.exp ... @@ -78630,14 +78626,14 @@ === gdb Summary === -# of expected passes 71715 +# of expected passes 71720 # of unexpected failures 921 # of expected failures 39 # of unknown successes 4 # of known failures 66 # of unresolved testcases 257 -# of untested testcases 297 -# of unsupported tests 1231 +# of untested testcases 296 +# of unsupported tests 1230 # of paths in test names 4 # of duplicate test names 4 (END) and here the rv64 test results: @@ -1,4 +1,4 @@ -Test run by ed on Thu May 9 09:12:00 2024 +Test run by ed on Thu May 9 14:48:12 2024 Target is riscv64-unknown-elf Host is x86_64-pc-linux-gnu @@ -20437,7 +20437,11 @@ PASS: gdb.base/list.exp: list around current line again PASS: gdb.base/list.exp: testing repeated invocations with GDB's auto-repeat Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/load-command.exp ... -UNSUPPORTED: gdb.base/load-command.exp: the native target does not support the load command +PASS: gdb.base/load-command.exp: check initial value of the_variable +PASS: gdb.base/load-command.exp: manually change the_variable +PASS: gdb.base/load-command.exp: check manually changed value of the_variable +PASS: gdb.base/load-command.exp: reload: re-load binary +PASS: gdb.base/load-command.exp: reload: check initial value of the_variable Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/logical.exp ... PASS: gdb.base/logical.exp: evaluate x; variables x = 0; expecting 0 PASS: gdb.base/logical.exp: evaluate !x; variables x = 0; expecting 1 @@ -21177,11 +21181,7 @@ PASS: gdb.base/many-completions.exp: set max-completions unlimited PASS: gdb.base/many-completions.exp: duplicate check Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/many-headers.exp ... -gdb compile failed, ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/many-headers.c:20:10: fatal error: sys/mman.h: No such file or directory - 20 | #include - | ^~~~~~~~~~~~ -compilation terminated. -UNTESTED: gdb.base/many-headers.exp: failed to prepare +UNSUPPORTED: gdb.base/many-headers.exp: not native Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/max-depth-c++.exp ... PASS: gdb.base/max-depth-c++.exp: exp='s1': depth=0: set print max-depth 0 PASS: gdb.base/max-depth-c++.exp: exp='s1': depth=0: p s1 @@ -76019,10 +76019,7 @@ collect2: error: ld returned 1 exit status UNTESTED: gdb.multi/start-inferior-specific.exp: start-inferior-specific.exp Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.multi/stop-all-on-exit.exp ... -gdb compile failed, ..../riscv64-unknown-elf/lib/gcc/riscv64-unknown-elf/14.1.0/../../../../riscv64-unknown-elf/bin/ld: ..../binutils-build-riscv64/gdb/testsuite/outputs/gdb.multi/stop-all-on-exit/stop-all-on-exit0.o: in function `main': -..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.multi/stop-all-on-exit.c:25:(.text+0xe): undefined reference to `sleep' -collect2: error: ld returned 1 exit status -UNTESTED: gdb.multi/stop-all-on-exit.exp: failed to prepare +UNTESTED: gdb.multi/stop-all-on-exit.exp: the test is aimed at a native target Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.multi/tids-gid-reset.exp ... PASS: gdb.multi/tids-gid-reset.exp: successfully compiled posix threads test case PASS: gdb.multi/tids-gid-reset.exp: single-inferior: before restart: info threads -gid @@ -76681,23 +76678,23 @@ Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.reverse/watch-reverse.exp ... UNSUPPORTED: gdb.reverse/watch-reverse.exp: require failed: supports_reverse Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/fork-exec-gpu-to-non-gpu.exp ... -UNSUPPORTED: gdb.rocm/fork-exec-gpu-to-non-gpu.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/fork-exec-gpu-to-non-gpu.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/fork-exec-non-gpu-to-gpu.exp ... -UNSUPPORTED: gdb.rocm/fork-exec-non-gpu-to-gpu.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/fork-exec-non-gpu-to-gpu.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp ... -UNSUPPORTED: gdb.rocm/multi-inferior-gpu.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/multi-inferior-gpu.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory-exec.exp ... -UNSUPPORTED: gdb.rocm/precise-memory-exec.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory-exec.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory-fork.exp ... -UNSUPPORTED: gdb.rocm/precise-memory-fork.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory-fork.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory-multi-inferiors.exp ... -UNSUPPORTED: gdb.rocm/precise-memory-multi-inferiors.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory-multi-inferiors.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory-warning-sigsegv.exp ... -UNSUPPORTED: gdb.rocm/precise-memory-warning-sigsegv.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory-warning-sigsegv.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/precise-memory.exp ... -UNSUPPORTED: gdb.rocm/precise-memory.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/precise-memory.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rocm/simple.exp ... -UNSUPPORTED: gdb.rocm/simple.exp: require failed: allow_hipcc_tests (target platform is not Linux) +UNSUPPORTED: gdb.rocm/simple.exp: require failed: allow_hipcc_tests (remote debugging) Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rust/completion.exp ... UNSUPPORTED: gdb.rust/completion.exp: require failed: can_compile rust Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.rust/dwindex.exp ... @@ -77482,7 +77479,6 @@ | pthread_atfork UNTESTED: gdb.threads/break-while-running.exp: failed to prepare Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/check-libthread-db.exp ... -UNSUPPORTED: gdb.threads/check-libthread-db.exp: require failed: istarget *-linux* Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/clone-attach-detach.exp ... Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/clone-new-thread-event.exp ... Running ..../binutils-build-riscv64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/clone-thread_db.exp ... @@ -78932,14 +78928,14 @@ === gdb Summary === -# of expected passes 71993 +# of expected passes 71998 # of unexpected failures 916 # of expected failures 41 # of unknown successes 4 # of known failures 66 # of unresolved testcases 257 -# of untested testcases 304 -# of unsupported tests 1226 +# of untested testcases 303 +# of unsupported tests 1225 # of paths in test names 4 # of duplicate test names 4 (END) Hmm, okay, it is better than now, but the test casese that are affected, would probably be broken by this change, if my target toolchain would either have the -linux in the name, or the newlib would have a sleep and/or support the #include . Thanks Bernd.