mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
* windows-nat.c (display_selector): Call GetLastError to give better
failure explanation.
This commit is contained in:
parent
1239de13cf
commit
5572ce1f3d
@ -1,3 +1,8 @@
|
||||
2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
* windows-nat.c (display_selector): Call GetLastError to give better
|
||||
failure explanation.
|
||||
|
||||
2010-05-24 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* config.in: Regenerate.
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user