public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* No code to flush instruction cache in gdbserver?
@ 2005-08-01  9:32 Jie Zhang
  2005-08-01 13:13 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Jie Zhang @ 2005-08-01  9:32 UTC (permalink / raw)
  To: gdb

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. However, I found there is no cache
flush code in gdbserver. So here are my questions:

1. Is it needed to flush instruction cache in gdbserver? If not, why?

2. If yes, is there not code do cache flush in gdbserver or just I
didn't find them?

3. If there is no such code, is there any effort on going to add it currently?


Any comments will be appreciated.

Thanks,
Jie

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: No code to flush instruction cache in gdbserver?
  2005-08-01  9:32 No code to flush instruction cache in gdbserver? Jie Zhang
@ 2005-08-01 13:13 ` Daniel Jacobowitz
  2005-08-01 13:25   ` Jie Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-08-01 13:13 UTC (permalink / raw)
  To: Jie Zhang; +Cc: gdb

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: No code to flush instruction cache in gdbserver?
  2005-08-01 13:13 ` Daniel Jacobowitz
@ 2005-08-01 13:25   ` Jie Zhang
  0 siblings, 0 replies; 3+ messages in thread
From: Jie Zhang @ 2005-08-01 13:25 UTC (permalink / raw)
  To: Jie Zhang, gdb

Thank you so much. :-)

Jie

On 8/1/05, Daniel Jacobowitz <drow@false.org> wrote:
> 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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-01 13:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-01  9:32 No code to flush instruction cache in gdbserver? Jie Zhang
2005-08-01 13:13 ` Daniel Jacobowitz
2005-08-01 13:25   ` Jie Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).