On Fri, May 22, 2009 at 6:04 PM, Adam Leventhal <ahl at eng.sun.com> wrote:
> Hey Mike,
>
> You're hitting this longstanding bug:
>
> ?4884128 ::dis should default to each object's native mode

That doesn't seem to show up on bugs.opensolaris.org -- is there any
more to the bug that isn't obvious from the synposis?

Just from the synopsis, I poked around for a few minutes and came up
with this:  http://cr.opensolaris.org/~jbk/mdb-disasm

I just borrowed the code from /usr/bin/dis with suitable modifications
to select the correct disassembler :)  It seems to work on sparc from
a bit of testing I've done (tried v8, v8+, and v9 bins).  I don't have
a box sufficiently updated to build it on X86 yet (a couple of
x86-specific flag days I haven't caught up on) with the latest ON
snapshot though.

I've cc'ed mdb-discuss in case anyone around there wants to comment on
the webrev (I don't think the rest of the discussion is particularly
relevant for that list).  If this change does address the bug
completely (and I've not missed something -- I'm not very familiar
with the mdb code), if someone would want to act as a code reviewer,
I'll grab a sponsor and have it putback.

Reply via email to