icache-dcache coherence on ARM

Xiaozhu Meng <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CALjUE3-2G9qiL+Ntp2QeCuY5aaiZQbo0YRAmo16ziFFN40KRwA@mail.gmail.com>
Hi,

I am reading gdb's source code to hopefully get answers for a question that
I have in my other project.

On ARM, the architecture does not guarantee that icache and dcache are
coherent. When GDB writes a software breakpoint into the inferior's address
space, is it possible that the inferior executes outdated code in icache
and thus miss the software breakpoint?

I try to search around the gdb code base to understand whether GDB flushes
icache or not, but could not find answers.

I appreciate any feedback!

Thanks,

--Xiaozhu
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.