Detect automatically whether to use gdb or lldb.