aboutsummaryrefslogtreecommitdiffstats
path: root/arch/frv/kernel/gdb-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/frv/kernel/gdb-stub.c')
-rw-r--r--arch/frv/kernel/gdb-stub.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/frv/kernel/gdb-stub.c b/arch/frv/kernel/gdb-stub.c
index 1e7a101cbf4c..e89cad1192a9 100644
--- a/arch/frv/kernel/gdb-stub.c
+++ b/arch/frv/kernel/gdb-stub.c
@@ -647,17 +647,11 @@ void debug_to_serial(const char *p, int n)
647} 647}
648#endif 648#endif
649 649
650#ifdef CONFIG_GDBSTUB_CONSOLE 650#ifdef CONFIG_GDB_CONSOLE
651
652static kdev_t gdbstub_console_dev(struct console *con)
653{
654 return MKDEV(1,3); /* /dev/null */
655}
656 651
657static struct console gdbstub_console = { 652static struct console gdbstub_console = {
658 .name = "gdb", 653 .name = "gdb",
659 .write = gdbstub_console_write, /* in break.S */ 654 .write = gdbstub_console_write, /* in break.S */
660 .device = gdbstub_console_dev,
661 .flags = CON_PRINTBUFFER, 655 .flags = CON_PRINTBUFFER,
662 .index = -1, 656 .index = -1,
663}; 657};
@@ -2021,7 +2015,7 @@ void __init gdbstub_init(void)
2021 ptr = mem2hex(gdbstub_banner, ptr, sizeof(gdbstub_banner) - 1, 0); 2015 ptr = mem2hex(gdbstub_banner, ptr, sizeof(gdbstub_banner) - 1, 0);
2022 gdbstub_send_packet(output_buffer); 2016 gdbstub_send_packet(output_buffer);
2023#endif 2017#endif
2024#if defined(CONFIG_GDBSTUB_CONSOLE) && defined(CONFIG_GDBSTUB_IMMEDIATE) 2018#if defined(CONFIG_GDB_CONSOLE) && defined(CONFIG_GDBSTUB_IMMEDIATE)
2025 register_console(&gdbstub_console); 2019 register_console(&gdbstub_console);
2026#endif 2020#endif
2027 2021
@@ -2031,7 +2025,7 @@ void __init gdbstub_init(void)
2031/* 2025/*
2032 * register the console at a more appropriate time 2026 * register the console at a more appropriate time
2033 */ 2027 */
2034#if defined (CONFIG_GDBSTUB_CONSOLE) && !defined(CONFIG_GDBSTUB_IMMEDIATE) 2028#if defined (CONFIG_GDB_CONSOLE) && !defined(CONFIG_GDBSTUB_IMMEDIATE)
2035static int __init gdbstub_postinit(void) 2029static int __init gdbstub_postinit(void)
2036{ 2030{
2037 printk("registering console\n"); 2031 printk("registering console\n");