llvm-project/lldb
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
..
bindings GetModule, GetExeModule methods added 2020-10-29 23:44:51 +03:00
cmake Fix "Unknown arguments specified" to if in lldb 2020-10-21 07:24:53 -07:00
docs [intel-pt][trace] Implement a "get supported trace type" packet 2020-11-11 10:35:58 -08:00
examples [crashlog] Pass the debugger around instead of relying on lldb.debugger 2020-11-04 12:51:26 -08:00
include/lldb [intel-pt][trace] Implement a "get supported trace type" packet 2020-11-11 10:35:58 -08:00
packages/Python Revert "[ThreadPlan] Add a test for `thread step-in -r`, NFC" 2020-11-11 09:09:43 -08:00
resources
scripts [lldb] Correct --help output for qemu rootfs script 2020-10-29 09:57:32 +00:00
source [intel-pt][trace] Implement a "get supported trace type" packet 2020-11-11 10:35:58 -08:00
test Revert "[ThreadPlan] Add a test for `thread step-in -r`, NFC" 2020-11-11 09:09:43 -08:00
third_party/Python/module Revert "[lldb] temporary commit to see why a test is failing only on lldb-aarch64-ubuntu" 2020-08-05 11:55:02 +02:00
tools [lldb] Don't use ::exit but instead return from the driver loop (NFC) 2020-11-09 16:47:30 -08:00
unittests [intel-pt][trace] Implement a "get supported trace type" packet 2020-11-11 10:35:58 -08:00
utils [lldb] Delete lldb/utils/test 2020-10-28 12:06:02 -07:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore
CMakeLists.txt [lldb] Enable cmake policy CMP0077 for option() 2020-10-17 00:16:24 -07:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT
use_lldb_suite_root.py