From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15107 invoked by alias); 17 Sep 2014 09:02:58 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15083 invoked by uid 89); 17 Sep 2014 09:02:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Sep 2014 09:02:54 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XUB8V-0001XG-0i from Thomas_Schwinge@mentor.com ; Wed, 17 Sep 2014 02:02:51 -0700 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.181.6; Wed, 17 Sep 2014 10:02:48 +0100 From: Thomas Schwinge To: Samuel Thibault CC: , Subject: Re: [PATCHv3,Hurd] Add hardware watch support In-Reply-To: <20140916231706.GA2933@type.youpi.perso.aquilenet.fr> References: <20140910224919.GP3244@type.youpi.perso.aquilenet.fr> <874mwcpvsy.fsf@schwinge.name> <87lhpko7um.fsf@schwinge.name> <20140915230950.GB2942@type.youpi.perso.aquilenet.fr> <87iokondoc.fsf@schwinge.name> <20140916231706.GA2933@type.youpi.perso.aquilenet.fr> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Wed, 17 Sep 2014 09:02:00 -0000 Message-ID: <87a95yoc0f.fsf@schwinge.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2014-09/txt/msg00572.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 926 Hi Samuel! On Wed, 17 Sep 2014 01:17:06 +0200, Samuel Thibault wrote: > Thomas Schwinge, le Tue 16 Sep 2014 10:59:47 +0200, a =C3=A9crit : > > On Tue, 16 Sep 2014 01:09:50 +0200, Samuel Thibault wrote: > > > Thomas Schwinge, le Tue 16 Sep 2014 00:08:01 +0200, a =C3=A9crit : > > > > Do you agree that thread_get_state(i386_DEBUG_STATE) should be > > > > returning the actual DR6, > --- a/i386/i386/trap.c > +++ b/i386/i386/trap.c > @@ -395,6 +395,10 @@ printf("user trap %d error %d sub %08x\n", type, cod= e, subcode); > return 0; > } > #endif /* MACH_KDB */ > + /* Make the content of the debug status register (DR6) > + available to user space. */ > + thread->pcb->ims.ids.dr[6] =3D get_dr6() & 0x600F; > + set_dr6(0); > exc =3D EXC_BREAKPOINT; > code =3D EXC_I386_SGL; > break; >=20 > Does it fix GDB too? Yes. Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 472 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUGU4wAAoJENuKOtuXzphJCuMH/Rka+uLG9RDN1/fQKYjJx9uz a85Y981POzbaqZCGRdlyN2l3qgnYajzI61OI3a0Vb1uCJUV20OIlcWF32kUq2uNn 4NqxAiLo7XA90edN8cjkbE7vHudj96aVGJM5OhVUL89AiBTfyqq/bqOcSLdJpqRZ cun4MoIoYvucN9BsrBYjcS/BGc+FU6HFPFATNyeOMlTzYtKROeDOcVJ/n5RvPMjN 4e1t5oYMVeCPO0eb/E4qcu/Wb9xZaGcIiA2LN0QJjmSSGATD5qTgetLEm0JmrJtN 0ASRC0wObnrSOBt0ckSIYM9bU+CW0LAwOJAou642XOLoBCtHFbSCtkQUclFj+k8= =rSQG -----END PGP SIGNATURE----- --=-=-=--