diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2017-03-13 18:51:38 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-03-13 18:51:38 -0400 |
commit | ddaaf0fb8605fced72e84410fc7ac834e529eb53 (patch) | |
tree | dfc68d3a190aa72ff5997ef948e6455241170734 /gdb/regcache.h | |
parent | 1a01e7c6b0eaed1bfe70d48692e1103c6e9ee2d9 (diff) | |
download | gdb-ddaaf0fb8605fced72e84410fc7ac834e529eb53.zip gdb-ddaaf0fb8605fced72e84410fc7ac834e529eb53.tar.gz gdb-ddaaf0fb8605fced72e84410fc7ac834e529eb53.tar.bz2 |
Introduce regcache_get_ptid
This patch introduces the regcache_get_ptid function, which can be used
to retrieve the ptid a regcache is connected to. It is used in
subsequent patches.
gdb/ChangeLog:
* regcache.h (regcache_get_ptid): New function.
* regcache.c (regcache_get_ptid): 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 e1495f6..d0107cd 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -39,6 +39,10 @@ struct cleanup *make_cleanup_regcache_xfree (struct regcache *regcache); struct regcache *regcache_xmalloc (struct gdbarch *gdbarch, struct address_space *aspace); +/* Return REGCACHE's ptid. */ + +extern ptid_t regcache_get_ptid (const struct regcache *regcache); + /* Return REGCACHE's architecture. */ extern struct gdbarch *get_regcache_arch (const struct regcache *regcache); |