Re: [lldb-dev] Querying build configuration of (lib)lldb from tests.

2018-02-15 Thread Pavel Labath via lldb-dev
I've created a patch implementing this in . Let me know what you think of it (particularly of the parts that will become the "stable API"). On 14 February 2018 at 18:43, Greg Clayton wrote: > I second Jim's idea for a static function on SBDebugger that returns a

Re: [lldb-dev] Querying build configuration of (lib)lldb from tests.

2018-02-14 Thread Greg Clayton via lldb-dev
I second Jim's idea for a static function on SBDebugger that returns a SBStructuredData > On Feb 14, 2018, at 10:31 AM, Jim Ingham via lldb-dev > wrote: > > The idea of having a static function in SBDebugger that returns lldb > configuration information seems good to me. > > Having the API r

Re: [lldb-dev] Querying build configuration of (lib)lldb from tests.

2018-02-14 Thread Jim Ingham via lldb-dev
The idea of having a static function in SBDebugger that returns lldb configuration information seems good to me. Having the API return an SBStructuredData with the full configuration information seems like a pretty future-proof way to do this. I can't see that this data will get sufficiently l

[lldb-dev] Querying build configuration of (lib)lldb from tests.

2018-02-05 Thread Pavel Labath via lldb-dev
Hello all, In we have a feature that only works when lldb was built with xml support. To test this, we need the test to know whether we were build with xml support. The typical llvm solution would be to generate some dotest equivalent of lit.site.cfg at build ti