+/**
+ * format an ir_mode
+ */
+static HRESULT format_mode(DEBUGHELPER *pHelper, const void *addr, char *pResult, size_t max)
+{
+ ir_mode mode;
+
+ if (copy_from_debuggee(addr, pHelper, &mode, sizeof(mode)) != S_OK)
+ return E_FAIL;
+ if (format_ident(pHelper, mode.name, pResult, max) != S_OK)
+ return E_FAIL;
+ return S_OK;
+} /* format_mode */
+