Skip to content

Commit

Permalink
MN10300: Introduce a general config option for kernel debugger hooks
Browse files Browse the repository at this point in the history
Introduce a general config option for kernel debugger hooks so that both
gdbstub and kgdb can use it and add a header file for both debuggers to use.

Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
David Howells committed Mar 18, 2011
1 parent b75bb23 commit 792576b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mn10300/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ comment "The following must be set to a higher priority than local_irq_disable()

config GDBSTUB_IRQ_LEVEL
int "GDBSTUB interrupt priority"
depends on GDBSTUB
depends on KERNEL_DEBUGGER
range 0 1 if LINUX_CLI_LEVEL = 2
range 0 2 if LINUX_CLI_LEVEL = 3
range 0 3 if LINUX_CLI_LEVEL = 4
Expand Down
4 changes: 4 additions & 0 deletions arch/mn10300/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,7 @@ config GDBSTUB_ON_TTYSx
default y

endmenu

config KERNEL_DEBUGGER
def_bool y
depends on GDBSTUB
20 changes: 20 additions & 0 deletions arch/mn10300/include/asm/debugger.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* Kernel debugger for MN10300
*
* Copyright (C) 2011 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licence
* as published by the Free Software Foundation; either version
* 2 of the Licence, or (at your option) any later version.
*/

#ifndef _ASM_DEBUGGER_H
#define _ASM_DEBUGGER_H

#if defined(CONFIG_KERNEL_DEBUGGER)

#else /* CONFIG_KERNEL_DEBUGGER */

#endif /* CONFIG_KERNEL_DEBUGGER */
#endif /* _ASM_DEBUGGER_H */

0 comments on commit 792576b

Please sign in to comment.