> In gdb, I can use commands such as "frame 1", "frame 2" to select a > particular stack frame, and "info locals" to print the stack variables. > > Are there equivalents in mdb? I've found ::stack and ::vars, but I feel > like I'm missing something. > > Thanks in advance, > > --Wez.
Nope, you're not missing anything. mdb doesn't provide support for examining local variables (or anything not defined the raw ELF symbol tables). In general the design of mdb is to be complementary to debuggers like gdb and dbx, not to reimplement all of them. If you need to look at a local variable in mdb you need to examine the assembly language and see where it is stored. -Mike -- Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/