Nerixyz wrote:

> What's the best easiest way to get one?

Assuming you have some way to run an interactive shell there:

- Build LLDB (with debug symbols)
- Run this specific test with `-v` - e.g. `bin/llvm-lit -v 
<llvm-project-root>/lldb/test/Shell/SymbolFile/NativePDB/simple-types.cpp`
- This should fail, but it will build the required files
- In the lit output, you should see that `lldb-test symbols 
.../Output/simple-types.cpp.tmp.exe` was executed.
- Run this command in a debugger. **Make sure to set 
`LLDB_USE_NATIVE_PDB_READER=1`.** The debugger should break when the assertion 
is hit and you can get a backtrace. For example, in LLDB: 
   ```console
   > export LLDB_USE_NATIVE_PDB_READER=1
   > lldb ..../bin/lldb-test.exe -- symbols 
..../NativePDB/Output/simple-types.cpp.tmp.exe
   (lldb) r
   ...
   (lldb) bt
   ```

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

Reply via email to