[Lldb-commits] [PATCH] D128250: [LLDB][RISCV]Add initial support for lldb-server.

Emmmer S via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 21 01:19:24 PDT 2022


Emmmer created this revision.
Emmmer added reviewers: DavidSpickett, craig.topper.
Emmmer added a project: LLDB.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, JDevlieghere, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, arichardson, mgorny.
Herald added a project: All.
Emmmer requested review of this revision.
Herald added subscribers: lldb-commits, pcwang-thead, eopXD, MaskRay.

I added some initial support for lldb-server on **riscv64** platform, now it can be built on riscv64.
But when I use lldb for debugging, it reports:

  error: 'A' packet returned an error: -1

I tried to fix this error with gdb, but the debugging process was too slow, so I'm sorry for not being able to provide a test patch for verification of my commit.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128250

Files:
  lldb/source/Plugins/Process/Linux/CMakeLists.txt
  lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_riscv64.cpp
  lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_riscv64.h
  lldb/source/Plugins/Process/Utility/CMakeLists.txt
  lldb/source/Plugins/Process/Utility/NativeRegisterContextDBReg_riscv64.cpp
  lldb/source/Plugins/Process/Utility/NativeRegisterContextDBReg_riscv64.h
  lldb/source/Plugins/Process/Utility/RegisterInfoPOSIX_riscv64.cpp
  lldb/source/Plugins/Process/Utility/RegisterInfoPOSIX_riscv64.h
  lldb/source/Plugins/Process/Utility/RegisterInfos_riscv64.h
  lldb/source/Utility/RISCV64_DWARF_Registers.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128250.438581.patch
Type: text/x-patch
Size: 48281 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220621/fa38996f/attachment-0001.bin>


More information about the lldb-commits mailing list