提交 9bc2bd5d 编写于 作者: M Michael Neuling 提交者: Michael Ellerman

powerpc: Update xmon to use ppc_breakpoint_available()

The 'bd' command will now print an error and not set the breakpoint on
P9.
Signed-off-by: NMichael Neuling <mikey@neuling.org>
[mpe: Unsplit quoted string]
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 85ce9a5d
...@@ -1297,6 +1297,10 @@ bpt_cmds(void) ...@@ -1297,6 +1297,10 @@ bpt_cmds(void)
static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n"; static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n";
int mode; int mode;
case 'd': /* bd - hardware data breakpoint */ case 'd': /* bd - hardware data breakpoint */
if (!ppc_breakpoint_available()) {
printf("Hardware data breakpoint not supported on this cpu\n");
break;
}
mode = 7; mode = 7;
cmd = inchar(); cmd = inchar();
if (cmd == 'r') if (cmd == 'r')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册