« December 2009
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today
XML

Neat blogs

Navigation

Editing

Powered by Roller Weblogger.

statcounter.com

clustrmaps.com

Locations of visitors to this page

technorati.com

20080916 Tuesday September 16, 2008
mdb is convoluted

I don't like kernel debugging in Solaris. Look at the following example:

> Spe_HQ::print
{
    sc_rwlock = {
        _opaque = [ 0 ]
    }
    sc_policies = 0xffffff01ee346880
}
> Spe_HQ.sc_policies::print
mdb: failed to dereference symbol: unknown symbol name

First of all, ::print is cumbersome. And to get at what I want to see:

> Spe_HQ::print struct spe_control sc_policies | ::print struct spe_policy
{
    sp_id = 0
    sp_stripe_count = 0
    sp_interlace = 0
    sp_attr_expr = 0
    sp_name = 0
    sp_guuids = [ 0, 0, 0, 0, 0, 0, 0, 0 ]
    next = 0
}

Originally posted on Kool Aid Served Daily
Copyright (C) 2008, Kool Aid Served Daily

Trackback URL: http://blogs.sun.com/tdh/entry/mdb_is_convoluted
Comments:

Er, you're supposed to do 'Spe_HQ::print sc_policies'... And you can pipe that. Remember, mdb derives from adb, and so you have an address:command structure for its inputs.

Posted by Nico on September 19, 2008 at 05:08 PM CDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed