[LLVMdev] [llvm-commits] [PATCH] Allow per-thread re-direction of outs()/errs()
Caldarale, Charles R
Chuck.Caldarale at unisys.com
Fri Jun 1 19:47:51 PDT 2012
> From: Justin Holewinski [mailto:justin.holewinski at gmail.com]
> Subject: Re: [LLVMdev] [llvm-commits] [PATCH] Allow per-thread re-direction of outs()/errs()
> > Virtually all of those are in DEBUG statements or in llvm/tools.
> > Neither are relevant to the discussion.
> In a way, they are. What if I want a debug trace in a multi-threaded
> context? Right now, all threads would just spew to the same stream
> and the result would be unreadable. If you allow threads to setup their
> own outs() and errs() streams (transparently to the rest of LLVM), you
> can intercept these as you see fit, perhaps dumping each to a separate
> file. I acknowledge that you could also enforce single-threaded execution
> for debug runs, but what if you are in the context of a library with no
> valid stdout/stderr buffers?
I agree wholeheartedly. We're running LLVM in a real-time system with no stdout/stderr, and being able to redirect the debug messages is critical to our testing.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
More information about the llvm-dev
mailing list