Project

General

Profile

Actions

Bug #11206

closed

mdb output autowrapping still subtly wrong

Added by Robert Mustacchi over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
mdb - modular debugger
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

mdb's autowrapping is (still) subtly wrong. For example, here is a case that doesn't autowrap, but should:

% mdb -e '-1,4=J'
                ffffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffff

And here's a case that does autowrap but shouldn't:

% mdb -e '::typedef -c lp32 ; 0::printf "%-80d%d" int . .' | wc -l
       2

This, by contrast, has expected results:

% mdb -e '::typedef -c lp32 ; 0::printf "%-79d %d" int . .' | wc -l
       1

We need to (1) turn autowrapping on manually whenever printing a format character and (2) only autowrap on mdb_printf()-induced whitespace if autowrapping is on.


Related issues

Related to illumos gate - Feature #14919: tem: implement xenlIn ProgressToomas Soome

Actions
Actions

Also available in: Atom PDF