[lldb-dev] gdb-remote logging question

Oleksiy Vyalov ovyalov at google.com
Wed Nov 5 17:30:46 PST 2014


I was looking
into source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp in
order to improve logging for some corner cases - for example, attach to
process failure. And got confused by logging style mixture - sometimes
gdb-remote channel logging is used (via
ProcessGDBRemoteLog::GetLogIfAllCategoriesSet(GDBR_LOG_,...)) or more often
lldb channel is utilized (GetLogIfAnyCategoriesSet(LIBLLDB_LOG_....)).

Does it make sense to log everything
within source/Plugins/Process/gdb-remote to gdb-remote channel only? As I
can see lldb-gdbserver (cannot say for OSX debugserver and lldb-platform)
allows to save log output as a file only for gdb-remote channel and lldb
channel has no chance to be saved anywhere .

Thank you.

Oleksiy Vyalov | Software Engineer | ovyalov at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20141105/452c9540/attachment.html>

More information about the lldb-dev mailing list