diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2021-07-12 22:32:26 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2021-07-12 22:32:26 +0000 |
commit | fee98dd9f899adbf08e5157f161bdac725897566 (patch) | |
tree | d84d9c56217d305ad45b24ee70db1f50dd210639 /src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp | |
parent | 8754335aac04ffb9b505ef98172f8d15847bbc4a (diff) | |
download | VirtualBox-svn-fee98dd9f899adbf08e5157f161bdac725897566.tar.gz |
VMM/Guru: Print the assertion message strings if they aren't empty. bugref:10064 ticketref:20090
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@90160 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp')
-rw-r--r-- | src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp b/src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp index d3b9a0182d3..d6c8cc89e21 100644 --- a/src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp +++ b/src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp @@ -606,8 +606,23 @@ VMMR3DECL(void) VMMR3FatalDump(PVM pVM, PVMCPU pVCpu, int rcErr) break; } + /* + * For some problems (e.g. VERR_INVALID_STATE in VMMR0.cpp), there could be + * additional details in the assertion messages. + */ default: { + const char *pszMsg1 = VMMR3GetRZAssertMsg1(pVM); + while (pszMsg1 && *pszMsg1 == '\n') + pszMsg1++; + if (pszMsg1 && *pszMsg1 != '\0') + pHlp->pfnPrintf(pHlp, "AssertMsg1: %s\n", pszMsg1); + + const char *pszMsg2 = VMMR3GetRZAssertMsg2(pVM); + while (pszMsg2 && *pszMsg2 == '\n') + pszMsg2++; + if (pszMsg2 && *pszMsg2 != '\0') + pHlp->pfnPrintf(pHlp, "AssertMsg2: %s\n", pszMsg2); break; } |