This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: No code to flush instruction cache in gdbserver?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jie Zhang <jzhang918 at gmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 1 Aug 2005 09:12:56 -0400
- Subject: Re: No code to flush instruction cache in gdbserver?
- References: <6f48278f0508010232b6c5149@mail.gmail.com>
On Mon, Aug 01, 2005 at 05:32:21PM +0800, Jie Zhang wrote:
> Hi,
>
> I have a question about gdbserver. For some architectures it's needed
> to flush instruction cache to maintain the cache coherency after
> inserting or removing breakpoint.
It's not gdbserver's responsibility. If your kernel fails to flush the
cache after PTRACE_POKETEXT, then report that as a kernel bug.
--
Daniel Jacobowitz
CodeSourcery, LLC