diff options
author | Владимир Мартьянов <vilgeforce@gmail.com> | 2019-03-17 12:48:24 +0300 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2019-03-17 14:41:12 -0400 |
commit | fce4c071610c0d01b70b172ee538e831023c1c2f (patch) | |
tree | 8883a55f81b18b93166c721655e8801b6059b5ba /gdb/windows-nat.c | |
parent | f7f0a12390fc514a5b7b38d1b23397d87532ce05 (diff) | |
download | gdb-fce4c071610c0d01b70b172ee538e831023c1c2f.zip gdb-fce4c071610c0d01b70b172ee538e831023c1c2f.tar.gz gdb-fce4c071610c0d01b70b172ee538e831023c1c2f.tar.bz2 |
Fix wrong format specification in display_selector()
There are a wrong format strings in function display_selector() in
file windows-nat.c. This leads to build error using Cygwin on Windows.
LDT_ENTRY.HighWord is a DWORD, which is unsigned long int, so the
format specification should be for long int, not simply int.
gdb/ChangeLog:
2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
PR gdb/24351
* windows-nat.c (display_selector): Format specifications fixed
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 5caaa3b..c8acadd 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1097,14 +1097,14 @@ display_selector (HANDLE thread, DWORD sel) puts_filtered ("Code (Exec/Read, Conf"); break; default: - printf_filtered ("Unknown type 0x%x",info.HighWord.Bits.Type); + printf_filtered ("Unknown type 0x%lx",info.HighWord.Bits.Type); } if ((info.HighWord.Bits.Type & 0x1) == 0) puts_filtered(", N.Acc"); puts_filtered (")\n"); if ((info.HighWord.Bits.Type & 0x10) == 0) puts_filtered("System selector "); - printf_filtered ("Priviledge level = %d. ", info.HighWord.Bits.Dpl); + printf_filtered ("Priviledge level = %ld. ", info.HighWord.Bits.Dpl); if (info.HighWord.Bits.Granularity) puts_filtered ("Page granular.\n"); else |