[lldb-dev] Writing logging to screen

Matthew Gardiner mg11 at csr.com
Mon Feb 10 05:55:02 PST 2014


Hi,

How do I run lldb in such way that the logging statements are visible on 
my stdout/stderr?

For example, I'm trying to debug:

void
ReadRegOperation::Execute(ProcessMonitor *monitor)
{
     Log *log (ProcessPOSIXLog::GetLogIfAllCategoriesSet 
(POSIX_LOG_REGISTERS));

<snip>

     if (log)
         log->Printf ("ProcessMonitor::%s() reg %s: 0x%" PRIx64, 
__FUNCTION__,
                      m_reg_name, data);
}

How can I make the Printf visible?

Thanks
Matthew Gardiner



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Keep up to date with CSR on our technical blog, www.csr.com/blog, CSR people blog, www.csr.com/people, YouTube, www.youtube.com/user/CSRplc, Facebook, www.facebook.com/pages/CSR/191038434253534, or follow us on Twitter at www.twitter.com/CSR_plc.
New for 2014, you can now access the wide range of products powered by aptX at www.aptx.com.



More information about the lldb-dev mailing list