ThreadPlanTracer::TracingStarted can't call virtual methods on Thread.
authorJim Ingham <jingham@apple.com>
Fri, 20 Dec 2019 18:56:39 +0000 (10:56 -0800)
committerJim Ingham <jingham@apple.com>
Fri, 20 Dec 2019 18:56:39 +0000 (10:56 -0800)
commit810c3cfa664b38b27bc30afaadab3d775cb17922
tree54a4bf90d1d115290c7e73b637b5aba25366af30
parent15bfd2cd543804caccd2fb485af4ea55b55006f1
ThreadPlanTracer::TracingStarted can't call virtual methods on Thread.

    TracingStarted gets called in the Thread constructor, which means you can't
    call a virtual method of the class.  So delay setting up the m_register_values
    till you need them.  NFC as lldb just crashes if you don't do this.

    The thread tracing is an only occasionally useful feature, and it only sort
    of works.  I'm not adding tests etc. at this point, I'm just poking at it a
    bit.  If I get it working better I'll write tests and so forth.
lldb/source/Target/ThreadPlanTracer.cpp