13 messages in org.opensolaris.mdb-discuss[mdb-discuss] how to dump a array and...
FromSent OnAttachments
zhijunAug 23, 2007 7:15 am 
Alexandre ChartreAug 23, 2007 7:56 am 
zhijunAug 23, 2007 8:33 am 
Alexandre ChartreAug 23, 2007 8:36 am 
Eric SchrockAug 23, 2007 8:36 am 
zhijunAug 23, 2007 9:27 am 
Eric SchrockAug 23, 2007 9:36 am 
zhijunAug 24, 2007 8:28 am 
Eric SchrockAug 24, 2007 10:38 am 
zhijunAug 24, 2007 7:44 pm 
Jonathan AdamsAug 25, 2007 12:11 am 
Eric SchrockAug 25, 2007 8:37 am 
zhijunAug 26, 2007 6:00 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[mdb-discuss] how to dump a array and find which slots are non zero?Actions...
From:Eric Schrock (eric@sun.com)
Date:Aug 23, 2007 9:36:10 am
List:org.opensolaris.mdb-discuss

On Fri, Aug 24, 2007 at 12:27:38AM +0800, zhijun wrote:

Thanks, Eric. This eliminates most of my doublts. Just want to be sure, it seems that from the below results, actually mdb taks '=' as the command, instead of taking 0x1234.

*swap_vnodes::array "struct vnode *" 0t2048 p |/Kn |::grep . != 0x1234

sh: =: not found

Best, Zhijun

Yes, that is correct, I misquoted the behavior originally. Everything after the '!' is passed verbatim to the shell. For the gory details, see usr/src/cmd/mdb/common/mdb/mdb_shell.c

- Eric