debug.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. filesummary.CH: 用于和App联动的特殊或复杂的调试功能
  3. filesummary.EN: Provide some special or complex debug features
  4. CH: 打印堆栈信息
  5. EN: Print stacktrace info
  6. */
  7. void __xdb_stacktrace();
  8. /*
  9. CH: 运行时添加断点
  10. EN: Add a breakpoint in runtime
  11. fileName.CH: 要添加断点的文件名
  12. fileName.EN: The file name which you want to add breakpoint
  13. line.CH: 行号
  14. line.EN: Line number
  15. */
  16. void __xdb_breakpoint_add(char *fileName, int line);
  17. /*
  18. CH: 运行时删除断点
  19. EN: Remove a breakpoint in runtime
  20. fileName.CH: 要删除断点的文件名
  21. fileName.EN: The file name which you want to remove breakpoint
  22. line.CH: 行号
  23. line.EN: Line number
  24. */
  25. void __xdb_breakpoint_rem(char *fileName, int line);
  26. /*
  27. CH: 返回调用此函数的文件名称
  28. EN: Return the file name which invoke this function
  29. */
  30. char* __xdb_current_filename();
  31. /*
  32. CH: 返回调用此函数的行号
  33. EN: Return the line number which invoke this function
  34. */
  35. int __xdb_current_line();
  36. /*
  37. CH: 打印当前堆栈信息的宏,等同于调用__xdb_stacktrace(),是调试模式下命令的缩写
  38. EN: Print stacktrace info, can use in debugger command mode, alias to __xdb_stacktrace()
  39. */
  40. __Macro fstrace;