Hello,

lldb-mi uses public API too and it works. Try to look how it implemented
there (see tools/lldb-mi/MICmdCmdBreak.cpp:232).

Thanks,
Ilia

On Thu, Mar 26, 2015 at 6:31 PM, Ziming Song <s.zim...@hotmail.com> wrote:

> Hi everyone, I'm doing a GUI frontend using lldb api, but the breakpoint
> created by code cannot make the program stop.
>
> The code for creating the breakpoint is:
>
> lldb::SBBreakpoint bp = 
> target_.BreakpointCreateByLocation(target_.GetExecutable().GetFilename(), 
> lineNumber);
>
>
> The breakpoint is valid, and I can get its description, but the program does 
> not stop on that breakpoint.
>
>
> I've set the async of debugger to false, and after launching the target, the 
> first state of the process is eStateExited, which means the breakpoint didn't 
> work (even if `bp.SetEnabled(true)`).
>
>
> Another question. If I'm able to make breakpoint work, how can I get notified 
> if the line number of that breakpoint change(like when the user set 
> breakpoint on a line which generates no code and the breakpoint moves to the 
> closest line that generates code).
>
>
> Thanks in advance.
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>
_______________________________________________
lldb-dev mailing list
lldb-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to