* windows-nat.c (display_selector): Call GetLastError to give better

failure explanation.
This commit is contained in:
Pierre Muller
2010-05-25 07:38:18 +00:00
parent 1239de13cf
commit 5572ce1f3d
2 changed files with 10 additions and 1 deletions

View File

@@ -1032,7 +1032,11 @@ display_selector (HANDLE thread, DWORD sel)
}
else
{
printf_filtered ("Invalid selector 0x%lx.\n",sel);
DWORD err = GetLastError ();
if (err == ERROR_NOT_SUPPORTED)
printf_filtered ("Function not supported\n");
else
printf_filtered ("Invalid selector 0x%lx.\n",sel);
return 0;
}
}