labath added inline comments.

================
Comment at: lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp:230
+
+  siginfo_t info;
+  info.si_signo = m_signo;
----------------
I think this won't work on Windows (no siginfo_t type, nor constants to decode 
it) -- and it may return garbage on other platforms if they use different 
constants.

If I may suggest an alternative implementation:
- Implement ThreadElfCore::GetSiginfo to return (verbatim) copy of the 
siginfo_t from the core file
- Implement a generic stop info description calculation (on platform class) 
function

Besides the stop description, this should also make the `thread siginfo` 
command work, and we can consider removing the lldb-server-based stop info 
computation logic, since this impl should cover both live and post-portem use 
cases.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145377/new/

https://reviews.llvm.org/D145377

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to