如何从!threads打印ThreadOBJ(CLR线程)的内容?

时间:2017-06-21 07:53:27

标签: .net windbg sos

我想通过!do 000000da316cd5b0获取ThreadOBJ的内容,它来自!线程,但是它失败了,它似乎不是托管线程,它看起来像是一个CLR本机线程。 那么如何使用地址000000da316cd5b0打印ThreadOBJ的内容?

0:000> !threads
ThreadCount:      179
UnstartedThread:  0
BackgroundThread: 179
PendingThread:    0
DeadThread:       0
Hosted Runtime:   no

Lock  
   ID OSID ThreadOBJ           State GC Mode     GC Alloc Context                  Domain           Count Apt Exception
   6    1 1538 000000d5e6ca0340    28220 Preemptive  0000000000000000:0000000000000000 000000d5e6c98550 0     Ukn 
  13    2 37b8 000000da31687880    2b220 Preemptive  000000D8E77C5798:000000D8E77C74F8 000000d5e6c98550 0     MTA (Finalizer) 
  15    3 108c 000000da316cd5b0  102a220 Preemptive  0000000000000000:0000000000000000 000000d5e6c98550 0     MTA (Threadpool Worker)

当我键入" dt clr!thread 000000da316cd5b0"时,它表示未找到Symbol clr!thread。

0:048> dt  clr!thread 000000da316cd5b0
Symbol clr!thread not found. 

0 个答案:

没有答案