[all-commits] [llvm/llvm-project] 15f597: [LLDB][RISCV] Add RISC-V ArchSpec and rv32/rv64 va...

Luís Marques via All-commits all-commits at lists.llvm.org
Thu Jan 7 15:07:52 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 15f5971150684b656005cfd5b744c1a34477ff60
      https://github.com/llvm/llvm-project/commit/15f5971150684b656005cfd5b744c1a34477ff60
  Author: Luís Marques <luismarques at lowrisc.org>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    M lldb/include/lldb/Utility/ArchSpec.h
    M lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
    M lldb/source/Utility/ArchSpec.cpp
    A lldb/test/Shell/ObjectFile/ELF/riscv-arch.yaml

  Log Message:
  -----------
  [LLDB][RISCV] Add RISC-V ArchSpec and rv32/rv64 variant detection

Adds the RISC-V ArchSpec bits contributed by @simoncook as part of D62732,
plus logic to distinguish between riscv32 and riscv64 based on ELF class.

The patch follows the implementation approach previously used for MIPS.
It defines RISC-V architecture subtypes and inspects the ELF header,
namely the ELF class, to detect the right subtype.

Differential Revision: https://reviews.llvm.org/D86292




More information about the All-commits mailing list