/* Target-dependent code for OpenVMS IA-64.
- Copyright (C) 2012-2018 Free Software Foundation, Inc.
+ Copyright (C) 2012-2019 Free Software Foundation, Inc.
This file is part of GDB.
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;
CORE_ADDR table_addr;
unsigned int info_len;
- res = target_read (target_stack, TARGET_OBJECT_OPENVMS_UIB,
+ res = target_read (current_top_target (), TARGET_OBJECT_OPENVMS_UIB,
annex + 2, buf, 0, sizeof (buf));
if (res != sizeof (buf))
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);