This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Disassembly improvements


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]