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: ?


2947         { "head", "-num|-n num", "limit number of elements in pipe", cmd_head,
2948             head_help },
2949         { "help", "[cmd]", "list commands/command help", cmd_help },
2950         { "list", "?type member [variable]",
2951             "walk list using member as link pointer", cmd_list, NULL,
2952             mdb_tab_complete_mt },
2953         { "map", "?expr", "print dot after evaluating expression", cmd_map },
2954         { "mappings", "?[name]", "print address space mappings", cmd_mappings },
2955         { "nm", "?[-DPdghnopuvx] [-f format] [-t types] [object]",
2956             "print symbols", cmd_nm, nm_help },
2957         { "nmadd", ":[-fo] [-e end] [-s size] name",
2958             "add name to private symbol table", cmd_nmadd, nmadd_help },
2959         { "nmdel", "name", "remove name from private symbol table", cmd_nmdel },
2960         { "obey", NULL, NULL, cmd_obey },
2961         { "objects", "[-v]", "print load objects information", cmd_objects },
2962         { "offsetof", "type member", "print the offset of a given struct "
2963             "or union member", cmd_offsetof, NULL, mdb_tab_complete_mt },
2964         { "print", "?[-aCdhiLptx] [-c lim] [-l lim] [type] [member|offset ...]",
2965             "print the contents of a data structure", cmd_print, print_help,
2966             cmd_print_tab },


2967         { "regs", NULL, "print general purpose registers", cmd_notsup },
2968         { "set", "[-wF] [+/-o opt] [-s dist] [-I path] [-L path] [-P prompt]",
2969             "get/set debugger properties", cmd_set },
2970         { "showrev", "[-pv]", "print version information", cmd_showrev },
2971         { "sizeof", "type", "print the size of a type", cmd_sizeof, NULL,
2972             cmd_sizeof_tab },
2973         { "stack", "?[cnt]", "print stack backtrace", cmd_notsup },
2974         { "stackregs", "?", "print stack backtrace and registers",
2975             cmd_notsup },
2976         { "status", NULL, "print summary of current target", cmd_notsup },
2977         { "term", NULL, "display current terminal type", cmd_term },
2978         { "typeset", "[+/-t] var ...", "set variable attributes", cmd_typeset },
2979         { "unset", "[name ...]", "unset variables", cmd_unset },
2980         { "vars", "[-npt]", "print listing of variables", cmd_vars },
2981         { "version", NULL, "print debugger version string", cmd_version },
2982         { "vtop", ":[-a as]", "print physical mapping of virtual address",
2983             cmd_vtop },
2984         { "walk", "?name [variable]", "walk data structure", cmd_walk, NULL,
2985             cmd_walk_tab },
2986         { "walkers", NULL, "list available walkers", cmd_walkers },




2947         { "head", "-num|-n num", "limit number of elements in pipe", cmd_head,
2948             head_help },
2949         { "help", "[cmd]", "list commands/command help", cmd_help },
2950         { "list", "?type member [variable]",
2951             "walk list using member as link pointer", cmd_list, NULL,
2952             mdb_tab_complete_mt },
2953         { "map", "?expr", "print dot after evaluating expression", cmd_map },
2954         { "mappings", "?[name]", "print address space mappings", cmd_mappings },
2955         { "nm", "?[-DPdghnopuvx] [-f format] [-t types] [object]",
2956             "print symbols", cmd_nm, nm_help },
2957         { "nmadd", ":[-fo] [-e end] [-s size] name",
2958             "add name to private symbol table", cmd_nmadd, nmadd_help },
2959         { "nmdel", "name", "remove name from private symbol table", cmd_nmdel },
2960         { "obey", NULL, NULL, cmd_obey },
2961         { "objects", "[-v]", "print load objects information", cmd_objects },
2962         { "offsetof", "type member", "print the offset of a given struct "
2963             "or union member", cmd_offsetof, NULL, mdb_tab_complete_mt },
2964         { "print", "?[-aCdhiLptx] [-c lim] [-l lim] [type] [member|offset ...]",
2965             "print the contents of a data structure", cmd_print, print_help,
2966             cmd_print_tab },
2967         { "printf", "?format type member ...", "print and format the "
2968             "member(s) of a data structure", cmd_printf, printf_help },
2969         { "regs", NULL, "print general purpose registers", cmd_notsup },
2970         { "set", "[-wF] [+/-o opt] [-s dist] [-I path] [-L path] [-P prompt]",
2971             "get/set debugger properties", cmd_set },
2972         { "showrev", "[-pv]", "print version information", cmd_showrev },
2973         { "sizeof", "type", "print the size of a type", cmd_sizeof, NULL,
2974             cmd_sizeof_tab },
2975         { "stack", "?[cnt]", "print stack backtrace", cmd_notsup },
2976         { "stackregs", "?", "print stack backtrace and registers",
2977             cmd_notsup },
2978         { "status", NULL, "print summary of current target", cmd_notsup },
2979         { "term", NULL, "display current terminal type", cmd_term },
2980         { "typeset", "[+/-t] var ...", "set variable attributes", cmd_typeset },
2981         { "unset", "[name ...]", "unset variables", cmd_unset },
2982         { "vars", "[-npt]", "print listing of variables", cmd_vars },
2983         { "version", NULL, "print debugger version string", cmd_version },
2984         { "vtop", ":[-a as]", "print physical mapping of virtual address",
2985             cmd_vtop },
2986         { "walk", "?name [variable]", "walk data structure", cmd_walk, NULL,
2987             cmd_walk_tab },
2988         { "walkers", NULL, "list available walkers", cmd_walkers },