Solaris 模块调试器指南

启动 MDB

现在,请对创建的崩溃转储运行 mdb 并检查其状态:

$ mdb unix.1 vmcore.1

Loading modules: [ unix krtld genunix ip nfs ipc ]

> ::status

debugging crash dump vmcore.1 (32-bit) from testsystem

operating system: 5.10 Generic (sun4u)

panic message: forced crash dump initiated at user request

在本指南提供的示例中,使用的是来自 32 位内核的崩溃转储。 此处提供的所有方法都适用于 64 位内核,并且已仔细区分了指针(其大小在 32 位和 64 位系统中不同)与固定大小的数量(相对于内核数据模型不变)。

UltraSPARC 工作站用于生成所提供的示例。您得到的结果可能随所使用系统的体系结构和型号的不同而不同。