Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) |
| 3 | * Licensed under the GPL |
| 4 | */ |
| 5 | |
| 6 | #include "linux/init.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #include "mconsole_kern.h" |
| 8 | |
| 9 | #ifdef CONFIG_MCONSOLE |
| 10 | |
Jeff Dike | f28169d | 2007-02-10 01:43:53 -0800 | [diff] [blame] | 11 | extern int gdb_config(char *str, char **error_out); |
| 12 | extern int gdb_remove(int n, char **error_out); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
| 14 | static struct mc_device gdb_mc = { |
Jeff Dike | 84f48d4 | 2007-02-10 01:44:01 -0800 | [diff] [blame] | 15 | .list = INIT_LIST_HEAD(gdb_mc.list), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | .name = "gdb", |
| 17 | .config = gdb_config, |
| 18 | .remove = gdb_remove, |
| 19 | }; |
| 20 | |
| 21 | int gdb_mc_init(void) |
| 22 | { |
| 23 | mconsole_register_dev(&gdb_mc); |
| 24 | return(0); |
| 25 | } |
| 26 | |
| 27 | __initcall(gdb_mc_init); |
| 28 | |
| 29 | #endif |
| 30 | |
| 31 | /* |
| 32 | * Overrides for Emacs so that we follow Linus's tabbing style. |
| 33 | * Emacs will notice this stuff at the end of the file and automatically |
| 34 | * adjust the settings for this buffer only. This must remain at the end |
| 35 | * of the file. |
| 36 | * --------------------------------------------------------------------------- |
| 37 | * Local variables: |
| 38 | * c-file-style: "linux" |
| 39 | * End: |
| 40 | */ |