[CalendarServer-changes] [14997] CalendarServer/trunk/contrib/tools/lldb_utils.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 24 13:45:55 PDT 2015
Revision: 14997
http://trac.calendarserver.org//changeset/14997
Author: dre at apple.com
Date: 2015-07-24 13:45:55 -0700 (Fri, 24 Jul 2015)
Log Message:
-----------
Avoid use of clipboard; load python module into lldb with 'command script import ...'
Modified Paths:
--------------
CalendarServer/trunk/contrib/tools/lldb_utils.py
Modified: CalendarServer/trunk/contrib/tools/lldb_utils.py
===================================================================
--- CalendarServer/trunk/contrib/tools/lldb_utils.py 2015-07-24 20:30:49 UTC (rev 14996)
+++ CalendarServer/trunk/contrib/tools/lldb_utils.py 2015-07-24 20:45:55 UTC (rev 14997)
@@ -22,8 +22,11 @@
> lldb
(lldb) target symbols add <path to Python.framework.dSYM>
+ (lldb) command script import contrib/tools/lldb_utils.py
(lldb) script
- >>> <paste in functions>
+ Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
+ >>> lldb_utils.pybt()
+ >>> lldb_utils.pybtall()
pybt - generate a python function call backtrace of the currently selected thread
pybtall - generate a python function call backtrace of all threads
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150724/e743d35b/attachment.html>
More information about the calendarserver-changes
mailing list