[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


[lldb-dev] Question about LLDB SBEvent C++ API

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

The SBEvent API has GetType() method on it, which returns a uint32_t,
however I didn't find any documentation on how to interpret this
uint32_t... Is there a enum for it somewhere?

There is a GetDescription() API to create a human-readable string, but I'd
rather to inspect the event type programmatically.

Overall I find the API is not documented very well, which makes it quite
hard to use... For example, I didn't find a place that explains what are
the the possible event types and what data they carry. (I didn't even find
an enum!) Are there any good resources that I might not discover yet?

Also any advice on how to use LLDB C++ API (without prior knowledge) would
be much appreciated!

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