Project

General

Profile

Feature #11186

mdb's output autowrapping should be optional -- and disabled

Added by Robert Mustacchi 4 months ago. Updated 4 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Among mdb's more annoying idiosyncrasies is its insistence on autowrapping output at the terminal width. This is not required from a terminal perspective (mdb's terminal code handles the proper autowrapping of output), but is rather done from a pseudo-semantic perspective whereby a line wrap is induced if a word will exceed the width of the terminal. (Running the "::set" command is an easy way to see this.) The mechanism has many strange flaws and quirks (it doesn't always wrap at a whitespace boundary, for a variety of reasons), and it doesn't (ever?) seem to really be the desired behavior. To the contrary, it very often gets in the way of parsing mdb output. This behavior should be made optional, and turned off by default.

This was tested by running the test suite, including the addition of a new test to test this behavior.

History

#1

Updated by Electric Monk 4 months ago

  • Status changed from New to Closed

git commit f76ff24c761689d2859f3bc5faa7ec9e84f92234

commit  f76ff24c761689d2859f3bc5faa7ec9e84f92234
Author: Bryan Cantrill <bryan@joyent.com>
Date:   2019-06-06T14:01:13.000Z

    11186 mdb's output autowrapping should be optional -- and disabled
    Reviewed by: Dave Pacheco <dap@joyent.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF