diff options
Diffstat (limited to 'lldb/docs/resources')
| -rw-r--r-- | lldb/docs/resources/build.rst | 5 | ||||
| -rw-r--r-- | lldb/docs/resources/lldbgdbremote.md | 16 |
2 files changed, 20 insertions, 1 deletions
diff --git a/lldb/docs/resources/build.rst b/lldb/docs/resources/build.rst index 4bbec891da0b..0db8c92ad49d 100644 --- a/lldb/docs/resources/build.rst +++ b/lldb/docs/resources/build.rst @@ -204,12 +204,13 @@ checked out above, but now we will have multiple build-trees: Run CMake with ``-B`` pointing to a new directory for the provided build-tree\ :sup:`1` and the positional argument pointing to the ``llvm`` -directory in the source-tree. Note that we leave out LLDB here and only include +directory in the source-tree.\ :sup:`2` Note that we leave out LLDB here and only include Clang. Then we build the ``ALL`` target with ninja: :: $ cmake -B /path/to/llvm-build -G Ninja \ + -DCMAKE_BUILD_TYPE=[<build type>] \ -DLLVM_ENABLE_PROJECTS=clang \ -DCMAKE_BUILD_TYPE=Release \ [<more cmake options>] /path/to/llvm-project/llvm @@ -238,6 +239,8 @@ remove it from the Ninja command. #. The ``-B`` argument was undocumented for a while and is only officially supported since `CMake version 3.14 <https://cmake.org/cmake/help/v3.14/release/3.14.html#command-line>`_ + #. If you want to have a standalone LLDB build with tests enabled, you also + need to pass in ``-DLLVM_ENABLE_RUNTIME='libcxx;libcxxabi;libunwind'`` to your CMake invocation when configuring your LLVM standalone build. .. _CommonCMakeOptions: diff --git a/lldb/docs/resources/lldbgdbremote.md b/lldb/docs/resources/lldbgdbremote.md index 80c68091ecd0..41628cffcc56 100644 --- a/lldb/docs/resources/lldbgdbremote.md +++ b/lldb/docs/resources/lldbgdbremote.md @@ -1998,6 +1998,22 @@ threads (live system debug) / cores (JTAG) in your program have stopped and allows LLDB to display and control your program correctly. +## qWasmCallStack + +Get the Wasm call stack for the given thread id. This returns a hex-encoded +list of PC values, one for each frame of the call stack. To match the Wasm +specification, the addresses are encoded in little endian byte order, even if +the endian of the Wasm runtime's host is not little endian. + +``` +send packet: $qWasmCallStack:202dbe040#08 +read packet: $9c01000000000040e501000000000040fe01000000000040# +``` + +**Priority to Implement:** Only required for Wasm support. This packed is +supported by the [WAMR](https://github.com/bytecodealliance/wasm-micro-runtime) +and [V8](https://v8.dev) Wasm runtimes. + ## qWatchpointSupportInfo Get the number of hardware watchpoints available on the remote target. |
