[Lldb-commits] [lldb] [LLDB] Export DWARF Parser symbols for external language plugins (PR #67851)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 29 15:16:28 PDT 2023
clayborg wrote:
So no plug-ins currently exist in the lldb_private namespace. I would rather not have all plug-in code end up in the lldb_private namespace either if people want access to these unsafe APIs outside of lldb. Maybe we should be creating a lldb_plugins namespace, and each plugin would have its own namespace inside this, so the DWARF stuff may be in:
```
namespace lldb_plugins {
namespace dwarf {
...
}
}
```
Then add new cmake flags as needed to export only certain plugins if/when needed. Don't need to do all plug-ins in this new namespace with this patch, just the DWARF code. We can then allow users to specify exactly what they want to export and it can limit it to just what is needed.
But I am still not a fan of exporting private APIs that are going to change all of the time.
https://github.com/llvm/llvm-project/pull/67851
More information about the lldb-commits
mailing list