llvm-project/lldb/docs
Walter Erquinigo 21555fff4d [intel-pt][trace] Implement a "get supported trace type" packet
Depends on D89283.

The goal of this packet (jTraceGetSupportedType) is to be able to query the gdb-server for the tracing technology that can work for the current debuggeer, which can make the user experience simpler but allowing the user to simply type

  thread trace start

to start tracing the current thread without even telling the debugger to use "intel-pt", for example. Similarly, `thread trace start [args...]` would accept args beloging to the working trace type.

Also, if the user typed

  help thread trace start

We could directly show the help information of the trace type that is supported for the target, or mention instead that no tracing is supported, if that's the case.

I added some simple tests, besides, when I ran this on my machine with intel-pt support, I got

  $ process plugin packet send "jTraceSupportedType"
    packet: jTraceSupportedType
  response: {"description":"Intel Processor Trace","pluginName":"intel-pt"}

On a machine without intel-pt support, I got

  $ process plugin packet send "jTraceSupportedType"
    packet: jTraceSupportedType
  response: E00;

Reviewed By: clayborg, labath

Differential Revision: https://reviews.llvm.org/D90490
2020-11-11 10:35:58 -08:00
..
_static [lldb][docs] Add CMake version notes for -B flag 2019-07-31 10:31:57 +00:00
design [lldb] Add a "design" section to the documentation. 2020-10-02 13:07:31 -07:00
man [lldb/interpreter] Improve REPL init file compatibility 2020-09-02 01:21:22 +02:00
resources [lldb] Update docs with new buildbot URLs 2020-10-09 10:57:39 -07:00
status [lldb/Docs] Update the features matrix 2020-02-18 20:08:43 -08:00
testsuite Rename MacOS X -> macOS where applicable. 2019-05-14 16:37:43 +00:00
use Fix gendered documentation 2020-10-31 12:17:19 +01:00
.htaccess [lldb] Add a "design" section to the documentation. 2020-10-02 13:07:31 -07:00
CMakeLists.txt [lldb/CMake] Separate CMake code for Lua and Python (NFC) 2020-08-11 09:04:18 -07:00
conf.py [lldb] Add print_function import 2020-09-28 13:51:11 -07:00
doxygen-mainpage.dox [Docs] Make Doxygen functional 2019-04-19 18:02:35 +00:00
doxygen.cfg.in [Doxygen] Document private class members. 2019-08-21 00:10:19 +00:00
index.rst [lldb] Add a page to the docs with (external) links on how to use LLDB 2020-10-20 11:43:31 -07:00
lldb-for-gdb-users.txt
lldb-gdb-remote.txt [intel-pt][trace] Implement a "get supported trace type" packet 2020-11-11 10:35:58 -08:00
lldb-platform-packets.txt [lldb] Correct vFile:pread/pwrite packet docs 2020-10-27 11:47:35 +00:00