kdb
[Top] [All Lists]

Re: bph / bpha not working.

To: "Avi Nehori" <anehori@xxxxxxxxxxxxxx>
Subject: Re: bph / bpha not working.
From: "jidong xiao" <jidong.xiao@xxxxxxxxx>
Date: Wed, 7 May 2008 15:00:56 +0800
Cc: "Jay Lan" <jlan@xxxxxxx>, kdb@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=SmrTF7h4uZanayZPYqN+OYbHVQsLRssdNeJi553V23k=; b=SnJZorRyZkacwZx8h9snnJx0PnPt5WxGgFTJLkkojMpsOVHezxIziBwEoIIGFi7kVxXDZipr0toMzYItaGP83Oju4At21ImqgW3CMko8i2y5j9WW/jDL4++CVta2jQk7UtgdFBjjPlv7CB9AyqyuNINtTiYHhj4dopXp6nSkllE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RYu7YIYMzlMBnFs701rN2qhOxWKJnJTqRxvdnyH/RKHS+auzQKwILdULUI9eBBBvaAL2HGbLcYlEidFpAr1q4KAPCO/41bAwEH079em+bJcsQjEnZ6H/Hm+X2H8zxdlnIQyhfIocRk+OrBF4NOvsohhOGObijX//D12AWmF7HMI=
In-reply-to: <48214F33.1000006@xxxxxxxxxxxxxx>
References: <481EDC13.1040504@xxxxxxxxxxxxxx> <4820B9EA.3060002@xxxxxxx> <48214F33.1000006@xxxxxxxxxxxxxx>
Sender: kdb-bounce@xxxxxxxxxxx
On Wed, May 7, 2008 at 2:41 PM, Avi Nehori <anehori@xxxxxxxxxxxxxx> wrote:
> Thanks for your reply Jay,
> I'm running i386 and the thing is that when i set the breakpoint on a
> memory address(trying to catch a memory
> corruption bug) the watch point is not getting hit when the memory is
> written.
> I'm following the kdb documentation which says :
>
> "The |bph| and |bpha| commands can be used (provided the architecture
> supports use of hardware registers) to apply read and write breakpoints.
> This means we can get control whenever data is read from or written into
> a particular address. This can be extremely handy when debugging
> data/memory corruption problems, where you can use it to identify the
> corrupting code/process."
>
> *Examples*
>
>    *To enter the kernel debugger whenever four bytes are written into
>    address 0xc0204060:*
>    | [0]kdb> bph 0xc0204060 dataw 4
>
>
>    so i followed the documentation and set a breakpoint using bph (and
>    also bpha) on a memory address
>    exactly as the above example ,but when i modify the memory address
>    ,the breakpoint does not hit....
>    any idea what is wrong here ?
>    any help will be very appreciated .
>    Thanks!
>

What the kernel version are you using? and how do you modify the memory address?

Regards
Jason Xiao

>    ||
>
>
>    ||
>    |
>
>
>
>
> Jay Lan wrote:
> > Avi Nehori wrote:
> >
> >> Hi,
> >> I'm trying to set a watch point with bpha as follows :
> >> bpha address dataw 4
> >> but the watchpoint is never called when the memory address is changed.
> >> is it a know bug ?
> >> is there a patch ?
> >>
> >
> > I heard bph/bpha worked on x86_64. However, hardware breakpoint
> > was not implemented on IA64. Were you on IA64?
> >
> > Greg Banks of SGI (gnb@xxxxxxx) provided patches for IA64. Many
> > thanks to Greg!
> > 1) gnb-kdb-implement-bpha-v3
> >    This patch implemented bph/bpha on IA64.
> > 2) gnb-test-kdb-bph
> >    This patch provided a test infrastructure to test all the ia64
> >    data* breakpoint features.
> >
> > I have uploaded the patches to the download area.
> > ftp://oss.sgi.com/projects/kdb/download/v4.4
> >
> >
> > Cheers,
> >  - jay
> >
> >
> >> Thanks.
> >> ---------------------------
> >> Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
> >>
> >
> >
> >
> > Scanned by Check Point Total Security Gateway.
>
> >
> >
> ---------------------------
> Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
>
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>