提交 7aeb48b7 编写于 作者: J Jason Wessel

kgdb,mips: remove unused kgdb_cpu_doing_single_step operations

The mips kgdb specific code does not support software or HW single
stepping so it should not implement
Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
Signed-off-by: NDongdong Deng <dongdong.deng@windriver.com>
Acked-by: NRalf Baechle <ralf@linux-mips.org>
CC: linux-mips@linux-mips.org
上级 eac79005
...@@ -329,7 +329,7 @@ static struct notifier_block kgdb_notifier = { ...@@ -329,7 +329,7 @@ static struct notifier_block kgdb_notifier = {
}; };
/* /*
* Handle the 's' and 'c' commands * Handle the 'c' command
*/ */
int kgdb_arch_handle_exception(int vector, int signo, int err_code, int kgdb_arch_handle_exception(int vector, int signo, int err_code,
char *remcom_in_buffer, char *remcom_out_buffer, char *remcom_in_buffer, char *remcom_out_buffer,
...@@ -337,20 +337,14 @@ int kgdb_arch_handle_exception(int vector, int signo, int err_code, ...@@ -337,20 +337,14 @@ int kgdb_arch_handle_exception(int vector, int signo, int err_code,
{ {
char *ptr; char *ptr;
unsigned long address; unsigned long address;
int cpu = smp_processor_id();
switch (remcom_in_buffer[0]) { switch (remcom_in_buffer[0]) {
case 's':
case 'c': case 'c':
/* handle the optional parameter */ /* handle the optional parameter */
ptr = &remcom_in_buffer[1]; ptr = &remcom_in_buffer[1];
if (kgdb_hex2long(&ptr, &address)) if (kgdb_hex2long(&ptr, &address))
regs->cp0_epc = address; regs->cp0_epc = address;
atomic_set(&kgdb_cpu_doing_single_step, -1);
if (remcom_in_buffer[0] == 's')
atomic_set(&kgdb_cpu_doing_single_step, cpu);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册