Skip to content

Commit 53197fc

Browse files
committed
Separate the gdbstub from the debug core
Split the former kernel/kgdb.c into debug_core.c which contains the kernel debugger exception logic and to the gdbstub.c which contains the logic for allowing gdb to talk to the debug core. This also created a private include file called debug_core.h which contains all the definitions to glue the debug_core to any other debugger connections. CC: Ingo Molnar <mingo@elte.hu> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
1 parent c433820 commit 53197fc

5 files changed

Lines changed: 1030 additions & 957 deletions

File tree

include/linux/kgdb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ extern unsigned long __weak kgdb_arch_pc(int exception, struct pt_regs *regs);
264264

265265
extern int kgdb_register_io_module(struct kgdb_io *local_kgdb_io_ops);
266266
extern void kgdb_unregister_io_module(struct kgdb_io *local_kgdb_io_ops);
267+
extern struct kgdb_io *dbg_io_ops;
267268

268269
extern int kgdb_hex2long(char **ptr, unsigned long *long_val);
269270
extern int kgdb_mem2hex(char *mem, char *buf, int count);

kernel/debug/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
# Makefile for the linux kernel debugger
33
#
44

5-
obj-$(CONFIG_KGDB) += debug_core.o
6-
5+
obj-$(CONFIG_KGDB) += debug_core.o gdbstub.o

0 commit comments

Comments
 (0)