Fix ia64 GDB build
authorYao Qi <yao.qi@linaro.org>
Mon, 12 Mar 2018 09:15:39 +0000 (09:15 +0000)
committerYao Qi <yao.qi@linaro.org>
Mon, 12 Mar 2018 09:15:39 +0000 (09:15 +0000)
Commit 849d0ba8 breaks GDB build for ia64 with --with-libunwind-ia64=yes.
This patch fixes it.

gdb:

2018-03-12  Yao Qi  <yao.qi@linaro.org>

* ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
parameter type to readable_regcache.
* ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
the declaration.

gdb/ChangeLog
gdb/ia64-libunwind-tdep.c
gdb/ia64-libunwind-tdep.h

index c65e023b7057a40c400ca0d8f241c1a7d5bd5416..3ca9e6ffdf9a212d3136ded98396b47b5ccb226c 100644 (file)
@@ -1,3 +1,10 @@
+2018-03-12  Yao Qi  <yao.qi@linaro.org>
+
+       * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
+       parameter type to readable_regcache.
+       * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
+       the declaration.
+
 2018-03-11  Tom Tromey  <tom@tromey.com>
 
        * dwarf2read.c (struct nextfield): Add initializers.
index 3ac613cb5afddfcc2da996551733f5828e15f640..99782b2d701671d48c4160805defe445aa8fd376 100644 (file)
@@ -452,7 +452,7 @@ libunwind_sigtramp_frame_sniffer (const struct frame_unwind *self,
    are usually located at BOF, this is not always true and only the libunwind
    info can decipher where they actually are.  */
 int
-libunwind_get_reg_special (struct gdbarch *gdbarch, struct regcache *regcache,
+libunwind_get_reg_special (struct gdbarch *gdbarch, readable_regcache *regcache,
                           int regnum, void *buf)
 {
   unw_cursor_t cursor;
index 5ac3a286e2b64370b55d638f8b1e010ff9e42410..dc7ec9cf46eade0141db9fc80d89aa40673198c9 100644 (file)
@@ -71,7 +71,7 @@ unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *,
                                    void *);
 
 int libunwind_get_reg_special (struct gdbarch *gdbarch,
-                              struct regcache *regcache,
+                              readable_regcache *regcache,
                               int regnum, void *buf);
 
 #endif /* IA64_LIBUNWIND_TDEP_H */