[Lldb-commits] [lldb] r111295 - /lldb/trunk/test/dotest.py
Johnny Chen
johnny.chen at apple.com
Tue Aug 17 14:36:09 PDT 2010
Author: johnny
Date: Tue Aug 17 16:36:09 2010
New Revision: 111295
URL: http://llvm.org/viewvc/llvm-project?rev=111295&view=rev
Log:
Add the ability to specify logging options for lldb and gdb-remote through two
additional env variables.
Modified:
lldb/trunk/test/dotest.py
Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=111295&r1=111294&r2=111295&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Tue Aug 17 16:36:09 2010
@@ -176,17 +176,28 @@
ci = lldb.DBG.GetCommandInterpreter()
res = lldb.SBCommandReturnObject()
if ("LLDB_LOG" in os.environ):
+ if ("LLDB_LOG_OPTION" in os.environ):
+ lldb_log_option = os.environ["LLDB_LOG_OPTION"]
+ else:
+ lldb_log_option = "event process"
ci.HandleCommand(
- "log enable -f " + os.environ["LLDB_LOG"] + " lldb default", res)
+ "log enable -f " + os.environ["LLDB_LOG"] + " lldb " + lldb_log_option,
+ res)
if not res.Succeeded():
- raise Exception('log enable failed (check your LLDB_LOG env variable...')
+ raise Exception('log enable failed (check LLDB_LOG env variable.')
# Ditto for gdb-remote logging if ${LLDB_LOG} environment variable is defined.
# Use ${GDB_REMOTE_LOG} to specify the log file.
if ("GDB_REMOTE_LOG" in os.environ):
+ if ("GDB_REMOTE_LOG_OPTION" in os.environ):
+ gdb_remote_log_option = os.environ["GDB_REMOTE_LOG_OPTION"]
+ else:
+ gdb_remote_log_option = "packets"
ci.HandleCommand(
- "log enable -f " + os.environ["GDB_REMOTE_LOG"] + " process.gdb-remote packets", res)
+ "log enable -f " + os.environ["GDB_REMOTE_LOG"] + " process.gdb-remote "
+ + gdb_remote_log_option,
+ res)
if not res.Succeeded():
- raise Exception('log enable failed (check your GDB_REMOTE_LOG env variable...')
+ raise Exception('log enable failed (check GDB_REMOTE_LOG env variable.')
# Install the control-c handler.
unittest2.signals.installHandler()
More information about the lldb-commits
mailing list