Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdb: unknown command size #37

Open
ulidtko opened this issue Oct 21, 2015 · 4 comments
Open

mdb: unknown command size #37

ulidtko opened this issue Oct 21, 2015 · 4 comments

Comments

@ulidtko
Copy link

ulidtko commented Oct 21, 2015

mdb> help size
size NUM
     Set the maximum number of function symbols to be printed in terms
     to NUM.

size io NUM
     Set the maximum number of function symbols to be printed in I/O
     actions to NUM.  I/O actions are printed using the browser's 'print
     *' command so the 'size io' command updates the configuration
     parameters for the browser's 'print *' command.

mdb> size 200
Unknown command `size'. Give the command `help' for help.
@zsomogyi
Copy link
Contributor

The "size" command is for the declarative debugger, not the procedural debugger.
It is only the procedural debugger that gives the "mdb>" prompt. The error you got
is therefore exactly as expected; it is the documentation above that is misleading.

I proposed a fix of the documentation on the mailing list.

@ulidtko
Copy link
Author

ulidtko commented Oct 23, 2015

What is this, then?

mdb> browse
browser> size
Browser default format: flat
                                 depth     size      width     lines     
Browser flat:                    10        30        80        25        
Browser verbose:                 10        30        80        25        
Browser pretty:                  10        30        80        25        
Browser raw_pretty:              10        30        80        25        

Print default format: flat
                                 depth     size      width     lines     
Print flat:                      3         10        80        25        
Print verbose:                   3         10        80        25        
Print pretty:                    3         10        80        25        
Print raw_pretty:                3         10        80        25        

Printall default format: flat
                                 depth     size      width     lines     
Printall flat:                   3         10        80        2         
Printall verbose:                3         10        80        5         
Printall pretty:                 3         10        80        2         
Printall raw_pretty:             3         10        80        2         

Number of I/O actions printed is: 20
Current path is: /

And how do I raise the term length limit for the mdb pretty-printer?

@ulidtko
Copy link
Author

ulidtko commented Dec 14, 2017

Something needs to be fixed here, be it documentation or the command.

@wangp
Copy link
Member

wangp commented Dec 16, 2017

And how do I raise the term length limit for the mdb pretty-printer?

See the format_param command, e.g. format_param size 50. You can add aliases in ~/.mdbrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants