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



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

Reply via email to