如何从Windows转储文件(procdump)导出已加载库的列表

问题描述 投票:0回答:1

我正在Visual Studio 2019中查看* .dmp文件-它显示了加载系统DLL,文件名,版本,文件夹等的列表。

我想复制此信息以粘贴到Excel中,但是不能从Visual Studio复制它。

任何人都可以将其从转储文件导出到文本文件吗?

.net windbg crash-dumps procdump
1个回答
0
投票

您是否在谈论这些数据,例如粘贴在下面?

00120000 00148000   cdb        (deferred)             
    Image path: cdb.exe
    Image name: cdb.exe
    Image was built with /Brepro flag.
    Timestamp:        0324D46E (This is a reproducible build file hash, not a timestamp)
    CheckSum:         00025C20
    ImageSize:        00028000
    File version:     10.0.18362.1
    Product version:  10.0.18362.1
    File flags:       0 (Mask 3F)
    File OS:          40004 NT Win32
    File type:        1.0 App
    File date:        00000000.00000000
    Translations:     0409.04b0
    Information from resource tables:
        CompanyName:      Microsoft Corporation
        ProductName:      Microsoft® Windows® Operating System
        InternalName:     CDB.Exe
        OriginalFilename: CDB.Exe
        ProductVersion:   10.0.18362.1
        FileVersion:      10.0.18362.1 (WinBuild.160101.0800)
        FileDescription:  Symbolic Debugger for Windows
        LegalCopyright:   © Microsoft Corporation. All rights reserved.

这是通过windbg中的lmv命令产生的(我不知道它在vs中是什么等效项,>

因为您标记了windbg,所以我会给您一个简短的演示,将这些信息收集到文本文件中

D:\>cdb -logo cdbmods.txt -c "lmv;q" -z cdb.dmp

您可以复制粘贴,转置等的输出

D:\>dir /b *cdb*
cdb.dmp
cdbmods.txt

D:\>wc -l cdbmods.txt
894 cdbmods.txt


D:\>sed -n 44,48p cdbmods.txt
00360000 00388000   cdb        (deferred)
    Image path: cdb.exe
    Image name: cdb.exe
    Image was built with /Brepro flag.
    Timestamp:        0324D46E (This is a reproducible build file hash, not a timestamp)

D:\>
© www.soinside.com 2019 - 2024. All rights reserved.