From 41d35cb0fe5aff6050e3dce2506a51876d10d26a Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 27 Sep 2003 19:32:53 +0000 Subject: * regcache.h (get_regcache_arch): New prototype. * regcache.c (get_regcache_arch): New function. --- gdb/regcache.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/regcache.h') diff --git a/gdb/regcache.h b/gdb/regcache.h index b8ac182..c89570d 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -32,6 +32,10 @@ void regcache_xfree (struct regcache *regcache); struct cleanup *make_cleanup_regcache_xfree (struct regcache *regcache); struct regcache *regcache_xmalloc (struct gdbarch *gdbarch); +/* Return REGCACHE's architecture. */ + +extern struct gdbarch *get_regcache_arch (const struct regcache *regcache); + /* Transfer a raw register [0..NUM_REGS) between core-gdb and the regcache. */ -- cgit v1.1