bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCHv3,Hurd] Add hardware watch support


From: Thomas Schwinge
Subject: Re: [PATCHv3,Hurd] Add hardware watch support
Date: Wed, 17 Sep 2014 11:02:40 +0200
User-agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu)

Hi Samuel!

On Wed, 17 Sep 2014 01:17:06 +0200, Samuel Thibault <samuel.thibault@gnu.org> 
wrote:
> Thomas Schwinge, le Tue 16 Sep 2014 10:59:47 +0200, a écrit :
> > On Tue, 16 Sep 2014 01:09:50 +0200, Samuel Thibault 
> > <samuel.thibault@gnu.org> wrote:
> > > Thomas Schwinge, le Tue 16 Sep 2014 00:08:01 +0200, a écrit :
> > > > 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, code, 
> 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] = get_dr6() & 0x600F;
> +             set_dr6(0);
>               exc = EXC_BREAKPOINT;
>               code = EXC_I386_SGL;
>               break;
> 
> Does it fix GDB too?

Yes.


Grüße,
 Thomas

Attachment: pgpf7O6WNKYdy.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]