Changeset View
Changeset View
Standalone View
Standalone View
debuggers/common/midebugsession.cpp
Show First 20 Lines • Show All 1171 Lines • ▼ Show 20 Line(s) | 1162 | { | |||
---|---|---|---|---|---|
1172 | // output, so "exited" message from gdb might have arrived before | 1172 | // output, so "exited" message from gdb might have arrived before | ||
1173 | // last application output. Get this last bit. | 1173 | // last application output. Get this last bit. | ||
1174 | 1174 | | |||
1175 | // Note: this method can be called when we open an invalid | 1175 | // Note: this method can be called when we open an invalid | ||
1176 | // core file. In that case, tty_ won't be set. | 1176 | // core file. In that case, tty_ won't be set. | ||
1177 | if (m_tty){ | 1177 | if (m_tty){ | ||
1178 | m_tty->readRemaining(); | 1178 | m_tty->readRemaining(); | ||
1179 | // Tty is no longer usable, delete it. Without this, QSocketNotifier | 1179 | // Tty is no longer usable, delete it. Without this, QSocketNotifier | ||
1180 | // will continiously bomd STTY with signals, so we need to either disable | 1180 | // will continuously bomd STTY with signals, so we need to either disable | ||
1181 | // QSocketNotifier, or delete STTY. The latter is simpler, since we can't | 1181 | // QSocketNotifier, or delete STTY. The latter is simpler, since we can't | ||
1182 | // reuse it for future debug sessions anyway. | 1182 | // reuse it for future debug sessions anyway. | ||
1183 | m_tty.reset(nullptr); | 1183 | m_tty.reset(nullptr); | ||
1184 | } | 1184 | } | ||
1185 | 1185 | | |||
1186 | stopDebugger(); | 1186 | stopDebugger(); | ||
1187 | 1187 | | |||
1188 | raiseEvent(program_exited); | 1188 | raiseEvent(program_exited); | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 1234 | { | |||
1244 | // output, so "exited" message from gdb might have arrived before | 1244 | // output, so "exited" message from gdb might have arrived before | ||
1245 | // last application output. Get this last bit. | 1245 | // last application output. Get this last bit. | ||
1246 | 1246 | | |||
1247 | // Note: this method can be called when we open an invalid | 1247 | // Note: this method can be called when we open an invalid | ||
1248 | // core file. In that case, tty_ won't be set. | 1248 | // core file. In that case, tty_ won't be set. | ||
1249 | if (m_tty){ | 1249 | if (m_tty){ | ||
1250 | m_tty->readRemaining(); | 1250 | m_tty->readRemaining(); | ||
1251 | // Tty is no longer usable, delete it. Without this, QSocketNotifier | 1251 | // Tty is no longer usable, delete it. Without this, QSocketNotifier | ||
1252 | // will continiously bomd STTY with signals, so we need to either disable | 1252 | // will continuously bomd STTY with signals, so we need to either disable | ||
1253 | // QSocketNotifier, or delete STTY. The latter is simpler, since we can't | 1253 | // QSocketNotifier, or delete STTY. The latter is simpler, since we can't | ||
1254 | // reuse it for future debug sessions anyway. | 1254 | // reuse it for future debug sessions anyway. | ||
1255 | m_tty.reset(nullptr); | 1255 | m_tty.reset(nullptr); | ||
1256 | } | 1256 | } | ||
1257 | 1257 | | |||
1258 | stopDebugger(); | 1258 | stopDebugger(); | ||
1259 | 1259 | | |||
1260 | raiseEvent(program_exited); | 1260 | raiseEvent(program_exited); | ||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |