x86: Properly handle PLT expression in directive
[external/binutils.git] / gdb / ia64-vms-tdep.c
index e2d40e2..07419e8 100644 (file)
@@ -34,8 +34,6 @@ ia64_vms_find_proc_info_x (unw_addr_space_t as, unw_word_t ip,
                            int need_unwind_info, void *arg)
 {
   enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ());
-  unw_dyn_info_t di;
-  int ret;
   gdb_byte buf[32];
   const char *annex = core_addr_to_string (ip);
   LONGEST res;
@@ -76,7 +74,7 @@ ia64_vms_find_proc_info_x (unw_addr_space_t as, unw_word_t ip,
   pi->unwind_info = xmalloc (pi->unwind_info_size);
 
   res = target_read_memory (table_addr + 8,
-                            pi->unwind_info, pi->unwind_info_size);
+                            (gdb_byte *) pi->unwind_info, pi->unwind_info_size);
   if (res != 0)
     {
       xfree (pi->unwind_info);