gdb/diagnose: use unified message for command error

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
xuxingliang 2024-10-20 23:20:27 +08:00 committed by Xiang Xiao
parent 5b477aacca
commit efb890abd3

View file

@ -76,8 +76,11 @@ class DiagnoseReport(gdb.Command):
result = command.diagnose()
except gdb.error as e:
result = {
"title": f"Command {name} failed",
"summary": "Command execution failed",
"result": "info",
"command": name,
"error": str(e),
"message": str(e),
}
gdb.write(f"Failed: {e}\n")