summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/scripts/interface/SBThread.i14
-rw-r--r--lldb/source/API/SBThread.cpp4
2 files changed, 10 insertions, 8 deletions
diff --git a/lldb/scripts/interface/SBThread.i b/lldb/scripts/interface/SBThread.i
index 9aacb4374dc..c36b1b519e6 100644
--- a/lldb/scripts/interface/SBThread.i
+++ b/lldb/scripts/interface/SBThread.i
@@ -182,12 +182,14 @@ public:
lldb::queue_id_t
GetQueueID() const;
- %feature("autodoc", "
- Takes a path string and a SBStream reference as parameters, returns a bool.
- Collects the thread's 'info' dictionary from the remote system, uses the path
- argument to descend into the dictionary to an item of interest, and prints
- it into the SBStream in a natural format. Return bool is to indicate if
- anything was printed into the stream (true) or not (false).
+ %feature("docstring", "
+ //--------------------------------------------------------------------------
+ /// Takes a path string and a SBStream reference as parameters, returns a bool.
+ /// Collects the thread's 'info' dictionary from the remote system, uses the path
+ /// argument to descend into the dictionary to an item of interest, and prints
+ /// it into the SBStream in a natural format. Return bool is to indicate if
+ /// anything was printed into the stream (true) or not (false).
+ //--------------------------------------------------------------------------
") GetInfoItemByPathAsString;
bool
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index fbde6dd3268..24c5e13411f 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -595,8 +595,8 @@ bool SBThread::GetInfoItemByPathAsString(const char *path, SBStream &strm) {
}
if (log)
- log->Printf("SBThread(%p)::GetInfoItemByPathAsString () => %s",
- static_cast<void *>(exe_ctx.GetThreadPtr()), strm.GetData());
+ log->Printf("SBThread(%p)::GetInfoItemByPathAsString (\"%s\") => \"%s\"",
+ static_cast<void *>(exe_ctx.GetThreadPtr()), path, strm.GetData());
return success;
}
OpenPOWER on IntegriCloud