[Lldb-commits] [lldb] [LLDB][Minidump] Extend the minidump x86_64 registers to include fs_base and gs_base (PR #106767)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 30 11:01:04 PDT 2024
================
@@ -473,7 +473,8 @@ GetThreadContext_x86_64(RegisterContext *reg_ctx) {
lldb_private::minidump::MinidumpContext_x86_64_Flags::x86_64_Flag |
lldb_private::minidump::MinidumpContext_x86_64_Flags::Control |
lldb_private::minidump::MinidumpContext_x86_64_Flags::Segments |
- lldb_private::minidump::MinidumpContext_x86_64_Flags::Integer);
+ lldb_private::minidump::MinidumpContext_x86_64_Flags::Integer |
+ lldb_private::minidump::MinidumpContext_x86_64_Flags::LLDBSpecific);
----------------
jeffreytan81 wrote:
I do not think fs_base/gs_base is lldb specific. They are virtual registers but they are returned as part of ptrace call on Linux. For example, gdb and other debugger tools are showing them. I think we should include them as part of `MinidumpContext_x86_64_Flags::x86_64_Flag` flag.
https://github.com/llvm/llvm-project/pull/106767
More information about the lldb-commits
mailing list