Skip to content

Commit

Permalink
Separate the gdbstub from the debug core
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
  • Loading branch information
jwessel committed May 21, 2010
1 parent c433820 commit 53197fc
Show file tree
Hide file tree
Showing 5 changed files with 1,030 additions and 957 deletions.
1 change: 1 addition & 0 deletions include/linux/kgdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ extern unsigned long __weak kgdb_arch_pc(int exception, struct pt_regs *regs);

extern int kgdb_register_io_module(struct kgdb_io *local_kgdb_io_ops);
extern void kgdb_unregister_io_module(struct kgdb_io *local_kgdb_io_ops);
extern struct kgdb_io *dbg_io_ops;

extern int kgdb_hex2long(char **ptr, unsigned long *long_val);
extern int kgdb_mem2hex(char *mem, char *buf, int count);
Expand Down
3 changes: 1 addition & 2 deletions kernel/debug/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
# Makefile for the linux kernel debugger
#

obj-$(CONFIG_KGDB) += debug_core.o

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

0 comments on commit 53197fc

Please sign in to comment.