How to use --tty=<tty> with lldb-mi


I’m using lldb-mi to debug on OS X and I’m trying to redirect the debuggee output to a tty, but it seems like it wants to use the lldb-launcher (Darwin-debug) add on and open a terminal instead.

Is there a way to have the debuggee stdin/stdout redirection be sent to a tty of my specification?



The way to do this in the MI interface is with the command: inferior-tty-set. Unfortunately, that command isn't implemented in the lldb-mi:

bool CMICmdCmdInferiorTtySet::Execute() {
  // Do nothing

  return MIstatus::success;

This should set the target.{input/output/error}-path to the tty it was passed.