为了处理 64 位应用程序,所有 Solaris 调试工具均已进行了更新。这些工具包括 truss(1) 命令、/proc 工具 (proc(1)) 和 mdb。
dbx 调试器作为 Sun Studio 工具套件的一部分提供,可用来调试 64 位应用程序。其余的工具是 Solaris 发行版附带的。
所有这些工具的选项都保持不变。mdb 中提供了许多增强功能,用来调试 64 位程序。 正如所预期的那样,使用 "*" 取消引用指针时,对于 64 位程序将取消引用 8 个字节,对于 32 位程序取消引用 4 个字节。 此外,还提供了以下修饰符:
Additional ?, /, = modifiers: g (8) Display 8 bytes in unsigned octal G (8) Display 8 bytes in signed octal e (8) Display 8 bytes in signed decimal E (8) Display 8 bytes in unsigned decimal J (8) Display 8 bytes in hexadecimal K (n) Print pointer or long in hexadecimal Display 4 bytes for 32-bit programs and 8 bytes for 64-bit programs. y (8) Print 8 bytes in date format Additional ? and / modifiers: M <value> <mask> Apply <mask> and compare for 8-byte value; move '.' to matching location. Z (8) write 8 bytes