[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 6 05:58:56 PST 2017


labath added a comment.

We were quite successful in the past in creating tiny core files to test these register contexts. Could you take a look at `test/testcases/functionalities/postmortem/elf-core/make-core.sh` to see if you can do the same for your architecture?



================
Comment at: source/Plugins/Process/Utility/RegisterContextPOSIX_ppc64le.h:23
+
+class ProcessMonitor;
+class RegisterContextPOSIX_ppc64le : public lldb_private::RegisterContext {
----------------
delete this ?


================
Comment at: source/Plugins/Process/elf-core/ThreadElfCore.h:183
   lldb_private::DataExtractor m_vregset_data;
+  lldb_private::DataExtractor m_vsregset_data; /* For PPC VSX registers. */
 
----------------
gpregset and fpregset sound fairly generic, but these other two sound really architecture specific. Since ThreadElfCore does not really do anything with these, just pass them to the register context, I'm thinking that we could just have a map of all register sets (something like `DenseMap<uint32_t, DataExtractor>`). Then we can just pass that to the register context constructor, and let it figure out what to do with it. What do you think?


https://reviews.llvm.org/D39681





More information about the lldb-commits mailing list