mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 04:27:46 +08:00
* regcache.h (get_regcache_arch): New prototype.
* regcache.c (get_regcache_arch): New function.
This commit is contained in:
@ -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 *
|
||||
|
Reference in New Issue
Block a user