diff options
author | Greg Clayton <gclayton@apple.com> | 2010-09-03 21:14:27 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-09-03 21:14:27 +0000 |
commit | ef3cf2b95460f12d1f69a4dd3babc74b9406d45a (patch) | |
tree | 6d70bf7b022ea327e9eb5cd297af86366749b5c1 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp | |
parent | 9bb67f4d1ab7afb7840aaee490e6213e83ebca85 (diff) | |
download | bcm5719-llvm-ef3cf2b95460f12d1f69a4dd3babc74b9406d45a.tar.gz bcm5719-llvm-ef3cf2b95460f12d1f69a4dd3babc74b9406d45a.zip |
Added some extra logging to track asynchronous packet activity.
llvm-svn: 113012
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp index 63ae7e78ccb..b34df7bacb8 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp @@ -59,7 +59,9 @@ ProcessGDBRemoteLog::EnableLog (StreamSP &log_stream_sp, uint32_t log_options, A const char *arg = args.GetArgumentAtIndex(i); if (::strcasecmp (arg, "all") == 0 ) flag_bits |= GDBR_LOG_ALL; + else if (::strcasecmp (arg, "async") == 0 ) flag_bits |= GDBR_LOG_ASYNC; else if (::strcasestr (arg, "break") == arg ) flag_bits |= GDBR_LOG_BREAKPOINTS; + else if (::strcasestr (arg, "comm") == arg ) flag_bits |= GDBR_LOG_COMM; else if (::strcasecmp (arg, "default") == 0 ) flag_bits |= GDBR_LOG_DEFAULT; else if (::strcasecmp (arg, "packets") == 0 ) flag_bits |= GDBR_LOG_PACKETS; else if (::strcasecmp (arg, "memory") == 0 ) flag_bits |= GDBR_LOG_MEMORY; @@ -93,7 +95,9 @@ ProcessGDBRemoteLog::ListLogCategories (Stream *strm) { strm->Printf("Logging categories for '%s':\n" "\tall - turn on all available logging categories\n" + "\tasync - log asynchronous activity\n" "\tbreak - log breakpoints\n" + "\tcommunication - log communication activity\n" "\tdefault - enable the default set of logging categories for liblldb\n" "\tpackets - log gdb remote packets\n" "\tmemory - log memory reads and writes\n" |