[Lldb-commits] [lldb] [LLDB][ProcessELFCore] Add Description to ProcessELFCore/ELFThread stop reasons (PR #110065)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 4 15:30:30 PDT 2024


================
@@ -556,6 +559,24 @@ Status ELFLinuxSigInfo::Parse(const DataExtractor &data, const ArchSpec &arch) {
   si_signo = data.GetU32(&offset);
   si_errno = data.GetU32(&offset);
   si_code = data.GetU32(&offset);
+  // 64b ELF have a 4 byte pad.
+  if (data.GetAddressByteSize() == 8)
+    offset += 4;
+  // Not every stop signal has a valid address, but that will get resolved in
+  // the unix_signals_sp->GetSignalDescription() call below.
+  if (unix_signals_sp->GetShouldStop(si_signo)) {
+    addr = data.GetAddress(&offset);
+    addr_lsb = data.GetU16(&offset);
----------------
clayborg wrote:

remove `addr_lsb` if we don't use it.

https://github.com/llvm/llvm-project/pull/110065


More information about the lldb-commits mailing list