mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[!] snippet GDT fixed
git-svn-id: https://pykd.svn.codeplex.com/svn@57229 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
1164af7442
commit
bea30af123
@ -24,7 +24,7 @@ def printGdtEntry( addr ):
|
|||||||
base = ( ptrDWord( addr + 8 ) << 32 ) + base
|
base = ( ptrDWord( addr + 8 ) << 32 ) + base
|
||||||
|
|
||||||
if attr & 0x800:
|
if attr & 0x800:
|
||||||
limit = limit << 12
|
limit = ( limit << 12 ) | 0xFFF
|
||||||
|
|
||||||
|
|
||||||
dprint( "attr: %x ( " % attr + "".join( [ ( attr & ( 1 << ( 12 - i ) ) ) and "1" or "0" for i in range(0,12) ] ) + " )" )
|
dprint( "attr: %x ( " % attr + "".join( [ ( attr & ( 1 << ( 12 - i ) ) ) and "1" or "0" for i in range(0,12) ] ) + " )" )
|
||||||
|
Loading…
Reference in New Issue
Block a user