Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
Correctly determine the RISC-V XLEN
Browse files Browse the repository at this point in the history
  • Loading branch information
palmer-dabbelt committed Nov 14, 2016
1 parent 4ee773d commit 0a9a290
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gdb/riscv-linux-tdep.c
Expand Up @@ -60,11 +60,8 @@ riscv_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
linux_init_abi (info, gdbarch);

/* GNU/Linux uses SVR4-style shared libraries. */
/* FIXME: This '0' should actually be a check to see if we're on
rv32, but I can't figure out how to hook that up (it's in
gdbarch_tdep, which we don't have here). */
set_solib_svr4_fetch_link_map_offsets
(gdbarch, (0) ?
(gdbarch, gdbarch_tdep (gdbarch)->riscv_abi == RISCV_ABI_FLAG_RV32I ?
svr4_ilp32_fetch_link_map_offsets :
svr4_lp64_fetch_link_map_offsets);

Expand Down

0 comments on commit 0a9a290

Please sign in to comment.