Re: HW watchpoint on Linux/ARM

Christian Gagneraud <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CABxGUTi7Sxt=U1mhgaRXfyo0XqSUAtSrashi9SQ8UDL28_Y23Q@mail.gmail.com>
On 16 July 2017 at 20:52, Peter Schauer <[email protected]> wrote:
>> But on i.mx6, it does. From memory, the kernel told me that I have
>> access to 5 HW breakpoints and 1 HW watchpoint (I don't have the board
>> at hand, but will post details on Monday).
>
> I had the same problem with an i.mx6 board three years ago.
> I don't remember all the details, but it had to do with the
> ARM secure debug mode, which is active when the SPIDEN pin is pulled low
> in hardware.
>
> I had a kernel hack back then, which enabled the hardware break mechanism
> even if the SPIDEN pin is pulled low, but it disables the secure debug mode,
> and worked only for my arm architecture (I couldn't test others), so
> I didn't post it to the kernel group.
>
> If your problem is caused by SPIDEN low, and you are interested in
> the kernel hack, please let me know.
> I could also send you a detailed analysis of the problem in german,
> in case you are interested.

Hi Peter,

Yes please, I'm interested by your hacky patch, and i'll take the
german analysis too! ;)

Thanks,
Chris

>
> --
> Peter Schauer                   [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.