In some configuration, xmon help string is larger than xmon output buffer. To show whole help string, this patch splits it into 2 parts.
Signed-off-by: Kou Ishizaki <[EMAIL PROTECTED]> --- Index: linux-powerpc-git/arch/powerpc/xmon/xmon.c =================================================================== RCS file: /home/public/cvs/linux-powerpc-git/arch/powerpc/xmon/xmon.c,v retrieving revision 1.1.1.7 diff -u -p -r1.1.1.7 xmon.c --- linux-powerpc-git/arch/powerpc/xmon/xmon.c 11 Jul 2007 02:15:32 -0000 1.1.1.7 +++ linux-powerpc-git/arch/powerpc/xmon/xmon.c 11 Jul 2007 10:08:41 -0000 @@ -182,7 +182,7 @@ extern void xmon_save_regs(struct pt_reg || ('A' <= (c) && (c) <= 'Z')) #define isspace(c) (c == ' ' || c == '\t' || c == 10 || c == 13 || c == 0) -static char *help_string = "\ +static char *help_string1 = "\ Commands:\n\ b show breakpoints\n\ bd set data breakpoint\n\ @@ -210,7 +210,9 @@ Commands:\n\ md compare two blocks of memory\n\ ml locate a block of memory\n\ mz zero a block of memory\n\ - mi show information about memory allocation\n\ + mi show information about memory allocation\n" +; +static char *help_string2 = "\ p call a procedure\n\ r print registers\n\ s single step\n" @@ -833,7 +835,8 @@ cmds(struct pt_regs *excp) mdelay(2000); return cmd; case '?': - printf(help_string); + printf(help_string1); + printf(help_string2); break; case 'b': bpt_cmds(); _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev