summaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorqiyao <qiyao>2011-09-17 13:29:30 +0000
committerqiyao <qiyao>2011-09-17 13:29:30 +0000
commit877a367fc8dcb2eb086c7887a9a35c23a039870e (patch)
tree03bcf80185d399c475cf5ab1601291ce997f5c5e /gdb/regcache.h
parentba9841d9df87bf928d1a3bc278328f2bb333dca3 (diff)
downloadgdb-877a367fc8dcb2eb086c7887a9a35c23a039870e.tar.gz
gdb/
* infrun.c (displaced_step_fixup): Move some code ... (displaced_step_restore): ... here. New function. (handle_inferior_event): Cleanup displaced stepping state for both child and parent when get forked or vforked event. * regcache.c (get_thread_arch_aspace_regcache): New function. get_thread_arch_regcache (): Call it.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r--gdb/regcache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index 7f7dc105968..5531f398cae 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -28,6 +28,9 @@ struct address_space;
extern struct regcache *get_current_regcache (void);
extern struct regcache *get_thread_regcache (ptid_t ptid);
extern struct regcache *get_thread_arch_regcache (ptid_t, struct gdbarch *);
+extern struct regcache *get_thread_arch_aspace_regcache (ptid_t,
+ struct gdbarch *,
+ struct address_space *);
void regcache_xfree (struct regcache *regcache);
struct cleanup *make_cleanup_regcache_xfree (struct regcache *regcache);