From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 56A403858D33 for ; Wed, 13 Jan 2021 05:46:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 56A403858D33 Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 475DA33C6B6; Wed, 13 Jan 2021 05:46:50 +0000 (UTC) Date: Wed, 13 Jan 2021 00:46:49 -0500 From: Mike Frysinger To: Andrew Burgess Cc: William Tambe , gdb@sourceware.org Subject: Re: Is it possible to support gdb command hbreak with target sim ? Message-ID: <20210113054649.GC6938@vapier> Mail-Followup-To: Andrew Burgess , William Tambe , gdb@sourceware.org References: <20200929084653.GB1540867@embecosm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5G06lTa6Jq83wMTw" Content-Disposition: inline In-Reply-To: <20200929084653.GB1540867@embecosm.com> X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2021 05:46:52 -0000 --5G06lTa6Jq83wMTw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 29 Sep 2020 09:46, Andrew Burgess wrote: > * William Tambe via Gdb [2020-09-28 21:29:26 -0500]: > > Is it possible to support gdb command hbreak with target sim ? >=20 > There's currently no support for hardware breakpoints in the simulator > target, instead only software breakpoints are supported where GDB > takes responsibility for reading and backing up the old memory > contents before writing in a software breakpoint instruction. >=20 > This doesn't mean that hardware breakpoint support couldn't be added. this is a bit inaccurate. i guess "hardware breakpoints" are a bit confusing when talking about simulators. and depending on who you talk to, they might call them "watchpoints" rather than "breakpoints". there is a sim-watch module that some sim's support. looks like: avr bfin frv iq2000 m32r mips mn10300 moxie v850 so if you're using one of those, it'd be something like: $ gdb (gdb) target sim --watch-pc-int 0x1234 (gdb) load (gdb) run that said, it appears to have a few bugs. i'm not sure how well it's tested :). g'luck! -mike --5G06lTa6Jq83wMTw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAl/+iUkACgkQQWM7n+g3 9YEqUBAAqLOoSOep+z1acMeEfEgCNlgURNCoA5p1wjqwJOJCgOmN5YScu073kdNp 6rDPdfjv3ciDqLzoM847QFqlWtYYByqpKMV9oocYCua3Awgkj2hKnPPdwZLiF50w WWeT5mji1nA/EpO0w9iVe5btKF/zy1ttb9fKvPq+Ru7wpBoSeTfXAWW2lijLDmlh UIa3a1La3pdeQnivCgnYL8MuW4FgeiSs31tDnnG/Og7IdUCi0RvN/0um40tVZKk3 JQF6fhe8Nft0ph66r9ZLOp74rL4UeyqYxJ/hDg4CZeEjgKiB1ofI84GaIJJxYuN8 Cpg+yg60rHM5xP7tW3O8h9OtuBzxEZ+b7tOQYtJDsfdoNcQ2aFS8pMkMnKQhjMXT bQqZz96ijZbE+WcF+oOui0LtTs+jXxgFMlI6XPoyrRc7PfInWbge5Ncoa2++UqWA FBMPa86aF7zCwknybegEFSc1xT3DosZ3bR2B5GCzQKqGVJi2dmq+ELUB/eYFc/ig MAJPoXVbXusXlGS3NW5Y2dXTSNlgQAEJsMEVvJhoCaEwWsowODns5l7x3u4OZ7Pu eVH4JxHuwZuZ7iti0V7Z0rSzCZEBzUA8MB7crWOuNHJx5TXJk1RQpB6xEz4JGWdK cPw/qfX4ibZ7TOzM5J1KquzAMeWP2O2bHXZmHtuMPc8Bl5ImD/c= =V+Xb -----END PGP SIGNATURE----- --5G06lTa6Jq83wMTw--