* regcache.h (get_regcache_arch): New prototype.

* regcache.c (get_regcache_arch): New function.
This commit is contained in:
Mark Kettenis
2003-09-27 19:32:53 +00:00
parent de1e508daf
commit 41d35cb0fe
3 changed files with 15 additions and 0 deletions

View File

@ -344,6 +344,14 @@ make_cleanup_regcache_xfree (struct regcache *regcache)
return make_cleanup (do_regcache_xfree, regcache);
}
/* Return REGCACHE's architecture. */
struct gdbarch *
get_regcache_arch (const struct regcache *regcache)
{
return regcache->descr->gdbarch;
}
/* Return a pointer to register REGNUM's buffer cache. */
static char *