LLDB-MI from Eclipse hangs

Hi,

I am currently working on integrating LLDB-MI in Eclipse CDT so that
it works more or less out of the box in the next CDT release due in
September (setting the lldb-mi path automatically, etc). For this
specific issue, I made it so that it simply does not send the
target-async command from Eclipse. I have worked around a few other
issues and I'll look at creating bugs in LLDB's Bugzilla and sending
patches to LLDB in the upcoming weeks.

Here are some issues I worked around but would like to fix on the LLDB side:
1. -breakpoint-insert doesn't handle locations that look like absolute
paths (because of leading /)
2. Executable path has to be absolute

This Eclipse integration is still very much in progress but in case
you are curious, the code is here:
https://github.com/MarkZ3/Eclipse-CDT-WIP/tree/lldb-mi

Regards,
Marc-Andre

Hi Marc-Andre!

Ok, I’ll review your patches. But if you have a couple of minutes, please fill the bug form at llvm.org/bugs first.

I am glad to hear this. We will be happy to help with any issues you run into.

If you have examples for any issues you run into, it would be great to get MI text snippets that we can run through the lldb-mi program on our end, it can help us to understand and reproduce any issues you run into.

1. -breakpoint-insert doesn't handle locations that look like absolute
paths (because of leading /)

Can you send an example?

2. Executable path has to be absolute

Does MI have the notion of setting a current working directory where things can then be relative to? If so, we should definitely fix this in LLDB. Example packet of setting the working directory and then the non working executable path would be nice.

Greg

I am glad to hear this. We will be happy to help with any issues you run into.

Thanks!

If you have examples for any issues you run into, it would be great to get MI text snippets that we can run through the lldb-mi program on our end, it can help us to understand and reproduce any issues you run into.

  1. -breakpoint-insert doesn’t handle locations that look like absolute
    paths (because of leading /)

Can you send an example?

I opened this bug: https://llvm.org/bugs/show_bug.cgi?id=28709

  1. Executable path has to be absolute

Does MI have the notion of setting a current working directory where things can then be relative to? If so, we should definitely fix this in LLDB. Example packet of setting the working directory and then the non working executable path would be nice.

This seems to work now on Mac. I’ll have to double check on Linux. About the notion in MI, the command is -environment-cd I think.

Regards,

Marc-Andre