[lldb-mi] unable to debug GTK applications


I am not sure if this is the correct mailing list for this question, so excuse me if its not.
I am trying a GTK application using lldb-mi, however, the application terminates immediately with the error message:

@“15:47:16: Error: Unable to initialize GTK+, is DISPLAY set properly?\r\n”

Running the same using “pure” lldb works as expected.

Using lldb-6.0 on Debian stretch

Any hints?

Using Eclipse the lldb-server environment is empty as nothing sets it.

I tried the attached patch (a copy from StartDebugserverProcess()) which does
fix it for local debugging but it is apparently a wrong patch as it provides
to the application environment from gdbserver, not from Eclipse as it should
by QEnvironmentHexEncoded packets.

As I should do something else is there some known status of the environment
passing? Isn't it some unimplemented Linux-port feature?


1 (640 Bytes)