/* Target-dependent code for Xilinx MicroBlaze.
- Copyright (C) 2009-2017 Free Software Foundation, Inc.
+ Copyright (C) 2009-2022 Free Software Foundation, Inc.
This file is part of GDB.
CORE_ADDR base;
CORE_ADDR gpregs;
int regnum;
- struct gdbarch *gdbarch = get_frame_arch (next_frame);
- struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
base = frame_unwind_register_unsigned (next_frame, MICROBLAZE_SP_REGNUM);
if (bias > 0 && get_frame_address_in_block (next_frame) != func)
SIGTRAMP_FRAME,
4,
{
- { 0x31800077, -1 }, /* addik R12,R0,119. */
- { 0xb9cc0008, -1 }, /* brki R14,8. */
+ { 0x31800077, ULONGEST_MAX }, /* addik R12,R0,119. */
+ { 0xb9cc0008, ULONGEST_MAX }, /* brki R14,8. */
{ TRAMP_SENTINEL_INSN },
},
microblaze_linux_sighandler_cache_init
microblaze_linux_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch)
{
- struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-
- linux_init_abi (info, gdbarch);
+ linux_init_abi (info, gdbarch, 0);
set_gdbarch_memory_remove_breakpoint (gdbarch,
microblaze_linux_memory_remove_breakpoint);
/* Shared library handling. */
set_solib_svr4_fetch_link_map_offsets (gdbarch,
- svr4_ilp32_fetch_link_map_offsets);
+ linux_ilp32_fetch_link_map_offsets);
/* Trampolines. */
tramp_frame_prepend_unwinder (gdbarch,
µblaze_linux_sighandler_tramp_frame);
}
+void _initialize_microblaze_linux_tdep ();
void
-_initialize_microblaze_linux_tdep (void)
+_initialize_microblaze_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_microblaze, 0, GDB_OSABI_LINUX,
microblaze_linux_init_abi);