mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
Fix format specification in display_selector() (again)
DWORD type is not a long on 64-bit Cygwin, because that it is LP64. Explicitly cast DWORD values to unsigned long and use an appropriate format. gdb/ChangeLog: 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk> * windows-nat.c (display_selector): Fixed format specifications for 64-bit Cygwin.
This commit is contained in:
parent
077cad8ec1
commit
e432ccf1cb
@ -1,3 +1,8 @@
|
||||
2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
|
||||
|
||||
* windows-nat.c (display_selector): Fixed format specifications
|
||||
for 64-bit Cygwin.
|
||||
|
||||
2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
|
||||
|
||||
* infrun.c (follow_exec): Call target_terminal::ours_for_output.
|
||||
|
@ -1096,14 +1096,16 @@ display_selector (HANDLE thread, DWORD sel)
|
||||
puts_filtered ("Code (Exec/Read, Conf");
|
||||
break;
|
||||
default:
|
||||
printf_filtered ("Unknown type 0x%lx",info.HighWord.Bits.Type);
|
||||
printf_filtered ("Unknown type 0x%lx",
|
||||
(unsigned long) 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 = %ld. ", info.HighWord.Bits.Dpl);
|
||||
printf_filtered ("Priviledge level = %ld. ",
|
||||
(unsigned long) info.HighWord.Bits.Dpl);
|
||||
if (info.HighWord.Bits.Granularity)
|
||||
puts_filtered ("Page granular.\n");
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user