On Wed, 21 Feb 2007, John Levon wrote:

> On Wed, Feb 21, 2007 at 02:39:27PM +0000, Frank Hofmann wrote:
>
>> You're running a machine that has a mapping at NULL (or whatever the
>> contents were of mi_lowat)
>
> Nah, he's just more up to date than you :)
>
>>> strm_info::print -a mi_lowat | /W 1
>> mdb: failed to write 1 at address 0x400: no mapping for address
>>
>> One can use '=' or '/' after a pipe, but it will operate on the _last_
>> string of the output, not the _first_ one as needed here.
>
> True, but this is special-cased now:
>
> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/mdb/common/mdb/mdb_print.c#1446

Can this be overridden ?

If '/...' operates on the first instead of the last output work, it breaks 
the old example:

*log_recentq::print queue_t q_first | ::walk b_next | ::walk b_cont | 
::print mblk_t b_rptr | /s

if an '-a' is inserted after the '::print'.

Not keen on such inconsistency.


FrankH.

Reply via email to