dbgSimsolarisLib.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* dbgSimsparcLib.h - simsparc debugger header */
  2. /* Copyright 1995-2001 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. -------------------
  6. 01c,26nov01,hbh  Added INST_SAV definition.
  7. 01b,29dec97,dbt  modified for new breakpoint scheme
  8. 01a,07jun95,ism  derived from simsparc
  9. */
  10. #ifndef __INCdbgSimsparcLibh
  11. #define __INCdbgSimsparcLibh
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #include "excLib.h"
  16. #define BREAK_ESF EXC_INFO
  17. #define TRACE_ESF BREAK_ESF /* in case needed */
  18. #define DBG_BREAK_INST 0x91d02001
  19. #define DBG_NO_SINGLE_STEP 1
  20. #define INST_SAV 0x9de3b000
  21. #define INST_SAV_MASK 0xffeff000
  22. #define INST_CALL       OP_1
  23. #define INST_CALL_MASK  OP
  24. #define JMPL_o7         (OP_2 + RD_o7 + OP3_38)
  25. #define JMPL_o7_MASK    (OP + RD + OP3)
  26. #define I7_OFFSET       0x0f    /* offset from base of stack, in ints */
  27. #define I7_CONTENTS(sp) ((INSTR *)*(sp + I7_OFFSET))
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* __INCdbgSimsparcLibh */