[lldb-dev] Logging different channels to different files

Vince Harron vince at nethacker.com
Wed May 6 22:03:56 PDT 2015


Okay, I don't know what I was thinking.

Debugger.cpp:1317
It's re-using an existing stream if the filename is identical.

The stomping that Ed is seeing might be solvable by using the -t flag as
Jim suggests.



On Wed, May 6, 2015 at 8:03 PM, Ed Maste <emaste at freebsd.org> wrote:

> On 6 May 2015 at 19:58, Vince Harron <vince at nethacker.com> wrote:
> > I've never tried logging to the same file because I stepped through the
> code
> > and (IIRC) different "log enable" commands to the same file path open
> > separate file descriptors without the append flag, so I expected that
> they
> > would stomp on each other.  Maybe I misunderstood.  I'll try it now.
>
> My experience was the same; using the same file for different log
> channels resulted in an inconsistent set of log entries in the file.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150506/5457eb3f/attachment.html>


More information about the lldb-dev mailing list