}elseif(exitProgram.exactMatch(line)||line.contains(QLatin1String("The program no longer exists"))||line.contains(QLatin1String("Kill the program being debugged"))){
}elseif(exitProgram.match(line).hasMatch()||line.contains(QLatin1String("The program no longer exists"))||line.contains(QLatin1String("Kill the program being debugged"))){
// if there are still commands to execute remove them to remove unneeded output