首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何用windbg输出部分结果!da地址?

如何用windbg输出部分结果!da地址?
EN

Stack Overflow用户
提问于 2016-09-06 10:23:40
回答 1查看 418关注 0票数 1

如果数组包含100000000项,那么输出所有项目太长了,所以我可以知道,如果我只想输出10项包含地址,如!da前10位地址,该如何处理?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-09-06 11:01:39

sos !da命令接受-start-length参数:

代码语言:javascript
复制
 -start <startIndex>: optional, only supported for single dimension array. 
                      Specify from which index the command shows the elements.
 -length <length>:    optional, only supported for single dimension array. 
                      Specify how many elements to show.

索塞克斯中,可以将!mdt-start:-count:参数一起使用:

代码语言:javascript
复制
!sosex.mdt [typename | paramname | localname | MT] [ADDR] 
           [-r[:level]] [-e[:level]] [-start:index] [-count:n]

或者你可以使用NetExt!wdo命令适用于数组,并具有限制索引的/start/end参数:

代码语言:javascript
复制
!wdo [/forcearray] [/shownull] [/noheader] [/noindex] [/mt <expr>]
     [/start <expr>] [/end <expr>] <expr>
  /mt <expr> - mt,Method table for value objects (space-delimited)
  <expr> - Address,Object Address
  /start <expr> - Starting index to show in an array (space-delimited)
  /end <expr> - Ending index to show in an array (space-delimited)
  /forcearray - For Byte[] and Char[] arrays show items not the string
  /shownull - For arrays will show items that are null
  /noheader - Display only object address and field and values
  /noindex - For arrays it will show values without the index
  /tokens - show class and type tokens for fields
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39346656

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档