diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-09-27 19:32:53 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-09-27 19:32:53 +0000 |
commit | 41d35cb0fe5aff6050e3dce2506a51876d10d26a (patch) | |
tree | ab0c4f4e06ac56f0ba6f155bce940fca2893172e /gdb/regcache.h | |
parent | de1e508dafe42b1e30e8b29fab909d266ef52a6c (diff) | |
download | gdb-41d35cb0fe5aff6050e3dce2506a51876d10d26a.zip gdb-41d35cb0fe5aff6050e3dce2506a51876d10d26a.tar.gz gdb-41d35cb0fe5aff6050e3dce2506a51876d10d26a.tar.bz2 |
* regcache.h (get_regcache_arch): New prototype.
* regcache.c (get_regcache_arch): New function.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 4 |
1 files changed, 4 insertions, 0 deletions
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. */ |