[Lldb-commits] [lldb] [LLDB][ELF Core] Support all the Generic (Negative) SI Codes. (PR #140150)
    Jacob Lalonde via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Thu May 15 15:55:37 PDT 2025
    
    
  
================
@@ -584,22 +584,26 @@ Status ELFLinuxSigInfo::Parse(const DataExtractor &data, const ArchSpec &arch,
   // 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.GetSignalDescription() call below.
-  if (unix_signals.GetShouldStop(si_signo)) {
+
+  if (si_code < 0) {
----------------
Jlalond wrote:
So this check is my primary concern with my own code. In the Linux source I linked they define user space as `<0`, and I followed suite here. I would ideally like to make this a static function on LinuxSignals, but wanted to get feedback on how we want to implement this.
https://github.com/llvm/llvm-project/pull/140150
    
    
More information about the lldb-commits
mailing list