[lldb-dev] LLDB C++ API causes SIGSEGV

2020-03-08 Thread Rui Liu via lldb-dev
Hi LLDB devs,

I'm trying to build a debugger integration that uses LLDB C++ API. Due to
lack of documentation, I'm basically using the examples in the python API
as a guidance.

I had following code, which basically contains one line creating a
SBDebugger, but it generates a SIGSEGV fault..

#include 
using namespace lldb;

int main()
{
SBDebugger debugger = SBDebugger::Create();
}

Did I do something wrong?

Kind regards,
Rui
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] LLDB C++ API causes SIGSEGV

2020-03-08 Thread Jason Molenda via lldb-dev
Hi Rui, you need to call SBDebugger::Terminate() before your program exits.


On 03/08/20 01:54 PM, Rui Liu via lldb-dev   wrote: 
> 
> 
> Hi LLDB devs,
> 
> I'm trying to build a debugger integration that uses LLDB C++ API. Due to 
> lack of documentation, I'm basically using the examples in the python API as 
> a guidance.
> 
> I had following code, which basically contains one line creating a 
> SBDebugger, but it generates a SIGSEGV fault..
> 
> #include 
> using namespace lldb;
> 
> int main()
> {
>  SBDebugger debugger = SBDebugger::Create();
> }
> 
> Did I do something wrong?
> 
> Kind regards,
> Rui
> 
> 
> ___
> lldb-dev mailing list
> lldb-dev@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
> 
>
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev