[Lldb-commits] [PATCH] D29036: Add format_provider for lldb::StateType

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 23 10:03:07 PST 2017


labath updated this revision to Diff 85419.
labath added a comment.

In this case, StateAsCString was returning a pointer to a static buffer in a
scarily non-thread-safe way. I've changed it to print "unknown" instead and test
for that.


https://reviews.llvm.org/D29036

Files:
  include/lldb/Core/State.h
  source/Core/State.cpp
  source/Plugins/Process/Linux/NativeProcessLinux.cpp
  unittests/Core/CMakeLists.txt
  unittests/Core/StateTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29036.85419.patch
Type: text/x-patch
Size: 4379 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170123/3f9e73ca/attachment-0001.bin>


More information about the lldb-commits mailing list