diff options
Diffstat (limited to 'kernel/kgdb.c')
-rw-r--r-- | kernel/kgdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/kgdb.c b/kernel/kgdb.c index 319c08c92ee2..68aea78407e4 100644 --- a/kernel/kgdb.c +++ b/kernel/kgdb.c | |||
@@ -1139,10 +1139,10 @@ static void gdb_cmd_break(struct kgdb_state *ks) | |||
1139 | error = kgdb_remove_sw_break(addr); | 1139 | error = kgdb_remove_sw_break(addr); |
1140 | else if (remcom_in_buffer[0] == 'Z') | 1140 | else if (remcom_in_buffer[0] == 'Z') |
1141 | error = arch_kgdb_ops.set_hw_breakpoint(addr, | 1141 | error = arch_kgdb_ops.set_hw_breakpoint(addr, |
1142 | (int)length, *bpt_type); | 1142 | (int)length, *bpt_type - '0'); |
1143 | else if (remcom_in_buffer[0] == 'z') | 1143 | else if (remcom_in_buffer[0] == 'z') |
1144 | error = arch_kgdb_ops.remove_hw_breakpoint(addr, | 1144 | error = arch_kgdb_ops.remove_hw_breakpoint(addr, |
1145 | (int) length, *bpt_type); | 1145 | (int) length, *bpt_type - '0'); |
1146 | 1146 | ||
1147 | if (error == 0) | 1147 | if (error == 0) |
1148 | strcpy(remcom_out_buffer, "OK"); | 1148 | strcpy(remcom_out_buffer, "OK"); |