On Thu, Aug 27, 2015 at 05:05:23PM +0000, Zachary Turner via lldb-dev wrote:
> Well I'm xfailing it for now, but this other method seems kind of hackish
> to me because it means the inferior and the debugger have to coordinate
> with each other, which means the test has to know about the executable and
> the executable has to know about the test.  I'd rather remove one direction
> of this coupling.
> 
> Eventually my plan is to introduce a test_util.a which all of the test
> executables link against.  We can provide a platform-independent
> wait_for_debugger_to_attach() method here that just does the right thing on
> all platforms.  This way the tests can be written without having to do this
> funny business :)

What about fixing lldb to prefer to debug via launch instead of attach 
depending on the platform???

I don't see how you could write a wait_for_debugger_to_attach() that would work 
reliably.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to