From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82252 invoked by alias); 4 Sep 2019 15:25:15 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 80649 invoked by uid 89); 4 Sep 2019 15:25:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: Yes, score=6.8 required=5.0 tests=BAYES_50,FOREIGN_BODY1,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=no version=3.3.1 spammy=adresse, controller, H*c:MHil, 8:it X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (85.215.255.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Sep 2019 15:24:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1567610697; s=strato-dkim-0002; d=Robitzki.de; h=To:Date:Message-Id:Subject:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=A4G4F4P8TYd8U18EvYNVfECJiDLH00mnIG+1gztuAEg=; b=TcCyE38Y3ulQuuxAVlG5gFL4CLq50+A18epxKqF6s+4lFzQI6aLBmb3JFqbuFSyBLv GLohLHZbL7/HhssZ8sOC6/A7FFDSBDkmNq1F0q2gmnxj2NVTVEc+AG2UsmrK5lATF3M+ kRR3JIXCZVO71iKumqXe9mOODPfyjP7J6mc2USjDc1nrqu7q8U54Zb649L81pi+5wgW9 iBE3d2c2YrqukHSCjRGXL+oOQWHNFbxgh/c6DSpIbYIAmV8SgtNX1m5MdU13hlNWWUjo NVjAtLaDGw0VZACzHo1u6L27vJICj4xJFWgA87Dx94afcdlfmr49TsRNmSF5eR0DVHCr 1t+A== Received: from [IPv6:2003:e7:a3ef:bc00:d5f1:16e2:d063:fc77] by smtp.strato.de (RZmta 44.27.0 AUTH) with ESMTPSA id c0094bv84FOvhLF (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Wed, 4 Sep 2019 17:24:57 +0200 (CEST) From: Torsten Robitzki Content-Type: multipart/signed; boundary="Apple-Mail=_04C76FA5-2CAA-4770-AAE3-004B836CEE1E"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: How to support interrupting a single step Message-Id: <0F5C3BB8-0274-4BAD-B92B-E0BB00217F55@Robitzki.de> Date: Wed, 04 Sep 2019 15:25:00 -0000 To: gdb@sourceware.org X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00006.txt.bz2 --Apple-Mail=_04C76FA5-2CAA-4770-AAE3-004B836CEE1E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Content-length: 1585 Hi, I=E2=80=99m writing a debug server to support the debugging of an ARM Corte= x M4 (nRF52) controller via SWD (Bluetooth LE debugger). I have a test prog= ram that contains an endless loop (loops over a systick counter with masked= PendSV, SysTick interrupts [C_MASKINTS]). If I run that program (=E2=80=9A= c=E2=80=98 package) and interrupt the execution by ctrl-C (0x03) and try to= single step through the program, I can=E2=80=99t get back onto the GDB pro= mpt by cntr-C as I would expect. I can see that GDB is sending sequences of =E2=80=99s=E2=80=99 and =E2=80= =9Ag=E2=80=98 packages and from the content of the =E2=80=9Ag=E2=80=98 I ca= n see, that the $PC is moving. When I press ctrl-C, I can see that GDB is s= ending interrupts (0x03) to my debug stub, but as both, =E2=80=99s=E2=80=99= and =E2=80=9Ag=E2=80=98 are short running commands, there is no point in m= aking them aware of an interrupt. Even if I would, I could tell, what the c= orrect return values would be to make GDB stop sending `s` and `g` packages. Any idea, on how to make =E2=80=9Estep=E2=80=9C in this scenario interrupta= ble? best regards, Torsten -- Torrox GmbH & Co. KG pers=C3=B6nlich haftender Gesellschafter: Torrox Verwaltungs GmbH, Rehau (A= mtsgericht Hof, HRB 5927) Gesch=C3=A4ftsleitung: Dipl.-Ing. Torsten Robitzki Umsatzsteuer-Identifikationsnr.: DE253527398 Adresse: Fabrikstra=C3=9Fe. 22; 95111 Rehau Handelsregistereintrag: Amtsgericht Hof, HRA 4650 Telefon: +49 9283 8999666 --Apple-Mail=_04C76FA5-2CAA-4770-AAE3-004B836CEE1E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEBlD/pUKd/TvZxxklxPKNInpbSZkFAl1v10gACgkQxPKNInpb SZnO1xAAirqAXBrr3TfDWi03MhP1ybt10oz34jlxYQIdmGpPjrkCu93Xz2rfINyX MhI7ZS1ALWhBkEbc7I+7kvH9Bah/+6zOX/eRRUkBPoc5+cmwrKtouXvyN0n2NBWF 1U1FbeWojwk7H8aCbIUSV7Js3lDv9cbUKv31ZsEJmkNCdt+0vqXCMffGa6rMnrxm 8fnpUVXBJOOuFlD4NDwjdKF2CTlBKKXvVwywewyoB/KWvuxiR+1+/X40LqEeX0+i VGbrCKto4j0XKbHXP9QK12fY/Hq11oxAM5iMGXcmVCDZxJmugDx2C5dLKCwjl6Le Ghg0ctTEZOZv6CT3X3JrtPGedVHemZO2JOtD/oj/mLzx6MfKT0rmYLLgHbHtu/8M j+wHfejJLKet0tYjnNT2gxPolX5yM1MGi+bjeTY+UDgYnn1sFXX0A3/U4Mtyy+dE y81ovWD9QShhSNP7CW9mYoUVsu7SDJ+skDN7nT/Psm6afdee763bErwAFO3Gwhf7 zmDGC+RQZbMCyj4BGx8sbse+skxEUm89YRCG7t0PaC9qCYUNTzTwxYPEfPm36IiF LVaiSdiUr+s74pvv0t5TvNEAU262/AQ5B1wk9EQAn3po3uvWfCRlb1aJDa35MHBa w4Fl16s+iV/9Hkf4n6YfHz/4voeVfnjQZwl/dUMG1j3gT/YMBK8= =swL5 -----END PGP SIGNATURE----- --Apple-Mail=_04C76FA5-2CAA-4770-AAE3-004B836CEE1E--