aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/windows-nat.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fa4ab88..da246a0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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;
}
}