home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / except2x.zip / watch.c < prev    next >
Text File  |  1993-11-19  |  2KB  |  43 lines

  1. /**********************************************************************/
  2. /*                           IBM Internal Use Only                    */
  3. /**********************************************************************/
  4. /*                                                                    */
  5. /*  WATCH                                                             */
  6. /*                                                                    */
  7. /* SAMPLE 32 bit program to show traptrap usage with Watchpoints      */
  8. /* Call it first to get the Test variable address then                */
  9. /* call it using traptrap /address watch.exe                          */
  10. /* to see process.trp output                                          */
  11. /**********************************************************************/
  12. /* Version: 2.7             |   Marc Fiammante (FIAMMANT at LGEVM2)   */
  13. /*                          |   La Gaude FRANCE                       */
  14. /**********************************************************************/
  15. /*                                                                    */
  16. /**********************************************************************/
  17. /* History:                                                           */
  18. /* --------                                                           */
  19. /*                                                                    */
  20. /* created: Marc Fiammante November 1993                              */
  21. /**********************************************************************/
  22. #include <stdio.h>
  23. #include <stdlib.h>
  24. #include <malloc.h>
  25. #include <string.h>
  26. #include <direct.h>
  27. #include <process.h>
  28. #include <conio.h>
  29.  
  30. #define INCL_BASE
  31.  
  32. #include <os2.h>
  33. #include <bse.h>
  34.  
  35. CHAR Test='0';
  36.  
  37. main()
  38. {
  39.    printf("Address of Test variable is %p\n",&Test);
  40.    printf("Use the following command : TRAPTRAP /%p WATCH.EXE \n",&Test);
  41.    Test='1';  /* Should get result of watch point in PROCESS.TRP file */
  42. }
  43.