Commit 2791975f authored by Niko Sams's avatar Niko Sams
Browse files

output exit code when debugee exits with a exit code != 0

BUG: 257088
parent 91532094
......@@ -660,7 +660,11 @@ void DebugSession::slotProgramStopped(const GDBMI::ResultRecord& r)
if (reason == "exited-normally" || reason == "exited")
{
programNoApp(i18n("Exited normally"));
if (r.hasField("exit-code")) {
programNoApp(i18n("Exited with return code: %1").arg(r["exit-code"].literal()));
} else {
programNoApp(i18n("Exited normally"));
}
programHasExited_ = true;
state_reload_needed = false;
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment