blob: 68e1bf63cd0ad2e453010bc384161dfb74e75699 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#include "linux/init.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#include "mconsole_kern.h"
8
9#ifdef CONFIG_MCONSOLE
10
11extern int gdb_config(char *str);
Jeff Dike29d56cf2005-06-25 14:55:25 -070012extern int gdb_remove(int n);
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
14static struct mc_device gdb_mc = {
15 .name = "gdb",
16 .config = gdb_config,
17 .remove = gdb_remove,
18};
19
20int gdb_mc_init(void)
21{
22 mconsole_register_dev(&gdb_mc);
23 return(0);
24}
25
26__initcall(gdb_mc_init);
27
28#endif
29
30/*
31 * Overrides for Emacs so that we follow Linus's tabbing style.
32 * Emacs will notice this stuff at the end of the file and automatically
33 * adjust the settings for this buffer only. This must remain at the end
34 * of the file.
35 * ---------------------------------------------------------------------------
36 * Local variables:
37 * c-file-style: "linux"
38 * End:
39 */