aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2010-05-25 07:38:18 +0000
committerPierre Muller <muller@sourceware.org>2010-05-25 07:38:18 +0000
commit5572ce1f3da0a31e5e3692fac6694b013b8cc0fb (patch)
tree384f919196384417fa483d72c903c819106d0fdb /gdb/windows-nat.c
parent1239de13cf7b1575412a83377cdf580067cef402 (diff)
downloadgdb-5572ce1f3da0a31e5e3692fac6694b013b8cc0fb.zip
gdb-5572ce1f3da0a31e5e3692fac6694b013b8cc0fb.tar.gz
gdb-5572ce1f3da0a31e5e3692fac6694b013b8cc0fb.tar.bz2
* windows-nat.c (display_selector): Call GetLastError to give better
failure explanation.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 5966b88..0ec393f 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -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;
}
}