Print this page
2574 mdb needs ::printf
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Approved by: ?

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/mdb/mdb_cmds.c
          +++ new/usr/src/cmd/mdb/common/mdb/mdb_cmds.c
↓ open down ↓ 2956 lines elided ↑ open up ↑
2957 2957          { "nmadd", ":[-fo] [-e end] [-s size] name",
2958 2958              "add name to private symbol table", cmd_nmadd, nmadd_help },
2959 2959          { "nmdel", "name", "remove name from private symbol table", cmd_nmdel },
2960 2960          { "obey", NULL, NULL, cmd_obey },
2961 2961          { "objects", "[-v]", "print load objects information", cmd_objects },
2962 2962          { "offsetof", "type member", "print the offset of a given struct "
2963 2963              "or union member", cmd_offsetof, NULL, mdb_tab_complete_mt },
2964 2964          { "print", "?[-aCdhiLptx] [-c lim] [-l lim] [type] [member|offset ...]",
2965 2965              "print the contents of a data structure", cmd_print, print_help,
2966 2966              cmd_print_tab },
     2967 +        { "printf", "?format type member ...", "print and format the "
     2968 +            "member(s) of a data structure", cmd_printf, printf_help },
2967 2969          { "regs", NULL, "print general purpose registers", cmd_notsup },
2968 2970          { "set", "[-wF] [+/-o opt] [-s dist] [-I path] [-L path] [-P prompt]",
2969 2971              "get/set debugger properties", cmd_set },
2970 2972          { "showrev", "[-pv]", "print version information", cmd_showrev },
2971 2973          { "sizeof", "type", "print the size of a type", cmd_sizeof, NULL,
2972 2974              cmd_sizeof_tab },
2973 2975          { "stack", "?[cnt]", "print stack backtrace", cmd_notsup },
2974 2976          { "stackregs", "?", "print stack backtrace and registers",
2975 2977              cmd_notsup },
2976 2978          { "status", NULL, "print summary of current target", cmd_notsup },
↓ open down ↓ 92 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX