aboutsummaryrefslogtreecommitdiff
path: root/gdb/libunwind-frame.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-12 00:07:45 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-12 00:07:45 +0000
commit45ecac4b41626c5f43dd90d0174f56c3d1350cc9 (patch)
tree6ffe6ac6417d3ed0b8a7ea03f569ab933c0d08f8 /gdb/libunwind-frame.h
parent26f43351a71c25e48de61bb586fe4d492603e609 (diff)
downloadgdb-45ecac4b41626c5f43dd90d0174f56c3d1350cc9.zip
gdb-45ecac4b41626c5f43dd90d0174f56c3d1350cc9.tar.gz
gdb-45ecac4b41626c5f43dd90d0174f56c3d1350cc9.tar.bz2
* libunwind-frame.h (struct regcache): Add forward declaration.
(libunwind_get_reg_special): Add REGCACHE argument. * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE argument. Pass it to unw_init_remote_p. * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to libunwind_get_reg_special. (ia64_access_reg): Remove "write" case. (ia64_access_fpreg): Likewise. Read from next_frame passed as callback argument instead of from current_regcache. (ia64_access_rse_reg): Remove "write" case. Read from regcache passed as callback argument instead of from current_regcache. (ia64_access_rse_fpreg): New function. (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
Diffstat (limited to 'gdb/libunwind-frame.h')
-rw-r--r--gdb/libunwind-frame.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/libunwind-frame.h b/gdb/libunwind-frame.h
index f32e4c4..499055a 100644
--- a/gdb/libunwind-frame.h
+++ b/gdb/libunwind-frame.h
@@ -25,6 +25,7 @@
struct frame_info;
struct frame_id;
+struct regcache;
struct gdbarch;
#ifndef LIBUNWIND_FRAME_H
@@ -62,7 +63,9 @@ int libunwind_search_unwind_table (void *as, long ip, void *di,
unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *,
void *);
-int libunwind_get_reg_special (struct gdbarch *gdbarch, int regnum, void *buf);
+int libunwind_get_reg_special (struct gdbarch *gdbarch,
+ struct regcache *regcache,
+ int regnum, void *buf);
#endif /* libunwind-frame.h */