[lldb-dev] C++ API: Passing information from debuggee to debugger
Vince Harron
vince at nethacker.com
Tue Jun 2 09:32:20 PDT 2015
Hi Eugene,
Thanks for the bug report!
Maybe try this: Set a breakpoint in a function. When the inferior wants to
pass data to the debugger, call that function. Debugger can read whatever
it wants from the inferior when it gets the breakpoint notification.
On Jun 1, 2015 5:51 PM, "Eugene Birukov" <eugenebi at hotmail.com> wrote:
> Hi,
>
> I need the deguggee to stop and pass some information to the debugger - if
> the debugger is attached, that is. And I want to do it from different
> threads in concurrent manner. So, I thought maybe I use run-time signals on
> Linux: i.e. the thread would:
>
> - Fill out some buffer with data the debugger needs to see
> - Send signal 35 to itself passing the address of the buffer as a
> payload:
>
>
>
> - sigval value;
> - value.sival_ptr = address;
> - sigqueue(gettid(), 35, value);
>
>
>
> - In the signal handler just ignore the signal
>
>
> If debugger is attached, it will see the signal and inspect
> info->si_value.sival_ptr. But unfortunately LLDB reports only signal number
> and drops the value on the floor.
>
> So, is there any other "legal" way to achieve what I need?
>
> Thanks,
> Eugene
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150602/3ff9b3a9/attachment.html>
More information about the lldb-dev
mailing list