mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
* regcache.h (get_regcache_arch): New prototype.
* regcache.c (get_regcache_arch): New function.
This commit is contained in:
parent
de1e508daf
commit
41d35cb0fe
@ -1,5 +1,8 @@
|
||||
2003-09-27 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* regcache.h (get_regcache_arch): New prototype.
|
||||
* regcache.c (get_regcache_arch): New function.
|
||||
|
||||
* x86-64-tdep.c (x86_64_store_return_value): Remove spurious
|
||||
whitespace.
|
||||
|
||||
|
@ -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 *
|
||||
|
@ -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. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user