================
@@ -97,3 +97,33 @@ for any source file and line breakpoints that the IDE set 
using:
 ::
 
    (lldb) breakpoint list --verbose
+
+How Do I Find Out Which Features My Version Of LLDB Has?
+--------------------------------------------------------
+
+Some features such as XML parsing are optional and must be enabled when LLDB is
+built. To check which features your copy of LLDB has enabled, use the 
``version``
+command from within LLDB:
+
+::
+
+   (lldb) version -v
+
+.. note::
+   This feature was added in LLDB 22. If you are using an earlier version, you
+   can use the method below.
+
+Alternatively, you can check the shared library dependencies of LLDB. For 
example
+on Linux you can use the following command:
----------------
charles-zablit wrote:

> If I understand correctly, this is for a running process

I was surprised it worked as well, turns out I had a running `lldb` I forgot 
about.

`dumpbin.exe` also works well (only from the VS shell) and can list delay 
loaded library as well. However, it's not recursive, running it on `lldb.exe` 
does not show the dependencies of `liblldb.dll`, and therefore does not show 
`python310.dll`. Running it on `liblldb.dll` prints Python.

```
dumpbin /dependents 
C:\Users\charleszablit\AppData\Local\Programs\Swift\Toolchains\0.0.0+Asserts\usr\bin\lldb.exe
Microsoft (R) COFF/PE Dumper Version 14.44.35215.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file 
C:\Users\charleszablit\AppData\Local\Programs\Swift\Toolchains\0.0.0+Asserts\usr\bin\lldb.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

    ADVAPI32.dll
    ntdll.dll
    KERNEL32.dll
    MSVCP140.dll
    VCRUNTIME140.dll
    VCRUNTIME140_1.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    api-ms-win-crt-heap-l1-1-0.dll
    api-ms-win-crt-convert-l1-1-0.dll
    api-ms-win-crt-stdio-l1-1-0.dll
    api-ms-win-crt-locale-l1-1-0.dll
    api-ms-win-crt-string-l1-1-0.dll
    api-ms-win-crt-utility-l1-1-0.dll
    api-ms-win-crt-math-l1-1-0.dll
    api-ms-win-crt-environment-l1-1-0.dll

  Image has the following delay load dependencies:

    liblldb.dll
    SHELL32.dll
    ole32.dll

  Summary

        3000 .data
        4000 .pdata
       14000 .rdata
        1000 .reloc
        1000 .rsrc
       38000 .text
```


To recursively list the DLLs required by lldb.exe, I have been using 
[`Dependencies`](https://github.com/lucasg/Dependencies), but it's a GUI and an 
external tool.

I think it's reasonable to expect a dev to have MSVC installed and that they 
can use `dumpbin.exe` rather than suggesting a third party tool.

https://github.com/llvm/llvm-project/pull/171468
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to