From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by sourceware.org (Postfix) with ESMTPS id 7129A3857434 for ; Mon, 29 Aug 2022 19:22:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7129A3857434 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=st.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=st.com Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27THgRaO024363 for ; Mon, 29 Aug 2022 21:22:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=zCcxlTfdj03mC0s/i/ijpX1H71jih2gGEK1TsOsU/nA=; b=gvgRgMi6FUMBmgkuqRUQWLN6w/foYWIuuu+IJOl4BnAbGuXxPrp5BrQp7fEeMqJkUqTJ W8foMNdudPMr2kjXfUQItxlyIknrGqweZJmnVbrgAPOazJAkelKhm0xVS9bwVES6Kkut mDjMMx0893VRyx1wJJiOrFLcwng/4YcISEyekYYw0bqRhpIUpx4y0OVPk6DD4GOBRvm+ hsx7tzX1BYwKFmz0hT50Fb/wtU+FvhCx6OBPMM3iapLi+GzXXqP8BHLzB/Ks25Ysvyn8 HkixJFUrNCEnCPN8qBCmegxGB3+seE9YeIuaosoUMD6C+ESMtK+tk30tmxFhY3LwsVew yA== Received: from eur03-am7-obe.outbound.protection.outlook.com (mail-am7eur03lp2233.outbound.protection.outlook.com [104.47.51.233]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3j78d9bq0n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 29 Aug 2022 21:22:02 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AUhTHa7wTVHNSt3OYuC3rZpcAPIkkc85KaTWTVHNFkLw+WG6XVlQpxJhZ2y1n9PsGuaWZN2kmo1K6KA9RqZYGl6xclD2vL/v8yAuRm6LHllWgkrtvmXOgxBvJnTOI2YuTgXIbUFNMX5Kp3LTMElkKWTtJRbsi6kSShYMWKpvXZwPb56q8wkWnnQxDeb0CB+vVSSxzinoksfImpL0CT9gi0z6B3O8pN5WTzHFVvGbBSskbo2ctNSWGEiqYU+0YdK0PZr0RXJVdlLj8z1kz/SvuFxc75NmocLJgWTvULur3k1E5qbIqmbL+6AVSW2BMQrNiwR9mOJ+UR9RZlrEhD6N5g== 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=zCcxlTfdj03mC0s/i/ijpX1H71jih2gGEK1TsOsU/nA=; b=S/rEMLYmKwah8/aq+kEg6No/ruknhv32I5v2OtYSVpImw/pOuAKPg8/HdMkRs+mTvm6pWDwx6A65S4mljU4zQpz2r05OwXvMZEp6D3X3XdIV0zBhztmvWhcAaVJ9aRxaSmhcvYdQb1XG8O8KjDA8jTZvC+MVYLD+Og+v0iwDRaahpIPSge1cu9yhgZWOp1e4HuVKzRUkJXof9kuCAxlCII6hz/xhkoYxhoLBn7gAXeyrd81R6zKgmozk9+D7OCcbkNm5k2zo8EFwWumK5YqGCw26Sn8AmJ3WMh5bqiGqot+hLhBS1QTCNmdZjIyrgJrnxaOgfxTnqdjSdu+XYyDfZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=st.com; dmarc=pass action=none header.from=st.com; dkim=pass header.d=st.com; arc=none Received: from AM6PR10MB2197.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:41::30) by VI1PR10MB2735.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:e9::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Mon, 29 Aug 2022 19:21:59 +0000 Received: from AM6PR10MB2197.EURPRD10.PROD.OUTLOOK.COM ([fe80::8c1a:579:dc50:7cd7]) by AM6PR10MB2197.EURPRD10.PROD.OUTLOOK.COM ([fe80::8c1a:579:dc50:7cd7%3]) with mapi id 15.20.5566.021; Mon, 29 Aug 2022 19:21:59 +0000 From: Torbjorn SVENSSON To: "overseers@sourceware.org" Subject: Problem reporting error on bugzilla and account blocked Thread-Topic: Problem reporting error on bugzilla and account blocked Thread-Index: Adi73JY9xGxpnezoRi6MHlPhzpuHTg== Date: Mon, 29 Aug 2022 19:21:59 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_Enabled=true; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_SetDate=2022-08-29T19:16:10Z; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_Method=Privileged; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_Name=cf8c7287-838c-46dd-b281-b1140229e67a; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_SiteId=75e027c9-20d5-47d5-b82f-77d7cd041e8f; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_ActionId=35799dff-ad37-492d-a85e-685ef3530888; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_ContentBits=0 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 25942a9b-93f8-40f0-bd13-08da89f3beba x-ms-traffictypediagnostic: VI1PR10MB2735:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UIt65qmiCN+rjBKc2z55HkyMRMaX5yd/qtZfTzrIbKLFlZ8+EOdQG2gOGLlttIS9xT+dvzrJ5hQm7q535T3pDy3QVmupRr3vrk9IeXcSsusLJ2YVlhLrgYSJVpsLA6XwZj2FXc/ziZKU45Te16/WFYpuNXZcX3Al06TWUsDOaptEC0g6rbiqm0BJ/r+iKHiOB4yt1Op8DW3BmafKl4k5rc27LwlH5VNvv35Q7r28lRCAqclmD/6zQOti6Fq1erK/CgQEZ0IEerpMy9OsVpFL8BqLSmtxtZZAHmIucvfNPmsdHLpoqGISpgxINhbndVZBqMjCMF47dlipmYYtWL+h5GtlQ3hGhRm1bZIoe1mwEE8LwiVuxPp6bkdD8JfyCFGqO5JUEtHt8dOHJ1H2Ik5FQ4jIQ9RipUB2Fo3+Q7F8wdmAUmyFsLDb2XvfAKk92Hc+nlmtF+8NURiQF2T0yIS57Ny4DfmY89d2BE8AbvwsEMRnlibQLUaKu/7VhQLuXLcT5pADeOzZgbjDFk6E8xjYtHUnK2um3WRxwYx2NMKSUVUJlWB661btEntQX6B4qLYxzW7cCXwC9DEgFAk71ocZ3/WBlKMvDXwC+oKNxupON5pM/mhuLpXfGeHF7f82CL52LgGkuuXwO8k0ygBdFhNGdW4eaEpI28EzCN1VsxtsUu+FKqIOZZJnjHYjqRhPmpxlQjqMcD04WB0vtqYwoQnJ1FZX55eqTiq9axWe3TI7Z0DJp/vlO8dMaTRkdFSIMEzl32FPVSqQ9GeJQcK801lSD/Bmct/lPOMqZgo0nfTx64Cs5w3btVUZaE8t6QnhR02ZrFRtUpfyb1nDHytHRZ52vpWlOOcEdigk/I/MA7eN88o= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR10MB2197.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(376002)(396003)(136003)(366004)(39860400002)(66574015)(33656002)(6916009)(316002)(71200400001)(186003)(6506007)(7696005)(2906002)(83380400001)(26005)(9686003)(15650500001)(30864003)(86362001)(38070700005)(55016003)(5660300002)(8936002)(41300700001)(966005)(478600001)(122000001)(52536014)(38100700002)(66946007)(66556008)(66476007)(66446008)(64756008)(76116006)(8676002)(146963004)(167373002)(2004002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?p8JkZD+OrWFY7K4VPgZR9Th4ukiJABo+RcpMkgDIv/6QL2jkP1/SFfCg/R?= =?iso-8859-1?Q?Nx5LH6/54JSZwMogcuHCFNKjFAPSdcYJbQCK/4lzz6vai6REL/OGUSnqpM?= =?iso-8859-1?Q?hRsbrmK6Mv1FFiSAq4sa8y+23sMeQUq/6leB3wTRwFOlX9+35Qav5SYioA?= =?iso-8859-1?Q?Lt2/6yJjCkqt1tv9Y4Moe/kNB9YXtDsL3dvsQV+2lrGZ8ZN0I+peEKubHj?= =?iso-8859-1?Q?rA8PuW570wLMyL1d5GEojpGqvkSstuOy/13Dn7rCmLo8ijmUhv/Z4RqR5C?= =?iso-8859-1?Q?O7veg1Tf2fQdqRS5c1L0uVrEuWU+KE61vGajqXNB/ns03iblHO6xrFuz1b?= =?iso-8859-1?Q?2Wq4fqE2cc7XMQcNx3MJ5kuzraR7EuHcKjhxvoIyFjBAY66piMeuPkXj4b?= =?iso-8859-1?Q?98pAf1wrXupqxraUQh/WkJ4WFKPWddc7ufzvInJlS6atJ2rrNBDP8V63WU?= =?iso-8859-1?Q?9cE0JOyjxo5OzRIf9FcWcfYOIFsSRbhxmsIlzqHoZg1KApp266QM7NoXtO?= =?iso-8859-1?Q?xMnyZlYFrNw4gx5zE8O0f3+UnPXH2Xd66IMxnCPLKpzh6mCcuamUj+XWJv?= =?iso-8859-1?Q?XIN0eKTOioZE2TmahhlRZcIA0UEcykTVr8sFcppuSCs2Hpq2gTBL2xziqH?= =?iso-8859-1?Q?oWq3yTuvERyEzzV3xSY0/Q4LDrkJ8z40F1FJfCYpXeZ6gAavyUiHJpuzdM?= =?iso-8859-1?Q?Go2vrrodmFCWDbvZmQsxUBXRKKG5/pnUrXA0mscqFrkRI1yTioVpA6hJfW?= =?iso-8859-1?Q?HEP4GjX1CWYgRuniBl49TAKkh5N7UeUPcB04laLxpb6gimBKY+9GYrPGER?= =?iso-8859-1?Q?3sCbM8ME2lprICkOmRe0I1kYP/DfU5zClbqF8J5mkEgVhrZKVBF+yjHwaT?= =?iso-8859-1?Q?T+7YRXSbB78vYgdBz346Ewzo7MkZJiW1A/eobrR2bJC5EoznaHNLL4iBdh?= =?iso-8859-1?Q?QPX3rlbDRLIi6k3nvdjECJdKEzDV8UUcRr2clmEsN9548eV5AdLZ6/YDzo?= =?iso-8859-1?Q?9LUn02T6cgPslOGtz3O0a6nxkfSBJrRpfClflPo1dft/xdFH0U/yzJUWwE?= =?iso-8859-1?Q?xOe2LPuS4/CRMD7mq27sWcsKvymiuVfcHOBLmzRDpTNG43H7eW6uo7Rb3U?= =?iso-8859-1?Q?6SkP3dOMZ460o+dIuj3uUXUfX9rG5MBaerbtUWMNHegOujkaELb/9zIHo5?= =?iso-8859-1?Q?YLkB2wkFxB33n41yxwB/H+BqVJfUAFiPXWl1Gn4cuNCOOLeJGdKG0VEik8?= =?iso-8859-1?Q?qyyq1Q565AV8Wqce/r6zz/wBJU9+rLHUT9glFlBX1gjZWvN0lO0oK8Ps1F?= =?iso-8859-1?Q?2UVVV0bPgtuDYJ8JvdETIeCSXl5ARt+/O1tCERmJLAczfW9xPMjqqRMkkp?= =?iso-8859-1?Q?Tw4qNULmr0p8fEiod1LWvkQ8Q+6sY7oqp3SmCoEnoZFhs3Ea542R1kbKma?= =?iso-8859-1?Q?ftd/JyXSNlF2mvOmNI3oQyFYu/dJ/a3islAiw3CdUcONmkgBUazMi7FMY+?= =?iso-8859-1?Q?LmFnw8E/NobvNqyN49E++KPO8po+PiuOC7Ocsxm4Qw4+nxMG0H5BAs4JZy?= =?iso-8859-1?Q?IaQ/Ol/dJ8gMbrDUK6vxJu6rl2sZKIhLICr/86uHXJ4z9ukkw3FHPCUWXQ?= =?iso-8859-1?Q?DezkqYAW6WH/pqC6JOEJmCevG7nTeRduhAQzEF2W6uqJRjGWU806YZpw?= =?iso-8859-1?Q?=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ST.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR10MB2197.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 25942a9b-93f8-40f0-bd13-08da89f3beba X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Aug 2022 19:21:59.6001 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 75e027c9-20d5-47d5-b82f-77d7cd041e8f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3Fa2+OO8Lkjpu1AiaJpsBBKk/oUTH4md4imHwwFKVKiBkKD4yBmGmGI/+SuQ3NXTGF/NdINlWpqbGp8BRHITHBV3hsEAL1cxkN5N802V9LY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB2735 X-Proofpoint-GUID: nUZmwwUeHq7iYRT172tHKyx5vKaYXuOl X-Proofpoint-ORIG-GUID: nUZmwwUeHq7iYRT172tHKyx5vKaYXuOl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-29_09,2022-08-25_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 clxscore=1011 suspectscore=0 spamscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208290090 X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_LOTSOFHASH,KAM_SHORT,KAM_STOCKGEN,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, I was on IRC chatting with "simark" about and issue with remote debugging a= nd how the "target remote"-sequence was handled in GDB. To investigate the issue further, simark asked me to create a Bugzilla, but= Bugzilla reported that my report had "inappropriate content". I have no id= ea what the inappropriate content is, but I've included it in the mail belo= w. Please let me know what I should change in order for the bug report to be a= ccepted. If you are unsure, yes, I am a human and have contributed to GDB in the pas= t. Please also restore my account. Kind regards, Torbj=F6rn Svensson The Bugzilla content that was flagged: Product: gdb Component: remote Version: HEAD Summary: Running "info threads" multiple times produce different output whe= n target has been halted the entire time Description: When using 27d582267a1d06e94661979f8893799ac235a768 (master as of this writ= ing) with SEGGER J-Link GDB server (with FreeRTOS support enabled) causes G= DB to believe that there are 2 threads when there in fact is only one, but = the thread changed id. The board used is a STM3240G-EVAL board, but I'm sure the same thing can be= reproduced on a native GDB server with some tweaking of the RSP replies. The SEGGER J-Link GDB server is launched using this command: ./JLinkGDBServerCLExe -port 2331 -s -device STM32F407IG -endian little -spe= ed 4000 -if swd -vd -rtos GDBServer/RTOSPlugin_FreeRTOS.so The GDB client is launched using this command: arm-none-eabi-gdb -x /tmp/segger/commands The content of /tmp/segger/commands is: set debug remote 1 set debug threads 1 set target-async on file /tmp/segger/40g-eval.elf target remote :2331 p "info1" info threads p "thread1" thread p "info2" info threads p "thread2" thread monitor reset break main continue quit The output from GDB is: GNU gdb (GDB) 13.0.50.20220829-git Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=3Dx86_64-linux-gnu --target=3Darm-none-e= abi". Type "show configuration" for configuration details. For bug reporting instructions, please see: https://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word". Warning: 'set target-async', an alias for the command 'set mi-async', is de= precated. Use 'set mi-async'. [remote] start_remote_1: enter [remote] Sending packet: $qSupported:multiprocess+;swbreak+;hwbreak+;qRel= ocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEven= ts+;no-resumed+;memory-tagging+#ec [remote] Received Ack [remote] Packet received: PacketSize=3D4000;qXfer:memory-map:read-;QStart= NoAckMode+;hwbreak+;qXfer:features:read+ [remote] packet_ok: Packet qSupported (supported-packets) is supported [remote] Sending packet: $vMustReplyEmpty#3a [remote] Received Ack [remote] Packet received: [remote] Sending packet: $QStartNoAckMode#b0 [remote] Received Ack [remote] Packet received: OK [remote] Sending packet: $Hg0#df [remote] Packet received: OK [remote] Sending packet: $qXfer:features:read:target.xml:0,1000#0c [remote] Packet received: m\n\n\n\n\n arm\n \n \n \n \n \n \n \n = \n \n [1442 bytes omitted] [remote] Sending packet: $qTStatus#49 [remote] Packet received: [remote] packet_ok: Packet qTStatus (trace-status) is NOT supported [remote] Sending packet: $?#3f [remote] Packet received: S05 [remote] Sending packet: $qfThreadInfo#bb [remote] Packet received: m0000dead [remote] Sending packet: $qsThreadInfo#c8 [remote] Packet received: l [remote] Sending packet: $qAttached#8f [remote] Packet received: [remote] packet_ok: Packet qAttached (query-attached) is NOT supported [threads] add_thread_silent: add thread to inferior 1, ptid 42000.57005.0= , target remote [threads] new_thread: creating a new thread object, inferior 1, ptid 4200= 0.57005.0 [remote] Sending packet: $Hc-1#09 [remote] Packet received: OK [remote] Sending packet: $qC#b4 [remote] Packet received: [remote] start_remote_1: warning: couldn't determine remote current threa= d; picking first in list. [remote] Sending packet: $qOffsets#4b [remote] Packet received: [remote] wait: enter [remote] select_thread_for_ambiguous_stop_reply: enter [remote] select_thread_for_ambiguous_stop_reply: process_wide_stop = =3D 0 [remote] select_thread_for_ambiguous_stop_reply: first resumed thread= is Thread 57005 [remote] select_thread_for_ambiguous_stop_reply: is this guess ambigu= ous? =3D 0 [remote] select_thread_for_ambiguous_stop_reply: exit [remote] wait: exit [remote] Sending packet: $g#67 [remote] Packet received: 00000000000000000000000000000000000000000000000= 00000000000000000000000000000000000000000000000000000000000000220ffffffff28= 17000800000001 [remote] Sending packet: $qfThreadInfo#bb [remote] Packet received: m0000dead [remote] Sending packet: $qsThreadInfo#c8 [remote] Packet received: l [remote] Sending packet: $m8001728,4#37 [remote] Packet received: fff7fcbf [remote] Sending packet: $m8001728,2#35 [remote] Packet received: fff7 [remote] Sending packet: $m800172a,2#5e [remote] Packet received: fcbf Reset_Handler () at ../Core/Startup/startup_stm32f407ighx.s:63 63 ../Core/Startup/startup_stm32f407ighx.s: No such file or directory. [remote] Sending packet: $qSymbol::#5b [remote] Packet received: qSymbol:707843757272656e74544342 [remote] packet_ok: Packet qSymbol (symbol-lookup) is supported [remote] Sending packet: $qSymbol:20000fd8:707843757272656e74544342#71 [remote] Packet received: qSymbol:707852656164795461736b734c69737473 [remote] Sending packet: $qSymbol:20000fdc:707852656164795461736b734c6973= 7473#e4 [remote] Packet received: qSymbol:7844656c617965645461736b4c69737431 [remote] Sending packet: $qSymbol:2000143c:7844656c617965645461736b4c6973= 7431#b0 [remote] Packet received: qSymbol:7844656c617965645461736b4c69737432 [remote] Sending packet: $qSymbol:20001450:7844656c617965645461736b4c6973= 7432#80 [remote] Packet received: qSymbol:707844656c617965645461736b4c697374 [remote] Sending packet: $qSymbol:20001464:707844656c617965645461736b4c69= 7374#87 [remote] Packet received: qSymbol:70784f766572666c6f7744656c6179656454617= 36b4c697374 [remote] Sending packet: $qSymbol:20001468:70784f766572666c6f7744656c6179= 65645461736b4c697374#75 [remote] Packet received: qSymbol:7850656e64696e6752656164794c697374 [remote] Sending packet: $qSymbol:2000146c:7850656e64696e6752656164794c69= 7374#c4 [remote] Packet received: qSymbol:785461736b7357616974696e675465726d696e6= 174696f6e [remote] Sending packet: $qSymbol:20001480:785461736b7357616974696e675465= 726d696e6174696f6e#12 [remote] Packet received: qSymbol:7853757370656e6465645461736b4c697374 [remote] Sending packet: $qSymbol:20001498:7853757370656e6465645461736b4c= 697374#f9 [remote] Packet received: qSymbol:757843757272656e744e756d6265724f6654617= 36b73 [remote] Sending packet: $qSymbol:200014ac:757843757272656e744e756d626572= 4f665461736b73#54 [remote] Packet received: qSymbol:7578546f70557365645072696f72697479 [remote] Sending packet: $qSymbol::7578546f70557365645072696f72697479#d7 [remote] Packet received: qSymbol:7578546f7052656164795072696f72697479 [remote] Sending packet: $qSymbol:200014b4:7578546f7052656164795072696f72= 697479#fe [remote] Packet received: qSymbol:76506f7274456e61626c65564650 [remote] Sending packet: $qSymbol:800d814:76506f7274456e61626c65564650#47 [remote] Packet received: qSymbol:4672656552544f534465627567436f6e666967 [remote] Sending packet: $qSymbol::4672656552544f534465627567436f6e666967= #d0 [remote] Packet received: qSymbol:785363686564756c657252756e6e696e67 [remote] Sending packet: $qSymbol:200014b8:785363686564756c657252756e6e69= 6e67#f8 [remote] Packet received: OK [remote] start_remote_1: exit $1 =3D "info1" [remote] Sending packet: $qfThreadInfo#bb [remote] Packet received: m00000000 [remote] Sending packet: $qsThreadInfo#c8 [remote] Packet received: l [threads] add_thread_silent: add thread to inferior 1, ptid 42000.0.0, targ= et remote [threads] new_thread: creating a new thread object, inferior 1, ptid 42000.= 0.0 [New Remote target] [remote] Sending packet: $qThreadExtraInfo,dead#13 [remote] Packet received: [remote] Sending packet: $qP0000001f000000000000dead#46 [remote] Packet received: Id Target Id Frame * 1 [remote] Sending packet: $qP0000001f000000000000dead#46 [remote] Packet received: Thread 57005 [remote] Sending packet: $m8001728,4#37 [remote] Packet received: fff7fcbf [remote] Sending packet: $m8001728,2#35 [remote] Packet received: fff7 [remote] Sending packet: $m800172a,2#5e [remote] Packet received: fcbf Reset_Handler () at ../Core/Startup/startup_stm32f407ighx.s:63 2 Remote target [remote] Sending packet: $Hg0#df [remote] Packet received: OK [remote] Sending packet: $g#67 [remote] Packet received: 0000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000220ffffffff2817= 000800000001 [remote] Sending packet: $m8001728,4#37 [remote] Packet received: fff7fcbf [remote] Sending packet: $m8001728,2#35 [remote] Packet received: fff7 [remote] Sending packet: $m800172a,2#5e [remote] Packet received: fcbf Reset_Handler () at ../Core/Startup/startup_stm32f407ighx.s:63 $2 =3D "thread1" [Current thread is 1 (Thread 57005)] $3 =3D "info2" [remote] Sending packet: $qfThreadInfo#bb [remote] Packet received: m00000000 [remote] Sending packet: $qsThreadInfo#c8 [remote] Packet received: l [threads] delete_thread_1: deleting thread 42000.57005.0, silent =3D 0 Id Target Id Frame 2 Remote target [remote] Sending packet: $m8001728,4#37 [remote] Packet received: fff7fcbf [remote] Sending packet: $m8001728,2#35 [remote] Packet received: fff7 [remote] Sending packet: $m800172a,2#5e [remote] Packet received: fcbf Reset_Handler () at ../Core/Startup/startup_stm32f407ighx.s:63 The current thread has terminated. See `help thread'. $4 =3D "thread2" [Current thread is 1 (Thread 57005) (exited)] [remote] Sending packet: $qRcmd,7265736574#37 [remote] Packet received: 526573657474696e67207461726765740D0A Resetting target [remote] Sending packet: $m80004c0,40#8c [remote] Packet received: 023b614432e7304609e76444023842e7704700bf80b500af0= 1f050f900f02af800f02cfa00f096f800f0e6f800f00ef900f034f900f0b6fb00f07cf900f0= a8f9 [remote] Sending packet: $m80004d8,2#63 [remote] Packet received: 01f0 Breakpoint 1 at 0x80004d8: file ../Core/Src/main.c, line 118. /tmp/segger/commands:22: Error in sourced command file: Cannot execute this command without a live selected thread. (gdb) As can be seen in the RSP, the thread is first named "0000dead" and later r= enamed to "00000000". While "00000000" might not be a good id, the problem = is still present even if the id is overridden to something else, like "42". The same sequence, but without "set debug remote 1"-line: GNU gdb (GDB) 13.0.50.20220829-git Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=3Dx86_64-linux-gnu --target=3Darm-none-e= abi". Type "show configuration" for configuration details. For bug reporting instructions, please see: https://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word". Warning: 'set target-async', an alias for the command 'set mi-async', is de= precated. Use 'set mi-async'. [threads] add_thread_silent: add thread to inferior 1, ptid 42000.57005.0, = target remote [threads] new_thread: creating a new thread object, inferior 1, ptid 42000.= 57005.0 Reset_Handler () at ../Core/Startup/startup_stm32f407ighx.s:63 63 ../Core/Startup/startup_stm32f407ighx.s: No such file or directory. $1 =3D "info1" [threads] add_thread_silent: add thread to inferior 1, ptid 42000.0.0, targ= et remote [threads] new_thread: creating a new thread object, inferior 1, ptid 42000.= 0.0 [New Remote target] Id Target Id Frame * 1 Thread 57005 Reset_Handler () at ../Core/Startup/startup_stm32f= 407ighx.s:63 2 Remote target Reset_Handler () at ../Core/Startup/startup_stm32f= 407ighx.s:63 $2 =3D "thread1" [Current thread is 1 (Thread 57005)] $3 =3D "info2" [threads] delete_thread_1: deleting thread 42000.57005.0, silent =3D 0 Id Target Id Frame 2 Remote target Reset_Handler () at ../Core/Startup/startup_stm32f= 407ighx.s:63 The current thread has terminated. See `help thread'. $4 =3D "thread2" [Current thread is 1 (Thread 57005) (exited)] Resetting target Breakpoint 1 at 0x80004d8: file ../Core/Src/main.c, line 118. /tmp/segger/commands:22: Error in sourced command file: Cannot execute this command without a live selected thread. On line 22 in /tmp/segger/commands, the command is "continue". As can be seen, the "continue" command fails due to that GDB gets confused = by the thread ids. Looking at the RSP, I can see a few things that might be the root cause of = the problem. 1. Why is the thread list requested prior to running the qSymbols dance? If= it's delayed until after the qSymbols, then the "0000dead" would never be = received by the GDB client. 2. It looks like a new thread is detected on the 1st "info threads", but th= e old thread is removed on the 2nd "info threads". I suppose both the remov= al and the creation should be done in the 1st "info threads", or even bette= r, just update the id of the remote thread. Is there any reason to remove thread 1 and create thread 2 when GDB thought= there was one thread and after the qfThreadInfo RSP-command, there is stil= l only one thread, but with different id? The problems above has been seen with various released versions of GDB too,= so it's not a regression. It's also present in all-stop mode. I've not che= cked if the same problem is visible in non-stop mode and SEGGER J-Link GDB = server does not support non-stop mode.