Changes

Summary

  1. [lldb-vscode] remove failed test (details)
  2. [trace][intel-pt] Create basic SB API (details)
  3. [lld][WebAssembly] Fix crash calling weakly undefined function in PIC code (details)
  4. [clang][AST] Make `getLocalOrImportedSubmoduleID` work with const `Module*`. NFC. (details)
Commit c1360fd5fced42ea45ce1eacbf1c5e1ed54fcac5 by walter erquinigo
[lldb-vscode] remove failed test

Found in http://green.lab.llvm.org/green/job/lldb-cmake/32891/testReport/lldb-api/tools_lldb-vscode_launch/TestVSCode_launch_py/

the lldb-vscode changed and that test makes no sense anymore
The file was modifiedlldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py
Commit bf9f21a28be171dc500cc68b4cb1fcd3fc33f229 by walter erquinigo
[trace][intel-pt] Create basic SB API

This adds a basic SB API for creating and stopping traces.
Note: This doesn't add any APIs for inspecting individual instructions. That'd be a more complicated change and it might be better to enhande the dump functionality to output the data in binary format. I'll leave that for a later diff.

This also enhances the existing tests so that they test the same flow using both the command interface and the SB API.

I also did some cleanup of legacy code.

Differential Revision: https://reviews.llvm.org/D103500
The file was modifiedlldb/include/lldb/API/SBThread.h
The file was modifiedlldb/include/lldb/Target/Target.h
The file was modifiedlldb/source/Commands/CommandObjectProcess.cpp
The file was modifiedlldb/include/lldb/Utility/TraceGDBRemotePackets.h
The file was modifiedlldb/bindings/headers.swig
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
The file was modifiedlldb/include/lldb/Target/Process.h
The file was modifiedlldb/test/API/commands/trace/TestTraceStartStop.py
The file was modifiedlldb/source/Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.cpp
The file was modifiedlldb/include/lldb/API/SBDefines.h
The file was modifiedlldb/include/lldb/Target/Trace.h
The file was modifiedlldb/include/lldb/lldb-forward.h
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPTOptions.td
The file was modifiedlldb/bindings/interface/SBTarget.i
The file was modifiedlldb/source/Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.h
The file was modifiedlldb/docs/.htaccess
The file was modifiedlldb/bindings/interface/SBStructuredData.i
The file was modifiedlldb/test/API/commands/trace/TestTraceLoad.py
The file was modifiedlldb/bindings/interfaces.swig
The file was modifiedlldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py
The file was modifiedlldb/include/lldb/API/LLDB.h
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPTSessionFileParser.cpp
The file was modifiedlldb/source/API/CMakeLists.txt
The file was modifiedlldb/source/Commands/CommandObjectThreadUtil.h
The file was modifiedlldb/source/Commands/CommandObjectThread.cpp
The file was modifiedlldb/source/API/SBReproducer.cpp
The file was modifiedlldb/bindings/interface/SBTrace.i
The file was modifiedlldb/include/lldb/API/SBTarget.h
The file was removedlldb/bindings/interface/SBTraceOptions.i
The file was removedlldb/include/lldb/API/SBTraceOptions.h
The file was modifiedlldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
The file was modifiedlldb/include/lldb/API/SBTrace.h
The file was modifiedlldb/source/Target/Trace.cpp
The file was modifiedlldb/source/API/SBTarget.cpp
The file was modifiedlldb/source/Plugins/Process/Linux/IntelPTManager.cpp
The file was modifiedlldb/source/Target/Target.cpp
The file was modifiedlldb/include/lldb/API/SBProcess.h
The file was modifiedlldb/docs/lldb-gdb-remote.txt
The file was removedlldb/include/lldb/Utility/TraceOptions.h
The file was modifiedlldb/docs/design/overview.rst
The file was removedlldb/source/API/SBTraceOptions.cpp
The file was modifiedlldb/include/lldb/API/SBStructuredData.h
The file was modifiedlldb/test/API/commands/trace/TestTraceDumpInstructions.py
The file was modifiedlldb/source/API/SBProcess.cpp
The file was modifiedlldb/test/API/commands/trace/TestTraceSchema.py
The file was modifiedlldb/source/API/SBTrace.cpp
The file was modifiedlldb/packages/Python/lldbsuite/test/dotest.py
The file was modifiedlldb/source/API/SBStructuredData.cpp
The file was modifiedlldb/bindings/interface/SBProcess.i
The file was modifiedlldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h
The file was addedlldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py
The file was modifiedlldb/source/Commands/CommandObjectTrace.cpp
The file was addedlldb/source/Plugins/Trace/intel-pt/TraceIntelPTConstants.h
Commit d01e673a9f046913070bd950183480c9bd15956b by sbc
[lld][WebAssembly] Fix crash calling weakly undefined function in PIC code

Differential Revision: https://reviews.llvm.org/D104495
The file was modifiedlld/wasm/Writer.cpp
The file was modifiedlld/wasm/InputChunks.cpp
The file was modifiedlld/test/wasm/weak-undefined-pic.s
Commit 722c51473c7a3bfe13d929734615a3b46d44c09a by vsapsai
[clang][AST] Make `getLocalOrImportedSubmoduleID` work with const `Module*`. NFC.

Differential Revision: https://reviews.llvm.org/D104350
The file was modifiedclang/include/clang/Serialization/ASTWriter.h
The file was modifiedclang/lib/Serialization/ASTWriter.cpp