You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gdbmach.h 887B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef GDBMACH_H
  2. #define GDBMACH_H
  3. /** @file
  4. *
  5. * GDB architecture specifics
  6. *
  7. * This file declares functions for manipulating the machine state and
  8. * debugging context.
  9. *
  10. */
  11. #include <stdint.h>
  12. typedef unsigned long gdbreg_t;
  13. /* Register snapshot */
  14. enum {
  15. /* Not yet implemented */
  16. GDBMACH_NREGS,
  17. };
  18. #define GDBMACH_SIZEOF_REGS ( GDBMACH_NREGS * sizeof ( gdbreg_t ) )
  19. static inline void gdbmach_set_pc ( gdbreg_t *regs, gdbreg_t pc ) {
  20. /* Not yet implemented */
  21. ( void ) regs;
  22. ( void ) pc;
  23. }
  24. static inline void gdbmach_set_single_step ( gdbreg_t *regs, int step ) {
  25. /* Not yet implemented */
  26. ( void ) regs;
  27. ( void ) step;
  28. }
  29. static inline void gdbmach_breakpoint ( void ) {
  30. /* Not yet implemented */
  31. }
  32. extern int gdbmach_set_breakpoint ( int type, unsigned long addr, size_t len,
  33. int enable );
  34. extern void gdbmach_init ( void );
  35. #endif /* GDBMACH_H */