gdb_kern.c 829 B

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