gdb.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* gdb.h - Various definitions for the remote GDB stub */
  2. /*
  3. * Copyright (C) 2006 Lubomir Kundrak
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19. #ifndef GRUB_GDB_HEADER
  20. #define GRUB_GDB_HEADER 1
  21. #define SIGFPE 8
  22. #define SIGTRAP 5
  23. #define SIGABRT 6
  24. #define SIGSEGV 11
  25. #define SIGILL 4
  26. #define SIGUSR1 30
  27. /* We probably don't need other ones. */
  28. struct grub_serial_port;
  29. extern struct grub_serial_port *grub_gdb_port;
  30. void grub_gdb_breakpoint (void);
  31. unsigned int grub_gdb_trap2sig (int);
  32. #endif /* ! GRUB_GDB_HEADER */