diff options
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 182ca55..7fc35ad 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -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 * |