Re: [patch] Disassembly improvements

Yao Qi
2013-10-18T10:24:09Z

On 10/16/2013 08:08 PM, Pedro Alves wrote:
> Yeah, adding the new target object part is straightforward. What
> may not be, is either adjusting the dcache.c to the specifics of
> disassembly, and range limiting, and making sure the cache is bounded
> correctly, and flushed at the appropriate times. It's one of those
> "must try it to tell" things, I think.

Pedro,
I start to think about it today. I don't see we have to adjust dcache.c
for disassembly and worry about the range. From GDB's point of view,
the process of reading a piece of stack memory should be identical to
reading a piece of code memory. We are using '
target_dcache' to cache stack memory, so we can also reuse it to cache
code memory. Am I missing something?

--
Yao (é½å°§)