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

VxWorks

开发平台:

C/C++

  1. /* wdbBpLib.h - wdb break point library */
  2. /* Copyright 1984-2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01j,25apr02,jhw  Added C++ support (SPR 76304).
  7. 01i,21apr98,dbt  removed useless defines for ARM.
  8. 01h,17apr97,cdp added Thumb (ARM7TDMI_T) support.
  9. 01g,28nov96,cdp added ARM support.
  10. 01h,04feb98,dbt  moved wdbSysBpLibInit() and wdbTaskBpLibInit() to wdbLib.h
  11. 01g,12jan98,dbt  modified for new debugger scheme
  12. 01f,22jul96,jmb  merged mem's (ease) patch for HPSIM.
  13. 01e,20may96,ms   imported prototypes and macros from wdb[Task]BpLib.h.
  14. 01d,25feb96,tam  added single step support for PPC403.
  15. 01d,04apr96,ism  added simsolaris support
  16. 01c,23jan96,tpr  added PowerPC support.
  17. 01c,28nov95,mem  added MIPS support, added macros WDB_CTX_{LOAD,SAVE}.
  18. 01b,08jun95,ms   change CPU==SPARC to CPU_FAMILY==SPARC
  19. 01a,20nov94,rrr  written.
  20. */
  21. #ifndef __INCwdbBpLibh
  22. #define __INCwdbBpLibh
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. #ifndef _ASMLANGUAGE
  27. /* includes */
  28. #include "vxWorks.h"
  29. #include "wdb/wdbRegs.h"
  30. #include "wdb/wdbDbgLib.h"
  31. /* function declarations */
  32. #ifdef  __STDC__
  33. extern void wdbBpInstall (void);
  34. extern UINT32 (*_wdbTaskBpAdd) (WDB_EVTPT_ADD_DESC * pEv);
  35. extern UINT32 (*_wdbTaskStep) (UINT32 contextId, TGT_ADDR_T startAddr,
  36.     TGT_ADDR_T endAddr);
  37. extern UINT32 (*_wdbTaskCont) (UINT32 contextId);
  38. extern void (*_wdbTaskBpTrap) (int level, INSTR * addr, void * pInfo, 
  39.          WDB_IU_REGS * pRegisters, 
  40.     void * pDbgRegs, 
  41.     BOOL hardware);
  42. extern void (*_wdbTaskBpBreakpoint) (int level, void * pInfo, 
  43.     WDB_IU_REGS * pRegisters, 
  44.     void * pDbgRegs, BOOL hardware);
  45. extern void (*_wdbTaskBpTrace) (int level, void * pInfo, 
  46.     WDB_IU_REGS *pRegisters);
  47. #else   /* __STDC__ */
  48. extern void wdbBpInstall ();
  49. extern UINT32 (*_wdbTaskBpAdd) ();
  50. extern UINT32 (*_wdbTaskStep) ();
  51. extern UINT32 (*_wdbTaskCont) ();
  52. extern void (*_wdbTaskBpTrap) ();
  53. extern void (*_wdbTaskBpBreakpoint) ();
  54. extern void (*_wdbTaskBpTrace) ();
  55. #endif  /* __STDC__ */
  56. #endif /* _ASMLANGUAGE */
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif /* __INCwdbBpLibh */