[Lldb-commits] [PATCH] D66920: [dotest] Remove deprecated loggin through env variables.
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 29 10:22:52 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL370387: [dotest] Remove deprecated loggin through env variables. (authored by JDevlieghere, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D66920?vs=217753&id=217931#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66920/new/
https://reviews.llvm.org/D66920
Files:
lldb/trunk/packages/Python/lldbsuite/test/dotest.py
Index: lldb/trunk/packages/Python/lldbsuite/test/dotest.py
===================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py
@@ -167,20 +167,6 @@
$ ./dotest.py --log-success
-Option 2: (DEPRECATED)
-
-The following options can only enable logs from the host lldb process.
-Only categories from the "lldb" or "gdb-remote" channels can be enabled
-They also do not automatically enable logs in locally running debug servers.
-Also, logs from all test case are written into each log file
-
-o LLDB_LOG: if defined, specifies the log file pathname for the 'lldb' subsystem
- with a default option of 'event process' if LLDB_LOG_OPTION is not defined.
-
-o GDB_REMOTE_LOG: if defined, specifies the log file pathname for the
- 'process.gdb-remote' subsystem with a default option of 'packets' if
- GDB_REMOTE_LOG_OPTION is not defined.
-
""")
sys.exit(0)
@@ -766,61 +752,6 @@
raise Exception('disabling dynamic type support failed')
-def lldbLoggings():
- import lldb
- """Check and do lldb loggings if necessary."""
-
- # Turn on logging for debugging purposes if ${LLDB_LOG} environment variable is
- # defined. Use ${LLDB_LOG} to specify the log file.
- ci = lldb.DBG.GetCommandInterpreter()
- res = lldb.SBCommandReturnObject()
- if ("LLDB_LOG" in os.environ):
- open(os.environ["LLDB_LOG"], 'w').close()
- if ("LLDB_LOG_OPTION" in os.environ):
- lldb_log_option = os.environ["LLDB_LOG_OPTION"]
- else:
- lldb_log_option = "event process expr state api"
- ci.HandleCommand(
- "log enable -n -f " +
- os.environ["LLDB_LOG"] +
- " lldb " +
- lldb_log_option,
- res)
- if not res.Succeeded():
- raise Exception('log enable failed (check LLDB_LOG env variable)')
-
- if ("LLDB_LINUX_LOG" in os.environ):
- open(os.environ["LLDB_LINUX_LOG"], 'w').close()
- if ("LLDB_LINUX_LOG_OPTION" in os.environ):
- lldb_log_option = os.environ["LLDB_LINUX_LOG_OPTION"]
- else:
- lldb_log_option = "event process expr state api"
- ci.HandleCommand(
- "log enable -n -f " +
- os.environ["LLDB_LINUX_LOG"] +
- " linux " +
- lldb_log_option,
- res)
- if not res.Succeeded():
- raise Exception(
- 'log enable failed (check LLDB_LINUX_LOG env variable)')
-
- # Ditto for gdb-remote logging if ${GDB_REMOTE_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 process"
- ci.HandleCommand(
- "log enable -n -f " + os.environ["GDB_REMOTE_LOG"] + " gdb-remote "
- + gdb_remote_log_option,
- res)
- if not res.Succeeded():
- raise Exception(
- 'log enable failed (check GDB_REMOTE_LOG env variable)')
-
-
# ======================================== #
# #
# Execution of the test driver starts here #
@@ -1091,9 +1022,6 @@
# Now that we have loaded all the test cases, run the whole test suite.
#
- # Turn on lldb loggings if necessary.
- lldbLoggings()
-
# Disable default dynamic types for testing purposes
disabledynamics()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66920.217931.patch
Type: text/x-patch
Size: 3643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190829/f4da16ef/attachment.bin>
More information about the lldb-commits
mailing list