[Lldb-commits] [PATCH] D16508: NetBSD: Define initial RegisterContextNetBSD_x86_64

Todd Fiala via lldb-commits lldb-commits at lists.llvm.org
Sat Jan 23 09:25:00 PST 2016


tfiala added a comment.

The important part is that you look to see what NetBSD exposes register-wise for a given process.  Even though the architecture is the same across several different versions of this class, it is possible for an OS to tweak the way the CPU starts up and therefore influence which register sets are present.  That kind of OS/register interaction gets handled here.  So when LLDB is poking around the register file, it knows what it can ask for and how to get it.  In addition to live threads modeled in LLDB, I think these instances are also used when looking at post-mortem debugging - the core file-style processes will hand these out to LLDB as well for a given thread.  (In general we are asking about registers in the context of a given thread, so one of the ways to trace how these work is by looking at the Thread class and its register context retrieval function).


Repository:
  rL LLVM

http://reviews.llvm.org/D16508





More information about the lldb-commits mailing list