kdb
[Top] [All Lists]

Re: bph / bpha not working.

To: Jay Lan <jlan@xxxxxxx>
Subject: Re: bph / bpha not working.
From: Jay Lan <jlan@xxxxxxx>
Date: Fri, 23 May 2008 09:54:30 -0700
Cc: Avi Nehori <anehori@xxxxxxxxxxxxxx>, jidong xiao <jidong.xiao@xxxxxxxxx>, Scott Lurndal <scott.lurndal@xxxxxxxxxxxxxxxx>, kdb@xxxxxxxxxxx
In-reply-to: <4836F3F9.6070608@xxxxxxx>
References: <481EDC13.1040504@xxxxxxxxxxxxxx> <48215537.3040901@xxxxxxxxxxxxxx> <20080507161145.GA4398@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <482697FD.7030900@xxxxxxxxxxxxxx> <483346F1.3010100@xxxxxxx> <4833C201.1000800@xxxxxxxxxxxxxx> <483473FC.80506@xxxxxxx> <4835165A.8080809@xxxxxxxxxxxxxx> <4835F056.4070002@xxxxxxx> <48365863.5030903@xxxxxxxxxxxxxx> <4104961b0805222258y7a732c8du4856d2056a3d55e6@xxxxxxxxxxxxxx> <48365FA3.9000409@xxxxxxxxxxxxxx> <4836F3F9.6070608@xxxxxxx>
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Thunderbird 1.5 (X11/20060317)
Jay Lan wrote:
> Avi Nehori wrote:
>> i have done few testing and i noticed that :
>> 1. when you set an hardware break point to address XXXXX
>>     and you do something like :
>>     int * ptr = XXXXX;
>>     *ptr = 9;
>>     this will work .
>> 2. when you set an hardware break point to address XXXXX
>>     int *ptr = XXXXX -4;
>>     *(ptr + 4) =9;
>>     didnt work.
> 
> I have an easy-to-reproduce "fail to break on write" test case.
> But it seems to be a "direct" write though:
> 
>   At KDB prompt:
>   KDB> bpha panic_on_oops
>   ...
>   KDB> go
> 
> 
>   Then, at a shell window:
>   # echo 1 > /proc/sys/kernel/panic_on_oops
> 
>   The system will drop to the KDB prompt.

Oops, sorry. I meant to say: it will not break even though
the value has changed.

- jay

> 
> Cheers,
>  - jay
> 
>>     
>>
>>
>>
>>
>> jidong xiao wrote:
>>> On Fri, May 23, 2008 at 1:38 PM, Avi Nehori <anehori@xxxxxxxxxxxxxx> wrote:
>>>   
>>>> yes ,you are correct :)
>>>> seems like the debug registers are being set correctly(i have checked it 
>>>> and
>>>> debugged it ),but still the breakpoint does not
>>>> break....
>>>> i have done a special testing ,i can tell you that if you will write the
>>>> memory address directly --- it will break.
>>>> but if you write the memory address indirectly ---- it will not break !!!
>>>>     
>>> What do you mean by "write the memory address indirectly"?
>>>
>>> Regards
>>> Jason
>>>
>>>   
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>