lkml.org 
[lkml]   [1999]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: year old problem
On Mon, Nov 15, 1999 at 11:36:31PM +0100, Eric Pouech wrote:
> well, it seems to me that the code in __switch_to (loaddebug macro) *restores*
> the DBi registers (from the tss in memory to the i386) while switching to 'next'
> process
>
> my issue is that the i386 value of DR6 (status => which debug registers
> which (may) have triggered a trap) are never (I should say no longer)
> stored in tss as they used to be (and therefore never accessible with ptrace)
>
> in 2.0.x series, they were stored in tss while entering the TRAP handler
> and it's no longer the case.

Point taken. It seems to be a bug.
For DR0-DR3/DR7 it doesn't make sense to save them all the time (because they
can be set by ptrace, even by the program), but DR4-6 should be saved.


-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.038 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site