From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8T8pDU+J/l92ZgAAWB0awg (envelope-from ) for ; Wed, 13 Jan 2021 00:46:55 -0500 Received: by simark.ca (Postfix, from userid 112) id 1583D1EF80; Wed, 13 Jan 2021 00:46:55 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A008B1EF78 for ; Wed, 13 Jan 2021 00:46:54 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B60A03858D33; Wed, 13 Jan 2021 05:46:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B60A03858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1610516813; bh=F28AzrLfLQvmiEMYswmrfMH+Ih80eGzIJYK5AKh1uKY=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=sTZ9zcjJUPHdb0W/RUeIEPJdjmSRZW74scfxvZWmpxUHms7dkPPbH0aCgA0oHb/4l +tcKUnHaQ9giL+5MX66ERSCs/RTTUeZgdDqN4LxPJLN8g351QT1L3NAQHuVVF5xsFK 3dEKhG1Ah949v1YFZZyjwlzfKZF2LnMWKCR6kTl0= 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 To: Andrew Burgess 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-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: , From: Mike Frysinger via Gdb Reply-To: Mike Frysinger Cc: gdb@sourceware.org, William Tambe Errors-To: gdb-bounces@sourceware.org Sender: "Gdb" --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--