gdb_kern.c 803 B

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