Re: Accessing Debug Registers in Linux



WahJava <spamtrap@xxxxxxxxxx> wrote:
> But my problem, how it happens in Linux. In Linux, context
> structure, i.e. ucontext (or similar) is defined asm/ucontext.h
> header file, and it doesn't includes space for Debug Registers
> present in IA32(e) processors. So, how does GDB (GNU Debugger)
> provides hardware debugging support.

You might have noticed ucontext.h does provide space for
regular, FP or SSE registers either! See:

/usr/src/linux/include/asm-i386/debugreg.h

-- Robert

.