bph / bpha not working.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


I agree ,
i have noticed in my testings that global variables behave differently 
(i have no explanation for that )then memory allocated dynamically.
globals do not trigger the breakpoint even though they seem to be a 
direct access.

Jay Lan wrote:
> 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 at checkpoint.com> 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
>>>>
>>>>   
>>>>         
>
> Scanned by Check Point Total Security Gateway.
>
>   
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux