Source code of Windows XP (NT5)
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.

65 lines
1.2 KiB

  1. title "Debug Support Functions"
  2. ;++
  3. ;
  4. ; Copyright (c) 1989 Microsoft Corporation
  5. ;
  6. ; Module Name:
  7. ;
  8. ; debug.s
  9. ;
  10. ; Abstract:
  11. ;
  12. ; This module implements functions to support debugging NT.
  13. ;
  14. ; Author:
  15. ;
  16. ; Steven R. Wood (stevewo) 3-Aug-1989
  17. ;
  18. ; Environment:
  19. ;
  20. ; Any mode.
  21. ;
  22. ; Revision History:
  23. ;
  24. ; 11 April 90 (and before) bryanwi
  25. ; Ported to 386, 386 specific support added.
  26. ;
  27. ; 2 Aug. 90 (tomp)
  28. ; Added _DbgUnLoadImageSymbols routine.
  29. ;
  30. ;--
  31. .386p
  32. .xlist
  33. include ks386.inc
  34. include callconv.inc ; calling convention macros
  35. .list
  36. _TEXT SEGMENT PUBLIC DWORD 'CODE'
  37. ASSUME DS:FLAT, ES:FLAT, FS:NOTHING, GS:NOTHING, SS:NOTHING
  38. cPublicProc _DbgBreakPoint ,0
  39. cPublicFpo 0,0
  40. int 3
  41. stdRET _DbgBreakPoint
  42. stdENDP _DbgBreakPoint
  43. cPublicProc _DbgUserBreakPoint ,0
  44. cPublicFpo 0,0
  45. int 3
  46. stdRET _DbgUserBreakPoint
  47. stdENDP _DbgUserBreakPoint
  48. cPublicProc _DbgBreakPointWithStatus,1
  49. cPublicFpo 1,0
  50. mov eax,[esp+4]
  51. public _RtlpBreakWithStatusInstruction@0
  52. _RtlpBreakWithStatusInstruction@0:
  53. int 3
  54. stdRET _DbgBreakPointWithStatus
  55. stdENDP _DbgBreakPointWithStatus
  56. _TEXT ends
  57. end