2
0

breakpoint.h 603 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * QEMU breakpoint & watchpoint definitions
  3. *
  4. * Copyright (c) 2012 SUSE LINUX Products GmbH
  5. *
  6. * SPDX-License-Identifier: GPL-2.0-or-later
  7. */
  8. #ifndef EXEC_BREAKPOINT_H
  9. #define EXEC_BREAKPOINT_H
  10. #include "qemu/queue.h"
  11. #include "exec/vaddr.h"
  12. #include "exec/memattrs.h"
  13. typedef struct CPUBreakpoint {
  14. vaddr pc;
  15. int flags; /* BP_* */
  16. QTAILQ_ENTRY(CPUBreakpoint) entry;
  17. } CPUBreakpoint;
  18. typedef struct CPUWatchpoint {
  19. vaddr vaddr;
  20. vaddr len;
  21. vaddr hitaddr;
  22. MemTxAttrs hitattrs;
  23. int flags; /* BP_* */
  24. QTAILQ_ENTRY(CPUWatchpoint) entry;
  25. } CPUWatchpoint;
  26. #endif