[lkml]   [2005]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Setting kernel data breakpoints on x86
On Wed, 2 Nov 2005, Maneesh Soni wrote:

> On Tue, Nov 01, 2005 at 04:30:26PM -0500, Alan Stern wrote:
> > I'm trying to debug a rather difficult data-overwriting problem, and it
> > would be a big help to be able to use a data breakpoint.
> >
> > Is there any easy way of doing this? I'd prefer not to use a kernel
> > debugger, because the address of the breakpoint and the time when it's
> > needed are determined dynamically.
> >
> > Does anybody have a little lightweight procedure for setting one of the
> > x86's debug registers to point to a particular location in kernel memory
> > space? I don't care if the whole system crashes when the debug exception
> > occurs, just so long as I can get a stack trace and find out where the
> > overwrite comes from.
> >
> >
> Hi Alan
> Probably watchpoint probes could be useful for this..

Hi Maneesh:

That's exactly what I was looking for. Thanks!

Alan Stern

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-11-02 17:28    [W:0.033 / U:9.632 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site