现在的位置: 首页 > 综合 > 正文

windbg 遍历 seh 链表

2013年10月01日 ⁄ 综合 ⁄ 共 1761字 ⁄ 字号 评论关闭
1. 手动遍历
0:000> !teb
TEB at 7ffdf000
    ExceptionList:        001bf100
    StackBase:            001c0000
    StackLimit:           001bb000
    SubSystemTib:         00000000
    FiberData:            00001e00
    ArbitraryUserPointer: 00000000
    Self:                 7ffdf000
    EnvironmentPointer:   00000000
    ClientId:             000012cc . 000012d0
    RpcHandle:            00000000
    Tls Storage:          7ffdf02c
    PEB Address:          7ffd4000
    LastErrorValue:       0
    LastStatusValue:      c0000034
    Count Owned Locks:    0
    HardErrorMode:        0
0:000> dps 001bf100 l2
001bf100  001bf7c8
001bf104  752b1425 KERNELBASE!_except_handler4
0:000> dps 001bf7c8 l2
001bf7c8  001bf890
001bf7cc  008b80d0 MineSweeper!iswspace+0x1118
0:000> dps 001bf890 l2
001bf890  001bf8dc
001bf894  0086e562 MineSweeper!_except_handler4
0:000> dps 001bf8dc l2
001bf8dc  ffffffff
001bf8e0  7700e115 ntdll!_except_handler4
2. 自动遍历 用dt,摘自 <<软件调试>>
0:000> dt ntdll!_EXCEPTION_REGISTRATION_RECORD -l next poi(7ffdf000)
next at 0x1bf100
---------------------------------------------
   +0x000 Next             : 0x001bf7c8 _EXCEPTION_REGISTRATION_RECORD
   +0x004 Handler          : 0x752b1425     _EXCEPTION_DISPOSITION  KERNELBASE!_except_handler4+0

next at 0x1bf7c8
---------------------------------------------
   +0x000 Next             : 0x001bf890 _EXCEPTION_REGISTRATION_RECORD
   +0x004 Handler          : 0x008b80d0     _EXCEPTION_DISPOSITION  MineSweeper!iswspace+0

next at 0x1bf890
---------------------------------------------
   +0x000 Next             : 0x001bf8dc _EXCEPTION_REGISTRATION_RECORD
   +0x004 Handler          : 0x0086e562     _EXCEPTION_DISPOSITION  MineSweeper!_except_handler4+0

next at 0x1bf8dc
---------------------------------------------
   +0x000 Next             : 0xffffffff _EXCEPTION_REGISTRATION_RECORD
   +0x004 Handler          : 0x7700e115     _EXCEPTION_DISPOSITION  ntdll!_except_handler4+0

next at 0xffffffff
---------------------------------------------
   +0x000 Next             : ???? 
   +0x004 Handler          : ???? 

抱歉!评论已关闭.