On Wed, Oct 12, 2005 at 03:10:06PM -0400, Andrew Gallatin wrote:
> 
> Jonathan Adams writes:
>  > 
>  > You can just do:
>  > 
>  > > devnamesp::print [20]
>  > {   
>  >     [20].dn_name = 0xffffffff82a46ba0 "hci1394"
>  > ...
>  > }
>  > 
> 
> Here's a dumb question..
> 
> I'm coming from well over a decade of using gdb and dbx before that.
> With those debuggers, the debugger already knows the type (unless you
> pull an address out of thin air, or it is a void * or something).  All
> of the mdb examples I see show people specifying the type explicitly.
> However, from what you show above, it appears that specifying the type
> is not always needed.  Is this new, or have I just been looking
> at bad examples?

As in Jonathan's example, you can specify a global variable and mdb will
figure out the type. If we don't have a type for the given address, you
have to specify it. Also, for stack memory we don't have any type
information so you're stuck specifying the type explicitly.

Adam

-- 
Adam Leventhal, Solaris Kernel Development       http://blogs.sun.com/ahl

Reply via email to