This is the mail archive of the gdb-patches@sources.redhat.com 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: RFA: ia64 portion of libunwind patch


>>>>> On Fri, 31 Oct 2003 13:35:51 -0800, Marcel Moolenaar <marcel@xcllnt.net> said:

  Marcel> Since libunwind already does its own caching, we may be
  Marcel> better off not caching in gdb.

That's true.  However, note that by default, caching is not enabled
for remote unwinding (which is what gdb does).  To enable caching, gdb
would have to make a call of the form:

	unw_set_caching_policy(ADDR_SPACE, UNW_CACHE_GLOBAL);

Also, whenever something changes in the target that could invalidate
cached unwind info, gdb would have to call:

	unw_flush_cache(ADDR_SPACE, LO, HI);

where LO and HI is the address range that was affected (or LO=0, HI=0
to flush the entire cache).

	--david


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