Index: /trunk/src/VBox/Runtime/common/dbg/dbgmoddbghelp.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/dbg/dbgmoddbghelp.cpp	(revision 75187)
+++ /trunk/src/VBox/Runtime/common/dbg/dbgmoddbghelp.cpp	(revision 75188)
@@ -57,4 +57,5 @@
     PRTDBGMODINT    pMod;
     uint64_t        uModAddr;
+    RTLDRADDR       uNextRva;
 
     /** UTF-8 version of the previous file name. */
@@ -367,6 +368,6 @@
 
 
-/** @callback_method_impl{FNRTLDRENUMSEGS, Copies the PE segments over into
- *                       the container.} */
+/** @callback_method_impl{FNRTLDRENUMSEGS,
+ * Copies the PE segments over into the container.} */
 static DECLCALLBACK(int) rtDbgModDbgHelpAddSegmentsCallback(RTLDRMOD hLdrMod, PCRTLDRSEG pSeg, void *pvUser)
 {
@@ -380,9 +381,16 @@
     Assert(!pSeg->pszName[pSeg->cchName]);
 
-    if (!pSeg->RVA)
+    RTLDRADDR cb   = RT_MAX(pSeg->cb, pSeg->cbMapped);
+    RTLDRADDR uRva = pSeg->RVA;
+    if (!uRva)
         pArgs->uModAddr = pSeg->LinkAddress;
-
-    RTLDRADDR cb = RT_MAX(pSeg->cb, pSeg->cbMapped);
-    return RTDbgModSegmentAdd(pArgs->hCnt, pSeg->RVA, cb, pSeg->pszName, 0 /*fFlags*/, NULL);
+    else if (uRva == NIL_RTLDRADDR)
+    {
+        cb   = 0;
+        uRva = pArgs->uNextRva;
+    }
+    pArgs->uNextRva = uRva + cb;
+
+    return RTDbgModSegmentAdd(pArgs->hCnt, uRva, cb, pSeg->pszName, 0 /*fFlags*/, NULL);
 }
 
@@ -457,4 +465,6 @@
                     {
                         rc = RTErrConvertFromWin32(GetLastError());
+                        if (RT_SUCCESS_NP(rc))
+                            rc = VERR_DBG_NO_MATCHING_INTERPRETER;
                         LogFlow(("rtDbgModDbgHelp_TryOpen: Error loading the module '%s' at %#llx: %Rrc (%u)\n",
                                  pMod->pszDbgFile, (uint64_t)uImageBase, rc, GetLastError()));
@@ -470,4 +480,6 @@
             {
                 rc = RTErrConvertFromWin32(GetLastError());
+                if (RT_SUCCESS_NP(rc))
+                    rc = VERR_DBG_NO_MATCHING_INTERPRETER;
                 LogFlow(("rtDbgModDbgHelp_TryOpen: SymInitialize failed: %Rrc (%u)\n", rc, GetLastError()));
             }
