From e2d966398c7963a6448f0d3d4451438efeda66e7 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Sat, 17 Sep 2011 13:29:32 +0000 Subject: 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. --- gdb/regcache.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/regcache.h') diff --git a/gdb/regcache.h b/gdb/regcache.h index 7f7dc10..5531f39 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); -- cgit v1.1