Skip to content

Commit 9bc2bd5

Browse files
mikeympe
authored andcommitted
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: Michael Neuling <[email protected]> [mpe: Unsplit quoted string] Signed-off-by: Michael Ellerman <[email protected]>
1 parent 85ce9a5 commit 9bc2bd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/powerpc/xmon/xmon.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,10 @@ bpt_cmds(void)
12971297
static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n";
12981298
int mode;
12991299
case 'd': /* bd - hardware data breakpoint */
1300+
if (!ppc_breakpoint_available()) {
1301+
printf("Hardware data breakpoint not supported on this cpu\n");
1302+
break;
1303+
}
13001304
mode = 7;
13011305
cmd = inchar();
13021306
if (cmd == 'r')

0 commit comments

Comments
 (0)